|
From: Damien Z. <dam...@gm...> - 2011-01-04 23:05:59
|
HI Element, Thankyou for your detailed replies so quickly. This explains my problem. I will use 16 bit samples for now. Yes I was initially having problems when importing 24 bit samples and saving as 16 bit. Basically the file would not load in Swami after being saved and closed and reopened. Unfortunately the file is 150Mb and I do not have anyway to send this to you, it's just too big. I will try to create a smaller soundfont with the same bug and then upload it to my webserver and give you a link. Damien On Wed, Jan 5, 2011 at 8:23 AM, Element Green <ele...@gm...> wrote: > Hi Damien, > FluidSynth does not currently support 24 bit samples and it seems the > FluidSynth SoundFont loader code isn't ignoring the sm24 chunk which > contains the additional 8 bits of sample data (from the default of 16 bits). > I committed a fix to FluidSynth to ignore the sm24 chunk, which will be > available in the next release or you could grab FluidSynth from SVN and > build it yourself. Alternatively you could save your SoundFont with 16 bit > samples for now. > Just to clarify. You were initially having problems when importing 24 bit > wav files and saving the SoundFont as 16 bit correct? I just did a quick > test of this myself and it seemed to work OK, although it was only a single > small sample. If you were initially getting some sort of error after saving > a SoundFont from Swami and trying to load it again, it would be most helpful > to get a copy of the broken SoundFont, to try and fix whatever bug was > occurring. > Best regards, > Element > > On Sun, Jan 2, 2011 at 9:20 PM, Damien Zammit <dam...@gm...> > wrote: >> >> Hi Element, >> >> Actually it "worked" as in I was able to reopen my SF2 file and >> everything was there as I had saved it, >> however when I tried to use it in qsynth (and fluidsynth 1.1.3 >> directly), it reported an error and said >> >> (qsynth): >> >fluidsynth: error: Couldn't load soundfont file >> >fluidsynth: error: Failed to load SoundFont >> > "/home/dczammit/Desktop/drums.sf2" >> >> (command line fluidsynth): >> >SDTA chunk size mismatch >> >fluidsynth: error: Couldn't load soundfont file >> >fluidsynth: error: Failed to load SoundFont "Desktop/drums.sf2" >> >Failed to load the SoundFont Desktop/drums.sf2 >> >> Could it be a bug with using 24 bit wav samples in SF2s? >> >> Damien >> >> On Mon, Jan 3, 2011 at 2:17 PM, Element Green <ele...@gm...> >> wrote: >> > Hello Damien, >> > So it worked fine after checking the 24 bit samples check box in the >> > SoundFont properties? That is interesting and is a bug. I'll >> > investigate >> > and see if I can reproduce it. Swami shouldn't have problems converting >> > the >> > samples to 16 bit, if 24 bit is not specified. >> > Thanks for reporting your experience! >> > Best regards, >> > Element >> > >> > On Sun, Jan 2, 2011 at 3:51 AM, Damien Zammit <dam...@gm...> >> > wrote: >> >> >> >> Hi Element, >> >> >> >> I was using 24 bit WAV files without specifying 24 bit samples and >> >> this was causing the problem. >> >> >> >> Damo >> >> >> >> On Sun, Jan 2, 2011 at 9:03 PM, Element Green <ele...@gm...> >> >> wrote: >> >> > Hello Damien, >> >> > Do you think you could put the SoundFont file somewhere where I could >> >> > download it? Send a private email to me if you don't want others >> >> > also >> >> > potentially downloading it too. >> >> > Some additional questions which might help: >> >> > Have you saved/loaded other SoundFont files successfully (in other >> >> > words, >> >> > was it just this file that got corrupted?) >> >> > What operating system are you running? >> >> > Where did you obtain Swami (built from source or a package?) >> >> > Best regards, >> >> > Element >> >> > >> >> > On Sun, Jan 2, 2011 at 12:43 AM, Damien Zammit >> >> > <dam...@gm...> >> >> > wrote: >> >> >> >> >> >> I created a new SF2 soundfont and loaded about 160Mb of samples into >> >> >> it, saved the SF2 and next time I tried to open it, I got: >> >> >> >> >> >> ** (swami:2810): CRITICAL **: Failed to load DnD file >> >> >> '/home/dczammit/Desktop/drums.sf2': SoundFont reader error: >> >> >> Unexpected >> >> >> chunk size (ofs=9f978e6, traceback ['ibag' ofs=0x9F978E6, size=8 <= >> >> >> 'pdta' ofs=0x9F9784E, size=53512 <= 'sfbk' ofs=0x0, size=167397718]) >> >> >> >> >> >> Please help. >> >> > >> >> > >> > >> > > > |