head_music 0.11.4 → 0.11.5
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: 2ee16e4013027a6fe342e4d973776fb380223b5e
|
|
4
|
+
data.tar.gz: d12649ec79f0ccd7f76704f9bcbfad4817c27fe7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8d6c2387ab4ec2f60e11bc3b3609faf03372b3106b44b023d399adbb2010aff6433ab768dd8de467368ddaafcad5d5c0bf11fa2733ec1ef7ccce403cbed4c89
|
|
7
|
+
data.tar.gz: 387fd42c44265d53ab06dbefb587b6f3f6f623ce4714133362b2b3b4a4b2d2d474e82f31678a726f5a12752766819677e76b1928b01d0d39d5b191d5ec429b90
|
|
@@ -15,7 +15,7 @@ class HeadMusic::Style::Annotations::AtLeastEightNotes < HeadMusic::Style::Annot
|
|
|
15
15
|
private
|
|
16
16
|
|
|
17
17
|
def no_placements_mark
|
|
18
|
-
return Style::Mark.new(
|
|
18
|
+
return HeadMusic::Style::Mark.new(
|
|
19
19
|
HeadMusic::Position.new(composition, "1:1"),
|
|
20
20
|
HeadMusic::Position.new(composition, "2:1"),
|
|
21
21
|
fitness: HeadMusic::PENALTY_FACTOR**MINIMUM_NOTES
|
|
@@ -25,7 +25,7 @@ class HeadMusic::Style::Annotations::AtLeastEightNotes < HeadMusic::Style::Annot
|
|
|
25
25
|
def deficiency_mark
|
|
26
26
|
deficiency = [MINIMUM_NOTES - notes.length, 0].max
|
|
27
27
|
if deficiency > 0
|
|
28
|
-
Style::Mark.for_all(placements, fitness: HeadMusic::PENALTY_FACTOR**deficiency)
|
|
28
|
+
HeadMusic::Style::Mark.for_all(placements, fitness: HeadMusic::PENALTY_FACTOR**deficiency)
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
end
|
data/lib/head_music/version.rb
CHANGED