Old 11-11-2018, 03:33 PM   #1
tack
Human being with feelings
 
tack's Avatar
 
Join Date: Jan 2014
Location: Ontario, Canada
Posts: 1,619
Default How can a JSFX detect if on a record-armed track?

Is it possible for a JSFX to determine whether or not the track it's installed on is armed for recording?
tack is offline   Reply With Quote
Old 11-11-2018, 06:07 PM   #2
ThrashJazzAssassin
Human being with feelings
 
ThrashJazzAssassin's Avatar
 
Join Date: Oct 2010
Location: Scotland
Posts: 422
Default

I don't believe a jsfx can determine that directly. But one could write a script that searches for a particular plugin, determine if the track it's on is rec armed, then move a slider on that plugin.
__________________
TJA MIDI JSFX | REAPER-OSC-panels | erthoide
ThrashJazzAssassin is offline   Reply With Quote
Old 11-13-2018, 03:10 AM   #3
IXix
Human being with feelings
 
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,891
Default

Mr. Assassin is correct. JSFX can know if REAPER's transport is recording but not whether the track the effect is on is armed.


However in an upcoming release, interaction between an .eel reascript and a .jsfx will be possible via global memory, so perhaps something could be worked out. If not then as Mr. Assassin says, you'd have to manipulate the effect sliders with a script (which isn't difficult).
IXix is offline   Reply With Quote
Old 11-13-2018, 05:27 PM   #4
tack
Human being with feelings
 
tack's Avatar
 
Join Date: Jan 2014
Location: Ontario, Canada
Posts: 1,619
Default

An outside ReaScript communicating armed status to the JSFX was my first thought too but I was hoping there was a cleaner (and less expensive) method.

Thanks to you both for replying!
tack is offline   Reply With Quote
Old 01-28-2022, 12:51 AM   #5
HurdyGuigui
Human being with feelings
 
Join Date: Nov 2014
Posts: 17
Default

Hello,
I am also trying to detect if my JSFX is on a record-armed track. Is there any other way to do this directly from the JSFX with the recent updates, or should I do it with an external script?

If there is no cleaner way, @Tack would you be willing to share with me the ReaScript detecting armed status you wrote?

Thank you

Last edited by HurdyGuigui; 01-28-2022 at 01:51 AM.
HurdyGuigui 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 09:18 AM.


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