Skip to content

Commit

Permalink
feat(rhythm): make internal cache accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobLinCool committed Apr 28, 2024
1 parent 7b59e23 commit a219ff9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rhythm-core/src/rhythm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ impl<T: Note> Rhythm<T> {
self.time
}

pub fn availables(&self) -> &[T] {
&self.availables
}

pub fn forward(&mut self, time: impl Into<f64>) -> Vec<T> {
self.time += time.into();
self.update_availables()
Expand Down

0 comments on commit a219ff9

Please sign in to comment.