Originally Posted by
chaomocha
ok so correct me if I'm wrong, but I'm just labeling all the keys on the keyboard with notes on a instrument?
you're mapping keys on the keyboard to midi note events or cc's i guess yes - if thats what u mean.
and another question but could you explain this a bit more:
Code:
midi.DeviceOut = 8 // device number to use
debug = midi.OutDevName // show device name in use
midi.DefaultChannel = 1 // midi channel to send on
I just don't really know what I'm supposed to do with it or if I'm supposed to change anything or insert something myself, but even if I don't have to do anything, I'd still like to understand what it's doing just in case I ever do this all again.
first line is to select the midi out device - the number will vary depending on what you have plugged in - they should appear in the same order as in any other midi app. the "debug =" line is so that glovepie will display the name of the device you have chosen - so if its not right just change the number and rerun.
i did also write this glovepie code that allows you to select by the device name - but tbh entering a number in the line above is probably simpler overall.
Code:
var.DevName = "test"
if (var.Init == 0) then
for var.Count = 0 to 20 do
midi.DeviceOut = var.Count
if (midi.OutDevName ~= var.DevName) then
debug = "Selected: " + midi.OutDevName + " at id=" + floor(var.Count)
var.Count = 21 // end the loop
end if
end for
var.init = 1
endif
if you wack this code at the top of your glovepie script you then just put the *exact* name of your midi device into "var.DevName"
Bookmarks