Old 02-24-2017, 01:48 PM   #1
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default Request - Lokasana???

Howdy...

I've aimed this at you, Lokasana, because you seem to be so on the case of midi scripts... but really it might be for anyone.

Ok... so I have the set of lua's by tenfour and have them set up on a toolbar used in the arrange window... the ones inparticular are for 'insert held note..'

I use them with the Inline Editor view on a MIDI item.

So I can insert whatever notes are being held on the MIDI Keyboard at the edit cursor and by using each of the diff lua's the note will be a whole note or an eigth note, etc.

The problem is that the inserted notes remain selected.

I tried to make custom actions that would add the U key [unselect all notes for the Inline editor] but since we are dealing with Inline editor actions and also Main actions I can't get what I want.

So wondering what it would take to either:

Modify the tenfour scripts to unselect all notes after they are inserted.

Or to have a lua that would do that unselect all notes that I could use to add to a custom script for each of the tenfour 'insert held note' scripts.

Probably the first choice would be cleaner but I'd be happy with either way.

Maybe this already exists and I don't know of it.???
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 02-24-2017, 01:53 PM   #2
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Open tenfour-foundation.lua, and look for this:

Code:
reaper.MIDI_InsertNote(take, true, false ........
That command occurs twice in the file. Change the true to false; all the notes it inserts should be unselected.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 02-24-2017, 03:30 PM   #3
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

thanks so very much
that pretty muchy did it for the insert notes functions

I wonder if there could be a lua that would simply unselect all notes
for the inline editor view... that could be added to this toolbar in the Main Toolbar menu?

even with that script edit, I still find a need for that.. and although there is a key comman for it "U", there seems to be no way to get it into the TB menu...
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 02-24-2017, 03:39 PM   #4
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

maybe I don't understand something in reaper [what else is new?]

here is the thing...
when making a toolbar that runs in the main arrange window.. but that is intended to run actions for the Inline Editor, I can't add actions from the Inline Editor section of the Actions list to it...

This seems really odd since the only place one would use the Inline Editor is in the arrange view...

the general discussion also
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 02-24-2017, 03:43 PM   #5
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Quote:
Originally Posted by hopi View Post
I wonder if there could be a lua that would simply unselect all notes for the inline editor view
The API can't do anything with the in-line editor, but I should be able to go "Unselect all notes in selected items". Give me a bit.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 02-24-2017, 04:06 PM   #6
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Lokasenna_Select all notes in selected items.lua
Lokasenna_Unselect all notes in selected items.lua


Check ReaPack in a few minutes.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 02-27-2017, 05:06 AM   #7
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,902
Default

@Lokasenna
Lokasenna_Unselect all notes in selected items.lua

I already made this feature, but it is part of my ReaTab pack. I guess I can remove it from the pack now. ^^

I think you should add MIDI in the name, because there is notes (items notes) and notes (MIDI notes), so having this extra keyword can make better filtering and prevent confusion.
X-Raym is offline   Reply With Quote
Old 02-27-2017, 08:02 AM   #8
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Fair enough, will do.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna 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 04:03 PM.


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