Old 02-21-2015, 09:07 AM   #1
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default Script: Auto Solo Tracks of Selected Items

Today's script. Two actions: one toggles solo of the tracks that have items selected. The other one runs in the background, (with REAPER 5 toggle action support, see the button toolbar) and automatically sets solo to the tracks of selected items. For this one I still don't know if selecting new items should add to the selection of soloed tracks as it is now, or if it should just solo those new selected ones.

see it in action


Download:
Download and install it from HeDaScripts Manager

Last edited by heda; 01-30-2017 at 09:11 AM. Reason: new link
heda is offline   Reply With Quote
Old 02-21-2015, 09:40 AM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

This is powerful. Really.
You have nice ideas
X-Raym is offline   Reply With Quote
Old 02-21-2015, 10:01 AM   #3
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

I'm loving this one already. One could say you can just press and drag on the solo buttons in the TCP. It's not as simple. I like to have this option too. You understand

I'm trying to optimize CPU use a bit for the second version that runs constantly.
heda is offline   Reply With Quote
Old 02-21-2015, 12:32 PM   #4
Shan
Human being with feelings
 
Shan's Avatar
 
Join Date: Mar 2007
Location: Vancouver
Posts: 2,279
Default

Quote:
Originally Posted by heda;1485004Solo tracks of selected items: [b
Nice work on these. I assigned the above to a button in my main tool bar. When I click on it to toggle it off, I get this message:



Any ideas?

Shane
Attached Images
File Type: png err.png (7.9 KB, 2968 views)
__________________
"Music should be performed by the musician not by the engineer."

Michael Wagener 25th July 2005, 02:59 PM
Shan is offline   Reply With Quote
Old 02-21-2015, 12:38 PM   #5
Shan
Human being with feelings
 
Shan's Avatar
 
Join Date: Mar 2007
Location: Vancouver
Posts: 2,279
Default

Ignore my above query, as I just saw your other post on this topic here.

Shane
__________________
"Music should be performed by the musician not by the engineer."

Michael Wagener 25th July 2005, 02:59 PM
Shan is offline   Reply With Quote
Old 02-21-2015, 12:40 PM   #6
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

Quote:
Originally Posted by Shan View Post
Nice work on these. I assigned the above to a button in my main tool bar. When I click on it to toggle it off, I get this message:
Any ideas?

Shane
Thanks Shan!
Click "Yes" and it will finish the script toggling it off so it won't be active until you start it again.
I'm asking here http://forum.cockos.com/showthread.php?t=155991
about the possibility to not display that message. I don't know how to do it. Maybe there is a way.
edit:I've just seen your second post
heda is offline   Reply With Quote
Old 02-21-2015, 12:44 PM   #7
Shan
Human being with feelings
 
Shan's Avatar
 
Join Date: Mar 2007
Location: Vancouver
Posts: 2,279
Default

Perhaps this issue should be reported in the R5 Bug Reports thread.

Shane
__________________
"Music should be performed by the musician not by the engineer."

Michael Wagener 25th July 2005, 02:59 PM
Shan is offline   Reply With Quote
Old 02-21-2015, 12:47 PM   #8
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

Quote:
Originally Posted by Shan View Post
Perhaps this issue should be reported in the R5 Bug Reports thread.

Shane
I prefer to ask before reporting a bug, because maybe there is a way and I don't know it. If not, bug will be reported. Since this toggling capability is new to R5 it may be a bug.
heda is offline   Reply With Quote
Old 02-22-2015, 12:01 PM   #9
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

I've studied some basic Lua today...

my first Lua script is a translation of this toggle solo script.

Download: https://stash.reaper.fm/23361/HeDa_To...ed%20Items.lua
heda is offline   Reply With Quote
Old 02-22-2015, 12:59 PM   #10
Shan
Human being with feelings
 
Shan's Avatar
 
Join Date: Mar 2007
Location: Vancouver
Posts: 2,279
Default

Quote:
Originally Posted by heda View Post
I've studied some basic Lua today...

my first Lua script is a translation of this toggle solo script.

Download: https://stash.reaper.fm/23361/HeDa_To...ed%20Items.lua
It's working good on my end. I'm getting fond of Lua myself. This was my first toggle attempt using Lua. Thankfully spk77 chimed in and gave me a hand.

Shane
__________________
"Music should be performed by the musician not by the engineer."

Michael Wagener 25th July 2005, 02:59 PM
Shan is offline   Reply With Quote
Old 02-22-2015, 01:01 PM   #11
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,218
Default

cool

Be great to have a version of this that can work with the action "item properties: Solo" which actually solos the items on an item level rather than a track

It can break a little sometime as it actually mutes all other items whilst it's active but that's why something like what you have here might work better as it might manage it better if it auto solos based on what's currently selected.

No worries if it's a nightmare!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 02-22-2015, 01:21 PM   #12
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

Quote:
Originally Posted by musicbynumbers View Post
cool

Be great to have a version of this that can work with the action "item properties: Solo" which actually solos the items on an item level rather than a track

It can break a little sometime as it actually mutes all other items whilst it's active but that's why something like what you have here might work better as it might manage it better if it auto solos based on what's currently selected.

No worries if it's a nightmare!
There is no solo property for items.. so that action mutes all other items as you say. And I don't know how it remembers if you had muted items already to restore only the ones that were not muted... but it's dangerous.. heh... yes It's not the first time I have messed up all the project using the item properties: solo action. So, this auto solo tracks of selected items is what I needed, since soloing is usually temporary to listen to something and then unsolo. Muting is more permanent because you can set something to be muted forever.

The automatic version is quite quick to use. It has two modes.
Add_to_Selection = 1 keeps previously soloed tracks unchanged until no item is selected.
Add_to_Selection = 0 only solo what is selected
You can change that inside the script file.
heda is offline   Reply With Quote
Old 02-22-2015, 01:24 PM   #13
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

Quote:
Originally Posted by Shan View Post
It's working good on my end. I'm getting fond of Lua myself. This was my first toggle attempt using Lua. Thankfully spk77 chimed in and gave me a hand.

Shane
My first experience in Lua has been good. I like it. The only thing that I did wrong at first was that the arrays start at 1 instead of 0.
I also like EEL but there are so many sad faces in the code... hehe :P
heda is offline   Reply With Quote
Old 02-22-2015, 05:25 PM   #14
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,218
Default

Quote:
Originally Posted by heda View Post
There is no solo property for items.. so that action mutes all other items as you say. And I don't know how it remembers if you had muted items already to restore only the ones that were not muted... but it's dangerous.. heh... yes It's not the first time I have messed up all the project using the item properties: solo action. So, this auto solo tracks of selected items is what I needed, since soloing is usually temporary to listen to something and then unsolo. Muting is more permanent because you can set something to be muted forever.

The automatic version is quite quick to use. It has two modes.
Add_to_Selection = 1 keeps previously soloed tracks unchanged until no item is selected.
Add_to_Selection = 0 only solo what is selected
You can change that inside the script file.
Nice! no worries on the solo item one I wish the devs would finish it fully at some point so it doesn't go wrong when you don't straight away un solo item.
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 01-30-2017, 09:15 AM   #15
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

Quote:
* v0.5 (2017-01-30)
# Undo fix

* v0.4 (2017-01-27)
+ Solo tracks on initializing script

* v0.3 (2017-01-25)
+ Unsolo All tracks when exiting script
some updates have been published
thanks to @Crazy Maurice feedback
heda is offline   Reply With Quote
Old 02-06-2017, 04:54 AM   #16
Crazy Maurice
Human being with feelings
 
Join Date: Nov 2016
Posts: 26
Default

Quote:
Originally Posted by heda View Post
some updates have been published
thanks to @Crazy Maurice feedback
Hey! I've got another small suggestion for your script

-Solo track if selected item is dragged or copied to a non-soloed or new track.

(Currently stays unsoloed until unclicked and reselected)

Cheers
Harry
Crazy Maurice is offline   Reply With Quote
Old 02-06-2017, 05:44 AM   #17
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

Quote:
* v0.6 (2017-02-06)
# solo tracks when moving or copying items
Good suggestion. Updated.
Let me know if it works. Thanks
heda is offline   Reply With Quote
Old 02-06-2017, 06:02 AM   #18
Crazy Maurice
Human being with feelings
 
Join Date: Nov 2016
Posts: 26
Default

Quote:
Originally Posted by heda View Post
Good suggestion. Updated.
Let me know if it works. Thanks
Works perfectly! Thanks
Crazy Maurice is offline   Reply With Quote
Old 02-07-2017, 04:45 AM   #19
Crazy Maurice
Human being with feelings
 
Join Date: Nov 2016
Posts: 26
Default

Hey heda,

Got another suggestion!

- Unsolo track if only selected item(s) are deleted

Eg. at the moment, if the soloed items are deleted, requires re-clicking another item to listen.
I guess to think of deleting item as deselecting it.

What you reckon?

Cheers,
Harry
Crazy Maurice is offline   Reply With Quote
Old 02-07-2017, 05:59 AM   #20
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

Quote:
* v0.7 (2017-02-07)
# update solo tracks when deleting items
# update solo tracks when cut and paste items
hehe yes.
we are approaching final version
updated with trigger for delete items, and also I added Cut and paste items.
heda is offline   Reply With Quote
Old 02-07-2017, 09:36 AM   #21
Crazy Maurice
Human being with feelings
 
Join Date: Nov 2016
Posts: 26
Default

Quote:
Originally Posted by heda View Post
hehe yes.
we are approaching final version
updated with trigger for delete items, and also I added Cut and paste items.
Woo!

Got another:

-Activate when item dragged in from finder(mac)

Haven't tried on PC yet but currently doesn't solo the track after a new item has been dragged onto a new track from finder.

Harry
Crazy Maurice is offline   Reply With Quote
Old 02-07-2017, 11:40 AM   #22
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

Here it says "Insert Media Items" when I drag a file from explorer into REAPER (windows)

I can add that "Activate when item dragged in from finder(mac)"
I don't have mac, are you sure the string is exactly like that? or without the (mac), caps included.
heda is offline   Reply With Quote
Old 02-08-2017, 02:47 AM   #23
Crazy Maurice
Human being with feelings
 
Join Date: Nov 2016
Posts: 26
Default

I guess it would be Insert Media Items, I was just writing in general terms as I was seeing the behaviour.

Hope that helps!

Edit:
Just tested using the menu Insert>Media File onto a track that's not yet soloed, and it stays unsoloed so that would be the command I guess

Last edited by Crazy Maurice; 02-08-2017 at 04:08 AM.
Crazy Maurice is offline   Reply With Quote
Old 02-08-2017, 05:15 AM   #24
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

Quote:
* v0.8 (2017-02-08)
# update solo tracks when Insert Media Items
ah yes. Updated.
I was referring to the action name that is shown in the undo history. Dragging from finder or explorer, or media explorer, or Insert Media from the menu, all create the "Insert Media Items" undo entry. So it will be fine now.
heda is offline   Reply With Quote
Old 02-28-2017, 09:41 AM   #25
Crazy Maurice
Human being with feelings
 
Join Date: Nov 2016
Posts: 26
Default

Quote:
Originally Posted by heda View Post
ah yes. Updated.
I was referring to the action name that is shown in the undo history. Dragging from finder or explorer, or media explorer, or Insert Media from the menu, all create the "Insert Media Items" undo entry. So it will be fine now.
Hi again! I've found another instance where it doesn't solo the track -

Action: Select and move to item in previous/next tracks

Cheers
Harry
Crazy Maurice is offline   Reply With Quote
Old 02-28-2017, 11:14 AM   #26
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default v0.9 (2017-02-28)

thanks Harry
updated!

Quote:
* v0.9 (2017-02-28)
# update when "Select Item In Next/Previous track"
heda is offline   Reply With Quote
Old 07-09-2017, 07:28 PM   #27
tusitala
Human being with feelings
 
tusitala's Avatar
 
Join Date: Apr 2010
Location: London (UK)
Posts: 412
Default

Quote:
Originally Posted by heda View Post
Today's script. Two actions: one toggles solo of the tracks that have items selected. The other one runs in the background, (with REAPER 5 toggle action support, see the button toolbar) and automatically sets solo to the tracks of selected items. For this one I still don't know if selecting new items should add to the selection of soloed tracks as it is now, or if it should just solo those new selected ones.

see it in action


Download:
Download and install it from HeDaScripts Manager


Hi!
Do you think you could modify your script so that when the focus is on the midi editor, adding a track from the track list on the right, adds this track to the "soloed" tracks we are listening to?

it would be awesome! as it is now i have to close and rerun the script to listen to the added selection.


in any case, thanks!!!! :-)
-t

