Changeset 37247


Ignore:
Timestamp:
2023-02-01T23:06:48+13:00 (15 months ago)
Author:
davidb
Message:

Debug and hard-wired fixes added in for demo to Roger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/mars-src/trunk/src/wavesurfer-renderer/drawer.spectrummulticanvas.js

    r35212 r37247  
    302302    //console.log("**** createAVProgressTimelineData");
    303303    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    }
    305311
    306312    //console.log("     arousal_val = " + JSON.stringify(arousal_vals));
     
    332338    }
    333339    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);
    336342   
    337343    this.timeline_steps[n] = total_duration;
     
    371377
    372378        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);
    376382       
    377383        for (var ts=start_ts; ts<end_ts; ts++) {
     
    392398    }
    393399
     400    console.log(this.arousal_progress_timeline);
    394401    //console.log(this);
    395402    console.log("Generated interpolated AV progress timeline");
     
    699706    }
    700707   
     708    var pixel_ratio = this.params.pixelRatio
    701709    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   
    703717    if (this.params.renderWave == 1) {
    704718        super.updateProgress(position);
     
    706720    else {
    707721       
    708         var canvas_width = this.canvases[0].wave.width;
     722        //var scaled_canvas_width = canvas_width * pixel_ratio;
     723       
    709724        // ****
    710725        //console.log("position = " + position + "/" + canvas_width);
     
    743758    var valence_val = this.valence_progress_timeline[floor_position];
    744759
    745     //console.log("*** arousal_val [" + floor_position + "]" + " = " + arousal_val);
     760    console.log("*** arousal_val [" + floor_position + "]" + " = " + arousal_val);
    746761
    747762    var arousal_val_3dp = Math.round(arousal_val*1000)/1000;
Note: See TracChangeset for help on using the changeset viewer.