Skip to content

Commit

Permalink
Added sample folder window.
Browse files Browse the repository at this point in the history
  • Loading branch information
bor-T committed Oct 1, 2024
1 parent 2447df9 commit d37af73
Show file tree
Hide file tree
Showing 2 changed files with 179 additions and 119 deletions.
158 changes: 94 additions & 64 deletions res/main/ui/convolution/impulse_reverb/mono.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,38 +29,38 @@

<ui:with pad.h="6" pad.v="4">
<label text="labels.predelay"/>
<knob id="pd" />
<knob id="pd"/>
<value id="pd" sline="true"/>
</ui:with>

<hsep bg.color="bg" pad.v="2" vreduce="true"/>

<ui:with pad.h="6" pad.v="4">
<label text="labels.signal.dry" />
<knob id="dry" scolor="dry" />
<value id="dry" sline="true" />
<label text="labels.signal.dry"/>
<knob id="dry" scolor="dry"/>
<value id="dry" sline="true"/>
</ui:with>

<hsep bg.color="bg" pad.v="2" vreduce="true"/>

<ui:with pad.h="6" pad.v="4">
<label text="labels.signal.wet" />
<label text="labels.signal.wet"/>
<knob id="wet" scolor="wet"/>
<value id="wet" sline="true" />
<value id="wet" sline="true"/>
</ui:with>

<hsep bg.color="bg" pad.v="2" vreduce="true"/>

<ui:with pad.h="6" pad.v="4">
<label text="labels.signal.drywet" />
<label text="labels.signal.drywet"/>
<knob id="drywet" scolor="drywet"/>
<value id="drywet" sline="true" />
<value id="drywet" sline="true"/>
</ui:with>

<hsep bg.color="bg" pad.v="2" vreduce="true"/>

<ui:with pad.h="6" pad.v="4">
<label text="labels.output" />
<label text="labels.output"/>
<knob id="g_out"/>
<value id="g_out" sline="true"/>
</ui:with>
Expand All @@ -69,65 +69,95 @@
</cell>

<group text="groups.impulse_response" expand="true" bg.color="bg" spacing="0" ipadding="0">
<vbox>
<!-- File editor -->

<ui:for id="i" first="0" last="3">
<asample
expand="true"
id="ifn${i}"
mesh_id="ifd${i}"
path.id="_ui_dlg_ir_path"
ftype.id="_ui_dlg_ir_ftype"
hcut=":ihc${i}"
tcut=":itc${i}"
fadein=":ifi${i}"
fadeout=":ifo${i}"
length=":ifl${i}"
status=":ifs${i}"
width.min="600"
height.min="240"
load.preview="true"
clipboard.head_cut="ihc${i}"
clipboard.tail_cut="itc${i}"
clipboard.fade_in="ifi${i}"
clipboard.fade_out="ifo${i}"
format="audio_lspc,audio,all"
visibility=":fsel ieq ${i}"/>
</ui:for>
<void bg.color="bg" pad.v="2" vreduce="true"/>
<hbox width.min="803" height.min="256">
<vbox expand="true">
<!-- File editor -->

<ui:for id="i" first="0" last="3">
<asample
expand="true"
id="ifn${i}"
mesh_id="ifd${i}"
path.id="_ui_dlg_ir_path"
ftype.id="_ui_dlg_ir_ftype"
hcut=":ihc${i}"
tcut=":itc${i}"
fadein=":ifi${i}"
fadeout=":ifo${i}"
length=":ifl${i}"
status=":ifs${i}"
width.min="600"
height.min="240"
load.preview="true"
clipboard.head_cut="ihc${i}"
clipboard.tail_cut="itc${i}"
clipboard.fade_in="ifi${i}"
clipboard.fade_out="ifo${i}"
format="audio_lspc,audio,all"
visibility=":fsel ieq ${i}"/>
</ui:for>
<void bg.color="bg" pad.v="2" vreduce="true"/>

<ui:for id="i" first="0" last="3">
<grid rows="4" cols="6" bg.color="bg_schema" visibility=":fsel ieq ${i}">
<ui:with pad.h="6" pad.v="4" vreduce="true">
<label text="labels.sedit.reverse"/>
<label text="labels.sedit.head_cut"/>
<label text="labels.sedit.tail_cut"/>
<label text="labels.sedit.fade_in"/>
<label text="labels.sedit.fade_out"/>
<label text="labels.listen"/>
</ui:with>

<cell cols="6"><hsep bg.color="bg" pad.v="2" vreduce="true"/></cell>

<ui:with pad.h="6" pad.v="4">
<cell rows="2"><button id="irv${i}" size="32" toggle="false"/></cell>
<knob id="ihc${i}" size="20"/>
<knob id="itc${i}" size="20"/>
<knob id="ifi${i}" size="20" scolor="fade_in"/>
<knob id="ifo${i}" size="20" scolor="fade_out"/>
<cell rows="2"><button id="ils${i}" size="32" toggle="false"/></cell>
</ui:with>

