client/annotviz/app/js/doubleroll.js
changeset 105 25ac8802c189
parent 104 685c5ebc59d0
child 131 0bb70072a56f
equal deleted inserted replaced
104:685c5ebc59d0 105:25ac8802c189
    96         lineColor: this.lineColor,
    96         lineColor: this.lineColor,
    97         lineInterval: lineInterval,
    97         lineInterval: lineInterval,
    98         offsetMusic: offsetMusic,
    98         offsetMusic: offsetMusic,
    99     };
    99     };
   100 
   100 
   101     var yInit = 0;
   101     var yInit = opts.yInit || 0;
   102     var linesDown = true;
   102     var linesDown = true;
   103     _(opts.pianorolls).forEach(function(prDef, i) {
   103     _(opts.pianorolls).forEach(function(prDef, i) {
   104         var prNoteHeight = noteHeight || prDef.noteHeight || prDef.height / 128;
   104         var prNoteHeight = noteHeight || prDef.noteHeight || prDef.height / 128;
   105         var prTimeWidth = prDef.timeWidth || timeWidth;
   105         var prTimeWidth = prDef.timeWidth || timeWidth;
   106         pianorollList.push(new PianoRoll(_({
   106         pianorollList.push(new PianoRoll(_({