Skip to main content

simple_melody

Function simple_melody 

Source
pub fn simple_melody(items: &[(u8, Time)]) -> Melody
Expand description

Builds a single-voice Melody from (MIDI key, duration) pairs.

Each note uses velocity 100, channel 0, and normal articulation. Intended as a test and example helper.