blib/lib/MIDI/Drummer/Tiny.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 15 | 75 | 20.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
176 | 0 | 0 | 0 | $args and ref $args |
line | l | !l | condition |
---|---|---|---|
217 | 0 | 0 | shift() // 0 |
416 | 34 | 0 | $args{'patterns'} ||= [] |
418 | 0 | 34 | $args{'negate'} ||= 0 |
419 | 0 | 34 | $args{'repeat'} ||= 1 |
426 | 33 | 0 | dura_size($args{'duration'}) || 1 |
438 | 0 | 34 | $args{'vary'} ||= {0, sub { $self->rest($args{"duration"}); } , 1, sub { $self->note($args{"duration"}, $args{'instrument'}); } } |
486 | 1 | 10 | $fill ||= sub { return {"duration", 8, $self->open_hh, "000", $self->snare, 111, $self->kick, "000"}; } |
489 | 11 | 0 | delete $fill_patterns->{'duration'} || 8 |
558 | 4 | 1 | $set //= 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
192 | 0 | 0 | 0 | shift() || $self->bars |
204 | 0 | 0 | 0 | shift() || $self->bars |
216 | 0 | 0 | 0 | shift() || $self->bars |
252 | 0 | 0 | 0 | shift() || $self->bars |
269 | 0 | 0 | 0 | shift() || $self->bars |
288 | 0 | 0 | 0 | shift() || $self->bars |
301 | 0 | 0 | 0 | shift() || $self->bars |
315 | 0 | 0 | 0 | shift() || $self->bars |
331 | 0 | 0 | 0 | shift() || $self->bars |
346 | 0 | 0 | 0 | $grace ||= $self->snare |
347 | 0 | 0 | 0 | $patch ||= $self->snare |
351 | 0 | 0 | 0 | $accent ||= sprintf("%0.f", $self->score->Volume / 2) |
364 | 0 | 0 | 0 | $patch ||= $self->snare |
374 | 0 | 0 | 0 | $patch ||= $self->snare |
415 | 34 | 0 | 0 | $args{'instrument'} ||= $self->snare |
417 | 0 | 34 | 0 | $args{'beats'} ||= $self->beats |
431 | 0 | 1 | 0 | $dump->{$size} || $self->quarter |
502 | 9 | 2 | 0 | $dump->{$size} || $self->eighth |