feat: adjust rhythm random to change per-second
This commit is contained in:
parent
726a0337c5
commit
bdccd0c7f3
@ -33,7 +33,7 @@ class MusicPlayer(val seed: Long, val level: Level, val pos: BlockPos, val start
|
||||
|
||||
var notes = Composer(
|
||||
noteRandom = Random(seed),
|
||||
rhythmRandom = Random(startedAt / 20 * 15),
|
||||
rhythmRandom = Random(startedAt / 20),
|
||||
instrument = level.getBlockState(pos).getValue(BlockStateProperties.NOTEBLOCK_INSTRUMENT)
|
||||
).composeMusic().toMutableList()
|
||||
val totalTime = notes.sumOf { it.time }.toLong()
|
||||
|
Loading…
Reference in New Issue
Block a user