Changeset View
Changeset View
Standalone View
Standalone View
src/activities/piano_composition/MultipleStaff.qml
Context not available. | |||||
41 | 41 | | |||
---|---|---|---|---|---|
42 | property alias flickableStaves: flickableStaves | 42 | property alias flickableStaves: flickableStaves | ||
43 | 43 | | |||
44 | signal noteClicked(string noteName, string noteLength) | ||||
45 | | ||||
44 | Flickable { | 46 | Flickable { | ||
45 | id: flickableStaves | 47 | id: flickableStaves | ||
46 | flickableDirection: Flickable.VerticalFlick | 48 | flickableDirection: Flickable.VerticalFlick | ||
Context not available. | |||||
191 | staves.itemAt(currentPlayedStaff).initMetronome(); | 193 | staves.itemAt(currentPlayedStaff).initMetronome(); | ||
192 | } | 194 | } | ||
193 | musicTimer.interval = staves.itemAt(currentPlayedStaff).notes.get(currentNote).mDuration | 195 | musicTimer.interval = staves.itemAt(currentPlayedStaff).notes.get(currentNote).mDuration | ||
194 | staves.itemAt(currentPlayedStaff).notesRepeater.itemAt(currentNote).play() | 196 | staves.itemAt(currentPlayedStaff).notesRepeater.itemAt(currentNote).highlightNote() | ||
195 | currentNote ++ | 197 | currentNote ++ | ||
196 | if(currentNote > nbMaxNotesPerStaff) { | 198 | if(currentNote > nbMaxNotesPerStaff) { | ||
197 | currentNote = 0 | 199 | currentNote = 0 | ||
Context not available. |