Files
ccc-obfuscated-code/node_modules/chance/docs/music/note.md
Pipi Chen b8a3516cd6 update
2020-05-07 01:02:44 +08:00

469 B

note

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

Return a note. 🎵

chance.note();
=> 'B'

chance.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

chance.note({notes: 'flats' });
=> 'A'

chance.note({notes: 'sharps' });
=> 'F♯'