Old 07-01-2019, 07:28 AM   #1
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,686
Default solo by mute [solved]

Sorry for silly questions for supposedly well documented stuff, but maybe just some words would save me a huge amount of research.

I'd like to do a script (in EEL) that unmutes a track when I press its "solo" button and mutes all other tracks (two "soloed" tracks should be disallowed).
I did a lot of JSFXes, so I do know my way with EEL.

I suppose that I can call Reaper actions from the script (but I don't know how), and I do know that there are actions to mute all tracks and to unmute a specific track (and there also are API calls for at least the second).

And I have no idea how to make a script start when "solo" is pushed at a track.

-Michael

Last edited by mschnell; 07-18-2019 at 07:03 AM.
mschnell is offline   Reply With Quote
Old 07-01-2019, 07:36 AM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Quote:
Originally Posted by mschnell View Post
And I have no idea how to make a script start when "solo" is pushed at a track.
Can't do that. But you could instead make a script that runs in the background periodically looking for changes in soloed tracks, using the defer API function for scheduling.
cfillion is offline   Reply With Quote
Old 07-01-2019, 01:29 PM   #3
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,686
Default

Thanks !
I'll try that...
-Michael
mschnell is offline   Reply With Quote
Old 07-16-2019, 05:10 AM   #4
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,686
Default

OK.

I managed to use the defer() functionality and to keep variables between the deferred calls using SetExtState() (really only strings possible ????)

I also found how to get the count of tracks.

But I failed to find out how to get and set the solo and mute states of a track. The "chunk" thingy sound overly complicated - unless I fail to see a simple use of same.

-Michael
mschnell is offline   Reply With Quote
Old 07-16-2019, 07:56 AM   #5
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,686
Default

Works !
-Michael
mschnell is offline   Reply With Quote
Old 07-16-2019, 03:17 PM   #6
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,686
Default

OK. Works, but:

I'd like to have the script activated when loading a dedicated project.

How can I make a project (rpp file) exectue a Reascript on load ?
At best on top of that, the script should be stopped when the project is replaced by another one or another project tab is selected, and re-activated when the appropriate project tab is selected.

-Michael
mschnell is offline   Reply With Quote
Old 07-17-2019, 09:19 PM   #7
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,686
Default

Quote:
Originally Posted by mschnell View Post
I'd like to have the script activated when loading a dedicated project.
SWS -> Set Project Startup Action
does exactly this.

-Michael
mschnell is offline   Reply With Quote
Old 07-18-2019, 10:50 AM   #8
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 4,812
Default

good!
deeb 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 05:14 AM.


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