PaulF707
New Member


Gender: 
Posts: 1
|
 |
Sending Midi CTRL messages from webpage
« on: Apr 3rd, 2010, 3:24am » |
Quote Modify
|
Hi I've written a web based application that using JavaScript to look for specific key presses (using the document.onkeydown = getKey command) and then plays a midi file using the BGSOUND command. The problem I have is that there is approx. 1/2 second delay between the key press and the midi file playing. Each midi file is tiny (just 1 bar long with a string of MIDI Controller messages). Could I use MIDIOX with Javascript to send the relevant midi controller messages direct from my webpage (without using a Midi file)? I'm guessing this would probably be quicker? I currently use a database to store which midi files to play (and in what order), so I could (relatively) easily change this to store the relevant midi commands / strings to be sent. I am fairly new to coding / developing, so if anyone has any example javascript codes out there that would send a series of midi contorller messages I'd be very grateful for a copy. Many thanks in advance,
|