Builder
public class Builder
Undocumented
-
Creates
Builder
prepared to construct aModel
.Declaration
Swift
public init()
-
Adds the given
instrument
to the performance context.Declaration
Swift
public func createInstrument(_ instrument: Instrument) -> Instrument.ID
-
Adds the given voice identifier for the given
performer
andinstrument
.Declaration
Swift
public func createVoice(_ voice: Voice? = nil, performer: Performer, instrument: Instrument) -> Voice.ID
-
Add the given
tempo
at the givenoffset
, and whether or not it shall be prepared to interpolate to the next given tempo.Declaration
Swift
@discardableResult public func addTempo( _ tempo: Tempo, at offset: Fraction? = nil, easing: Tempo.Interpolation.Easing? = nil ) -> Model.Builder
-
Add the given
meter
.Declaration
Swift
@discardableResult public func addMeter(_ meter: Meter) -> Model.Builder