Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$mol_audio_demo_sequencer: add Shape selector #685

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions audio/demo/sequencer/sequencer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[mol_audio_demo_sequencer_list] > [mol_row] {
padding: 0;
}
24 changes: 19 additions & 5 deletions audio/demo/sequencer/sequencer.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ $mol_audio_demo_sequencer $mol_example_small
notes? <=> notes? \e e e _ e e e _ e g c d e _ _ _/2 f f f f f e e e e/2 e/2 d d e d _ g _
note_length? <=> note_length? .25
note_off_part? <=> note_off_part? .4
instrument* <= Beep* $mol_audio_vibe
shape_default <= shape
sub /
<= List $mol_list rows /
<= Note_settings $mol_row sub /
Expand All @@ -25,11 +27,23 @@ $mol_audio_demo_sequencer $mol_example_small
precision .1
value_min .1
value? <=> note_off_part?
<= Notes_field $mol_form_field
name \Notes
control <= Notes $mol_textarea
hint \Example: e _ c#5/2 _/2
value? <=> notes?
<= Shape $mol_labeler
title <= shape_label \Shape
content /
<= Shape_select $mol_select
Filter null
value? <=> shape? null
options /$mol_audio_vibe_shape
\sine
\square
\sawtooth
\triangle
<= Notes_row $mol_row sub /
<= Notes_field $mol_form_field
name \Notes
control <= Notes $mol_textarea
hint \Example: e _ c#5/2 _/2
value? <=> notes?
<= Beep_row $mol_row sub /
<= Beep_active $mol_check_icon
hint \Play / Pause
Expand Down
4 changes: 4 additions & 0 deletions audio/demo/sequencer/sequencer.view.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace $.$$ {
export class $mol_audio_demo_sequencer extends $.$mol_audio_demo_sequencer {
@ $mol_mem
override shape( next?: $mol_audio_vibe_shape ): $mol_audio_vibe_shape {
return next !== undefined ? next : 'sine'
}
}
}
Loading