class Object

Constants

P

A Pattern is a lazy, infinite enumeration of values in time.

An event represents a value that occurs in a specific moment in time. It is a value together with its onset (start position) in terms of cycles, and its duration. It is usually represented by a tuple of (value, start, duration, iteration). This tuple indicates when a value occurs in time (start), its duration, and on which iteration of the pattern happens.

P is an alias of Pattern, so you can build them using P instead. Note that if the pattern was built from an array, the string representation can be used to build the same pattern again (almost the same ignoring whitespace between constructor arguments).

P[1,2,3]   #=> P[1, 2, 3]

Public Instance Methods

inf() click to toggle source
# File lib/xi.rb, line 9
def inf
  Float::INFINITY
end