This generative music library can generate melodies and harmonies. It would be awesome to use VRF to vary the musical output of these functions. The VRF details are here:
https://docs.cartridge.gg/vrf/overview
extend generate_harmony to make a function: generate_harmony_vrf: The objective is to get a random vrf value that can be used to make an array of integers that are used to represent how many steps above a melody a harmony should be. If the vrf array is shorter than the melody to be harmonized, loop back around to the beginning of the vrf array.
generate_harmony function to build off:
|
fn generate_harmony(self: @Midi, steps: i32, tonic: PitchClass, modes: Modes) -> Midi { |
This generative music library can generate melodies and harmonies. It would be awesome to use VRF to vary the musical output of these functions. The VRF details are here:
https://docs.cartridge.gg/vrf/overview
extend generate_harmony to make a function: generate_harmony_vrf: The objective is to get a random vrf value that can be used to make an array of integers that are used to represent how many steps above a melody a harmony should be. If the vrf array is shorter than the melody to be harmonized, loop back around to the beginning of the vrf array.
generate_harmony function to build off:
midi_fun_contract/src/midi/core.cairo
Line 786 in 8463b56