-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnotationStruct.js
More file actions
40 lines (34 loc) · 784 Bytes
/
Copy pathnotationStruct.js
File metadata and controls
40 lines (34 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
function Note (strNote, start, duration) {
this.note = theName; // note
this.octave = 2; // number
this.start = start; // ?
this.duration = suration; //?
}
Note.prototype = {
constructor: Note,
processNoteFromString:function (noteToAdd) {
this.note = theName; // note
this.octave = 2;
}
}
function Chord (strChord, notes) {
this.chord = theName; // note
this.variation = 2; // number
this.notes = notes;
}
Chord.prototype = {
constructor: Chord,
addNotes:function (noteToAdd) {
this.notes.push(noteToAdd);
}
validate:function () {
return true;
}
}
function Instrument (name) {
this.name = name;
}
Instrument.prototype = {
constructor: Instrument
}
// Variation of the intrument