kslider as midi device and input to seq? need help with notein/out midiin/out
I'm new to the MIDI world here and am trying to figure out how to use a kslider as a MIDI device stand in (as I don't have an external MIDI device).
So I can setup a kslider to a noteout, but I'm confused that I can't read what's generated from the kslider using midiin or notein. In other words, how can I monitor MIDI coming from the kslider in a way that I could send it to seq? I tried sending kslider to a makenote then to a [noteout a], and then thought I could receive that with a [midiin a] (which could input to seq), but I get nothing.
What am I missing here?
[seq] needs raw MIDI bytes in its input, like what comes out of [midiin]
If you're new to MIDI you might not know that what comes from a [kslider] or a [notein] is only the 2nd and 3rd bytes of MIDI note messages; the 1st (status) byte, the one that says it's a note and what channel it's on is missing.
e.g. Middle C at a velocity of 80 on channel 1…
- from a [notein] or [kslider] = 60 80
- from [midiin] (i.e. what [seq] wants) = 144 60 80
Add to the 144 for other channels. Continuous controllers are 176; pitch bends are 224; channel aftertouch is 208. Can't remember the others.
If you use [pack] to combine the pitch and velocity from [kslider] into a list, then [prepend 144] [seq] will be happy. Monitor the output of [prepend 144] using the right inlet of a message box or send it to [print].
Cheers, Bill
Hmmm, just made an idiot of myself again, it seems. [midiformat] will solve your problem. (I didn't know it existed till a few minutes ago.)
you can not use data sent to midiout as source for midiin.
what you could do is to create standalone app for generation and then route the midi on the OS level.