Skip to content

Commit

Permalink
fixed some copy-and-paste errors with button names
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Apr 7, 2022
1 parent fb557c1 commit 68e92d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/demo/testing/view/SoundClipChordTestNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,23 @@ class SoundClipChordTestNode extends VBox {
soundManager.addSoundGenerator( arpeggioSoundClipChord );

// add a button to play a basic-mode sound
const playBasicSoundButton = new TextPushButton( 'Play Chord', {
const playChordButton = new TextPushButton( 'Play Chord', {
baseColor: '#aad6cc',
font: new PhetFont( 16 ),
soundPlayer: SoundPlayer.NO_SOUND, // turn off default sound generation
listener: () => { chordSoundClipChord.play(); }
} );

// add button to play enhanced-mode sound
const playEnhancedSoundButton = new TextPushButton( 'Play Arpeggiated Chord', {
const playArpeggioButton = new TextPushButton( 'Play Arpeggiated Chord', {
baseColor: '#DBB1CD',
font: new PhetFont( 16 ),
soundPlayer: SoundPlayer.NO_SOUND, // turn off default sound generation
listener: () => { arpeggioSoundClipChord.play(); }
} );

super( optionize<SoundClipChordTestNodeOptions, SelfOptions, VBoxOptions>( {
children: [ playBasicSoundButton, playEnhancedSoundButton ],
children: [ playChordButton, playArpeggioButton ],
spacing: 20
}, providedOptions ) );

Expand Down

0 comments on commit 68e92d6

Please sign in to comment.