feat: adjust composer parameters

This commit is contained in:
xtex 2023-07-30 10:05:05 +08:00
parent 1d2d9ce4d8
commit 336cab7de4
Signed by: xtex
GPG Key ID: B918086ED8045B91

View File

@ -12,7 +12,7 @@ class Composer(val noteRandom: Random, val rhythmRandom: Random) {
data class Note(val note: Int, val volume: Float, val time: Int) data class Note(val note: Int, val volume: Float, val time: Int)
val baseTime = arrayOf(5, 5, 3, 3, 4, 4, 2, 2, 10).random(rhythmRandom) val baseTime = arrayOf(5, 5, 3, 3, 4, 4, 2, 2, 8).random(rhythmRandom)
val baseNote = noteRandom.nextInt(5..19) val baseNote = noteRandom.nextInt(5..19)
fun composeMusic() = decorate( fun composeMusic() = decorate(