feat(playground): dynamic engine label in output mode toggle (meml-i40)
This commit is contained in:
parent
40ac7256f3
commit
7cbda2304b
2 changed files with 3 additions and 1 deletions
|
|
@ -207,7 +207,7 @@
|
|||
<span class="mode-label">Output</span>
|
||||
<div class="pill-toggle pill-toggle-sm" id="output-toggle-float">
|
||||
<button class="pill-opt active" data-mode="visual">Visual</button>
|
||||
<button class="pill-opt" data-mode="synth">Synth</button>
|
||||
<button class="pill-opt" data-mode="synth" id="synth-mode-btn">C15 Shaper-Feedback</button>
|
||||
<button class="pill-opt" data-mode="midi-cc">MIDI CC</button>
|
||||
<button class="pill-opt" data-mode="audio-canvas">Audio Canvas</button>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -740,6 +740,8 @@ async function setActiveEngine(engine) {
|
|||
activeEngine = engine;
|
||||
c15 = engine; // keep alias in sync
|
||||
arpeggiator.setEngine(engine);
|
||||
const btn = document.getElementById('synth-mode-btn');
|
||||
if (btn) btn.textContent = engine.displayName;
|
||||
await resizeMLP(engine.paramCount);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue