diff --git a/app/src/main/java/com/lukas/music/song/chords/ChordProgression.kt b/app/src/main/java/com/lukas/music/song/chords/ChordProgression.kt index 86ebdf1..f1a5bb2 100644 --- a/app/src/main/java/com/lukas/music/song/chords/ChordProgression.kt +++ b/app/src/main/java/com/lukas/music/song/chords/ChordProgression.kt @@ -2,4 +2,14 @@ import com.lukas.music.util.MetaCycle -class ChordProgression : MetaCycle() \ No newline at end of file +class ChordProgression : MetaCycle() { + override fun add(element: Phrase): Boolean { + if (size == 0) { + for (callback in stepCallback) { + // first step + callback() + } + } + return super.add(element) + } +} \ No newline at end of file