head_music 6.0.1 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,10 +37,6 @@ class HeadMusic::Style::Guidelines::NotesSameLength < HeadMusic::Style::Annotati
37
37
  notes[0..-2]
38
38
  end
39
39
 
40
- def distinct_values
41
- all_but_last_note.map(&:rhythmic_value).uniq.length
42
- end
43
-
44
40
  def first_most_common_rhythmic_value
45
41
  @first_most_common_rhythmic_value ||= begin
46
42
  candidates = most_common_rhythmic_values
@@ -33,8 +33,5 @@ class HeadMusic::Style::Mark
33
33
  def code
34
34
  [start_position, end_position].join(" to ")
35
35
  end
36
-
37
- def to_s
38
- code
39
- end
36
+ alias_method :to_s, :code
40
37
  end
@@ -1,3 +1,3 @@
1
1
  module HeadMusic
2
- VERSION = "6.0.1"
2
+ VERSION = "7.0.0"
3
3
  end
data/lib/head_music.rb CHANGED
@@ -38,12 +38,17 @@ require "head_music/circle"
38
38
  require "head_music/clef"
39
39
  require "head_music/consonance"
40
40
  require "head_music/diatonic_interval"
41
+ require "head_music/diatonic_interval/category"
42
+ require "head_music/diatonic_interval/naming"
43
+ require "head_music/diatonic_interval/parser"
44
+ require "head_music/diatonic_interval/semitones"
45
+ require "head_music/diatonic_interval/size"
41
46
  require "head_music/harmonic_interval"
42
47
  require "head_music/instrument_family"
43
48
  require "head_music/instrument"
44
- require "head_music/instrument/pitch_variant"
45
49
  require "head_music/instrument/staff_scheme"
46
50
  require "head_music/instrument/staff"
51
+ require "head_music/instrument/variant"
47
52
  require "head_music/interval_cycle"
48
53
  require "head_music/key_signature"
49
54
  require "head_music/key_signature/enharmonic_equivalence"
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: 6.0.1
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Head
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-30 00:00:00.000000000 Z
11
+ date: 2024-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -136,11 +136,16 @@ files:
136
136
  - lib/head_music/data/instrument_families.yml
137
137
  - lib/head_music/data/instruments.yml
138
138
  - lib/head_music/diatonic_interval.rb
139
+ - lib/head_music/diatonic_interval/category.rb
140
+ - lib/head_music/diatonic_interval/naming.rb
141
+ - lib/head_music/diatonic_interval/parser.rb
142
+ - lib/head_music/diatonic_interval/semitones.rb
143
+ - lib/head_music/diatonic_interval/size.rb
139
144
  - lib/head_music/harmonic_interval.rb
140
145
  - lib/head_music/instrument.rb
141
- - lib/head_music/instrument/pitch_variant.rb
142
146
  - lib/head_music/instrument/staff.rb
143
147
  - lib/head_music/instrument/staff_scheme.rb
148
+ - lib/head_music/instrument/variant.rb
144
149
  - lib/head_music/instrument_family.rb
145
150
  - lib/head_music/interval_cycle.rb
146
151
  - lib/head_music/key_signature.rb