Rhythm
-
Undocumented
See moreDeclaration
Swift
public struct Rhythm<Element>
-
Declaration
Swift
public func event<T>(_ value: T) -> Rhythm<T>.Context
Return Value
.instance(.event(T))
wrapping the givenvalue
. -
Declaration
Swift
public func rest<T>() -> Rhythm<T>.Context
Return Value
.instance(.absence)
with generic context provided by the external environment. -
Declaration
Swift
public func tie<T>() -> Rhythm<T>.Context
Return Value
.continuation
with generic context provided by the external environment.
-
Similar to the proportional aspect of the
OpenMusic
Rhythm Tree
structure.Declaration
Swift
public typealias ProportionTree = Tree<Int, Int>
-
Whether a context is a
See morerest
or an actual event of typeElement
.Declaration
Swift
public enum AbsenceOrEvent<Element>
-
Whether a metrical context is
See moretied
over from the previous context, or if it is new instance ofElement
.Declaration
Swift
public enum ContinuationOrInstance<Element>
-
Create a
Duration
with the/>
operator between twoInt
values.Declaration
Swift
public func /> (numerator: Beats, denominator: Subdivision) -> Duration