MaybeRate

sealed abstract
class MaybeRate extends Product

This trait denotes an optional server calculation rate. Either the rate is explicit, Rate, or it is undefined, UndefinedRate. In the latter case, a rate is implicitly derived from the input arguments of a UGen.

Companion
object
trait Product
trait Equals
class Object
trait Matchable
class Any
class Rate
class Bus
object audio
object control
object demand
object scalar

Value members

Abstract methods

def getOrElse(r: => Rate): Rate

A getOrElse operator that returns a defined rate, and if this object is UndefinedRate will evaluate the method argument.

A getOrElse operator that returns a defined rate, and if this object is UndefinedRate will evaluate the method argument.

def id: Int

The identifier of a MaybeRate is either -1 (undefined) or the identifier of a defined rate (>= 0).

The identifier of a MaybeRate is either -1 (undefined) or the identifier of a defined rate (>= 0).

def toOption: Option[Rate]

Lifts this optional rate into an Option[Rate]. An UndefinedRate becomes None, a define Rate becomes Some.

Lifts this optional rate into an Option[Rate]. An UndefinedRate becomes None, a define Rate becomes Some.

Concrete methods

final
def name: String

Inherited methods

def canEqual(that: Any): Boolean
Inherited from
Equals
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