Skip to Content
🎲 RandBox へようこそ - 強力な JavaScript ランダムデータ生成ライブラリ! 詳細を見る

note

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

返回一个音符。🎵

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

选项 flatKey - 带降音符的半音阶(默认) sharpKey - 带升音符的半音阶 flats - 仅降音符 sharps - 仅升音符 naturals - 仅自然音符 all - 自然音符、升音符和降音符

randBox.note({notes: 'flats' }); => 'A' randBox.note({notes: 'sharps' }); => 'F♯'
最終更新日: