What methods are people using to send continuous MIDI data? For a straight slide, I can do something like the following:
define :midi_cc_slide do |code,values=[0,127],time=1.0|
if values.length == 1
midi_cc code, values[0]
end
if values.length > 1
in_thread do
values.length.times do |i|
midi_cc code, values[i]
sleep time / (values.length-1.0)
end
end
end
end
use_midi_defaults port: "to_max_1", channel: 1
midi_cc_slide 17, (line 0, 127, steps: 128, inclusive: true), 4.0
But, to do something like use pitch_bend to make a remote MIDI voice have vibrato, particularly non-mechanistic vibrato, that’s more tricky.