| | |
SDL_toypiano
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Mar 2008
Posts: 3
Reputation:
Solved Threads: 0
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..
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..
Read the tutorials and other documentation
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.
•
•
Join Date: Mar 2008
Posts: 3
Reputation:
Solved Threads: 0
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!
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!
•
•
Join Date: Mar 2008
Posts: 3
Reputation:
Solved Threads: 0
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?
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?
![]() |
Other Threads in the C++ Forum
- Previous Thread: so I find myself here again
- Next Thread: problem in constructing two dimensional array in c++ using classes
| Thread Tools | Search this Thread |
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count database delete deploy developer dll download dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph gui homeworkhelp iamthwee ifstream image input int java lib library linker list loop looping loops map math matrix memory multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg simple sorting string strings temperature template text text-file tree url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






