In

trait In extends Control
Companion
object
trait Control
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any

Type members

Types

type Repr[T <: Txn[T]] <: Repr[T]

Value members

Abstract methods

def cc(chan: CaseDef[Int], num: CaseDef[Int], value: CaseDef[Int]): Trig

Receives controller change messages.

Receives controller change messages.

All three parameters are CaseDef instances, so you could for example filter messages only coming from channel 2 by using chan = Quote(2), or you could receive all channels and find the channel in a variable via chan = Var(0).

Note that if you only want to use value, you will still have to patch the trigger into an Act.Nop() to make sure the events are fired.

Value Params
chan

the MIDI channel

num

the CC number

value

7-bit value (0 to 127)

def cc14(chan: CaseDef[Int], numHi: CaseDef[Int], numLo: CaseDef[Int], value: Var[Int]): Trig

Receives 14-bit controller change messages with MSB, LSB technique. The device is assumed to send two CC messages, first for the MSB part of the value, second for the LSB part. They are internally combined to create the 14-bit value observed by the user.

Receives 14-bit controller change messages with MSB, LSB technique. The device is assumed to send two CC messages, first for the MSB part of the value, second for the LSB part. They are internally combined to create the 14-bit value observed by the user.

Note that if you only want to use value, you will still have to patch the trigger into an Act.Nop() to make sure the events are fired.

Value Params
chan

the MIDI channel

numHi

the CC number for the MSB part

numLo

the CC number for the LSB part

value

14-bit value (0 to 16383)

def device: Ex[Device]
def noteOff(chan: CaseDef[Int], num: CaseDef[Int], velocity: CaseDef[Int]): Trig
def noteOn(chan: CaseDef[Int], num: CaseDef[Int], velocity: CaseDef[Int]): Trig
def received: Trig

Inherited methods

def canEqual(that: Any): Boolean
Inherited from
Equals
final
def expand[T <: Txn[LazyRef(...)]](implicit ctx: Context[T], tx: T): Repr[T]
Inherited from
Lazy
protected
def mkRepr[T <: Txn[LazyRef(...)]](implicit ctx: Context[T], tx: T): Repr[T]
Inherited from
Lazy
def productArity: Int
Inherited from
Product
def productElement(n: Int): Any
Inherited from
Product
def productElementName(n: Int): String
Inherited from
Product
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def productPrefix: String
Inherited from
Product
final
def token: AnyRef
Inherited from
Control

Inherited fields

@transient
final protected
val ref: Object
Inherited from
Lazy