Other Functions
The following functions are available globally.
-
Declaration
Swift
@inlinable public func * (subdivision: Int, proportions: [Int]) -> DurationTree
Return Value
A
DurationTree
with the givensubdivision
applied to each node. -
If an empty array is given, a single child is created with the same
Duration
value as the root.Declaration
Swift
@inlinable public func * (duration: Duration, proportions: [Int]) -> DurationTree
Return Value
A single-depth
DurationTree
with the givenduration
as the value of the root node, and the givenproportions
mapped accordingly as the children.
-
Declaration
Swift
public func * <Element>(lhs: DurationTree, rhs: [Rhythm<Element>.Context]) -> Rhythm<Element>
Return Value
Rhythm
with the givenDurationTree
andRhythm.Context.Kind
values.