Skip to content

Commit

Permalink
編集結果を適用するように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
rokujyushi committed Nov 20, 2024
1 parent d3f6170 commit ed3afe5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sing/domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ export function applyVolumeEdit(
);
const phraseQueryEndFrame = phraseQueryStartFrame + phraseQueryFrameLength;

// ピッチ編集をf0に適用する
// ボリューム編集をvolumeに適用する
const startFrame = Math.max(0, phraseQueryStartFrame);
const endFrame = Math.min(volumeEditData.length, phraseQueryEndFrame);
for (let i = startFrame; i < endFrame; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/store/singing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2264,13 +2264,13 @@ export const singingStore = createPartialStore<SingingStoreTypes>({
track.pitchEditData,
context.snapshot.editorFrameRate,
);
clonedQuery.volume = clonedSingingVolume;
applyVolumeEdit(
clonedQuery,
phrase.startTime,
track.volumeEditData,
context.snapshot.editorFrameRate,
);
clonedQuery.volume = clonedSingingVolume;
return {
singer: track.singer,
queryForSingingVoiceSynthesis: clonedQuery,
Expand Down

0 comments on commit ed3afe5

Please sign in to comment.