Old 03-27-2024, 03:22 PM   #1
Sound asleep
Human being with feelings
 
Sound asleep's Avatar
 
Join Date: Nov 2009
Location: Montreal, Canada
Posts: 9,052
Default Trigger scripts from using tcp buttons?

Is there any way i could set reaper up so that if i click say, Record arm on a track in tcp, it triggers a script?
__________________
Slava Ukraini
Sound asleep is offline   Reply With Quote
Old Yesterday, 02:05 AM   #2
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,597
Default

You can do that with background script, or add custom button via walter that will do that (run script that will record arm and do what you want next).

https://forums.cockos.com/showpost.p...&postcount=114
Sexan is offline   Reply With Quote
Old Yesterday, 02:31 AM   #3
erikmartinez
Human being with feelings
 
erikmartinez's Avatar
 
Join Date: Feb 2023
Location: Kazakhstan
Posts: 194
Default

but if you want dialog control, you may need something like a language model (I don't know much about it, to be honest) or plug-in libraries.

I've seen how to connect voice control using py and different shells, maybe there is a textual solution
erikmartinez is online now   Reply With Quote
Old Yesterday, 03:38 PM   #4
Sound asleep
Human being with feelings
 
Sound asleep's Avatar
 
Join Date: Nov 2009
Location: Montreal, Canada
Posts: 9,052
Default

Quote:
Originally Posted by Sexan View Post
You can do that with background script, or add custom button via walter that will do that (run script that will record arm and do what you want next).

https://forums.cockos.com/showpost.p...&postcount=114
How would a background script work?

What might be cool, is if i could add a second invisible button on top of the mute button that always engages everytime i click the regular button, but i think it would break on right clicks.
__________________
Slava Ukraini
Sound asleep is offline   Reply With Quote
Old Yesterday, 03:51 PM   #5
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,597
Default

1. Get track under mouse
2. If rec armed (GetTrackValueInfo) run scriot that you want
3. Update project state (old state ~= current state check) so it only does it once

This is simplified but you will need to track recarmed tracks also so it triggers only on rec arm change
Sexan is offline   Reply With Quote
Old Yesterday, 07:35 PM   #6
Sound asleep
Human being with feelings
 
Sound asleep's Avatar
 
Join Date: Nov 2009
Location: Montreal, Canada
Posts: 9,052
Default

Quote:
Originally Posted by Sexan View Post
1. Get track under mouse
2. If rec armed (GetTrackValueInfo) run scriot that you want
3. Update project state (old state ~= current state check) so it only does it once

This is simplified but you will need to track recarmed tracks also so it triggers only on rec arm change
This sounds like it might be something that would need to continuously run? would it use more resources?
__________________
Slava Ukraini
Sound asleep 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 12:04 AM.


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