attached you can find a script that converts wav files to the wavetable format of the Fathom synthesizer. The wav files that are used as input have to meet the following conditions:
- The file contains wav data and its extension is "wav".
- The file is mono and is in 16 or 32 bit PCM format. So files in IEEE float format will not work!
- If the file contains several cycles, i.e. if it is a "true" wavetable, then the number of samples must be a multiple of 2048 or the number given with the -l argument (see below).
The script takes the following arguments:
Code: Select all
-f, --file: Converts a single file.
-d, --dir: Recursively convert all files in the given directory.
-g, --targetdir: Put all converted files into the given target directory. If
this parameter is not given and you convert a whole
directory then all files will be put next to the original
files.
-l, --length: The number of samples in one cycle that's assumed for wave table files.
Code: Select all
-c, --category: Use the given category for all converted files
-a, --author: Use the given author for all converted files
-m, --comment: Use the given comment for all converted files
-r, --rating: Use the given rating (in [0, 10]) for all converted files
-t, --type: Use the given type for all converted files
All examples given here assume that your system knows how to execute Python scripts, i.e. that the Python interpreter is in your path. If this is not the case you might have to prepend the commands with the full path to your Python interpreter, e.g.:
Code: Select all
C:\Path\To\Interpreter\python.exe FathomWTCreator.py -f Input.wav
Code: Select all
FathomWTCreator.py -f Input.wavCode: Select all
FathomWTCreator.py --file=Input.wav --length=1024Code: Select all
FathomWTCreator.py -d source -g convertedCode: Select all
FathomWTCreator.py -d sourceCode: Select all
FathomWTCreator.py -f "Input.wav" -c "A category" -a "Joe Doe" -m "A comment" -r 10Kind regards,
BlitBit
Edit: Fixed some typos which mixed up the "-l" and "-t" parameter. Thanks to toonertik for making me aware of them!
