SDL_toypiano

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2008
Posts: 3
Reputation: ctor is an unknown quantity at this point 
Solved Threads: 0
ctor ctor is offline Offline
Newbie Poster

SDL_toypiano

 
0
  #1
Mar 8th, 2008
hi,

i would like to code a toypiano using SDL and c++.--a simple program which will emit a note when a graphical representation of a piano key is clicked.
how do i call a particular midi note(corresponding to piano note)using SDL.(i am beginner with SDL and midi stuff,with adequate knowledge of c++).where should i look for relevant info-which midi corresponds to which note etc..
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,502
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1479
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: SDL_toypiano

 
0
  #2
Mar 8th, 2008
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 3
Reputation: ctor is an unknown quantity at this point 
Solved Threads: 0
ctor ctor is offline Offline
Newbie Poster

SDL-access midi notes

 
0
  #3
Mar 9th, 2008
hi,

sorry for not being specific.i have gone thru' image loading,event handling,audio management tutorials and i am ok with it.(i have used wxwidgets so was comfortable..).i also found a code to call midi note with frequency,instrument no. as variable here.

that code uses winmm.h along with SDL ,i thought SDL may have a way of playing a particular midi note given above parameters.Looks like it can only play a loaded midi file.

so,my question is,is there a platform independent way of playing a midi note,given frequency,instrument no. etc thru' SDL or any other library.thanks!
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 3
Reputation: ctor is an unknown quantity at this point 
Solved Threads: 0
ctor ctor is offline Offline
Newbie Poster

Re: SDL_toypiano

 
0
  #4
Mar 9th, 2008
hi,

this is the link for codesnippet to play midi note -"tugboat toot"-by vegaseat

http://www.daniweb.com/code/snippet97.html

after more searching looks like i need some library like "audiere",BCX - do i need ,can you suggest one?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC