コード例 #1
0
 public MidiSegment(SegmentType type, CompressedNoteDuration dur)
 {
     this.type = type;
     scaleY    = dur.duration;
     offsetY   = dur.start;
     keyNum    = dur.keyNum;
 }
コード例 #2
0
 public MidiSegment(SegmentType type, CompressedNoteDuration from, CompressedNoteDuration to)
 {
     this.type = type;
     scaleY    = to.end - from.start;
     offsetY   = to.end;
     keyNum    = from.keyNum;
 }