head_music 0.11.1 → 0.11.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69c32cd257d14fc1f03d01feb2558cb162e6cfd0
|
4
|
+
data.tar.gz: 1df8160f5ebcb670d125e35b8d2b7e32c4496a9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e1edbf214ea8f49b4e091c37a569f995394cc8f99c3090a47a06741290f07198379a27434d1497b56159301a9e39a8c666b54100d923a671e43a5598e586e5b
|
7
|
+
data.tar.gz: 64c5cb8ffcd91cfc11217b34e36a072f31e4233f2aeadc0080b14acc2e3e8e1262beab9e34b3716d6fd67007bb5e80b38f20184fec588d72d1dc64557dad3e9e
|
data/lib/head_music/chord.rb
CHANGED
@@ -16,14 +16,14 @@ class HeadMusic::Chord
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def intervals
|
19
|
-
pitches
|
19
|
+
pitches.drop(1).map.with_index do |pitch, i|
|
20
20
|
FunctionalInterval.new(pitches[i], pitch)
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
24
|
def invert
|
25
25
|
inverted_pitch = pitches[0] + HeadMusic::Interval.get(12)
|
26
|
-
new_pitches = pitches
|
26
|
+
new_pitches = pitches.drop(1) + [inverted_pitch]
|
27
27
|
HeadMusic::Chord.new(new_pitches)
|
28
28
|
end
|
29
29
|
end
|
@@ -27,7 +27,7 @@ class HeadMusic::Style::Annotations::DirectionChanges < HeadMusic::Style::Annota
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def melodic_intervals_changing_direction
|
30
|
-
melodic_intervals
|
30
|
+
melodic_intervals.drop(1).select.with_index do |interval, i|
|
31
31
|
previous_direction = melodic_intervals[i].direction
|
32
32
|
interval.direction != previous_direction
|
33
33
|
end
|
@@ -11,7 +11,7 @@ class HeadMusic::Style::Annotations::RecoverLargeLeaps < HeadMusic::Style::Annot
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def marks
|
14
|
-
melodic_intervals
|
14
|
+
melodic_intervals.drop(1).to_a.map.with_index do |interval, i|
|
15
15
|
previous_interval = melodic_intervals[i]
|
16
16
|
if unrecovered_leap?(previous_interval, interval)
|
17
17
|
HeadMusic::Style::Mark.for_all((previous_interval.notes + interval.notes).uniq)
|
data/lib/head_music/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: head_music
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Head
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|