diff --git a/juicy-noise-android/app/src/main/java/com/danand/juicynoise/signalprocessors/SignalProcessorSensors.kt b/juicy-noise-android/app/src/main/java/com/danand/juicynoise/signalprocessors/SignalProcessorSensors.kt index 00857be..60fccb1 100644 --- a/juicy-noise-android/app/src/main/java/com/danand/juicynoise/signalprocessors/SignalProcessorSensors.kt +++ b/juicy-noise-android/app/src/main/java/com/danand/juicynoise/signalprocessors/SignalProcessorSensors.kt @@ -133,8 +133,14 @@ class SignalProcessorSensors( this.frequenciesMax[index] = weightedChoice(frequencyMaxToWeights) } + var rhythmSeedA = settingsState.rhythmSeedA.value + + if (rhythmSeedA < 2) { + rhythmSeedA = 2 + } + if (angularSpeedMagnitude > settingsState.sensitivityC.value) { - weirdEffectDivider = Random.nextInt(1, settingsState.rhythmSeedA.value) + weirdEffectDivider = Random.nextInt(1, rhythmSeedA) } val sensorGetterMinValue = this.sensorGetterMinValues[this.mapping[index]]