head_music 0.14.1 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94643e9fad9404dd51c148dd74a9deba4f0100b5
|
|
4
|
+
data.tar.gz: 5509506687c478db25e7c38d64ea69994d46f1b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e704efcbffd9738263488cebaaf3478dc8bdf7cae22f55875d681cdb7017d6bea510620f9db77a2e012947caab0677077853e0af818ea5d760302706a4c31d6
|
|
7
|
+
data.tar.gz: 6d16156270a86e137083ba7376e4bbc486e9635dc11fd628cef10d453f84ea1280c8b3a2251e1d4efe6c484781295bc39c2db29f1b0e3d976d994a1e67ce6eaa
|
|
@@ -117,10 +117,10 @@ class HeadMusic::Style::Annotation
|
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
def unsorted_higher_voices
|
|
120
|
-
other_voices.select { |part| part.highest_pitch > highest_pitch }
|
|
120
|
+
other_voices.select { |part| part.highest_pitch && highest_pitch && part.highest_pitch > highest_pitch }
|
|
121
121
|
end
|
|
122
122
|
|
|
123
123
|
def unsorted_lower_voices
|
|
124
|
-
other_voices.select { |part| part.lowest_pitch < lowest_pitch }
|
|
124
|
+
other_voices.select { |part| part.lowest_pitch && lowest_pitch && part.lowest_pitch < lowest_pitch }
|
|
125
125
|
end
|
|
126
126
|
end
|
|
@@ -24,7 +24,7 @@ class HeadMusic::Style::Annotations::AvoidOverlappingVoices < HeadMusic::Style::
|
|
|
24
24
|
end
|
|
25
25
|
marks << HeadMusic::Style::Mark.for_each(overlapped_notes)
|
|
26
26
|
end
|
|
27
|
-
end.flatten
|
|
27
|
+
end.flatten.compact
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def overlappings_of_higher_voices
|
|
@@ -37,6 +37,6 @@ class HeadMusic::Style::Annotations::AvoidOverlappingVoices < HeadMusic::Style::
|
|
|
37
37
|
end
|
|
38
38
|
marks << HeadMusic::Style::Mark.for_each(overlapped_notes)
|
|
39
39
|
end
|
|
40
|
-
end.flatten
|
|
40
|
+
end.flatten.compact
|
|
41
41
|
end
|
|
42
42
|
end
|
data/lib/head_music/version.rb
CHANGED