| blib/lib/MIDI/Segment.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 17 | 20 | 85.0 |
| line | true | false | branch |
|---|---|---|---|
| 35 | 10 | 5 | if ($event->[0] eq "note_on" and $event->[4] > 0 and $when > $onsets[-1]) |
| 47 | 1 | 5 | unless $notes |
| 49 | 5 | 0 | if $when > $maxdur |
| 51 | 1 | 3 | if $last->[1] == 0 and $last->[0] eq "note_on" and $last->[4] > 0 |
| 62 | 1 | 3 | if (@track_lens > 1) |
| 64 | 1 | 0 | if ($track_lens[0] != $track_lens[$i]) |
| 92 | 0 | 3 | if ($half < $onsets->[$midpoint]) { } |
| 2 | 1 | elsif ($half > $onsets->[$midpoint]) { } | |
| 112 | 2 | 2 | if $self->{'vague'} or $self->{'ragged'} |
| 119 | 1 | 5 | unless exists $links->{$window} |