Skip to Content
🎲 Welcome to RandBox - Powerful JavaScript Random Data Generation Library! Learn More

note

// usage randBox.note(); randBox.note({ notes: 'flatkey' });

Return a note. 🎵

randBox.note(); => 'B' randBox.note(); => 'E♭'

Options flatKey - chromatic scale with flat notes (default) sharpKey - chromatic scale with sharp notes flats - just flat notes sharps - just sharp notes naturals - just natural notes all - naturals, sharps and flats

randBox.note({notes: 'flats' }); => 'A' randBox.note({notes: 'sharps' }); => 'F♯'