LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Music in c++ ? (https://www.linuxquestions.org/questions/programming-9/music-in-c-375536/)

twirl 10-21-2005 04:02 PM

Music in c++ ?
 
Hi,

I have tried looking for information on music in c++ for linux but have only came across stuff for windows :-(. I am wondering is there anything like the function play like what is in basic so you can do play "g,c,g,e,f" or something along these lines?

Thankyou

twirl

dmail 10-21-2005 04:19 PM

Re: Music in c++ ?
 
Quote:

Originally posted by twirl
Hi,

I have tried looking for information on music in c++ for linux but have only came across stuff for windows :-(. I am wondering is there anything like the function play like what is in basic so you can do play "g,c,g,e,f" or something along these lines?

Thankyou

twirl

i'm not quite sure what you are trying to do but you could use sdl, by loading in sound files(ie notes) and playing them back.

Orkie 10-22-2005 05:22 AM

I think that playing MIDI files is what I would do (and have a function to easily choose which one to play). MIDI files are very small, especially if there is only one note being played.

tuxdev 10-24-2005 10:09 AM

Try looking at SDL_Mixer stuff.

egag 10-24-2005 07:18 PM

maybe take a look at : http://zynaddsubfx.sourceforge.net/
it has all sound stuff ( like wave generating and filtering with fft ) in c++ .

btw. it's a softsynth...

egag

jr88 10-25-2005 08:31 PM

Did you recommand some book learning the knowledge?thx

ta0kira 10-26-2005 02:00 PM

This is where I am trying to learn from:
http://www.alsa-project.org/documentation.php#dev-toots
ta0kira

KrishnaPG 11-13-2009 10:46 PM

CFugue MusicNote Programming Library for C/C++
 
You can try libraries such as RTMidi or JDKMidi - which are platform compatible midi libraries. They will enable you to program in MIDI.

However, if you are looking for a way to program Music Notes directly in C++, then you might find CFugue suiting your purposes. In Beta stages, this is one of the only available C++ highlevel music programming libraries for Midi today.

Gopalakrishna
http://gopalakrishna.palem.in


All times are GMT -5. The time now is 08:15 PM.