Skip to content

Instantly share code, notes, and snippets.

@fluxtah
Created February 3, 2020 19:15
Show Gist options
  • Save fluxtah/0e91e92335c7842d00b01b1c81d99955 to your computer and use it in GitHub Desktop.
Save fluxtah/0e91e92335c7842d00b01b1c81d99955 to your computer and use it in GitHub Desktop.
@Composable
fun PianoRoll(from: PianoKey, to: PianoKey) {
val startsAtF = from.note >= F
Row {
for (octave in from.octave..to.octave) {
PianoRollOctave(startsAtF, true, octave)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment