Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 31st, 2004, 6:03 PM   #1
perl_girl416
Newbie
 
Join Date: Dec 2004
Posts: 1
Rep Power: 0 perl_girl416 is on a distinguished road
[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?
perl_girl416 is offline   Reply With Quote
Old Jan 1st, 2005, 11:57 PM   #2
Lance
Programmer
 
Lance's Avatar
 
Join Date: Oct 2004
Location: Chicago, IL USA
Posts: 74
Rep Power: 4 Lance is on a distinguished road
Send a message via AIM to Lance
There are Perl modules that should allow you to play MIDI sounds easily. Have you checked CPAN? Every good Perl junkie does.

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.
__________________
/* LANCE */
C++;  /* this makes C bigger but returns the old value */
char *site = "slackwise.net",
     *home = "lance.slackwise.net",
     *pics = "flickr.com/photos/slackwise";
Lance is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:15 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC