Browse Source

节拍器

liushengqiang 1 year ago
parent
commit
6073c127e3
1 changed files with 1 additions and 1 deletions
  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) => {
 export const handleInitTick = (beatLengthInMilliseconds: number, beat: number) => {
 	tickData.state = "";
 	tickData.state = "";
 	tickData.beatLengthInMilliseconds = beatLengthInMilliseconds
 	tickData.beatLengthInMilliseconds = beatLengthInMilliseconds
-	tickData.len = beat < 4 ? 4 : beat;
+	tickData.len = beat;
 };
 };
 
 
 /** 开始节拍器 */
 /** 开始节拍器 */