Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 01-07-2014, 10:15 AM   #1
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default 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."
spk77 is offline   Reply With Quote
Old 04-01-2017, 02:58 PM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,110
Default

What's the current state of this ?

I tried to use this function to get the value of "lastspac" but it seems to always return a null pointer. Same when trying with "get_config_var()" while e.g. getting "projgriddiv" works fine.

(I'm trying in C++).
nofish is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:02 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.