Skip to content

Commit

Permalink
replaced depracated println method with console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
endurance21 committed Apr 21, 2020
1 parent bdab327 commit e0146c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/peakDetect/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function setup() {

src_length = source_file.duration();
source_file.playMode('restart');
println("source duration: " +src_length);
console.log("source duration: " +src_length);

// draw the waveform to an off-screen graphic
var peaks = source_file.getPeaks(); // get an array of peaks
Expand Down
2 changes: 1 addition & 1 deletion examples/peakDetection_offline/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function setup() {

src_length = source_file.duration();
source_file.playMode('restart');
println("source duration: " +src_length);
console.log("source duration: " + src_length);

// find beat preprocessing the source file with lowpass
var beats = source_file.processPeaks(onComplete);
Expand Down

0 comments on commit e0146c7

Please sign in to comment.