LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-02-2007, 06:46 PM   #1
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
MIDI programming question


I'm working on a program, but I'm not entirely sure that it is possible. I can find surprisingly little documentation on this. I want to create a MIDI instrument. That is, I want to create something that one can hook their MIDI keyboard up to and play, and have my code determine the sounds that come out. Unfortunately, what little documentation I seem to be able to find seems to imply that all the instruments are either 1) on the sound card hardware, or 2) coded into the OS. The application needs to run on at least windows and linux, so I can't write a kernel patch.

Is there any way to do this? If I have to, I will create a hack program that reads messages from a socket and outputs audio via the PCM digital audio interface of the computer.
 
Old 08-02-2007, 11:51 PM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
On Linux, you will need a midi sound server to get sound. You can use timidity or jack plus some soft synth.
You just have to listen to the correct /dev/snd/ or /dev/sound/ device, i don't know exactly which.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
midi programming angelo_maci Programming 1 04-28-2006 02:46 PM
MIDI playback through midi keyboad. akihandyman Linux - Newbie 5 05-25-2005 01:37 AM
How to play MIDI files: needed a MIDI mapper? vharishankar Linux - General 3 12-30-2004 12:12 AM
Set up midi device in suse 9.1 w/ AC'97 midi controller Guitarist88 Linux - Hardware 1 07-06-2004 03:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration