![]() |
[color=blue] hi i am new to the forums. i am also kind of new to perl.but am experianced enough tocontinue on to this new idea i have.
i am no tsure if this is origanalbut i want to make it any ways. here is my idea: i want to make a MIDI piano keyboard that you play using your very own QWERTY keyboard. like having the keys 'asdfghjkl' be 'C, D, E, F, G , A .. etc' and the qwerty row keys be 'the black keys' i plan the effect to be somewhat like playing a piano on your qwerty keyboard. of course there are still problems like holding out a note and playing chords. but before getting into that, i need to dicuss how to play sound in my perl program. i was planning to use 'cin.get()' to get the user's keys (notes) from keyboard and then doing an infinite loops of ifs or whiles to play the sound of that note back. i know how to open and ammend and such things in perl. i don't know how to execute sond though. can anybody help me? |
There are Perl modules that should allow you to play MIDI sounds easily. Have you checked CPAN? Every good Perl junkie does. :P
http://cpan.org/modules/01modules.index.html Look at the "MIDI-*" section. Looks like you've got a few modules that can aid in any sort of MIDI usage. And if that didn't list all you need, here is a search query for all of CPAN: http://search.cpan.org/search?query=MIDI&mode=all Hope that helps. :D |
| All times are GMT -5. The time now is 5:27 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC