cienicera / midi_fun_contract

Cairo Contract for MIDI Synth Web App Powered by Starknet
1 stars 7 forks source link

Implement VRF to generate #11

Open caseywescott opened 2 days ago

caseywescott commented 2 days ago

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: https://github.com/cienicera/midi_fun_contract/blob/8463b5618b08957ec84f19f206f7a18a223631a8/src/midi/core.cairo#L786

Ugo-X commented 2 days ago

I would love to be assigned and contribute to this, thank you.