How to use FBSound loop?

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
rgwan
Posts: 41
Joined: Aug 19, 2011 17:41
Contact:

Postby rgwan » Oct 24, 2011 11:24

TJF wrote:
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?
podvornyak
Posts: 148
Joined: Nov 12, 2007 11:46
Location: Russia

Postby podvornyak » Oct 24, 2011 15:02

Exactly.
rgwan
Posts: 41
Joined: Aug 19, 2011 17:41
Contact:

Postby rgwan » Oct 25, 2011 4:27

podvornyak wrote:E0xactly.

.....How can I get samples?
maddogg6
Posts: 824
Joined: Dec 07, 2005 22:58
Contact:

Postby maddogg6 » Oct 25, 2011 14:00

rgwan wrote:
podvornyak wrote:E0xactly.

.....How can I get samples?


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'.

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 2 guests