to441 : a program to change .wav files into a 44.1kHz/16-bit PCM format!!!!

Started by cafeTechne, February 04, 2023, 07:56:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cafeTechne

Motivation: I've been playing with triggering samples via the Fishman Triple Play through my MC-101 (and tx'ing pc/cc downstream) and came across an issue with some sample .wav formats (not being 16 bit or 44.1kHz). I searched github and couldn't find a tool that was made explicitly to format all of your .wav's, regardless of their original samplerate or bit depth. This script requires the user to install the dependencies through PIP, so it requires some intimation with programming--but feel free to make pull requests and bug reports!

Here is the link to the github page for the code:

https://github.com/cafeTechne/to441

gumtownadmin

Windows ?
Audacity is a good free program for audio manipulation and format saving.
Always remember that you are absolutely unique. Just like everyone else.

cafeTechne

It's in python, so the operating system doesn't matter--so long as you have python installed. The program just traverses the directory structure of whatever folder you point it at and, in place, will convert and store a new version of the wav you have there at 44.1kHz and in a 16bit PCM standard that hardware synths will take.

I agree that Audacity can do *one file at a time*, but this can literally do years worth of file conversions in minutes... you can then use whatever file system search tool to search for the text "16bit_44100Hz" in the root folder and drag all of the newly converted files over to a new folder. If you have GB worth of samples that you want to use on a hardware device, this script will save you inordinate amounts of time. I don't believe Audacity will recursively traverse a directory structure and convert 100,000+ files at once.

gumtown

Ok, but I do beleive SoundForge (paid Windows sound editor) can do this, where you set up a folder, an input task (open all files sequenially) and an output task (save in 16bit/44.1kHz PCM format and close file).
Free "GR-55 FloorBoard" editor software from https://sourceforge.net/projects/grfloorboard/

admin

GoldWave app performs batch processing too

https://goldwave.com/help/desktop/FileBatch.html


New Goldwave Infinity Universal version for any platform
https://goldwave.com/editor
https://goldwave.com/editor/

-but Studentofplato-  happy to know you created this important audio file utility

cafeTechne

: ) It was a fun learning experience and I can use the basis of the code to do ALOT MORE because I used librosa to build it and librosa really opens up a lot of possibilities for mathematically manipulating digital representation of music. https://librosa.org/

This is FOSS and done in about 50 lines of code so that anyone can quickly read/inspect the source code and know that it's not doing anything BUT what it's supposed to do. Thanks for linking to those other full fledged programs, I wasn't aware of their existences before.