rgwan wrote:I want to make a midi synthesizer.
it can change wave pitch and save sound in wave file.or play to speaker.
oh.my english is very poor.....
For a synthesiser you just need to generate the sound itself. Create an empty sound object and fill it with data (ie a sinus wave: frequency = tone height, amplitude = volume). Then use fbsound to play the result.
AFAIK fbsound cannot save files so you have to code this yourself (you can learn from fbsound by reversing the load algorithm).
It 's mean.I must write code for save the sound to the WAVE or mp3 ogg file.
Yes?
TJF wrote:AFAIK fbsound cannot save files so you have to code this yourself (you can learn from fbsound by reversing the load algorithm).
So, what he is saying is; you can learn how fbsound LOADS wavs into memory - and then use that information to reverse engineer saving wave data as a file (or compress first to ogg or MP3)
edit - compressing 'samples' is not recommended.
If you do, use a "lossless" compression algo or you can be guaranteed to damage/lose the loop points you may have spent hours on 'tuning'.