Skip to content

Commit

Permalink
#986 調整
Browse files Browse the repository at this point in the history
  • Loading branch information
Romot committed Jan 13, 2023
1 parent 88892ba commit af5b7d2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/store/singing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
import { createPartialStore } from "./vuex";
import { createUILockAction } from "./ui";
import { Midi } from "@tonejs/midi";
import { getDoremiFromMidi } from "@/helpers/singHelper";

export const singingStoreState: SingingStoreState = {
engineId: undefined,
Expand Down Expand Up @@ -322,7 +323,7 @@ export const singingStore = createPartialStore<SingingStoreTypes>({
mutation(state, { zoomX }: { zoomX: number }) {
state.sequencerZoomX = zoomX;
},
action({ commit }, { zoomX }) {
async action({ commit }, { zoomX }) {
commit("SET_ZOOM_X", {
zoomX,
});
Expand All @@ -333,7 +334,7 @@ export const singingStore = createPartialStore<SingingStoreTypes>({
mutation(state, { zoomY }: { zoomY: number }) {
state.sequencerZoomY = zoomY;
},
action({ commit }, { zoomY }) {
async action({ commit }, { zoomY }) {
commit("SET_ZOOM_Y", {
zoomY,
});
Expand Down Expand Up @@ -408,7 +409,7 @@ export const singingStore = createPartialStore<SingingStoreTypes>({
note.durationTicks
),
midi: note.midi,
lyric: "",
lyric: getDoremiFromMidi(note.midi),
}))
.sort((a, b) => a.position - b.position)
.forEach((note) => {
Expand Down

0 comments on commit af5b7d2

Please sign in to comment.