-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
6551042
commit bad9286
Showing
4 changed files
with
91 additions
and
6 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
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,64 @@ | ||
<script lang="ts"> | ||
import { synth_options } from './store'; | ||
const maxTime = 10; | ||
</script> | ||
|
||
<div class="flex flex-col gap-4 p-5"> | ||
<div class="flex flex-col gap-2"> | ||
<label for="attack" class="capitalize" | ||
>Attack <small class="px-4">{$synth_options.attack}</small></label | ||
> | ||
<input | ||
type="range" | ||
class="range" | ||
id="attack" | ||
min="0" | ||
max={maxTime} | ||
step="0.1" | ||
bind:value={$synth_options.attack} | ||
/> | ||
</div> | ||
<div class="flex flex-col gap-2"> | ||
<label for="release" class="capitalize" | ||
>Release <small class="px-4">{$synth_options.release}</small></label | ||
> | ||
<input | ||
type="range" | ||
class="range" | ||
id="release" | ||
min="0" | ||
max={maxTime} | ||
step="0.1" | ||
bind:value={$synth_options.release} | ||
/> | ||
</div> | ||
<div class="flex flex-col gap-2"> | ||
<label for="decay" class="capitalize" | ||
>Decay <small class="px-4">{$synth_options.decay}</small></label | ||
> | ||
<input | ||
type="range" | ||
class="range" | ||
id="decay" | ||
min="0" | ||
max={maxTime} | ||
step="0.1" | ||
bind:value={$synth_options.decay} | ||
/> | ||
</div> | ||
|
||
<div class="flex flex-col gap-2"> | ||
<label for="sustain" class="capitalize" | ||
>Sustain <small class="px-4">{$synth_options.sustain}</small></label | ||
> | ||
<input | ||
type="range" | ||
class="range" | ||
id="sustain" | ||
min="0" | ||
max="1" | ||
step="0.1" | ||
bind:value={$synth_options.sustain} | ||
/> | ||
</div> | ||
</div> |
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
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,5 +1,17 @@ | ||
<script lang="ts"> | ||
import Polysynth from '$lib/polysynth.svelte'; | ||
import { getDrawerStore, type DrawerSettings } from '@skeletonlabs/skeleton'; | ||
const drawerStore = getDrawerStore(); | ||
const drawerSettings: DrawerSettings = { | ||
position: 'right', | ||
width: 'w-full max-w-sm md:max-w-md' | ||
}; | ||
</script> | ||
|
||
<div class="fixed top-5 left-5"> | ||
<button on:click={() => drawerStore.open(drawerSettings)} class="btn variant-filled" | ||
>Settings</button | ||
> | ||
</div> | ||
<Polysynth /> |