User Forum    :: Powered by YaBB
  « MIDI-OX User Forum - Sending Controller Data from vb6 »
Welcome, Guest. Please Login or Register.
May 9th, 2025, 9:08am


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


   MIDI-OX User Forum
   MIDI-OX
   Scripting Questions
(Moderator: Jamie OConnell)
   Sending Controller Data from vb6
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Sending Controller Data from vb6  (Read 1836 times)
Jez
New Member
*





   


Posts: 2
Sending Controller Data from vb6
« on: Nov 13th, 2005, 6:33pm »
Quote Quote Modify Modify

Hi All,
 
I am using MIDI OX to allow me to communicate with my DSP1424-P signal processor to control the parameters through different MIDI controllers and values, using vb6 for the front end design.
 
I am using the MIDI implementation chart for the processor and have a list of controller numbers.
 
I am using the .MidiOutputMsg method to send:
-1 for the port (as any port is valid on my hardware for receiving data)
Controller number - data1
Parameter value - data2
 
My question is what do I have to send for the 'status' parameter?
 
Thank you
 
Jez
IP Logged
Jamie OConnell
Administrator
*****






   
WWW Email

Gender: male
Posts: 2027
Re: Sending Controller Data from vb6
« Reply #1 on: Nov 13th, 2005, 7:48pm »
Quote Quote Modify Modify

MIDI Status is a combination of the MIDI message number (ex: NoteOn = 90, NoteOff = 80, Controller = B0) and the MIDI Channel (ex: Channel 1 = 00, Channel 2 = 01, Channel 16 = 0F).  So, Controller 1 (Modulation) with a value of 64 (decimal) on channel 3 works out to: B2 01 40
IP Logged

--Jamie
Music is its own reward.

Jez
New Member
*





   


Posts: 2
Re: Sending Controller Data from vb6
« Reply #2 on: Nov 13th, 2005, 8:17pm »
Quote Quote Modify Modify

Thank you for your quick reply Jamie....
 
Does this make sending the data1 and data2 parameters un-needed then?
 
Could you give an example of how to send controller message 87 with a value of 1 on all midi channels.
 
Do you have a good link to a website explaining more about MIDI messages and controllers?
 
Thanks
Jez
« Last Edit: Nov 14th, 2005, 8:12am by Jez » IP Logged
Jamie OConnell
Administrator
*****






   
WWW Email

Gender: male
Posts: 2027
Re: Sending Controller Data from vb6
« Reply #3 on: Nov 15th, 2005, 2:42pm »
Quote Quote Modify Modify

Quote:
Does this make sending the data1 and data2 parameters un-needed then?
 
 
No.  A MIDI Controller message is always 3 bytes long (Status, CC#, Value), unless running status is in effect.  But running status is almost never used on Windows.
 
Quote:
Could you give an example of how to send controller message 87 with a value of 1 on all midi channels.
 
 
You'd send the following:
 
   B0 57 01
   B1 57 01
   B2 57 01
   B3 57 01
   B4 57 01
   B5 57 01
   B6 57 01
   B7 57 01
   B8 57 01
   B9 57 01
   BA 57 01
   BB 57 01
   BC 57 01
   BD 57 01
   BE 57 01
   BF 57 01

 
Quote:
Do you have a good link to a website explaining more about MIDI messages and controllers?  

 
Try this one: http://www.borg.com/~jglatt/tutr/miditutr.htm
IP Logged

--Jamie
Music is its own reward.

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.