-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cadb40b
commit c94aed9
Showing
5 changed files
with
415 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c94aed9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
节奏对齐
完成了小节线调整的UI,还剩导出midi的对齐算法。想法写在了readme中。
关于小节线的数据结构:
一个曲子变速次数寥寥,而小节很多,因此最佳存储方式为稀疏数组。beatBar.js实现了这个数组,并屏蔽了稀疏性。具体做法是:只记录每次变速后的第一个小节。该文件和App主程序解耦,仅提供数据结构,App内对功能进行深入定制。