-
Notifications
You must be signed in to change notification settings - Fork 308
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
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 の形式で出そうかな~って思ってます。
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.
Copilot reviewed 35 out of 49 changed files in this pull request and generated no suggestions.
Files not reviewed (14)
- package.json: Language not supported
- src/components/Sing/SequencerPitch.vue: Evaluated as low risk
- src/components/Sing/ChangeValueDialog/CommonDialog.vue: Evaluated as low risk
- src/components/Sing/ToolBar/ToolBar.vue: Evaluated as low risk
- src/components/Sing/ChangeValueDialog/TempoChangeDialog.vue: Evaluated as low risk
- src/components/Menu/ContextMenu/Presentation.vue: Evaluated as low risk
- src/components/Sing/ChangeValueDialog/TimeSignatureChangeDialog.vue: Evaluated as low risk
- src/components/Sing/SequencerGrid/Presentation.vue: Evaluated as low risk
- src/components/Sing/SequencerRuler/Container.vue: Evaluated as low risk
- src/components/Sing/ChangeValueDialog/TimeSignatureChangeDialog.stories.ts: Evaluated as low risk
- src/components/Sing/ChangeValueDialog/TempoChangeDialog.stories.ts: Evaluated as low risk
- src/store/singing.ts: Evaluated as low risk
- src/sing/domain.ts: Evaluated as low risk
- src/components/Sing/SequencerGrid/index.stories.ts: Evaluated as low risk
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です!!! もう少し!!!
) => { | ||
const ticks = valueChange.position; | ||
playheadTicks.value = ticks; | ||
contextMenu.value?.show(event); |
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.
ちょっと挙動をどうするか迷っていますが、やっぱりクリックは編集開始のが良いかも。
トークのテキスト欄やトラックがこの感じ。
左クリックでメニュー展開は他にないはず?(=統一感が薄れる)
まあでもこのPRではどちらでも良さそう!(まだ議論されてないので)
const maybeTimeSignature = timeSignatures.value.findLast( | ||
(_timeSignature, i) => tsPositions.value[i] <= playheadTicks.value, | ||
); | ||
if (!maybeTimeSignature) { | ||
throw new UnreachableError("assert: at least one time signature exists"); | ||
} | ||
return maybeTimeSignature; |
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.
(ただのコメントです)
こういうのもgetOrThrowみたいな便利関数作っても良いかもですね!
(maybe
という名前を省けるのでぱっと見やすくなりそう)
return tickToBaseX(beatTicks, tpqn) * sequencerZoomX; | ||
}; | ||
|
||
export const useSequencerGrid = ({ |
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.
(ただのコメントです)
た〜ぶんこれを各々のコンポーネントが呼ぶのではなく、親が計算して渡すのが計算量的にも良いかもしれない。
...ts-sing-changevaluedialog-timesignaturechangedialog--create-opened-light-storybook-win32.png
Outdated
Show resolved
Hide resolved
[update snapshots]
[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.
2点だけコメントしました!
あとはちょっともう1回全コード長め直して問題なければLGTMです!!!
...ts-sing-changevaluedialog-timesignaturechangedialog--change-opened-light-storybook-win32.png
Outdated
Show resolved
Hide resolved
[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.
LGTMなんですが、スナップショット更新がエラーになってる気が・・・!
スナップショットの数が合ってるかを確かめるテストが落ちちゃう感じ・・・?
[update snapshots]
6f998d4
to
c475f8c
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!!!
長いやり取りありがとうございました!!!
ちょっと後半かなりレビューが大変だった・・・ということはそんなにないのですが、やり取りの回数が変更量に相関して多くなるので、途中でコンフリクトが入ったりあと見逃しが発生したりでうまくいかない場合も増えてくると思います。
実装がやりやすい形で、かつOSSとしてかっこいい形を見つけて進行していきたいところですね。
僕はレビュー視点しかほとんど持ってないので、エンジニア視点でこうしたら良かったかもみたいなのあればぜひ知りたいです 🙏
git add --intent-to-add --all tests/ | ||
git diff --binary --cached tests/ > patch-${{ matrix.os }}.diff | ||
git diff --binary HEAD tests/ > patch-${{ matrix.os }}.diff |
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.
(ただのコメントです)
! これで行けるということは、たぶんgit add
の方いらない気がしますね!
マージします!!! |
内容
タイトル通りです。
関連 Issue
スクリーンショット・動画など
その他
現時点でもダイアログの挙動自体はStorybookから確認出来ます。