Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
api:note:zh [2023/11/29 14:23]
hfsr [Note(音符) API]
api:note:zh [2023/11/29 14:25] (current)
hfsr [Note(音符) API]
Line 13: Line 13:
 \\ \\
 - `note.ticks(n:​ number): number`  ​ - `note.ticks(n:​ number): number`  ​
-将音符方块记号(0-24)转换为MIDI编码(分别对应34-58),或者反过来。在与音符盒以及OpenComponents配合使用时很有帮助。  ​+将音符音高(0-24)转换为MIDI编码(分别对应34-58),或者反过来。在与音符盒以及OpenComponents配合使用时很有帮助。  ​
 \\ \\
 - `note.play(tone:​ string or number,​duration:​ number)`  ​ - `note.play(tone:​ string or number,​duration:​ number)`  ​