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โ™ฏ'
Last updated on: