Skip to content

Commit

Permalink
Convert LinearFunction to a class with an evaluate method, see phetsi…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 2, 2021
1 parent 6e75717 commit df7302b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/waves/view/SineWaveGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class SineWaveGenerator extends SoundGenerator {
} );

// wire up volume to amplitude
amplitudeProperty.link( amplitude => this.setOutputLevel( mapAmplitudeToOutputLevel( amplitude ) ) );
amplitudeProperty.link( amplitude => this.setOutputLevel( mapAmplitudeToOutputLevel.evaluate( amplitude ) ) );
}
}

Expand Down

0 comments on commit df7302b

Please sign in to comment.