Commit 0026855c authored by Akari Labs's avatar Akari Labs

[ui] bind the readout of the base/decay sliders on init

parent ac963478
...@@ -29,7 +29,7 @@ function GltchrrWindow(attr) { ...@@ -29,7 +29,7 @@ function GltchrrWindow(attr) {
return <Window title="gltchrr config" x={options.x || 32} y={options.y || 128} height="348"> return <Window title="gltchrr config" x={options.x || 32} y={options.y || 128} height="348">
<label>enabled? <input type="checkbox" checked={gltchrr.state.enabled} onchange={e => { gltchrr.state.enabled = e.target.checked; me.onupdate(); }} /></label><br /> <label>enabled? <input type="checkbox" checked={gltchrr.state.enabled} onchange={e => { gltchrr.state.enabled = e.target.checked; me.onupdate(); }} /></label><br />
<br /> <br />
<label>intensity {controls.intesity_echo = <span style="float: right;">1</span>} <label>intensity {controls.intesity_echo = <span style="float:right;">{gltchrr.parameters.base}</span>}
<input type="range" min="0" max="700" value={gltchrr.parameters.base * 100} oninput={updateBase} /> <input type="range" min="0" max="700" value={gltchrr.parameters.base * 100} oninput={updateBase} />
</label><br /> </label><br />
<br /> <br />
...@@ -43,7 +43,7 @@ function GltchrrWindow(attr) { ...@@ -43,7 +43,7 @@ function GltchrrWindow(attr) {
</label><br /> </label><br />
<br /> <br />
<label>decay? <input type="checkbox" checked={gltchrr.state.decay} onchange={e => { gltchrr.state.decay = e.target.checked; me.onupdate(); }} /></label><br /> <label>decay? <input type="checkbox" checked={gltchrr.state.decay} onchange={e => { gltchrr.state.decay = e.target.checked; me.onupdate(); }} /></label><br />
<label>target intensity {controls.decay_echo = <span style="float: right;">2</span>} <label>target intensity {controls.decay_echo = <span style="float:right;">{gltchrr.parameters.decayTo}</span>}
<input type="range" min="0" max="700" value={gltchrr.parameters.decayTo * 100} oninput={updateDecay} /> <input type="range" min="0" max="700" value={gltchrr.parameters.decayTo * 100} oninput={updateDecay} />
</label> </label>
</Window> </Window>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment