diff --git a/amm_sdk/src/storage/midi.rs b/amm_sdk/src/storage/midi.rs index aad8b7a..2b0492a 100644 --- a/amm_sdk/src/storage/midi.rs +++ b/amm_sdk/src/storage/midi.rs @@ -413,3 +413,4 @@ mod test { // TODO: Implement chords // TODO: Implement tuplets // TODO: Attempt to implement dynamics +// TODO: Attempt to implement mordents, trills, and other ornaments based on timing data diff --git a/amm_sdk/src/structure/part.rs b/amm_sdk/src/structure/part.rs index fe67f16..ec82079 100644 --- a/amm_sdk/src/structure/part.rs +++ b/amm_sdk/src/structure/part.rs @@ -257,6 +257,11 @@ impl Part { .sum() } + #[must_use] + pub fn num_items(&self) -> usize { + self.content.len() + } + pub fn iter(&self) -> core::slice::Iter<'_, PartContent> { self.content.iter() }