-
Notifications
You must be signed in to change notification settings - Fork 311
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
ソング:phraseRendering.tsの処理をsinging.tsに移動 #2338
ソング:phraseRendering.tsの処理をsinging.tsに移動 #2338
Conversation
一旦revertしてコミットを分けました。 |
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!!
別案として、関数ごとにDIせず直接Store
を渡せば、面倒事減らしつつコードも分離できて読みやすいのかも?とちょっと思いました!
まあsrc/sing/phraseRendering.ts
がStore
に依存してるのは方向的にちょっと妙なので、例えばsrc/store/singing
を作り、今のsinging.ts
をsinging/index.ts
に映したうえで、src/store/singing/phraseRendering.ts
に配置する感じとかなら自然かも。
singing.ts内に移すのでもOKだと思います!
singing.tsが3400行に戻ってちょい大きいのと、ステージごとに処理を分ける設計はスコープが切れるので問題がおきにくいのが嬉しそう、みたいな気持ちです。
(全然強い意見ではないです 🙏 アイデア出しくらい。)
音素タイミング編集機能の実装でレンダリング周りを変更するかもなので、ひとまず |
ちなみに型はこちらです!(この前必要になって切り出しました) Line 49 in e1304cc
なるほどです、了解しました! |
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!!
内容
#2248 でフレーズレンダラーを追加して
phraseRendering.ts
に置きましたが、actionやmutationのDIが必要になって面倒なので、
singing.ts
に移して、actionやmutationを直接呼ぶようにします。(ExternalDependencies
を無くします)フレーズレンダラーと各ステージの処理の流れは変更していません。
その他