Skip to content

Commit

Permalink
DAWCoreCompositionFormat: detunefine
Browse files Browse the repository at this point in the history
  • Loading branch information
mr21 committed Dec 17, 2022
1 parent 985f1ce commit f51b935
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DAWCoreCompositionFormat.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ class DAWCoreCompositionFormat {
delete syn.env.substain;
Object.values( syn.oscillators ).forEach( osc => {
osc.detune = Math.min( Math.max( -24, Math.round( osc.detune ) ), 24 );
osc.detunefine = Math.min( Math.max( -1, osc.detunefine || 0 ), 1 );
} );
} );

Expand Down

0 comments on commit f51b935

Please sign in to comment.