It was me who asked HeDa to make this recent "retina update" ..he made it in a few minutes and it works very well, so I believe it will work with your script too :) It would be nice, I like your script idea very much :)
Hi, Lovely script. You use: local lastWindow = reaper.JS_Window_GetFocus() and later: reaper.atexit(reaper.JS_Window_SetFocus(lastWindow )) I altered the script to put: reaper.JS_Window_SetFocus(lastWindow) inside every if/then of the SELECT BUTTON section (around line 339). This allows me to keep the selector script open and select some notes, move or alter with keyboard shortcuts, select other notes, move them, etc. without needing to click in the editor or close the tool first to set focus back to the MIDI editor manually. Jon of The REAPER Blog mentioned in his video that it would speed up the work flow, and I think it does. You might consider it in your next code update.
I have another suggestion, however this one requires the SWS/S&M EXTENSION: The issue is that the Note name on the midi editor (eg. C4) does not always match the Pitch Max/Min in the tool when captured. This is because of the MIDI Octave Name Display Offset preference. When I click C4 in the editor, the tool captures it as Min/Max C5. The fix is: in your cf.lua script, set a variable OCTAVE_OFFSET = 2 - reaper.SNM_GetIntConfigVar("midioctoffs", 0) then below alter your two functions as: function midi_to_note(n) return tostring(note_names[(n%12)+1]) .. tostring(math.floor(n/12)- OCTAVE_OFFSET) end And: function note_to_midi(str) . .don't change anything here . local o = tonumber(str.match(str, '%d%d')) or tonumber(str.match(str, '%d')) o = o + OCTAVE_OFFSET . .Don't change anything else . end I didn't look at all the code, so there may be other places where you set note name to note number or vis-versa.
I encouter an issue when trying to set the Float at mouse values, the second one adds the number five as it pleases... like I set -100 and when reopen it says -1005 and so on... is it just me or can anyone confirm it ? (v1.2.71 on reaper 6.21 x64 windows 7)
------------------- A sports car isn't a car unless you know how to drive it! Come and visit my part of the web.http://nathanhodge.homestead.com BUY MY ///M