-
Notifications
You must be signed in to change notification settings - Fork 304
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: BPM・拍子変更機能を追加 #2303
base: main
Are you sure you want to change the base?
Add: BPM・拍子変更機能を追加 #2303
Conversation
() => lastTimeSignature.value.measureNumber === currentMeasure.value, | ||
); | ||
|
||
const contextMenuHeader = computed(() => `${currentMeasure.value}小節目`); |
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.
ここは #2306 の形式で出そうかな~って思ってます。
[update snapshots]
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.
挙動だけ確認させていただきました!
一旦大きく気になったところはなさそう・・・!
@romot-co @sigprogramming
もしよかったらちょっと気になる点先にご確認いただけるとありがたいです!!
BPM や拍子が途中変更できるので、データ所持の設計やコンポーネント構造、あとUX周りで設計を大きく変えないといけないところがあればお聞きしたい感じです!
(データの設計はもともと可変で作っていたから変更なしかも・・・?すごい!!!)
BPM・拍子変更機能の実装ありがとうございます! |
[update snapshots]
[update snapshots]
直ったと思います > スナップ線 |
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.
コンポーネント周りをレビューしました!
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.
const timeSignaturesWithTicks = tsPositions.value.map((tsPosition, i) => { | ||
return { | ||
position: tsPosition, | ||
timeSignature: props.timeSignatures[i], | ||
}; | ||
}); |
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.
TimeSignature & { position: number }
にしても良いかも。 (テンポの方は変換要らなそう)
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.
横からすみません!
何度もfind(position)
されてるので、たぶんMapにするといろいろきれいになりそうだな〜と思いました!
計算コスト的にMapが一番良い気が・・・するかもしれない!
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.
確かにMapにするときれいになりそうですね!
(positionが必要になる処理が他にも何か所かあるので、TimeSignatureWithTicks
型を作るのも良いかも…?)
内容
タイトル通りです。
関連 Issue
(なし)
スクリーンショット・動画など
その他
現時点でもダイアログの挙動自体はStorybookから確認出来ます。