Replace E effect cycling with effect selection menu

This commit is contained in:
Jage9
2026-02-21 02:06:32 -05:00
parent 5a3f3d3044
commit e3d2fe6404
5 changed files with 60 additions and 4 deletions

View File

@@ -111,6 +111,13 @@ export class AudioEngine {
return EFFECT_SEQUENCE[this.effectIndex];
}
setOutboundEffect(effectId: EffectId): { id: EffectId; label: string } {
const nextIndex = EFFECT_SEQUENCE.findIndex((effect) => effect.id === effectId);
this.effectIndex = nextIndex >= 0 ? nextIndex : this.effectIndex;
this.rebuildOutboundEffectGraph();
return EFFECT_SEQUENCE[this.effectIndex];
}
getCurrentEffect(): { id: EffectId; label: string; value: number; defaultValue: number } {
const effect = EFFECT_SEQUENCE[this.effectIndex];
return {