@@ -234,15 +234,15 @@ function SampleWidget() {
234234 * @returns {void }
235235 */
236236 this . displayRecordingStartMessage = function ( ) {
237- this . activity . textMsg ( _ ( "Recording started... " ) ) ;
237+ this . activity . textMsg ( _ ( "Recording started" ) ) ;
238238 }
239239
240240 /**
241241 * Displays a message indicating that recording has stopped.
242242 * @returns {void }
243243 */
244244 this . displayRecordingStopMessage = function ( ) {
245- this . activity . textMsg ( _ ( "Recording complete... " ) ) ;
245+ this . activity . textMsg ( _ ( "Recording complete" ) ) ;
246246 }
247247
248248
@@ -467,8 +467,6 @@ function SampleWidget() {
467467 this . _recordBtn . getElementsByTagName ( 'img' ) [ 0 ] . src = "header-icons/record.svg" ;
468468 this . displayRecordingStartMessage ( ) ;
469469 this . activity . logo . synth . LiveWaveForm ( ) ;
470-
471- // Display Live Waveform
472470 } else {
473471 this . recordingURL = await this . activity . logo . synth . stopRecording ( ) ;
474472 this . is_recording = false ;
@@ -483,7 +481,6 @@ function SampleWidget() {
483481 this . sampleName = `Recorded Audio ${ this . recordingURL } ` ;
484482 this . _addSample ( ) ;
485483 this . activity . logo . synth . playRecording ( ) ;
486- // Display Recorded Waveform
487484 } ;
488485
489486 widgetWindow . sendToCenter ( ) ;
@@ -930,13 +927,13 @@ function SampleWidget() {
930927 //.TRANS: The reference tone is a sound used for comparison.
931928 canvasCtx . fillText ( _ ( "reference tone" ) , 10 , 10 ) ;
932929 canvasCtx . fillText ( oscText , 10 , canvas . height / 2 + 10 ) ;
933-
930+
934931 for ( let turtleIdx = 0 ; turtleIdx < 2 ; turtleIdx += 1 ) {
935932 let dataArray ;
936933 if ( this . is_recording ) {
937934 dataArray = turtleIdx === 0
938935 ? this . pitchAnalysers [ 0 ] . getValue ( )
939- : this . activity . logo . synth . getValues ( ) ;
936+ : this . activity . logo . synth . getWaveFormValues ( ) ;
940937 console . log ( dataArray ) ;
941938 } else {
942939 dataArray = this . pitchAnalysers [ turtleIdx ] . getValue ( ) ;
0 commit comments