<ui:with pad.h="6" pad.b="4" width.min="48" sline="true">
<value id="ihc${i}"/>
<value id="itc${i}"/>
<value id="ifi${i}"/>
<value id="ifo${i}"/>
</ui:with>
</grid>
</ui:for>
</vbox>

<ui:for id="i" first="0" last="3">
<grid rows="4" cols="6" bg.color="bg_schema" visibility=":fsel ieq ${i}">
<ui:with pad.h="6" pad.v="4" vreduce="true">
<label text="labels.sedit.reverse"/>
<label text="labels.sedit.head_cut"/>
<label text="labels.sedit.tail_cut"/>
<label text="labels.sedit.fade_in"/>
<label text="labels.sedit.fade_out"/>
<label text="labels.listen"/>
</ui:with>

<cell cols="6"><hsep bg.color="bg" pad.v="2" vreduce="true"/></cell>

<ui:with pad.h="6" pad.v="4">
<cell rows="2"><button id="irv${i}" size="32" toggle="false"/></cell>
<knob id="ihc${i}" size="20"/>
<knob id="itc${i}" size="20"/>
<knob id="ifi${i}" size="20" scolor="fade_in"/>
<knob id="ifo${i}" size="20" scolor="fade_out"/>
<cell rows="2"><button id="ils${i}" size="32" toggle="false"/></cell>
<void bg.color="bg_graph" pad.h="2" hreduce="true" visibility="(:fsel ieq ${i}) and (:ifs${i} ieq 0)"/>

<vbox vexpand="true" visibility="(:fsel ieq ${i}) and (:ifs${i} ieq 0)">
<void bg.color="bg_graph" pad.v="2" vreduce="true"/>
<afolder id="ifn${i}" expand="true" width.min="199"/>
<void bg.color="bg_graph" pad.v="2" vreduce="true"/>

<ui:with fill="true">
<hbox pad.h="6" pad.v="4" spacing="4" bg.color="bg_schema">
<ui:with height="22">
<anavigator id="ifn${i}" text="icons.navigation_big.first_alt" action="first"/>
<anavigator id="ifn${i}" text="icons.navigation_big.last_alt" action="last"/>
<void hexpand="true"/>
<anavigator id="ifn${i}" text="icons.navigation_big.previous" action="previous"/>
<anavigator id="ifn${i}" text="icons.navigation_big.next" action="next"/>
<void hexpand="true"/>

<anavigator id="ifn${i}" text="icons.random.dice_fill" action="random"/>
<void hexpand="true"/>
<anavigator id="ifn${i}" text="icons.actions.cancel_alt" action="clear"/>
</ui:with>
</hbox>
</ui:with>

<ui:with pad.h="6" pad.b="4" width.min="48" sline="true">
<value id="ihc${i}"/>
<value id="itc${i}"/>
<value id="ifi${i}"/>
<value id="ifo${i}"/>
</ui:with>
</grid>
</vbox>
</ui:for>
</vbox>

</hbox>
</group>

<group text="groups.processors" ipadding="0">
Expand Down
140 changes: 85 additions & 55 deletions res/main/ui/convolution/impulse_reverb/stereo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<cell rows="3">
<group text="groups.output" ipadding="0">
<grid rows="11" cols="2" fill="true">
<cell cols="2"><label text="labels.signal.dry_pan" pad.t="4"/></cell>
<ui:with pad.h="6" pad.v="4">
<cell cols="2"><label text="labels.signal.dry_pan" pad.t="4"/></cell>
<ui:with pad.h="6" pad.v="4">
<label text="labels.chan.left"/>
<label text="labels.chan.right"/>
<knob id="pl" scolor="left"/>
Expand Down Expand Up @@ -77,65 +77,95 @@
</cell>

<group text="groups.impulse_response" expand="true" bg.color="bg" spacing="0" ipadding="0">
<vbox>
<!-- File editor -->

<ui:for id="i" first="0" last="3">
<asample
expand="true"
id="ifn${i}"
mesh_id="ifd${i}"
path.id="_ui_dlg_ir_path"
ftype.id="_ui_dlg_ir_ftype"
hcut=":ihc${i}"
tcut=":itc${i}"
fadein=":ifi${i}"
fadeout=":ifo${i}"
length=":ifl${i}"
status=":ifs${i}"
width.min="600"
height.min="172"
load.preview="true"
clipboard.head_cut="ihc${i}"
clipboard.tail_cut="itc${i}"
clipboard.fade_in="ifi${i}"
clipboard.fade_out="ifo${i}"
format="audio_lspc,audio,all"
visibility=":fsel ieq ${i}"/>
</ui:for>
<void bg.color="bg" pad.v="2" vreduce="true"/>
<hbox width.min="803" height.min="256">
<vbox expand="true">
<!-- File editor -->

