Midi Machine documentation incorrect

I had tried to set up a midi machine which converts Bends into CC range, and found that documentation is misleading.

This is how OnBend is described here MIDI Machine – Jam Origin

function OnBend(channel, bend)
Print(“Channel “, channel, ” was just bended “, bend, ” semitones”)
end

In reality, this example code does not work. It would print out a note number instead of the pitch bend value.

By trial and error, I found out that it works this way instead:

function OnBend(channel, pitch, bend)

1 Like