This simple script converts all audio files in a provided directory into MakeNoise Morphagene compatible files (48KHz, floating-point, 32-bit, stereo WAV). It auotmatically names the files in the proper format too.
You must be comfortable with the comand-line, and have sox installed.
Copy this script to somewhere in your PATH, and make it executable (chmod +x mg-convert
).
ls /some/direcotry/of/sounds
├── foo.wav
├── bar.wav
└── baz.wav
mg-convert /some/directory/of/sounds
will produce:
├── foo.wav
├── bar.wav
├── baz.wav
└── converted
├── mg1.wav
├── mg2.wav
└── mg3.wav
Everything in the converted
subdirectory will be in Morphagene compatible format. All original input files are preserved. Subsequent runs will override anything in the converted
directory.
I've only tried this with a handful of input file formats, but in theory should work with any file format sox can process.
Use at your own risk, I'm not able to provide support for this.
Thanks for the script!
It seems that ffmpeg does not work b/c the channel routing seems to be stereo rather than 2 channel (who knew that there seems to be a difference)
A working file from sox/reaper looks like this w/ ffprobe
A non-working file from ffmpeg looks like this
One addition: You could change
to
so the files get automatically trimmed if they exceed the maximum size.