Condition Coverage

blib/lib/MIDI/Bassline/Walk.pm
Criterion Covered Total %
condition 28 85 32.9


and 3 conditions

line !l l&&!r l&&r condition
132 5 0 0 $self->verbose and $next_chord
175 21 0 16 $flavor =~ /[#b]5/ and $tones[4]
0 16 0 $flavor =~ /[#b]5/ and $tones[4] and $x eq $tones[4] || $y eq $tones[4]
14 13 8 $flavor =~ /7/ and not $flavor =~ /[Mm]7/
27 0 8 $flavor =~ /7/ and not $flavor =~ /[Mm]7/ and $tones[6]
0 8 0 $flavor =~ /7/ and not $flavor =~ /[Mm]7/ and $tones[6] and $x eq $tones[6] || $y eq $tones[6]
34 0 0 $flavor =~ /[#b]9/ and $tones[1]
0 0 0 $flavor =~ /[#b]9/ and $tones[1] and $x eq $tones[1] || $y eq $tones[1]
34 0 0 $flavor =~ /dim/ and $tones[2]
0 0 0 $flavor =~ /dim/ and $tones[2] and $x eq $tones[2] || $y eq $tones[2]
34 0 0 $flavor =~ /dim/ and $tones[6]
0 0 0 $flavor =~ /dim/ and $tones[6] and $x eq $tones[6] || $y eq $tones[6]
34 0 0 $flavor =~ /aug/ and $tones[6]
0 0 0 $flavor =~ /aug/ and $tones[6] and $x eq $tones[6] || $y eq $tones[6]

or 2 conditions

line l !l condition
122 5 0 $chord ||= "C"
123 5 0 $num ||= 4

or 3 conditions

line l !l&&r !l&&!r condition
175 2 0 14 $x eq $tones[4] || $y eq $tones[4]
1 0 7 $x eq $tones[6] || $y eq $tones[6]
2 0 35 $flavor =~ /[#b]5/ and $tones[4] and $x eq $tones[4] || $y eq $tones[4] or $flavor =~ /7/ and not $flavor =~ /[Mm]7/ and $tones[6] and $x eq $tones[6] || $y eq $tones[6]
0 0 0 $x eq $tones[1] || $y eq $tones[1]
1 0 34 $flavor =~ /[#b]5/ and $tones[4] and $x eq $tones[4] || $y eq $tones[4] or $flavor =~ /7/ and not $flavor =~ /[Mm]7/ and $tones[6] and $x eq $tones[6] || $y eq $tones[6] or $flavor =~ /[#b]9/ and $tones[1] and $x eq $tones[1] || $y eq $tones[1]
0 0 0 $x eq $tones[2] || $y eq $tones[2]
0 0 34 $flavor =~ /[#b]5/ and $tones[4] and $x eq $tones[4] || $y eq $tones[4] or $flavor =~ /7/ and not $flavor =~ /[Mm]7/ and $tones[6] and $x eq $tones[6] || $y eq $tones[6] or $flavor =~ /[#b]9/ and $tones[1] and $x eq $tones[1] || $y eq $tones[1] or $flavor =~ /dim/ and $tones[2] and $x eq $tones[2] || $y eq $tones[2]
0 0 0 $x eq $tones[6] || $y eq $tones[6]
0 0 34 $flavor =~ /[#b]5/ and $tones[4] and $x eq $tones[4] || $y eq $tones[4] or $flavor =~ /7/ and not $flavor =~ /[Mm]7/ and $tones[6] and $x eq $tones[6] || $y eq $tones[6] or $flavor =~ /[#b]9/ and $tones[1] and $x eq $tones[1] || $y eq $tones[1] or $flavor =~ /dim/ and $tones[2] and $x eq $tones[2] || $y eq $tones[2] or $flavor =~ /dim/ and $tones[6] and $x eq $tones[6] || $y eq $tones[6]
0 0 0 $x eq $tones[6] || $y eq $tones[6]
0 0 34 $flavor =~ /[#b]5/ and $tones[4] and $x eq $tones[4] || $y eq $tones[4] or $flavor =~ /7/ and not $flavor =~ /[Mm]7/ and $tones[6] and $x eq $tones[6] || $y eq $tones[6] or $flavor =~ /[#b]9/ and $tones[1] and $x eq $tones[1] || $y eq $tones[1] or $flavor =~ /dim/ and $tones[2] and $x eq $tones[2] || $y eq $tones[2] or $flavor =~ /dim/ and $tones[6] and $x eq $tones[6] || $y eq $tones[6] or $flavor =~ /aug/ and $tones[6] and $x eq $tones[6] || $y eq $tones[6]
220 0 0 1 $scale eq "pentatonic" or $scale eq "pminor"
236 0 0 0 $chosen[-2] || $chosen[-1]