Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert SoundFont to .wav files for each note

Is there a simple way of converting a sound font file to .wav files (or any common music format, really), separate for each note?

So let's say I had a sound font a.sfz; I would like to get out of it a list of files A0.wav, A#0.wav, B0.wav, C1.wav, C#1.wav, etc.

In particular, I want to have a .wav for each note, which seems to me is not something the sound font has by itself (it seems that it only has samples a few notes apart -- I assume software is supposed to alter the pitch of the samples contained in the sound fonts to get the remaining notes' sounds, but I'd like to somehow generate the .wav files for all notes directly, so that I won't need to alter the pitch of the samples in any way).

If there's some software that does this, perfect, please provide a link, but I haven't found any (all those that I found only generate .wav files a few notes apart). If not, how would I go about doing this programmatically?

like image 706
houbysoft Avatar asked May 01 '12 03:05

houbysoft


2 Answers

Under Linux you can use SWAMI (http://www.swamiproject.org/) to manage the soundfont file (in SF2 format).

like image 153
EnzoR Avatar answered Oct 29 '22 11:10

EnzoR


On Ubuntu, sf2extract in the gigtools package can extract all the samples from an SF2 file as WAVs.

like image 31
sil Avatar answered Oct 29 '22 11:10

sil