API function "get_midi_config_var()" is not working?
I would need to get MIDI editor "Snap to grid" toggle state, but the API function get_midi_config_var() is not working?
spk77 asked:
"Is it possible to get MIDI editor "Snap to grid" toggle state with SNM_GetIntConfigVar()? I tried with "lastSnap = SNM_GetIntConfigVar("lastsnap", -1)", but it returns -1."
Jeffos answered:
"The API offers get_midi_config_var() so we should be able to do that BUT this API func is broken, unfortunately (always returns a null pointer, v4.5rc13). Note: you can't use it directly from ReaScript as it returns an opaque pointer."
|