Model
public final class Model
The database of musical information contained in a single musical work.
-
Undocumented
Declaration
Swift
public typealias Interval = Range<Fraction>
-
init(performanceContext:tempi:meters:attributeByID:events:attributesByEvent:rhythms:eventsByRhythm:)
Creates a
Model
with the givenperformanceContext
,tempi
,meter
,attributeByID
,events
,attributesByEvent
,rhythms
, andeventsByRhythm
.Declaration
Swift
public init( performanceContext: PerformanceContext, tempi: Tempo.Interpolation.Collection, meters: Meter.Collection, attributeByID: [AttributeID: Attribute], events: [Voice.ID: IntervalSearchTree<Fraction,Set<EventID>>], attributesByEvent: [EventID: Set<AttributeID>], rhythms: [Voice.ID: IntervalSearchTree<Fraction,Set<RhythmID>>], eventsByRhythm: [RhythmID: Set<EventID>] )
-
A
Fragment
of aModel
with the constraints of a givenFilter
.Declaration
Swift
public struct Fragment
-
A
Model.Filter
splits aModel
along three axes: interval of musical time, performing forces, and type of musical information.Declaration
Swift
public struct Filter
-
Printed description.
Declaration
Swift
public var description: String { get }