We want to extend this function to take an array of steps instead of a single step:
|
fn generate_harmony(self: @Midi, steps: i32, tonic: PitchClass, modes: Modes) -> Midi { |
Since we don't know how long the melody we are harmonizing is going to be, loop through the input array of steps over and over until the melody is finished.
We want to extend this function to take an array of steps instead of a single step:
midi_fun_contract/src/midi/core.cairo
Line 786 in 8463b56
Since we don't know how long the melody we are harmonizing is going to be, loop through the input array of steps over and over until the melody is finished.