<ui:for id="i" first="0" last="3">
<asample
expand="true"
id="ifn${i}"
mesh_id="ifd${i}"
path.id="_ui_dlg_ir_path"
ftype.id="_ui_dlg_ir_ftype"
hcut=":ihc${i}"
tcut=":itc${i}"
fadein=":ifi${i}"
fadeout=":ifo${i}"
length=":ifl${i}"
status=":ifs${i}"
width.min="600"
height.min="172"
load.preview="true"
clipboard.head_cut="ihc${i}"
clipboard.tail_cut="itc${i}"
clipboard.fade_in="ifi${i}"
clipboard.fade_out="ifo${i}"
format="audio_lspc,audio,all"
visibility=":fsel ieq ${i}"/>
</ui:for>
<void bg.color="bg" pad.v="2" vreduce="true"/>

<ui:for id="i" first="0" last="3">
<grid rows="4" cols="6" bg.color="bg_schema" visibility=":fsel ieq ${i}">
<ui:with pad.h="6" pad.v="4" vreduce="true">
<label text="labels.sedit.reverse"/>
<label text="labels.sedit.head_cut"/>
<label text="labels.sedit.tail_cut"/>
<label text="labels.sedit.fade_in"/>
<label text="labels.sedit.fade_out"/>
<label text="labels.listen"/>
</ui:with>

<ui:for id="i" first="0" last="3">
<grid rows="4" cols="6" bg.color="bg_schema" visibility=":fsel ieq ${i}">
<ui:with pad.h="6" pad.v="4" vreduce="true">
<label text="labels.sedit.reverse"/>
<label text="labels.sedit.head_cut"/>
<label text="labels.sedit.tail_cut"/>
<label text="labels.sedit.fade_in"/>
<label text="labels.sedit.fade_out"/>
<label text="labels.listen"/>
</ui:with>
<cell cols="6"><hsep bg.color="bg" pad.v="2" vreduce="true"/></cell>

<cell cols="6"><hsep bg.color="bg" pad.v="2" vreduce="true"/></cell>
<ui:with pad.h="6" pad.v="4">
<cell rows="2"><button id="irv${i}" size="32" toggle="false"/></cell>
<knob id="ihc${i}" size="20"/>
<knob id="itc${i}" size="20"/>
<knob id="ifi${i}" size="20" scolor="fade_in"/>
<knob id="ifo${i}" size="20" scolor="fade_out"/>
<cell rows="2"><button id="ils${i}" size="32" toggle="false"/></cell>
</ui:with>

<ui:with pad.h="6" pad.v="4">
<cell rows="2"><button id="irv${i}" size="32" toggle="false"/></cell>
<knob id="ihc${i}" size="20"/>
<knob id="itc${i}" size="20"/>
<knob id="ifi${i}" size="20" scolor="fade_in"/>
<knob id="ifo${i}" size="20" scolor="fade_out"/>
<cell rows="2"><button id="ils${i}" size="32" toggle="false"/></cell>
</ui:with>
<ui:with pad.h="6" pad.b="4" width.min="48" sline="true">
<value id="ihc${i}"/>
<value id="itc${i}"/>
<value id="ifi${i}"/>
<value id="ifo${i}"/>
</ui:with>
</grid>
</ui:for>
</vbox>

<ui:with pad.h="6" pad.b="4" width.min="48" sline="true">
<value id="ihc${i}"/>
<value id="itc${i}"/>
<value id="ifi${i}"/>
<value id="ifo${i}"/>
<ui:for id="i" first="0" last="3">
<void bg.color="bg_graph" pad.h="2" hreduce="true" visibility="(:fsel ieq ${i}) and (:ifs${i} ieq 0)"/>

<vbox vexpand="true" visibility="(:fsel ieq ${i}) and (:ifs${i} ieq 0)">
<void bg.color="bg_graph" pad.v="2" vreduce="true"/>
<afolder id="ifn${i}" expand="true" width.min="199"/>
<void bg.color="bg_graph" pad.v="2" vreduce="true"/>

<ui:with fill="true">
<hbox pad.h="6" pad.v="4" spacing="4" bg.color="bg_schema">
<ui:with height="22">
<anavigator id="ifn${i}" text="icons.navigation_big.first_alt" action="first"/>
<anavigator id="ifn${i}" text="icons.navigation_big.last_alt" action="last"/>
<void hexpand="true"/>
<anavigator id="ifn${i}" text="icons.navigation_big.previous" action="previous"/>
<anavigator id="ifn${i}" text="icons.navigation_big.next" action="next"/>
<void hexpand="true"/>

<anavigator id="ifn${i}" text="icons.random.dice_fill" action="random"/>
<void hexpand="true"/>
<anavigator id="ifn${i}" text="icons.actions.cancel_alt" action="clear"/>
</ui:with>
</hbox>
</ui:with>
</grid>
</vbox>
</ui:for>
</vbox>

</hbox>
</group>

<group text="groups.processors" ipadding="0">
Expand Down

0 comments on commit d37af73

Please sign in to comment.