Changeset View
Changeset View
Standalone View
Standalone View
src/activities/piano_composition/piano_composition.js
Context not available. | |||||
90 | items.bar.level = currentLevel + 1 | 90 | items.bar.level = currentLevel + 1 | ||
---|---|---|---|---|---|
91 | items.piano.currentOctaveNb = items.piano.defaultOctaveNb | 91 | items.piano.currentOctaveNb = items.piano.defaultOctaveNb | ||
92 | items.multipleStaff.nbStaves = 2 | 92 | items.multipleStaff.nbStaves = 2 | ||
93 | items.background.staffMode = "add" | ||||
94 | items.multipleStaff.noteToReplace = [-1, -1] | ||||
95 | items.staffModesOptions.currentIndex = 0 | ||||
93 | } | 96 | } | ||
94 | 97 | | |||
95 | function getNoteDetails(noteName, noteType) { | 98 | function getNoteDetails(noteName, noteType) { | ||
Context not available. | |||||
112 | if(numberOfLevel <= ++currentLevel) { | 115 | if(numberOfLevel <= ++currentLevel) { | ||
113 | currentLevel = 0 | 116 | currentLevel = 0 | ||
114 | } | 117 | } | ||
115 | initLevel(); | 118 | initLevel() | ||
116 | } | 119 | } | ||
117 | 120 | | |||
118 | function previousLevel() { | 121 | function previousLevel() { | ||
Context not available. | |||||
120 | if(--currentLevel < 0) { | 123 | if(--currentLevel < 0) { | ||
121 | currentLevel = numberOfLevel - 1 | 124 | currentLevel = numberOfLevel - 1 | ||
122 | } | 125 | } | ||
123 | initLevel(); | 126 | initLevel() | ||
124 | } | 127 | } | ||
Context not available. |