-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[release-0.17] hotfix: プロジェクトファイル読み込みと声量・音域パラメータの初期化バグ修正 #1927
The head ref may contain hidden characters: "hotfix/\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30D5\u30A1\u30A4\u30EB\u8AAD\u307F\u8FBC\u307F\u3068\u58F0\u91CF\u30FB\u97F3\u57DF\u30D1\u30E9\u30E1\u30FC\u30BF\u306E\u521D\u671F\u5316\u30D0\u30B0"
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,7 +134,6 @@ | |
<script setup lang="ts"> | ||
import { computed, watch, ref, onMounted, onUnmounted } from "vue"; | ||
import { useStore } from "@/store"; | ||
import { isProduction } from "@/type/preload"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 消し忘れ |
||
|
||
import { | ||
getSnapTypes, | ||
|
@@ -214,7 +213,7 @@ watch( | |
() => { | ||
bpmInputBuffer.value = tempos.value[0].bpm; | ||
}, | ||
{ deep: true } | ||
{ deep: true, immediate: true } | ||
); | ||
|
||
watch( | ||
|
@@ -223,16 +222,24 @@ watch( | |
beatsInputBuffer.value = timeSignatures.value[0].beats; | ||
beatTypeInputBuffer.value = timeSignatures.value[0].beatType; | ||
}, | ||
{ deep: true } | ||
{ deep: true, immediate: true } | ||
); | ||
|
||
watch(keyRangeAdjustment, () => { | ||
keyRangeAdjustmentInputBuffer.value = keyRangeAdjustment.value; | ||
}); | ||
watch( | ||
keyRangeAdjustment, | ||
() => { | ||
keyRangeAdjustmentInputBuffer.value = keyRangeAdjustment.value; | ||
}, | ||
{ immediate: true } | ||
); | ||
|
||
watch(volumeRangeAdjustment, () => { | ||
volumeRangeAdjustmentInputBuffer.value = volumeRangeAdjustment.value; | ||
}); | ||
watch( | ||
volumeRangeAdjustment, | ||
() => { | ||
volumeRangeAdjustmentInputBuffer.value = volumeRangeAdjustment.value; | ||
}, | ||
{ immediate: true } | ||
); | ||
Comment on lines
-229
to
+242
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. immediate: trueをつけました。 そもそもたぶんInputBuffer用の変数は必要ないかもでした。 |
||
|
||
const setBpmInputBuffer = (bpmStr: string | number | null) => { | ||
const bpmValue = Number(bpmStr); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,6 +114,9 @@ const applySongProjectToStore = async ( | |
await dispatch("SET_KEY_RANGE_ADJUSTMENT", { | ||
keyRangeAdjustment: tracks[0].keyRangeAdjustment, | ||
}); | ||
await dispatch("SET_VOLUME_RANGE_ADJUSTMENT", { | ||
volumeRangeAdjustment: tracks[0].volumeRangeAdjustment, | ||
}); | ||
Comment on lines
+117
to
+119
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. プロジェクトファイル読み込んだ後に UI(Store)への反映を忘れていたのがバグの原因。 |
||
await dispatch("SET_SCORE", { | ||
score: { | ||
tpqn, | ||
|
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.
そもそも呼ぶ必要はないはず。
内部でSETUP_SINGERが行われるから呼んでるだけ?
とりあえずプロジェクトファイルが読み込まれてなかった時だけ実行するように移動しました。