I wanna know how can I create sounds in LINUX with different frequencies using C++ libraries ? Is there any library for audio programming ( specially creating sounds with different freqs ) in C++ ?
How can I simulate piano and other musical instruments(MIDI) sounds using C++.
[EDIT] for example I want to create A Major with different sounds ( Violin, Piano, Guitar etc. )
I want to write something like this function:
void playNote( char type, double freq )
for example the A note below middle C is at 220 Hz. Middle C is at about 262 Hz (261.6).
so this should play Middle C for the Piano: ( 'P' means Piano for example )
playNote( 'P', 261.6 );
NOW , I want to know is there any library that could help me playing with notes and freqs ?
(I'm using G++ in Ubuntu 9.10 (Karmic Koala))