瀏覽代碼

节拍器

liushengqiang 1 年之前
父節點
當前提交
6073c127e3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/view/tick/index.tsx

+ 1 - 1
src/view/tick/index.tsx

@@ -39,7 +39,7 @@ const handlePlay = (i: number, source: Howl | null) => {
 export const handleInitTick = (beatLengthInMilliseconds: number, beat: number) => {
 	tickData.state = "";
 	tickData.beatLengthInMilliseconds = beatLengthInMilliseconds
-	tickData.len = beat < 4 ? 4 : beat;
+	tickData.len = beat;
 };
 
 /** 开始节拍器 */