piano_composition, added rests.
ClosedPublic

Authored by amankumargupta on May 22 2018, 7:49 PM.

Details

Reviewers
jjazeix
Group Reviewers
GCompris: Improvements
Maniphest Tasks
T8709: piano_composition, add rests.
Summary
  1. The rests of all type have been added: a. Whole b. Half c. Quarter d. Eighth
  2. The code has been refactored a bit to have notes and rests follow the same process of code execution.

Diff Detail

Repository
R2 GCompris
Lint
Lint Skipped
Unit
Unit Tests Skipped
amankumargupta created this revision.May 22 2018, 7:49 PM
Restricted Application added a project: KDE Edu. · View Herald TranscriptMay 22 2018, 7:49 PM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
jjazeix added inline comments.
src/activities/piano_composition/SwitchableOptions.qml
42

why 4 is hardcoded?

amankumargupta added inline comments.May 23 2018, 7:49 PM
src/activities/piano_composition/SwitchableOptions.qml
42

because we have 4 types of options: whole, half, quarter, eighth

amankumargupta added inline comments.May 24 2018, 6:57 AM
src/activities/piano_composition/SwitchableOptions.qml
42

Actually yes, you are right. I should not hardcode it.
We can have another set of options whose length is not 4 (I saw its need today for adding erase and replace features).
I'll give the options array to this file and will do here % options.length. Cause for now, it'll cause conflict in applying the diff and the task I've almost finished. So, I'll update it in the next diff.

jjazeix accepted this revision.May 24 2018, 8:48 AM
This revision is now accepted and ready to land.May 24 2018, 8:48 AM