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: 349d91b0d02df9a4722f7634e1f8d99a9849a2c0
4
- data.tar.gz: 3ec53a83af4f774862d3613a4984c313b5f3ea68
3
+ metadata.gz: 69c32cd257d14fc1f03d01feb2558cb162e6cfd0
4
+ data.tar.gz: 1df8160f5ebcb670d125e35b8d2b7e32c4496a9a
5
5
  SHA512:
6
- metadata.gz: 69b19f4ba6c53650588b961fd05dda708050a79134442ea0530e7608e6e6eebe877fce5f4dd72b4e002fc8db4ae3280d5a9220b7ca65b511cefbcb4b25c4f539
7
- data.tar.gz: bcd8464c13c4cfcaddc8a91f1a11e657f3cebe34cba000b067a8c7554774f921fdd822deead34a01479495201c8db9f5d3dc0d75d335d2f8cadec12f37c2f19a
6
+ metadata.gz: 3e1edbf214ea8f49b4e091c37a569f995394cc8f99c3090a47a06741290f07198379a27434d1497b56159301a9e39a8c666b54100d923a671e43a5598e586e5b
7
+ data.tar.gz: 64c5cb8ffcd91cfc11217b34e36a072f31e4233f2aeadc0080b14acc2e3e8e1262beab9e34b3716d6fd67007bb5e80b38f20184fec588d72d1dc64557dad3e9e
@@ -16,14 +16,14 @@ class HeadMusic::Chord
16
16
  end
17
17
 
18
18
  def intervals
19
- pitches[1..-1].map.with_index do |pitch, i|
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[1..-1] + [inverted_pitch]
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[1..-1].select.with_index do |interval, i|
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[1..-1].to_a.map.with_index do |interval, i|
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)
@@ -1,3 +1,3 @@
1
1
  module HeadMusic
2
- VERSION = "0.11.1"
2
+ VERSION = "0.11.2"
3
3
  end
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.1
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-12 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport