UNPKG

469 BMarkdownView Raw
1# note
2
3```js
4// usage
5chance.note();
6chance.note({ notes: 'flatkey' });
7```
8
9Return a note. 🎵
10
11```js
12chance.note();
13=> 'B'
14
15chance.note();
16=> 'Eâ™­'
17```
18
19Options
20flatKey - chromatic scale with flat notes (default)
21sharpKey - chromatic scale with sharp notes
22flats - just flat notes
23sharps - just sharp notes
24naturals - just natural notes
25all - naturals, sharps and flats
26
27```js
28chance.note({notes: 'flats' });
29=> 'A'
30
31chance.note({notes: 'sharps' });
32=> 'F♯'
33```