the ultimate vocal synthesizer - sing, speak, beatbox, and more
Rust
//! Demo melodies for Sing mode: [MIDI note, beats] per syllable, in the adult female register.
use serde::Serialize;
/// octave shift per body
#[derive(Clone, Copy, Debug, PartialEq, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct SongOctave {
pub male: f64,
pub female: f64,
pub child: f64,
}
#[derive(Clone, Copy, Debug, PartialEq, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct DemoSong {
pub name: &'static str,
pub bpm: f64,
pub lyrics: &'static str,
pub notes: &'static [[f64; 2]],
/// octave shift per body
pub octave: SongOctave,
}
#[rustfmt::skip]
pub static DEMO_SONGS: &[DemoSong] = &[
DemoSong {
// an original tune for this instrument
name: "Made of air",
bpm: 84.0,
lyrics: "Breathe in, breathe out, I am made of air. Tongue and lips and throat, singing anywhere.",
notes: &[
[64.0, 1.0], [60.0, 1.0], [62.0, 1.0], [57.0, 1.0],
[57.0, 0.5], [60.0, 0.5], [64.0, 1.0], [62.0, 0.5], [60.0, 1.5],
[65.0, 1.0], [64.0, 0.5], [62.0, 0.5], [60.0, 0.5], [62.0, 1.5],
[64.0, 0.5], [62.0, 0.5], [60.0, 0.5], [59.0, 0.5], [57.0, 2.0],
],
octave: SongOctave { male: -1.0, female: 0.0, child: 0.0 },
},
DemoSong {
// traditional (public domain)
name: "Twinkle, twinkle",
bpm: 100.0,
lyrics: "Twinkle twinkle little star, how I wonder what you are.",
notes: &[
[60.0, 1.0], [60.0, 1.0], [67.0, 1.0], [67.0, 1.0], [69.0, 1.0], [69.0, 1.0], [67.0, 2.0],
[65.0, 1.0], [65.0, 1.0], [64.0, 1.0], [64.0, 1.0], [62.0, 1.0], [62.0, 1.0], [60.0, 2.0],
],
octave: SongOctave { male: -1.0, female: 0.0, child: 0.0 },
},
DemoSong {
// an original tune and words ("The night wind sings softly. Moonlight drifts over the
// forest."); the stress marks are part of the lyrics
name: "Ночной ветер",
bpm: 112.0,
lyrics: "Но́чью ве́тер ти́хо поёт. Лу́нный све́т над ле́сом плывёт.",
notes: &[
[64.0, 1.0], [62.0, 0.5], [60.0, 0.5], [59.0, 1.0], [60.0, 1.0], [62.0, 1.0], [59.0, 1.0], [57.0, 2.0],
[60.0, 1.0], [62.0, 0.5], [64.0, 1.5], [65.0, 1.0], [64.0, 0.5], [62.0, 0.5], [59.0, 1.0], [57.0, 2.0],
],
octave: SongOctave { male: -1.0, female: 0.0, child: 0.0 },
},
DemoSong {
// by Harry Dacre, 1892 (public domain)
name: "Daisy Bell",
bpm: 175.0,
lyrics: "daisy daisy give me your answer do i'm half crazy all for the love of you it won't be a stylish marriage i can't afford a carriage but you'll look sweet upon the seat of a bicycle built for two",
notes: &[
[66.0, 3.0], [63.0, 3.0], [59.0, 3.0], [54.0, 3.0],
[56.0, 1.0], [58.0, 1.0], [59.0, 1.0], [56.0, 2.0],
[59.0, 1.0], [54.0, 6.0], [61.0, 3.0], [66.0, 3.0],
[63.0, 3.0], [59.0, 3.0], [56.0, 1.0], [58.0, 1.0],
[59.0, 1.0], [61.0, 2.0], [63.0, 1.0], [61.0, 5.0],
[63.0, 1.0], [64.0, 1.0], [63.0, 1.0], [61.0, 1.0],
[66.0, 2.0], [63.0, 1.0], [61.0, 1.0], [59.0, 4.0],
[61.0, 1.0], [63.0, 2.0], [59.0, 1.0], [56.0, 2.0],
[59.0, 1.0], [56.0, 1.0], [54.0, 4.0], [54.0, 1.0],
[59.0, 2.0], [63.0, 1.0], [61.0, 2.0], [54.0, 1.0],
[59.0, 2.0], [63.0, 1.0], [61.0, 1.0], [63.0, 1.0],
[64.0, 1.0], [66.0, 1.0], [63.0, 1.0], [59.0, 1.0],
[61.0, 2.0], [54.0, 1.0], [59.0, 6.0],
],
octave: SongOctave { male: -1.0, female: 0.0, child: 0.0 },
},
];