Shop OBEX P1 Docs P2 Docs Learn Events
Please help with MIDI floor controler — Parallax Forums

Please help with MIDI floor controler

lil jlil j Posts: 3
edited 2004-12-12 11:11 in BASIC Stamp
I want to use a basic stamp 2 for a footswich that sends midi control messages to my line 6 pod xt when i press the buttions on it. Im not sure how about the command to send this threw midi.

I read that u can use the serout·command to do this

Im not sure about serout the value for baud mode mainly

I read that if i wanted to send a value of 127 for controle 25 on channel 1, the code would be:

midichannel con 1

statusbyte con %10110000 + midichannel

data1 con 25

value = 127

value = value >> 1

data2 = value.highbyte

serout pin, 32780, [noparse][[/noparse]statusbyte, data1, data2]

IS THIS CORRECT???

please help

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-12-11 02:00
    This article should help: http://www.parallax.com/dl/docs/cols/nv/vol4/col/nv94.pdf

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • lil jlil j Posts: 3
    edited 2004-12-11 16:02
    This is very help full but does not contain much about program change messages or midi control message other than noteon and noteoff which is not what i require

    Could you explane how to use the serout command to send other messages?

    Post Edited (lil j) : 12/11/2004 9:56:22 PM GMT
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-12-12 02:56
    What you need is the MIDI protocol specification -- my program shows that you can send anything, once you know what to send.

    Try this: http://www.borg.com/~jglatt/tech/midispec.htm

    BTW ... there is a demo program in my article that lets you send any sequence of bytes to the MIDI device.· Once you have read the specification you can use that program to test your device and determine the desired behaviors.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • lil jlil j Posts: 3
    edited 2004-12-12 11:11
    Thanx
Sign In or Register to comment.