LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-21-2005, 04:02 PM   #1
twirl
Member
 
Registered: Aug 2005
Posts: 168

Rep: Reputation: 15
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
 
Old 10-21-2005, 04:19 PM   #2
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
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.
 
Old 10-22-2005, 05:22 AM   #3
Orkie
Member
 
Registered: Mar 2005
Distribution: Breezy Badger
Posts: 248

Rep: Reputation: 30
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.
 
Old 10-24-2005, 10:09 AM   #4
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Try looking at SDL_Mixer stuff.
 
Old 10-24-2005, 07:18 PM   #5
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
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
 
Old 10-25-2005, 08:31 PM   #6
jr88
LQ Newbie
 
Registered: Oct 2005
Location: Hong Kong
Distribution: Slackware10.0
Posts: 10

Rep: Reputation: 0
Did you recommand some book learning the knowledge?thx
 
Old 10-26-2005, 02:00 PM   #7
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
This is where I am trying to learn from:
http://www.alsa-project.org/documentation.php#dev-toots
ta0kira
 
Old 11-13-2009, 10:46 PM   #8
KrishnaPG
LQ Newbie
 
Registered: Nov 2009
Posts: 6

Rep: Reputation: 0
Thumbs up 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

Last edited by KrishnaPG; 03-14-2012 at 09:13 PM. Reason: corrected the links
 
  


Reply

Tags
midi, music, programming



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
music!? NSKL General 362 10-09-2006 03:42 AM
Mood Music, the quest for a music library app GuidoS Linux - Software 6 08-18-2004 01:12 PM
Music iouzero Linux - Newbie 5 06-18-2004 04:09 PM
Music cd RRepster Slackware 6 01-07-2003 03:52 AM
Music CD Pedroski Linux - General 15 12-14-2002 04:43 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration