View Single Post
Old 05-27-2019, 06:59 AM   #2964
Geoff Waddington
Human being with feelings
 
Geoff Waddington's Avatar
 
Join Date: Mar 2009
Location: Dartmouth, Nova Scotia
Posts: 5,057
Default

Thinking about drill-down functionality.

The Active Zones metaphor in CSI is implemented as a stack.

This is convenient, a Zone gets pushed on the Stack (e.g PanWidth) when you Activate it.

Then, when you Deactivate it, it gets popped off the Stack.

However Zones used in a drill-down role have a slightly different set of rules.

They can Activate and Deactivate just like any other Zone.

However in addition, they should also Deactivate if the parent Zone gets Deactivated.

How about this simple syntax:

Code:
Zone "VST: ReaComp (Cockos)"
    SelectedTrackNavigator
    Threshold FXParam Thresh
    Character FXParam Gain
    Attack FXParam Attack
    Release FXParam Release
    Ratio FXParam Ratio
    Compressor FXParam Bypass
    Parallel FXParam Wet
    CompressorMeter FXParam GainReductionDB
    DrillDownButton GoSubZone "VST: ReaComp (Cockos)" ReaCompSubZone
ZoneEnd

Zone ReaCompSubZone
    SelectedTrackNavigator
    Threshold FXParam Thresh
    Character FXParam Gain
    Attack FXParam Attack
    Release FXParam Release
    Ratio FXParam Ratio
    Compressor FXParam Bypass
    Parallel FXParam Wet
    CompressorMeter FXParam GainReductionDB
    DrillDownButton GoSubZone "VST: ReaComp (Cockos)" ReaCompSubSubZone
ZoneEnd

Zone ReaCompSubSubZone
    SelectedTrackNavigator
    Threshold FXParam Thresh
    Character FXParam Gain
    Attack FXParam Attack
    Release FXParam Release
    Ratio FXParam Ratio
    Compressor FXParam Bypass
    Parallel FXParam Wet
    CompressorMeter FXParam GainReductionDB
ZoneEnd
This states that when "VST: ReaComp (Cockos)" get Deactivated, ReaCompSubZone and ReaCompSubSubZone also get Deactivated.

What do you think ?
__________________
CSI - You can donate here: geoffwaddington.ca
Beta software: https://stash.reaper.fm/v/38349/CSI%20beta.zip
installation and documentation here: https://github.com/malcolmgroves/reaper_csi/wiki
Geoff Waddington is offline   Reply With Quote