GEOps1

final class GEOps1[A](x: GE[A]) extends AnyVal

GEOps1 are operations for graph elements (GE). Instead of having these operations directly defined in each element, which is a huge list, they appear here as extension methods. GEOps1 are unary operators, whereas GEOps2 are binary and n-ary operators.

See also:
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def ++(that: GE[A]): GE[A]

Concatenates another signal to this (finite) signal.

Concatenates another signal to this (finite) signal.

def +:(elem: GE[A]): GE[A]

Prepends a single frame.

Prepends a single frame.

def :+(elem: GE[A]): GE[A]

Appends a single frame.

Appends a single frame.

def abs(implicit num: Num[A]): GE[A]
def acos(implicit w: Widen[A, Double]): D
def ampDb(implicit w: Widen[A, Double]): D

Converts from a linear value (or amplitude) to decimals

Converts from a linear value (or amplitude) to decimals

def appended(elem: GE[A]): GE[A]

Appends a single frame.

Appends a single frame.

def asin(implicit w: Widen[A, Double]): D
def atan(implicit w: Widen[A, Double]): D
def ceil(implicit ev: GE[A] =:= D): D
def concat(that: GE[A]): GE[A]

Concatenates another signal to this (finite) signal.

Concatenates another signal to this (finite) signal.

def cos(implicit w: Widen[A, Double]): D
def cosh(implicit w: Widen[A, Double]): D
def cpsMidi(implicit w: Widen[A, Double]): D

Converts from frequency in Hertz (or cycles-per-second) to MIDI note number.

Converts from frequency in Hertz (or cycles-per-second) to MIDI note number.

def cpsOct(implicit w: Widen[A, Double]): D
def cubed(implicit num: Num[A]): GE[A]
def dbAmp(implicit w: Widen[A, Double]): D

Converts from decimals to a linear value (or amplitude)

Converts from decimals to a linear value (or amplitude)

def differentiate(implicit num: Num[A]): GE[A]
def distinct(implicit eq: Eq[A]): GE[A]

Filters elements to return only distinct values (removes duplicate values)

Filters elements to return only distinct values (removes duplicate values)

def drop[L : NumInt](length: GE[L]): GE[A]

Drops the first length elements of this signal.

Drops the first length elements of this signal.

def dropRight[L : NumInt](length: GE[L]): GE[A]

Drops the last length elements of this signal.

Drops the last length elements of this signal.

def dropWhile(p: GE[Boolean]): GE[A]
def elastic(n: GE[Int]): GE[A]

Inserts a number of buffering blocks to avoid signal deadlock in diamond shape topologies.

Inserts a number of buffering blocks to avoid signal deadlock in diamond shape topologies.

See also:
def exp(implicit w: Widen[A, Double]): D
def filter(p: GE[Boolean]): GE[A]
def filterNot(p: GE[Boolean]): GE[A]
def floor(implicit ev: GE[A] =:= D): D
def frac(implicit ev: GE[A] =:= D): D
def head: GE[A]

Outputs the first element of this signal, then terminates.

Outputs the first element of this signal, then terminates.

def indices: L

Outputs a monotonous sequence from zero to the signal length minus one.

Outputs a monotonous sequence from zero to the signal length minus one.

def init: GE[A]
def isDefinedAt[L](index: GE[L])(implicit w: Widen[L, Long]): GE[Boolean]
def isEmpty: B
def isNaN(implicit ev: GE[A] =:= D): B

Tests the input signal for NaNs (not-a-number). For instance, taking the logarithm of a negative number produces a NaN. Useful to detect and replace those special values.

Tests the input signal for NaNs (not-a-number). For instance, taking the logarithm of a negative number produces a NaN. Useful to detect and replace those special values.

def last: GE[A]

Outputs the last element of this (finite) signal, then terminates.

Outputs the last element of this (finite) signal, then terminates.

def length: L

Outputs a signal value, the length of the input signal.

Outputs a signal value, the length of the input signal.

def log(implicit w: Widen[A, Double]): D

Natural logarithm

Natural logarithm

def log10(implicit w: Widen[A, Double]): D

Base-10 logarithm

Base-10 logarithm

def log2(implicit w: Widen[A, Double]): D

Base-2 logarithm

Base-2 logarithm

def maximum(implicit ord: Ord[A]): GE[A]

Returns the maximum value cross all elements (or an empty stream if the input is empty)

Returns the maximum value cross all elements (or an empty stream if the input is empty)

def midiCps(implicit w: Widen[A, Double]): D

Converts from MIDI note number to frequency in Hertz (or cycles-per-second)

Converts from MIDI note number to frequency in Hertz (or cycles-per-second)

def midiRatio(implicit w: Widen[A, Double]): D
def minimum(implicit ord: Ord[A]): GE[A]

Returns the minimum value cross all elements (or an empty stream if the input is empty)

Returns the minimum value cross all elements (or an empty stream if the input is empty)

def nextPowerOfTwo(implicit num: NumInt[A]): GE[A]
def nonEmpty: GE[Boolean]
def octCps(implicit w: Widen[A, Double]): D
def out(index: Int): GE[A]

Creates a proxy that represents a specific output channel of the element.

Creates a proxy that represents a specific output channel of the element.

Value parameters:
index

channel-index, zero-based. Indices which are greater than or equal to the number of outputs are wrapped around.

Returns:

a monophonic element that represents the given channel of the receiver

def prepended(elem: GE[A]): GE[A]

Prepends a single frame.

Prepends a single frame.

def product(implicit num: Num[A]): GE[A]
def ratioMidi(implicit w: Widen[A, Double]): D
def reciprocal(implicit w: Widen[A, Double]): D

The reciprocal is one divided by the input signal.

The reciprocal is one divided by the input signal.

def signum(implicit num: Num[A]): GE[A]
def sin(implicit w: Widen[A, Double]): D
def sinh(implicit w: Widen[A, Double]): D
def size: L

Outputs a signal value, the length of the input signal. Same as length.

Outputs a signal value, the length of the input signal. Same as length.

def slice[L : NumInt](from: GE[L], until: GE[L]): GE[A]
def splitAt[L : NumInt](n: GE[L]): (GE[A], GE[A])
def sqrt(implicit w: Widen[A, Double]): D
def squared(implicit num: Num[A]): GE[A]
def sum(implicit num: Num[A]): GE[A]
def tail: GE[A]
def take[B : NumInt](length: GE[B]): GE[A]

Takes at most length elements of this signal, then terminates.

Takes at most length elements of this signal, then terminates.

def takeRight[L : NumInt](length: GE[L]): GE[A]

Takes at most the last length elements of this (finite) signal.

Takes at most the last length elements of this (finite) signal.

def takeWhile(p: GE[Boolean]): GE[A]
def tan(implicit w: Widen[A, Double]): D
def tanh(implicit w: Widen[A, Double]): D
def toDouble(implicit to: ScalarToNum[A]): D
def toInt(implicit to: ScalarToNum[A]): I
def toLong(implicit to: ScalarToNum[A]): L
def unary_!(implicit num: NumBool[A]): GE[A]
def unary_-(implicit num: Num[A]): GE[A]
def unary_~(implicit num: NumInt[A]): GE[A]
def unzip: (GE[A], GE[A])
def zip(that: GE[A]): GE[A]