Skip to content
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

Add: 0.19のマイグレーションを追加 #2016

Merged
merged 4 commits into from
Apr 26, 2024

Conversation

sevenc-nanashi
Copy link
Member

内容

コンフィグのshowPitchInSongEditor -> enablePitchEditInSongEditor、
トラックのpitchEditDataの追加をマイグレーションするコードを追加します。

関連 Issue

スクリーンショット・動画など

(なし)

その他

(なし)

@sevenc-nanashi sevenc-nanashi requested a review from a team as a code owner April 26, 2024 14:54
@sevenc-nanashi sevenc-nanashi requested review from y-chan and removed request for a team April 26, 2024 14:54
Comment on lines 142 to 149
(config) => {
if (
Object.prototype.hasOwnProperty.call(config, "showPitchInSongEditor")
) {
config.enablePitchEditInSongEditor = config.showPitchInSongEditor;
delete config.showPitchInSongEditor;
}
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

試してみたらうまくいかなかった・・・! 多分experimentalSetting内ですね!

Comment on lines 452 to 455
// pitchEditDataの追加
for (const track of projectData.song.tracks) {
track.pitchEditData = [];
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

自明なので、何を追加したか日本語を書くのがいいかも

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(この上のコードで同じこと書いてました。。 🙇 )

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ちょっとバグってそうでしたが、こちらで変更してマージしたいと思います!

@Hiroshiba Hiroshiba merged commit 3eec37d into VOICEVOX:main Apr 26, 2024
8 checks passed
@Hiroshiba
Copy link
Member

LGTM!!!

ありがとうございました!

sevenc-nanashi added a commit to sevenc-nanashi/voicevox that referenced this pull request Apr 28, 2024
* Add: 0.19のマイグレーションを追加

* Fix: showPitchInSongEditorがあるときだけdeleteするようにする

* バグ修正とコメント変更

* typescriptのバージョンが古くてエラーになった

---------

Co-authored-by: Hiroshiba <hihokaruta@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants