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