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

ソング:MIDI読み込みを改善 #1982

Merged
merged 21 commits into from
May 4, 2024

Conversation

sevenc-nanashi
Copy link
Member

@sevenc-nanashi sevenc-nanashi commented Apr 6, 2024

内容

  • 歌詞つきMIDIを読み込めるようにします。
  • ノートのないMIDIを弾くようにします。

関連 Issue

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

(なし)

その他

synthv.midを作るのに使ったプロジェクト:synthv.svp.zip

とりあえずMIDIのメタイベントの歌詞に対応しました。XFフォーマットはパーサー書くのがしんどかったのと少なくともSynthVのMIDIは読み込めたのでパスしています。

@sevenc-nanashi sevenc-nanashi requested a review from a team as a code owner April 6, 2024 16:14
@sevenc-nanashi sevenc-nanashi requested review from y-chan and removed request for a team April 6, 2024 16:14
@sevenc-nanashi
Copy link
Member Author

sevenc-nanashi commented Apr 28, 2024

あっ操作ミスった!Unsubscribeしてください...申し訳ない
なんとかなった...か?

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.

ほぼLGTMです!!

コメントの粒度が適切で分かりやすかったです!!

tests/unit/lib/midi.spec.ts Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
tests/unit/lib/testMidi/synthv.svp Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/components/Dialog/ImportMidiDialog.vue Outdated Show resolved Hide resolved
src/sing/midi.ts Outdated Show resolved Hide resolved
@@ -0,0 +1,166 @@
import {
Copy link
Member

Choose a reason for hiding this comment

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

IMPORT_MIDI_FILEの大半をこっちのファイルに移動しちゃっても良い気がしますね!
だいぶ見やすくなりそうだし。こっちはindex.tsにして、import.tsを作るとかで。
まあもしよかったら別のプルリクエストでリファクタリングお願いできるとめちゃくちゃ助かります!

Copy link
Member Author

Choose a reason for hiding this comment

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

(base: UInt8Array) => AbstractScore に抽象化するのを考えています。

src/sing/midi.ts Show resolved Hide resolved
src/sing/midi.ts Outdated Show resolved Hide resolved
Co-authored-by: Hiroshiba <hihokaruta@gmail.com>
@sevenc-nanashi sevenc-nanashi requested a review from a team as a code owner May 3, 2024 03:26
@sevenc-nanashi sevenc-nanashi requested review from Hiroshiba and removed request for a team May 3, 2024 03:26
@sevenc-nanashi
Copy link
Member Author

レビューを反映しました。

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.

LGTM!!

@Hiroshiba Hiroshiba merged commit f560c6f into VOICEVOX:main May 4, 2024
9 checks passed
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.

歌詞付きmidiの歌詞を読み込めない
2 participants