Skip to content

Commit

Permalink
gsuiDrum: fix, changeProp
Browse files Browse the repository at this point in the history
  • Loading branch information
mr21 committed Oct 1, 2024
1 parent edd4b86 commit e02c4be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gsuiDrum/gsuiDrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class gsuiDrum extends gsui0ne {
case "pan":
case "gain":
case "detune":
this.#changeProp( prop, val );
this.#changeProp( prop, +val );
break;
}
}
Expand Down
5 changes: 5 additions & 0 deletions gsuiDrums/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@
drums.$addDrum( "d13", { row: "dr1", when: 1.75 } );
drums.$addDrum( "d14", { row: "dr1", when: 2 } );
drums.$changeDrum( "d10", "gain", .5 );
drums.$changeDrum( "d10", "pan", .5 );
drums.$changeDrum( "d11", "pan", 1 );
drums.$changeDrum( "d12", "pan", -.5 );
drums.$changeDrum( "d13", "pan", -1 );

drums.$addDrumcut( "dc10", { row: "dr1", when: 2 } );

drums.$addDrum( "d30", { row: "dr3", when: 2 } );
Expand Down

0 comments on commit e02c4be

Please sign in to comment.