Last edited by tusitala; 07-13-2017 at 05:09 PM.
tusitala is offline   Reply With Quote
Old 07-20-2017, 04:25 PM   #28
Robert Randolph
Human being with feelings
 
Robert Randolph's Avatar
 
Join Date: Apr 2017
Location: St. Petersburg, FL
Posts: 880
Default

I'm currently working in a project where I often need to solo tracksthat may not have selectable items on screen (scroll view during playback off).

So it would be valuable if there was a mode, or another script identical to this that worked based off track selection instead of item selection.

Last edited by Robert Randolph; 07-22-2017 at 05:48 AM.
Robert Randolph is offline   Reply With Quote
Old 07-22-2017, 04:23 AM   #29
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

Quote:
Originally Posted by Robert Randolph View Post
I'm currently working in a project where I often need to solo tracksthat may not have selectable items on screen (continuous scrolling off).

So it would be valuable if there was a mode, or another script identical to this that worked based off track selection instead of item selection.
Why would you need to solo these tracks? I don't understand the purpose of it. Would these tracks be soloed when you solo other tracks by selecting items with the script? or always?
Maybe with an example I could understand it better.
heda is offline   Reply With Quote
Old 07-22-2017, 05:48 AM   #30
Robert Randolph
Human being with feelings
 
