-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 27 additions & 2 deletions
29
packages/testbed/src/app/pages/fx-settings/fx-settings.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,41 @@ | ||
@for (bus of buses; track bus) { | ||
<div class="mb-5"> | ||
<div class="mb-4"> | ||
<h2> | ||
{{ bus.label }} | ||
<span class="small text-muted" | ||
>{{ withFxType(bus.fx.fxType$) | async }} ({{ bus.fx.fxType$ | async }})</span | ||
> | ||
</h2> | ||
<div> | ||
<!-- BPM --> | ||
<div class="mb-4"> | ||
<h3>BPM</h3> | ||
@for (v of [1, 20, 60, 80, 100, 220, 400, 1000]; track v) { | ||
<button class="btn btn-success btn-sm me-2" (click)="bus.fx.setBpm(v)">{{ v }} BPM</button> | ||
} | ||
<strong>{{ bus.fx.bpm$ | async }} BPM</strong> | ||
</div> | ||
|
||
<!-- Params --> | ||
<div class="mb-4"> | ||
<h3>Params</h3> | ||
|
||
@for (param of [1,2,3,4,5,6]; track $index) { | ||
<div class="mb-1"> | ||
@let paramValue = bus.fx.getParam(param) | async; | ||
<strong class="me-2">{{ param }}</strong> | ||
<input | ||
type="range" | ||
min="0" | ||
max="1" | ||
step="0.0001" | ||
(input)="setFxParam(bus.fx, param, paramValueInput.value)" | ||
[value]="paramValue" | ||
#paramValueInput | ||
/> | ||
<span class="ms-4">{{ paramValue }}</span> | ||
</div> | ||
} | ||
</div> | ||
<hr /> | ||
</div> | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/testbed/src/app/pages/fx-settings/fx-settings.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
input { | ||
width: 50%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters