blib/lib/MIDI/Drummer/Tiny.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 19 | 81 | 23.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
177 | 0 | 0 | 0 | $args and ref $args |
line | l | !l | condition |
---|---|---|---|
226 | 0 | 0 | shift() // 0 |
425 | 34 | 0 | $args{'patterns'} ||= [] |
427 | 0 | 34 | $args{'negate'} ||= 0 |
428 | 0 | 34 | $args{'repeat'} ||= 1 |
435 | 33 | 0 | dura_size($args{'duration'}) || 1 |
447 | 0 | 34 | $args{'vary'} ||= {0, sub { $self->rest($args{"duration"}); } , 1, sub { $self->note($args{"duration"}, $args{'instrument'}); } } |
493 | 1 | 10 | $fill ||= sub { return {"duration", 8, $self->open_hh, "000", $self->snare, 111, $self->kick, "000"}; } |
496 | 11 | 0 | delete $fill_patterns->{'duration'} || 8 |
565 | 5 | 1 | $set //= 1 |
584 | 1 | 1 | $channel //= 9 |
592 | 1 | 1 | $volume ||= 0 |
623 | 0 | 0 | $config ||= "timidity-midi-util.cfg" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
201 | 0 | 0 | 0 | shift() || $self->bars |
213 | 0 | 0 | 0 | shift() || $self->bars |
225 | 0 | 0 | 0 | shift() || $self->bars |
261 | 0 | 0 | 0 | shift() || $self->bars |
278 | 0 | 0 | 0 | shift() || $self->bars |
297 | 0 | 0 | 0 | shift() || $self->bars |
310 | 0 | 0 | 0 | shift() || $self->bars |
324 | 0 | 0 | 0 | shift() || $self->bars |
340 | 0 | 0 | 0 | shift() || $self->bars |
355 | 0 | 0 | 0 | $grace ||= $self->snare |
356 | 0 | 0 | 0 | $patch ||= $self->snare |
360 | 0 | 0 | 0 | $accent ||= sprintf("%0.f", $self->score->Volume / 2) |
373 | 0 | 0 | 0 | $patch ||= $self->snare |
383 | 0 | 0 | 0 | $patch ||= $self->snare |
424 | 34 | 0 | 0 | $args{'instrument'} ||= $self->snare |
426 | 0 | 34 | 0 | $args{'beats'} ||= $self->beats |
440 | 0 | 1 | 0 | $dump->{$size} || $self->quarter |
509 | 9 | 2 | 0 | $dump->{$size} || $self->eighth |