diff --git a/common/src/main/kotlin/quaedam/projection/music/Composer.kt b/common/src/main/kotlin/quaedam/projection/music/Composer.kt index 5432a2f..4977cbe 100644 --- a/common/src/main/kotlin/quaedam/projection/music/Composer.kt +++ b/common/src/main/kotlin/quaedam/projection/music/Composer.kt @@ -25,8 +25,8 @@ class Composer(val noteRandom: Random, val rhythmRandom: Random, val instrument: fun composeMusic(): List { var note = (0..rhythmRandom.nextInt(4)).flatMap { composeSection() } note = decorate(note) - if (mayDropOut && rhythmRandom.nextInt(3) != 0) { - val dropRate = rhythmRandom.nextInt(2..4) + if (mayDropOut && rhythmRandom.nextInt(6) != 0) { + val dropRate = arrayOf(2, 3, 3, 4, 4, 4, 4, 6).random(rhythmRandom) note = note.chunked(dropRate).map { val first = it.first() Note(first.note, first.volume, it.sumOf { note -> note.time })