Skip to content

Commit

Permalink
ソートしていなかったので修正
Browse files Browse the repository at this point in the history
  • Loading branch information
sigprogramming committed Oct 15, 2023
1 parent 24c2a2c commit e043126
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Sing/ScoreSequencer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ export default defineComponent({
}
// NOTE: ノートの長さはスナップをベース
const snapType = state.sequencerSnapType;
const noteTypes = getNoteTypes(tpqn.value).filter((value) => {
return value <= 8; // 最小の長さは1/8
});
const noteTypes = getNoteTypes(tpqn.value)
.filter((value) => value <= 8) // 最小の長さは1/8
.sort();
const noteType =
noteTypes.find((value) => value === snapType) ??
noteTypes[noteTypes.length - 1];
Expand Down

0 comments on commit e043126

Please sign in to comment.