All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.sciss.synth.ugen.KeyboardUGens.scala Maven / Gradle / Ivy

/*
 * KeyboardUGens.scala
 * (ScalaCollider-UGens)
 *
 * This is a synthetically generated file.
 * ScalaCollider-UGens version: 1.0.1
 */

package de.sciss.synth
package ugen
import collection.immutable.{IndexedSeq => IIdxSeq}

object KeyState {
   def kr(keyCode: GE, lo: GE = 0.0f, hi: GE = 1.0f, lag: GE = 0.2f) = apply(keyCode, lo, hi, lag)
}

final case class KeyState(keyCode: GE, lo: GE, hi: GE, lag: GE) extends UGenSource.SingleOut("KeyState") with ControlRated {
   protected def makeUGens: UGenInLike = unwrap(IIdxSeq(keyCode.expand, lo.expand, hi.expand, lag.expand))
   
   protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, control, _args)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy