Simple Perl SDL Music Keyboard (Updated)
Overview
Another step for my music projects. A simple SDL based 'midi' keyboard. Although instead of straight midi I'm using wave files derived from Open Source Sound Fonts, since midi won't sound the same on every computer, and is a PITA to set up on some systems. The sound fonts were extracted using the Swami program.
Downloads
- instruments.tar.gz: The wave files for the instruments.
- keyb.pl: The main perl file, requires SDL modules installed.
Usage
Make sure the instruments directory is in the same location as keyb.pl, and then run keyb.pl
Make sure the screen(pictured below) that pops up has focus and type on the keyboard, the alphabetic rows make sound.
Conclusion
Well this was pretty trivial. I did find that how the graphics refresh is done can have significant overhead, so that's why it only shows the last key pressed. Also SDL does seem to have a limit of 10 actively playing sounds at once, which is irritating, and might be a deal-breaker for future projects.
Comments(0)
2009-05-27 01:27:47
Add your comment:
Hardware
Software
- TAIM (Alpha Version): GHCI integration with vim
- CheaTorrent -- An evil BitTorrent client
- Self Modifying 2D Turing Automata
- Competing Conway Life Automata
- X11 Timelapse Desktop Video
- Colored Wolfram Automata With Sound Input
- Pseudo Video Feedback in Processing
- Haskell Cipher Saber
- Illegal FIlenames -- Windows and *nix
- Simple Perl SDL Music Keyboard (Updated)
- Image to Spectrogram
- Pastebin Hell
- OMGWTFRNG (OWR)
- OTP Enhancement : Failure Report
- Java Network File Transfer Tool
- AES Encrypted Filesystem Speeds
- Dual Message Encryption
- PHP Website
- Mp3 Splitting Script
- Random Obfuscation Tool
- Filesystem Speed Comparisons
- Java Based Web Server GUI