-
Notifications
You must be signed in to change notification settings - Fork 313
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
#1818 ソング:MIDIトラックを選択できる ようにする #1892
Conversation
8847bef
to
778db35
Compare
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.
ほぼLGTMです!!
コード読みやすかったです!!
@Hiroshiba |
@Hiroshiba ファイルドロップもやりかけたのですが、 |
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.
ちょっと1個バグ見つけたのでコメントしました!
デザインに関して、ちょっとこちらで他のダイアログと揃うように後々調整させていただくかもです!
Co-authored-by: Hiroshiba <[email protected]>
…ble_track' into feature/1818_import_midi_selectable_track
…idi_selectable_track
指摘点修正済みです |
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.
LGTM!!!
ファイルのドラッグアンドドロップに関して、ちょっと想像されてるのと違うかもですがご案内です!!
ダイアログは、SingEditor内にドロップされたパスを、引数でダイアログに渡せるようにするのが綺麗に感じます。
実はAllDialog内に記述しなくても、Dialog.createという関数を使えばprops付きでquasarダイアログを開けたりします。こっちも参考になれば・・・!!
voicevox/src/components/Dialog/Dialog.ts
Lines 234 to 241 in 05926fb
Dialog.create({ | |
component: SaveAllResultDialog, | |
componentProps: { | |
successArray: successArray, | |
writeErrorArray: writeErrorArray, | |
engineErrorArray: engineErrorArray, | |
}, | |
}); |
プロジェクトファイルに関して、トーク側にこそっとファイルD&Dが実装されていたりするので参考になれば!!
voicevox/src/components/Talk/TalkEditor.vue
Line 510 in 05926fb
const loadDraggedFile = (event: { dataTransfer: DataTransfer | null }) => { |
内容
複数トラックのMIDIの場合、目的のトラックがインポートできない問題を解決します
関連 Issue
ref #1818
close #1818
スクリーンショット・動画など
その他
IMPORT_MIDI_FILE
とで2回MIDIファイルをパースしてますが、ファイルドロップまわりがどうなるか把握できていないため、いったんそのままです