浏览代码

fix tests

see comments on commit e2b4b1b06fd3abf41bc20aaea06d2f0403b0e785
sschmid 4 年之前
父节点
当前提交
dd79cbb005
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/MusicalScore/ScoreIO/VoiceGenerator.ts

+ 1 - 0
src/MusicalScore/ScoreIO/VoiceGenerator.ts

@@ -45,6 +45,7 @@ export class VoiceGenerator {
     } else {
     } else {
       this.voice = new Voice(this.instrument, voiceId);
       this.voice = new Voice(this.instrument, voiceId);
     }
     }
+    this.instrument.Voices.push(this.voice); // apparently necessary for cursor.next(), for "cursor with hidden instrument" test
     this.staff.Voices.push(this.voice);
     this.staff.Voices.push(this.voice);
     this.lyricsReader = new LyricsReader(this.musicSheet);
     this.lyricsReader = new LyricsReader(this.musicSheet);
     this.articulationReader = new ArticulationReader();
     this.articulationReader = new ArticulationReader();