Condition Coverage

blib/lib/MIDI/Bassline/Walk.pm
Criterion Covered Total %
condition 29 85 34.1


and 3 conditions

line !l l&&!r l&&r condition
135 7 0 0 $self->verbose and $next_chord
178 35 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]
28 13 8 $flavor =~ /7/ and not $flavor =~ /[Mm]7/
41 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]
48 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]
48 0 0 $flavor =~ /dim/ and $tones[2]
0 0 0 $flavor =~ /dim/ and $tones[2] and $x eq $tones[2] || $y eq $tones[2]
48 0 0 $flavor =~ /dim/ and $tones[6]
0 0 0 $flavor =~ /dim/ and $tones[6] and $x eq $tones[6] || $y eq $tones[6]
48 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 7 0 $chord ||= "C"
123 7 0 $num ||= 4

or 3 conditions

line l !l&&r !l&&!r condition
178 2 0 14 $x eq $tones[4] || $y eq $tones[4]
1 0 7 $x eq $tones[6] || $y eq $tones[6]
2 0 49 $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 48 $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 48 $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 48 $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 48 $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]
223 0 0 1 $scale eq "pentatonic" or $scale eq "pminor"
239 1 0 0 $chosen[-2] || $chosen[-1]