Robert Randolph's Avatar
 
Join Date: Apr 2017
Location: St. Petersburg, FL
Posts: 880
Default

Quote:
Originally Posted by heda View Post
Why would you need to solo these tracks? I don't understand the purpose of it. Would these tracks be soloed when you solo other tracks by selecting items with the script? or always?
Maybe with an example I could understand it better.
3 things:
  1. I have often 'Automatically scroll view during playback' off. So often during playback there's a track playing with no visible items to click since the item is off the page.
  2. Soloing folders. My folders have no items in them! There's simply nothing to click to quickly solo a folder.
  3. Soloing auxes. No items on my aux tracks either.

The auto-solo script is great except it isn't very useful in scenarios like there where there's a track playing audio, but there's no item to click.

I have tried simply drawing in blank items, but that makes the project look rather cluttered and confusing at times.

I did explain it a bit poorly in my first post, sorry about that.
Robert Randolph is offline   Reply With Quote
Old 07-22-2017, 01:10 PM   #31
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

Quote:
Originally Posted by Robert Randolph View Post
3 things:
  1. I have often 'Automatically scroll view during playback' off. So often during playback there's a track playing with no visible items to click since the item is off the page.
  2. Soloing folders. My folders have no items in them! There's simply nothing to click to quickly solo a folder.
  3. Soloing auxes. No items on my aux tracks either.

