package graph
- Alphabetic
- Public
- Protected
Type Members
- trait Act extends Flow
- final case class Artifact(key: String, default: Ex[URI] = new URI(null, null, null)) extends WithDefault[URI] with ProductWithAdjuncts with Product with Serializable
- final case class ArtifactLocation(key: String, default: Ex[URI] = new URI(null, null, null)) extends WithDefault[URI] with ProductWithAdjuncts with Product with Serializable
- final case class Attr[A](key: String)(implicit bridge: Bridge[A]) extends Ex[Option[A]] with Like[A] with ProductWithAdjuncts with Product with Serializable
- trait AudioFileSpecPlatform extends AnyRef
- trait AuralSystem extends Runner
- final case class BinaryOp[A1, A2, A3, A](op: Op[A1, A2, A], a: Ex[A1], b: Ex[A2]) extends Ex[A] with Product with Serializable
- trait Bounce extends Runner
- trait BouncePlatform extends AnyRef
- trait Calendar extends AnyRef
- sealed trait CaseDef[A] extends Ex[A] with ProductWithAdjuncts
- final case class Changed[A](in: Ex[A]) extends Trig with Product with Serializable
- final case class Const[A](value: A) extends Ex[A] with Product with Serializable
- trait Control extends Lazy
- final case class DebugAct(body: () => Unit) extends Act with Product with Serializable
A debugging graph element wrapping an action function.
A debugging graph element wrapping an action function. Warning: Cannot be serialized.
- body
the code to execute when the action is triggered. Note that this will be executed outside of the transactional context.
- trait Delay extends Control with Act with Trig
Delays a trigger by a given amount of time.
Delays a trigger by a given amount of time. If a new trigger input arrives before the delay has expired, the previous trigger is cancelled and the delay is rescheduled.
- trait Edit extends AnyRef
- final case class Else[A](pred: Then[A], default: Ex[A]) extends Ex[A] with Product with Serializable
- final case class ElseAct(pred: ThenAct, default: Act) extends Act with Product with Serializable
- final case class ElseIf[+A](pred: Then[A], cond: Ex[Boolean]) extends Product with Serializable
- final case class ElseIfAct(pred: ThenAct, cond: Ex[Boolean]) extends Product with Serializable
- final case class ElseIfThen[+A](pred: Then[A], cond: Ex[Boolean], result: Ex[A]) extends Then[A] with Product with Serializable
- final case class ElseIfThenAct(pred: ThenAct, cond: Ex[Boolean], result: Act) extends ThenAct with Product with Serializable
- trait Ex[+A] extends Flow
- trait FilePlatform extends AnyRef
- trait Flow extends Lazy
An element that participates in data-flow, such as an expression
Ex
, an actionAct
, or a triggerTrig
. - trait Folder extends Obj
The representation of a folder within an expression program.
The representation of a folder within an expression program. It allows to refer to existing folders through
"key".attr[Folder]
or to create a prototypeFolder()
which has amake
action.Note: passing a folder with
runWith
is not yet implemented. - trait Grapheme extends Obj
- final case class If(cond: Ex[Boolean]) extends Product with Serializable
Beginning of a conditional block.
- final case class IfThen[+A](cond: Ex[Boolean], result: Ex[A]) extends Then[A] with Product with Serializable
- final case class IfThenAct(cond: Ex[Boolean], result: Act) extends ThenAct with Product with Serializable
- final case class It[A](token: Int) extends Ex[A] with Product with Serializable
A glue element to make
map
andflatMap
work. - final case class Latch[A](in: Ex[A], trig: Trig) extends Ex[A] with Product with Serializable
Latches the expression based on the trigger argument.
Latches the expression based on the trigger argument. The initial state of the returned expression corresponds to the initial state of the input expression. Subsequent values are updated and cached only when a trigger occurs.
- trait Lazy extends Product
- final case class LoadBang() extends Control with Trig with Product with Serializable
- trait MidiBase extends AnyRef
- trait MidiPlatform extends MidiBase
- trait Obj extends AnyRef
- final case class OscMessage(name: String, args: Any*) extends OscPacket with Product with Serializable
A simplified interface to OSC packets
- sealed trait OscNode extends Control
- sealed trait OscPacket extends AnyRef
- trait OscTcpClient extends OscNode
- trait OscTcpServer extends OscNode
- trait OscUdpNode extends OscNode
- trait OscUdpNodePlatform extends AnyRef
- trait Pattern extends Obj
- final case class PrintLn(text: Ex[String]) extends Act with Product with Serializable
- trait Proc extends Obj
- final case class QuaternaryOp[A1, A2, A3, A4, A](op: Op[A1, A2, A3, A4, A], a: Ex[A1], b: Ex[A2], c: Ex[A3], d: Ex[A4]) extends Ex[A] with Product with Serializable
- final case class QuinaryOp[A1, A2, A3, A4, A5, A](op: Op[A1, A2, A3, A4, A5, A], a: Ex[A1], b: Ex[A2], c: Ex[A3], d: Ex[A4], e: Ex[A5]) extends Ex[A] with Product with Serializable
- final case class Quote[A](in: Ex[A])(implicit fromAny: FromAny[A]) extends CaseDef[A] with Product with Serializable
- trait Random extends Control
A random number generator that can be used for operations such as
.until
and.range
.A random number generator that can be used for operations such as
.until
and.range
.Example:
val gen = Random() val r100 = gen.until(100) Act( r100, // draw new number between 0 and 99 PrintLn("Random number: " ++ r100.toStr) // print current value )
- trait Runner extends Control
- final case class SocketAddress extends Product with Serializable
- trait SocketAddressPlatform extends AnyRef
- trait Stream extends Obj
- final case class StringFormat(in: Ex[String], args: Seq[Ex[Any]]) extends Ex[String] with Product with Serializable
Applies 'printf' style formatting.
Applies 'printf' style formatting.
The template string may contain fixed text and one or more embedded format specifiers. Consider the following example:
val n = "name".attr[String]("?") val tmp = "Duke's name: %1$s!" PrintLn(tmp.format(n))
The template contains one format specifier
"%1$s"
which indicates how the argument should be processed and where it should be inserted in the text. The remaining portions of the template string are fixed text including"Duke's name: "
and"!"
.The argument list consists of all arguments passed to the formatter. In the above example, the argument list is of size one and consists of the string expression object
n
.- The format specifiers for general, character, and numeric types have the following syntax:
%[argument_index$][flags][width][.precision]conversion
The optional argument_index is a decimal integer indicating the position of the argument in the argument list. The first argument is referenced by
"1$"
, the second by"2$"
, etc.The optional flags is a set of characters that modify the output format. The set of valid flags depends on the conversion.
The optional width is a positive decimal integer indicating the minimum number of characters to be written to the output.
The optional precision is a non-negative decimal integer usually used to restrict the number of characters. The specific behavior depends on the conversion.
The required conversion is a character indicating how the argument should be formatted. The set of valid conversions for a given argument depends on the argument's data type.
- The format specifiers which do not correspond to arguments have the following syntax:
%[flags][width]conversion
The optional flags and width is defined as above.
The required conversion is a character indicating content to be inserted in the output.
Conversions
Conversions are divided into the following categories:
- General - may be applied to any argument type
- Numeric
- Integral - may be applied to integral types such as:
Int
andLong
. - Floating Point - may be applied to the floating-point type
Double
. - Percent - produces a literal
'%'
- Line Separator - produces the platform-specific line separator
The following table summarizes the supported conversions. Conversions denoted by an upper-case character (i.e.
'B'
,'H'
,'S'
,'C'
,'X'
,'E'
,'G'
,'A'
, and'T'
) are the same as those for the corresponding lower-case conversion characters except that the result is converted to upper case.Conversion Argument Category Description `'b'`, `'B'` general If arg is a `Boolean`, then the result is `"true"` or `"false"`. Otherwise, the result is "true". `'s'`, `'S'` general The result is the string representation of the argument. `'d'` integral The result is formatted as a decimal integer `'o'` integral The result is formatted as an octal integer `'x'`, `'X'` integral The result is formatted as a hexadecimal integer `'e'`, `'E'` floating point The result is formatted as a decimal number in computerized scientific notation `'f'` floating point The result is formatted as a decimal number `'g'`, `'G'` floating point The result is formatted using computerized scientific notation or decimal format, depending on the precision and the value after rounding. `'a'`, `'A'` floating point The result is formatted as a hexadecimal floating-point number with a significand and an exponent. `'%'` percent The result is a literal `'%'` ('\u0025') `'n'` line separator The result is the platform-specific line separator Flag General Character Integral Floating Point Date/Time Description '-' y y y y y The result will be left-justified. '#' y1 - y3 y - The result should use a conversion-dependent alternate form '+' - - y4 y - The result will always include a sign ' ' - - y4 y - The result will include a leading space for positive values '0' - - y y - The result will be zero-padded ',' - - y2 y5 - The result will include locale-specific grouping separators '(' - - y4 y5 - The result will enclose negative numbers in parentheses - in
the template
- args
the arguments to apply to the template
- trait SysPlatform extends AnyRef
- final case class TBinaryOp[A](op: Op[A], a: Trig, b: Ex[A]) extends Trig with Product with Serializable
- final case class TTBinaryOp(op: Op, a: Trig, b: Trig) extends Trig with Product with Serializable
- final case class TernaryOp[A1, A2, A3, A](op: Op[A1, A2, A3, A], a: Ex[A1], b: Ex[A2], c: Ex[A3]) extends Ex[A] with Product with Serializable
- sealed trait Then[+A] extends Product
- sealed trait ThenAct extends Act
- trait ThisRunner extends Control
- final case class TimeStamp() extends Ex[Long] with Product with Serializable
- final case class Timed[+A] extends Product with Serializable
- trait Timeline extends Obj
- final case class ToTrig(in: Ex[Boolean]) extends Trig with Product with Serializable
- trait Trig extends Flow
A trigger element.
A trigger element.
Important: Implementation inadvertently run into trouble if they do not extend
Trig.Lazy
to avoid "splitting" of the event paths. The only reason this is not enforced is that implementation may already mixin lazy traits such asControl
(and by extension,Widget
). - final case class UnaryOp[A1, A](op: Op[A1, A], a: Ex[A1]) extends Ex[A] with Product with Serializable
- trait Var[A] extends Ex[A] with CaseDef[A] with graph.Ex.Sink[A] with ProductWithAdjuncts
Deprecated Type Members
- case class OptionGet[A](in: Ex[Option[A]]) extends Ex[A] with Product with Serializable
- Annotations
- @deprecated
- Deprecated
(Since version 4.5.1) Use UnaryOp.OptionGet instead
Value Members
- object Act extends ProductReader[Act]
- object Artifact extends ProductReader[Artifact] with Serializable
- object ArtifactLocation extends ProductReader[ArtifactLocation] with Serializable
- object Attr extends ProductReader[Attr[_]] with Serializable
- object AudioCue extends ProductReader[Ex[proc.AudioCue]]
- object AudioFileSpec extends ProductReader[Ex[audiofile.AudioFileSpec]] with AudioFileSpecPlatform
- object AuralSystem extends ProductReader[AuralSystem]
- object BinaryOp extends ProductReader[BinaryOp[_, _, _, _]] with Serializable
- object Bounce extends BouncePlatform with ProductReader[Bounce]
- object Calendar extends ProductReader[Ex[Calendar]]
- object CaseDef
- object Changed extends ProductReader[Changed[_]] with Serializable
- object Color extends ProductReader[Ex[proc.ExImport.Color]]
- object Const extends Serializable
- object Control
- object Curve
- object Debug
- object DebugAct extends Serializable
- object Delay extends ProductReader[Delay]
- object Edit extends ProductReader[Ex[Edit]]
- object Else extends ProductReader[Else[_]] with Serializable
- object ElseAct extends ProductReader[ElseAct] with Serializable
- object ElseIfThen extends ProductReader[ElseIfThen[_]] with Serializable
- object ElseIfThenAct extends ProductReader[ElseIfThenAct] with Serializable
- object Ex
- object FadeSpec extends ProductReader[Ex[proc.FadeSpec]]
- object File extends FilePlatform
- object Folder extends ProductReader[Ex[Folder]]
- object GPIO
- object Grapheme extends ProductReader[Ex[Grapheme]]
- object IfThen extends ProductReader[IfThen[_]] with Serializable
A side effecting conditional block.
- object IfThenAct extends ProductReader[IfThenAct] with Serializable
A side effecting conditional block.
- object In
- object It extends ProductReader[It[_]] with Serializable
- object Latch extends ProductReader[Latch[_]] with Serializable
- object LoadBang extends ProductReader[LoadBang] with Serializable
- object Midi extends MidiPlatform
- object Obj
- object OptionGet extends ProductReader[OptionGet[_]] with Serializable
- object OscMessage extends ProductReader[Ex[OscMessage]] with Serializable
- object OscNode
- object OscTcpClient
- object OscTcpServer
- object OscUdpNode extends ProductReader[OscUdpNode] with OscUdpNodePlatform
- object ParamSpec extends ProductReader[Ex[proc.ExImport.ParamSpec]]
- object Pattern extends ProductReader[Ex[Pattern]]
- object PrintLn extends ProductReader[PrintLn] with Serializable
- object Proc extends ProductReader[Ex[Proc]]
- object QuaternaryOp extends ProductReader[QuaternaryOp[_, _, _, _, _]] with Serializable
- object QuinaryOp extends ProductReader[QuinaryOp[_, _, _, _, _, _]] with Serializable
- object Quote extends ProductReader[Quote[_]] with Serializable
- object RPi
- object Random extends ProductReader[Random]
- object Runner extends ProductReader[Runner]
- object SocketAddress extends ProductReader[Product] with SocketAddressPlatform with Serializable
- object Span extends ProductReader[Ex[span.Span]]
- object Stream extends ProductReader[Ex[Stream]]
- object StringFormat extends ProductReader[StringFormat] with Serializable
- object Sys extends SysPlatform
Access to operating system functions.
- object TBinaryOp extends ProductReader[TBinaryOp[_]] with Serializable
- object TTBinaryOp extends ProductReader[TTBinaryOp] with Serializable
- object TernaryOp extends ProductReader[TernaryOp[_, _, _, _]] with Serializable
- object ThenAct
- object ThisRunner extends ProductReader[ThisRunner]
- object TimeStamp extends ProductReader[TimeStamp] with Serializable
- object Timed extends Serializable
- object Timeline extends ProductReader[Ex[Timeline]]
- object ToTrig extends ProductReader[ToTrig] with Serializable
- object Trig extends ProductReader[Trig]
- object UnaryOp extends ProductReader[UnaryOp[_, _]] with Serializable
- object Var extends ProductReader[Var[_]]
- object Warp