User Forum    :: Powered by YaBB
  « MIDI-OX User Forum - Sending Midi CTRL messages from webpage »
Welcome, Guest. Please Login or Register.
May 9th, 2025, 9:02am


Home Home Help Help Search Search Members Members Login Login Register Register


   MIDI-OX User Forum
   MIDI-OX
   Scripting Questions
(Moderator: Jamie OConnell)
   Sending Midi CTRL messages from webpage
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Sending Midi CTRL messages from webpage  (Read 1845 times)
PaulF707
New Member
*





   
WWW

Gender: male
Posts: 1
Sending Midi CTRL messages from webpage
« on: Apr 3rd, 2010, 3:24am »
Quote Quote Modify 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,
IP Logged

Paul
www.paulfleetwood.org
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »


MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.