The auto-solo script is great except it isn't very useful in scenarios like there where there's a track playing audio, but there's no item to click.

I have tried simply drawing in blank items, but that makes the project look rather cluttered and confusing at times.

I did explain it a bit poorly in my first post, sorry about that.
Why can't you use the normal solo buttons on these tracks?
Folders and busses are automatically soloed too if you solo in place their children or tracks with the sends. Or you can use the solo defeat function. Or you could explore Track grouping solo states of tracks.
So I still don't understand. In any case. this script is for soloing from items selection. So what you need would be another new script.
heda is offline   Reply With Quote
Old 07-22-2017, 01:27 PM   #32
Robert Randolph
Human being with feelings
 
Robert Randolph's Avatar
 
Join Date: Apr 2017
Location: St. Petersburg, FL
Posts: 880
Default

Quote:
Originally Posted by heda View Post
Why can't you use the normal solo buttons on these tracks?
Often I'm not switching tracks with a mouse. Exclusive solo isn't available everywhere (controller and track manager in my case) that track selection is possible.

Also it's bothersome to have to click the solo button. Simply clicking the track (in the arranger) is much easier.

Anyway, you're right. This should have been a request for a new script. I was thinking that it could be a useful addition to this script, but I can understand that's not the case.
Robert Randolph is offline   Reply With Quote
Old 07-29-2017, 10:51 AM   #33
tusitala
Human being with feelings
 
