head_music 0.14.1 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f987ca8cb9cdf11cc5f3f44385480ff343c899b
4
- data.tar.gz: 261effd060be6679e7c9c766c49c16f1d5fa3c43
3
+ metadata.gz: 94643e9fad9404dd51c148dd74a9deba4f0100b5
4
+ data.tar.gz: 5509506687c478db25e7c38d64ea69994d46f1b2
5
5
  SHA512:
6
- metadata.gz: 6b0cd2013873788e4e520d8f8cc0495658903e8eefe54560d27ee7edc2bf0243f70745fe73c288dddd5fd54819e75594723bde4f683d22e73a7cd101fe29b5a7
7
- data.tar.gz: 916deb897a49e6dd40c6abdcc9fab8f1bd8cc0f1f06d5cb8bcd8227a1c84d443ab70ef42bc5d46712a5419cee05706821c5f6f0629a512c1856483cbfdb70cee
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
@@ -1,3 +1,3 @@
1
1
  module HeadMusic
2
- VERSION = "0.14.1"
2
+ VERSION = "0.14.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: head_music
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Head