head_music 6.0.1 → 7.0.1

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
  SHA256:
3
- metadata.gz: 64230af5264efb58e93a127cc3ad7528f9fd33f663b98ba117bb49d746e500ce
4
- data.tar.gz: c6c72eb473869b2aa01dc80f37d54787dda8816f0ac46404d365ee30431f6eab
3
+ metadata.gz: 389a01e3f1ee98f5fed32a8fc0ade9c62d0ac3b8e19862bceed574939a2fd9c4
4
+ data.tar.gz: 639b5a1a4626e5aa00344933a2933bb3d9f50af4c23b64a406a348a80e7d4095
5
5
  SHA512:
6
- metadata.gz: c049302d49e156b572c3dc0aeb8b9cf59db93ec77ca0e0636c4a64375e4c5648a886ec21ec3e63077981c938317841989df0825c153848aef45b16b13117df2a
7
- data.tar.gz: 4dddb70eeb88d7ae04f4184365c791d650731524c2d35c6a300b22227bc24fba921c9efa3d6fa9a0212a7a4f43e2680a0c0cdfbbcc580b11ea17bc9e39ebc4be
6
+ metadata.gz: 613ba46bebdb8072897e7512820a2faa89aff68e38f6a4dc5473432279556e6791fd4820a958ee139f9c11637d22d5523c0feee911588b08550b1fb284bd78b4
7
+ data.tar.gz: e49101f5776171b68725e0004bbe6f4026e46b896f1dedd20c9b02219493f6f7ad57dfbcc84546489595b0db3a8294234f36ed71c37b41adc14ce33f903ff355
data/.rubocop.yml CHANGED
@@ -25,5 +25,8 @@ RSpec/ContextWording:
25
25
  - for
26
26
  - by
27
27
 
28
+ RSpec/MultipleExpectations:
29
+ Enabled: false
30
+
28
31
  RSpec/NestedGroups:
29
32
  Max: 5
@@ -9,7 +9,7 @@ class HeadMusic::Consonance
9
9
 
10
10
  attr_reader :name
11
11
 
12
- delegate :to_s, to: :name
12
+ delegate :to_s, :to_sym, to: :name
13
13
 
14
14
  def initialize(name)
15
15
  @name = name.to_s.to_sym
@@ -46,7 +46,7 @@ class HeadMusic::Content::Composition
46
46
  end
47
47
 
48
48
  def latest_bar_number
49
- [voices.map(&:earliest_bar_number), 1].flatten.max
49
+ [voices.map(&:latest_bar_number), 1].flatten.max
50
50
  end
51
51
 
52
52
  def cantus_firmus_voice
@@ -58,7 +58,7 @@ class HeadMusic::Content::Composition
58
58
  end
59
59
 
60
60
  def to_s
61
- "#{name} — #{voices.count} voice(s)"
61
+ "#{name} — #{voices.count} #{(voices.count == 1) ? "voice" : "voices"}"
62
62
  end
63
63
 
64
64
  private
@@ -71,6 +71,7 @@ class HeadMusic::Content::Composition
71
71
  end
72
72
 
73
73
  def last_meter_change(bar_number)
74
+ bar_number = [bar_number, earliest_bar_number].max
74
75
  bars(bar_number)[earliest_bar_number..bar_number].reverse.detect(&:meter)
75
76
  end
76
77
 
@@ -27,10 +27,6 @@ class HeadMusic::Content::Position
27
27
  [bar_number, count, tick_string].join(":")
28
28
  end
29
29
 
30
- def state
31
- [composition.name, code].join(" ")
32
- end
33
-
34
30
  def values
35
31
  [bar_number, count, tick]
36
32
  end
@@ -165,6 +165,7 @@ saxophone:
165
165
  - single_reed
166
166
  - wind
167
167
  - woodwind
168
+ orchestra_section_key: woodwind
168
169
  snare_drum:
169
170
  classification_keys:
170
171
  - percussion