Changeset View
Changeset View
Standalone View
Standalone View
src/activities/piano_composition/piano_composition.js
Context not available. | |||||
92 | items.multipleStaff.nbStaves = 2 | 92 | items.multipleStaff.nbStaves = 2 | ||
---|---|---|---|---|---|
93 | } | 93 | } | ||
94 | 94 | | |||
95 | function getNoteDetails(noteName) { | 95 | function getNoteDetails(noteName, noteType) { | ||
96 | var clef = items.background.clefType === 'treble' ? "Treble" : "Bass" | 96 | var clef = items.background.clefType === 'treble' ? "Treble" : "Bass" | ||
97 | var noteNotation = clef + noteName | 97 | var noteNotation | ||
98 | if(noteType === "Rest") | ||||
99 | noteNotation = noteName + noteType | ||||
100 | else | ||||
101 | noteNotation = clef + noteName | ||||
98 | console.log(noteNotation) | 102 | console.log(noteNotation) | ||
99 | for(var i = 0; i < notesDetails.length; i++) { | 103 | for(var i = 0; i < notesDetails.length; i++) { | ||
100 | if(noteNotation === notesDetails[i].noteName) { | 104 | if(noteNotation === notesDetails[i].noteName) { | ||
Context not available. |