cienicera / Koji

The First Onchain Generative Music Library. Deployed on Starknet
9 stars 11 forks source link

feat: get_bpm #11

Closed raphaelDkhn closed 1 year ago

raphaelDkhn commented 1 year ago

Extract the tempo (in BPM) from the Midi data.

fn get_bpm(self: @Midi) -> u32;
caseywescott commented 1 year ago

First draft Here . Currently assumes tempo doesn't change - May be best to allow returning n tempos or tempos at a given time.