commit 89

This commit is contained in:
Moritz Ruth 2025-03-22 09:51:56 +01:00
parent 8cc23a45f7
commit 62279615e0
Signed by: moritzruth
GPG key ID: C9BBAB79405EE56D
2 changed files with 14 additions and 13 deletions

View file

@ -14,16 +14,19 @@ import kotlin.time.Duration.Companion.seconds
fun ShowBuilderContext.act1() = act("1. Akt") { fun ShowBuilderContext.act1() = act("1. Akt") {
scene("Ouvertüre [4]") { scene("Ouvertüre [4]") {
lightStep(StepCue.Custom("10")) { FrontLights.all { it.brightness.static(10.percent) } } lightStep(StepCue.Custom("On")) {
lightStep(StepCue.Custom("20")) { FrontLights.all { it.brightness.static(20.percent) } } Washs.both {
lightStep(StepCue.Custom("30")) { FrontLights.all { it.brightness.static(30.percent) } } it.pointAtCeiling()
lightStep(StepCue.Custom("40")) { FrontLights.all { it.brightness.static(40.percent) } } it.brightness.static(100.percent)
lightStep(StepCue.Custom("50")) { FrontLights.all { it.brightness.static(50.percent) } } it.beamAngle.static(100.percent)
lightStep(StepCue.Custom("60")) { FrontLights.all { it.brightness.static(60.percent) } } }
lightStep(StepCue.Custom("70")) { FrontLights.all { it.brightness.static(70.percent) } } }
lightStep(StepCue.Custom("80")) { FrontLights.all { it.brightness.static(80.percent) } }
lightStep(StepCue.Custom("90")) { FrontLights.all { it.brightness.static(90.percent) } } lightStep(StepCue.Custom("Off")) {
lightStep(StepCue.Custom("100")) { FrontLights.all { it.brightness.static(100.percent) } } Washs.both {
it.beamAngle.static(0.percent)
}
}
step(StepCue.MusicStart("Ouvertüre", 1.minutes)) { step(StepCue.MusicStart("Ouvertüre", 1.minutes)) {
curtainState = CurtainState.CLOSED curtainState = CurtainState.CLOSED

View file

@ -93,9 +93,7 @@ class CoemarProWash(override val firstChannel: DmxAddress, private val invertAng
writer.writeRaw(DmxValue(0u)) // dimmer and color speed = maximum writer.writeRaw(DmxValue(0u)) // dimmer and color speed = maximum
writer.writeRaw(DmxValue(0u)) // colour macro = off writer.writeRaw(DmxValue(0u)) // colour macro = off
// TODO: Fix writer.writeRaw(DmxValue((beamAngle.getCurrentValue().ofRange(125.0..179.0)).roundToInt().toUByte()))
// writer.writeRaw(DmxValue((beamAngle.getCurrentValue().value * 54 + 125).roundToInt().toUByte()))
writer.writeRaw(DmxValue(0u))
writer.writeRaw(DmxValue(0u)) // no function writer.writeRaw(DmxValue(0u)) // no function
writer.writeRaw(DmxValue(strobeSpeed.getCurrentValue().ofRange(63.0..95.0).roundToInt().toUByte())) writer.writeRaw(DmxValue(strobeSpeed.getCurrentValue().ofRange(63.0..95.0).roundToInt().toUByte()))