SSPDBarTiming
Introductiontiming of beats in a bar DiscussionAll timings are relative to the current bar so it's easy to edit a timing file (remove/add a bar etc) Methods
initWith:duration:beats:initialiser -(nonnull instancetype)initWith:(int)barIndex duration:(int)duration_ms beats:(nonnull NSArray<SSPDBeatTiming*> *)beatTimings; ParametersProperties
barIndexthe 0-based index of the bar @property (readonly) int barIndex; Discussionthis is currently only used to report errors beatTimingsarray of SSBeatTiming for beats 2.. @property (readonly, nonnull) NSArray<SSPDBeatTiming*> *beatTimings; Discussion1st beat is always at start of bar duration_msthe duration of this bar (from 1st beat of this bar to 1st beat of following bar) @property (readonly) int duration_ms; jsonfor JSON serialisation @property (readonly, nonnull) NSDictionary *json; |