tusitala's Avatar
 
Join Date: Apr 2010
Location: London (UK)
Posts: 412
Default

hi Heda!

Do you think you could modify your script so that when the focus is on the midi editor, adding a track from the track list on the right, adds this track to the "soloed" tracks we are listening to?

it would be awesome! as it is now i have to close and rerun the script to listen to the added selection.


in any case, thanks!!!! :-)
-t
tusitala is offline   Reply With Quote
Old 07-29-2017, 08:08 PM   #34
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

this script seems to work fine...

maybe this thought already exists, if so please point me to it

to make this script work, we need to add some kind of suffix to the track name... right?

OK so what about another script that would offer a field where we could type in something like Regions for Vocals or whatever and
it would add that suffix to all selected tracks...

I think you get the concept, eh?
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-29-2017, 03:11 AM   #35
euga
Human being with feelings
 
Join Date: Oct 2013
Posts: 44
Default

toggle action works, auto solo doesn't


am i missing something?

EDIT: just tried with a portable install and it works fine, so i have some sort of conflict between scripts i think, but what could be?

Last edited by euga; 09-29-2017 at 03:29 AM.
euga is offline   Reply With Quote
Old 09-29-2017, 01:35 PM   #36
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

Quote:
Originally Posted by euga View Post
EDIT: just tried with a portable install and it works fine, so i have some sort of conflict between scripts i think, but what could be?

check the REAPER preferences > General > Undo settings > Include selection
heda is offline   Reply With Quote
Old 09-30-2017, 02:46 AM   #37
euga
Human being with feelings
 
Join Date: Oct 2013
Posts: 44
Default

Quote:
Originally Posted by heda View Post
check the REAPER preferences > General > Undo settings > Include selection
Thanks Heda! Now it works but marquee selection still doesn't, any ideas?

euga is offline   Reply With Quote
Old 09-30-2017, 03:21 AM   #38
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default

mmmm you are right... Marquee item selection used to work...
It seems that in previous versions of REAPER.. the command was "Marquee Item Selection" and not in REAPER 5.50 it is "Marquee item selection", so it is not detected now.. I'll make it case insensitive. Thanks!
heda is offline   Reply With Quote
Old 09-30-2017, 04:17 AM   #39
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,268
Default v1.0rc1 (2017-09-30)

fixed... even better.. now you can customize all the actions that trigger the toggle solo by copying the AutoSolo_actions.cfg to "Solo Tracks of Selected Items settings" folder and editing it.

Quote:
* v1.0rc1 (2017-09-30)
# make action triggers case insensitive. (which also makes it REAPER 5.50 compatible)
+ configurable undo trigger entries by editing AutoSolo_actions.cfg. (Copy AutoSolo_actions.cfg to "Solo Tracks of Selected Items settings" folder to edit it)
heda is offline   Reply With Quote
Old 10-01-2017, 03:30 AM   #40
euga
Human being with feelings
 
Join Date: Oct 2013
Posts: 44
Default

wonderful! thanks again!
euga 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 03:19 PM.


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