Skip to content

Commit

Permalink
update key modifier manager
Browse files Browse the repository at this point in the history
  • Loading branch information
spessasus committed Nov 15, 2024
1 parent 3e5b8bc commit d76be05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/spessasynth_lib/synthetizer/key_modifier_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class KeyModifierManager
*/
addModifier(channel, midiNote, options)
{
const velocity = options?.velocity || -1;
const velocity = options?.velocity ?? -1;
const program = options?.patch?.program ?? -1;
const bank = options?.patch?.bank ?? -1;
this._sendToWorklet(
Expand Down
2 changes: 1 addition & 1 deletion src/website/minified/demo_main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/website/minified/local_main.min.js

Large diffs are not rendered by default.

0 comments on commit d76be05

Please sign in to comment.