to send incoming MIDI notes to just friends over i2c you would do something like this:
#I
MI.$ 1 1
#1
L 1 MI.NL: JF.NOTE MI.NV MI.VV
since just friends supports 6 voice polyphony, this script will use all available voices. it also doesn’t process note off messages, since you would need to implement voice allocation in your script. in this case you control the note length on just friends itself.
for controlling a single voice via CV/TR you could ignore multiple notes played at once and always output the latest note played. you could do it by adding this line to script 1:
CV 1 MI.LNV; TR.P 1
in this case you also ignore note off messages, and note length is controlled by the pulse length of trigger 1 (set with TR.TIME op). if you want to use note off messages, add this line to the init script:
MI.$ 2 2
this will assign note off events to script 2. then instead of the line above, use this line in script 1:
CV 1 MI.LNV; TR 1 1
and this line in script 2:
TR 1 0
here is the complete script:
#I
MI.$ 1 1
MI.$ 2 2
#1
L 1 MI.NL: JF.NOTE MI.NV MI.VV
CV 1 MI.LNV; TR 1 1
#2
TR 1 0
you could also use CV 2 for velocity. modify script 1 like this (2nd line added):
#1
L 1 MI.NL: JF.NOTE MI.NV MI.VV
CV 2 MI.LVV
CV 1 MI.LNV; TR 1 1