[][src]Function chord_composer::play

pub fn play<State: PerformanceState>(
    composition_path: &str,
    performance_state: &mut State,
    is_metronome_enabled: bool,
    sample_paths_metronome: &Vec<String>,
    sample_paths_piano: &Vec<String>
) -> Result<SuccessResult, FailResult>

Play composition patterns.

Arguments

  • composition_path - The file path to the composition yaml file.
  • performance_state - The composition playback performance state.
  • is_metronome_enabled - If true a metronome will be played on playback.