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♯'
最后更新于: