-
Notifications
You must be signed in to change notification settings - Fork 0
/
equalizer_rack_parameter.xml
93 lines (92 loc) · 4.36 KB
/
equalizer_rack_parameter.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE template>
<!--
Description:
An equalizer rack parameter for the provided group.
Assumes the equalizer is effect 1 in the unit.
Variables:
group: the group
parameter: the parameter number
color: the notch color. red, green, yellow, blue or light_blue.
-->
<Template>
<SetVariable name="EqualizerNumber">1</SetVariable>
<SetVariable name="EffectNumber">1</SetVariable>
<SetVariable name="EqualizerRackGroup">[EqualizerRack<Variable name="EqualizerNumber"/>]</SetVariable>
<SetVariable name="EqualizerEffectUnitGroup">[EqualizerRack<Variable name="EqualizerNumber"/>_<Variable name="group"/>]</SetVariable>
<SetVariable name="EqualizerEffectGroup">[EqualizerRack<Variable name="EqualizerNumber"/>_<Variable name="group"/>_Effect<Variable name="EffectNumber"/>]</SetVariable>
<WidgetGroup>
<Layout>horizontal</Layout>
<Children>
<WidgetGroup>
<Layout>vertical</Layout>
<Children>
<WidgetGroup>
<Size>15f,21f</Size>
<Children>
<EffectPushButton>
<TooltipId><Variable name="button_TooltipId"/></TooltipId>
<Size>15f,15f</Size>
<ObjectName>MixerButton</ObjectName>
<EffectRackGroup><Variable name="EqualizerRackGroup"/></EffectRackGroup>
<EffectUnitGroup><Variable name="EqualizerEffectUnitGroup"/></EffectUnitGroup>
<Effect><Variable name="EffectNumber"/></Effect>
<EffectButtonParameter><Variable name="parameter"/></EffectButtonParameter>
<NumberStates>2</NumberStates>
<State>
<Number>0</Number>
<Text></Text>
<Pressed scalemode="STRETCH_ASPECT">icon/ic_radio_button_off_48px.svg</Pressed>
<Unpressed scalemode="STRETCH_ASPECT">icon/ic_radio_button_off_48px.svg</Unpressed>
</State>
<State>
<Number>1</Number>
<Text></Text>
<Pressed scalemode="STRETCH_ASPECT">icon/ic_radio_button_on_48px.svg</Pressed>
<Unpressed scalemode="STRETCH_ASPECT">icon/ic_radio_button_on_48px.svg</Unpressed>
</State>
<Connection>
<ConfigKey><Variable name="EqualizerEffectGroup"/>,button_parameter<Variable name="parameter"/></ConfigKey>
<ButtonState>LeftButton</ButtonState>
</Connection>
</EffectPushButton>
</Children>
</WidgetGroup>
<!-- Button parameter names for the eqs are too long.
Commented out until we have short parameter names -->
<!--
<EffectButtonParameterName>
<Size>30f,10f</Size>
<ObjectName>KnobLabel</ObjectName>
<EffectRackGroup><Variable name="EqualizerRackGroup"/></EffectRackGroup>
<EffectUnitGroup><Variable name="EqualizerEffectUnitGroup"/></EffectUnitGroup>
<Effect><Variable name="EffectNumber"/></Effect>
<EffectButtonParameter><Variable name="parameter"/></EffectButtonParameter>
</EffectButtonParameterName>
-->
</Children>
</WidgetGroup>
<WidgetGroup>
<Layout>vertical</Layout>
<Children>
<Template src="skin:knob.xml">
<SetVariable name="group"><Variable name="EqualizerEffectGroup"/></SetVariable>
<SetVariable name="control">parameter<Variable name="parameter"/></SetVariable>
<SetVariable name="color"><Variable name="color"/></SetVariable>
</Template>
<EffectParameterName>
<Size>40f,10f</Size>
<ObjectName>KnobLabel</ObjectName>
<EffectRackGroup><Variable name="EqualizerRackGroup"/></EffectRackGroup>
<EffectUnitGroup><Variable name="EqualizerEffectUnitGroup"/></EffectUnitGroup>
<Effect><Variable name="EffectNumber"/></Effect>
<EffectParameter><Variable name="parameter"/></EffectParameter>
</EffectParameterName>
</Children>
</WidgetGroup>
</Children>
<Connection>
<ConfigKey><Variable name="EqualizerEffectGroup"/>,parameter<Variable name="parameter"/>_loaded</ConfigKey>
<BindProperty>visible</BindProperty>
</Connection>
</WidgetGroup>
</Template>