nodescore/score.js

52 lines
918 B
JavaScript
Raw Normal View History

exports.score = function(){
console.log("============================== this is the score!")
srcsqr = []
srcsqr[0] = [22,21,24,25,06,07];
srcsqr[1] = [20,23,27,26,05,04];
srcsqr[2] = [03,00,17,16,35,34];
srcsqr[3] = [01,02,19,18,33,32];
seqA = {
metrobeat:0,
voice:1,
name: "A",
counter: 0, mm: 60, beatsinbar: 4,
durations: srcsqr[0],
units: [1,2,3,1,2,4]
};
seqB = {
metrobeat:0,
voice:2,
name: "B",
counter: 0,
mm: 60, beatsinbar: 4,
durations: srcsqr[1],
units: [2,2,3,1,2,4]
};
seqC = {
metrobeat:0,
voice:3,
name: "C",
counter: 0,
mm: 60, beatsinbar: 4,
durations: [03,00,17,16,35,34],
units: [1,2,3,1,2,4]
};
seqD = {
metrobeat:0,
voice:4,
name: "D",
counter: 0,
mm: 60, beatsinbar: 4,
durations: [01,02,19,18,33,32],
units: [1,2,3,1,2,4]
};
//return seqA seqB seqC seqD
}