pub trait Track {
// Required method
fn play_step(&mut self, step: u32) -> Vec<Instruction>;
// Provided method
fn get_name(&self) -> String { ... }
}Expand description
Abstraction for a sequencer track.
Users can create their own custom track implementations by implementing this trait, defining how steps are played and optionally providing a track name.