Skip to content

Commit

Permalink
Fix: startTime === 0のフレーズでピッチがレンダリングされないのを修正 (#1894)
Browse files Browse the repository at this point in the history
startTimeが0のフレーズでピッチがレンダリングされないのを修正
  • Loading branch information
sigprogramming authored Mar 3, 2024
1 parent 9aa10cb commit 344ae89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Sing/SequencerPitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ const searchVoicedSections = (phonemes: FramePhoneme[]) => {
};
const render = () => {
if (!canvasWidth) {
if (canvasWidth == undefined) {
throw new Error("canvasWidth is undefined.");
}
if (!canvasHeight) {
if (canvasHeight == undefined) {
throw new Error("canvasHeight is undefined.");
}
if (!renderer) {
Expand Down Expand Up @@ -104,7 +104,7 @@ const render = () => {
}
// ピッチラインの生成・更新を行う
for (const [phraseKey, phrase] of phrases) {
if (!phrase.singer || !phrase.query || !phrase.startTime) {
if (!phrase.singer || !phrase.query || phrase.startTime == undefined) {
continue;
}
const tempos = [toRaw(phrase.tempos[0])];
Expand Down

0 comments on commit 344ae89

Please sign in to comment.