Okay, trying your new version from Git, still getting an error, but not the same. As you can see ScProphetRev2 sees the endpoint:
MIDI Sources:
MIDIEndPoint("Rev2", "Rev2")
MIDI Destinations:
MIDIEndPoint("Rev2", "Rev2")
-> MIDIClient
-> [ MIDIEndPoint("Rev2", "Rev2") ]
but when I initialize the code as you suggest, this comes up:
check midi endpoint looking for Rev2: Rev2
connecting to midi endpoint Rev2
-> a ScProphetRev2
ERROR: Message 'patch_explainer' not understood.
RECEIVER:
Instance of ScProphetRev2 { (0x119438a18, gc=50, fmt=00, flg=00, set=06)
instance variables [48]
midi_out : instance of MIDIOut (0x12340bab8, size=3, set=2)
note_name : instance of Array (0x120efb368, size=121, set=7)
fine_setting : instance of Array (0x122cb43d8, size=101, set=7)
lfo_dest : instance of Array (0x11d41c0b8, size=7, set=3)
mod_dest_53 : instance of Array (0x121248778, size=54, set=6)
mod_dest_54 : instance of Array (0x121248778, size=54, set=6)
midi_clock_mode : instance of Array (0x123307508, size=4, set=2)
midi_clock_cable : instance of Array (0x123307578, size=2, set=2)
midi_channel : instance of Array (0x1236038d8, size=17, set=5)
midi_param_sendrecv : instance of Array (0x123307658, size=3, set=2)
off_on : instance of Array (0x1233075e8, size=2, set=2)
arp_sustain : instance of Array (0x1233076c8, size=2, set=2)
midi_usb : instance of Array (0x1233072d8, size=2, set=2)
midi_out_select : instance of Array (0x123307118, size=4, set=2)
pot_mode : instance of Array (0x123307188, size=3, set=2)
seq_pedal_mode : instance of Array (0x123307268, size=4, set=2)
sustain_polarity : instance of Array (0x1233071f8, size=4, set=2)
stereo_mono : instance of Array (0x123304fe8, size=2, set=2)
osc_shape : instance of Array (0x11cbb2f78, size=5, set=3)
glide_mode : instance of Array (0x123305058, size=4, set=2)
filter_poles : instance of Array (0x1233050c8, size=2, set=2)
lfo_shape : instance of Array (0x11d6ee5b8, size=5, set=3)
mod_source : instance of Array (0x121eb4698, size=23, set=5)
fx_select : instance of Array (0x1244d5e08, size=14, set=4)
kbd_mode : instance of Array (0x11c95ee28, size=6, set=3)
ab_mode : instance of Array (0x1233051a8, size=4, set=2)
arp_mode : instance of Array (0x11ca5e9e8, size=5, set=3)
unison_mode : instance of Array (0x1213d0cb8, size=17, set=5)
divide : instance of Array (0x1244d5cd8, size=13, set=4)
arp_range : instance of Array (0x123305218, size=3, set=2)
sequencer_mode : instance of Array (0x12207bb88, size=5, set=3)
sequencer_type : instance of Array (0x1233052f8, size=2, set=2)
pan_mode : instance of Array (0x123305288, size=2, set=2)
foot_assign : instance of Array (0x122665748, size=6, set=3)
layer_mode : instance of Array (0x123305368, size=3, set=2)
fx_sync_rate : instance of Array (0x1244d5a78, size=11, set=4)
tunings : instance of Array (0x1244d5ba8, size=16, set=4)
pressure_curve : instance of Array (0x123304f78, size=4, set=2)
velocity_curve : instance of Array (0x121761588, size=8, set=3)
seq_amount : instance of Array (0x119339f48, size=128, set=7)
rev2 : instance of Dictionary (0x1233c30f8, size=2, set=2)
rev2_nrpn : instance of Dictionary (0x123304db8, size=2, set=2)
rev2_nrpn_globals : instance of Dictionary (0x1243c3bc8, size=2, set=2)
sysex_bytepos : instance of Dictionary (0x1243c1e58, size=2, set=2)
global_sysex_bytepos : instance of Dictionary (0x1233c6008, size=2, set=2)
util : instance of MidiPacker (0x11c5a2168, size=0, set=0)
last_sysex_stream : instance of Array (0x119535040, size=20521, set=15)
last_patch_sysex_stream : instance of Array (0x11d958040, size=20521, set=15)
}
ARGS:
CALL STACK:
DoesNotUnderstandError:reportError
arg this = <instance of DoesNotUnderstandError>
Nil:handleError
arg this = nil
arg error = <instance of DoesNotUnderstandError>
Thread:handleError
arg this = <instance of Thread>
arg error = <instance of DoesNotUnderstandError>
Object:throw
arg this = <instance of DoesNotUnderstandError>
Object:doesNotUnderstand
arg this = <instance of ScProphetRev2>
arg selector = 'patch_explainer'
arg args = [*0]
< closed FunctionDef > (no arguments or variables)
Meta_MIDIIn:doSysexAction
arg this = <instance of Meta_MIDIIn>
arg src = -263989876
arg packet = <instance of Int8Array>
^^ The preceding error dump is for ERROR: Message 'patch_explainer' not understood.
RECEIVER: a ScProphetRev2