client/pianoroll/app/js/main.js
changeset 85 eff9460bd4f2
parent 84 d7c5bffdd2d8
child 93 79ae42ad97d4
equal deleted inserted replaced
84:d7c5bffdd2d8 85:eff9460bd4f2
    49 
    49 
    50 var PianoRoll = require('./pianoroll.js')
    50 var PianoRoll = require('./pianoroll.js')
    51 
    51 
    52 // Init containers
    52 // Init containers
    53 var containerList = [];
    53 var containerList = [];
    54 containerList.push(new PianoRoll(uberContainer, 0, 0, prHeight1, true, pixelsPerSecond1, sceneWidth, noteColors, colorsReg, lineColor, lineInterval));
    54 containerList.push(new PianoRoll(uberContainer, 0, 0, prHeight1, true, pixelsPerSecond1, sceneWidth, noteColors, colorsReg, lineColor, lineInterval, offsetMusic, prHeight1 / 128));
    55 containerList.push(new PianoRoll(uberContainer, 0, prHeight1, prHeight2, false, pixelsPerSecond2, sceneWidth, noteColors, colorsReg, lineColor, lineInterval));
    55 containerList.push(new PianoRoll(uberContainer, 0, prHeight1, prHeight2, false, pixelsPerSecond2, sceneWidth, noteColors, colorsReg, lineColor, lineInterval, offsetMusic, prHeight2 / 128));
    56 
    56 
    57 // Line between two containers
    57 // Line between two containers
    58 var graphics = new PIXI.Graphics();
    58 var graphics = new PIXI.Graphics();
    59 graphics.beginFill(0xFFFF00);
    59 graphics.beginFill(0xFFFF00);
    60 graphics.lineStyle(1, lineColor);
    60 graphics.lineStyle(1, lineColor);