Changeset 37247
- Timestamp:
- 2023-02-01T23:06:48+13:00 (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/mars-src/trunk/src/wavesurfer-renderer/drawer.spectrummulticanvas.js
r35212 r37247 302 302 //console.log("**** createAVProgressTimelineData"); 303 303 var canvas_width = this.canvases[0].wave.width; 304 //console.log("**** canvas width = " + canvas_width); 304 console.log("**** canvas width = " + canvas_width); 305 console.log("**** width = " + this.width); 306 307 if (canvas_width != 1045) { 308 console.log("!!!! overriding canvas width to be: 1045"); 309 canvas_width = 1045; 310 } 305 311 306 312 //console.log(" arousal_val = " + JSON.stringify(arousal_vals)); … … 332 338 } 333 339 const total_duration = t; 334 //console.log("*** n = " + n);335 //console.log("*** total duration = " + total_duration);340 console.log("*** n = " + n); 341 console.log("*** total duration = " + total_duration); 336 342 337 343 this.timeline_steps[n] = total_duration; … … 371 377 372 378 var local_ts = 0; 373 //console.log("*** start_ts = " + start_ts + ", end_ts = " + end_ts + " (ts_diff = " + ts_diff +")");374 //console.log("*** start_arousal = " + start_arousal + ", end_arousal = " + end_arousal);375 //console.log("*** norm_start_arousal = " + norm_start_arousal + ", norm_end_arousal = " + norm_end_arousal);379 console.log("*** start_ts = " + start_ts + ", end_ts = " + end_ts + " (ts_diff = " + ts_diff +")"); 380 console.log("*** start_arousal = " + start_arousal + ", end_arousal = " + end_arousal); 381 console.log("*** norm_start_arousal = " + norm_start_arousal + ", norm_end_arousal = " + norm_end_arousal); 376 382 377 383 for (var ts=start_ts; ts<end_ts; ts++) { … … 392 398 } 393 399 400 console.log(this.arousal_progress_timeline); 394 401 //console.log(this); 395 402 console.log("Generated interpolated AV progress timeline"); … … 699 706 } 700 707 708 var pixel_ratio = this.params.pixelRatio 701 709 var floor_position = Math.floor(position); 702 710 //var scaled_floor_position = Math.floor(position * pixel_ratio); 711 console.log("position = " + position); 712 //console.log("scaled_floor_position = " + scaled_floor_position); 713 714 var canvas_width = this.canvases[0].wave.width; 715 console.log("updateProgress(): canvas_width = " + canvas_width + " (not currently used in this fn)"); 716 703 717 if (this.params.renderWave == 1) { 704 718 super.updateProgress(position); … … 706 720 else { 707 721 708 var canvas_width = this.canvases[0].wave.width; 722 //var scaled_canvas_width = canvas_width * pixel_ratio; 723 709 724 // **** 710 725 //console.log("position = " + position + "/" + canvas_width); … … 743 758 var valence_val = this.valence_progress_timeline[floor_position]; 744 759 745 //console.log("*** arousal_val [" + floor_position + "]" + " = " + arousal_val);760 console.log("*** arousal_val [" + floor_position + "]" + " = " + arousal_val); 746 761 747 762 var arousal_val_3dp = Math.round(arousal_val*1000)/1000;
Note:
See TracChangeset
for help on using the changeset viewer.