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.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/lib/head_music/consonance.rb +1 -1
- data/lib/head_music/content/composition.rb +3 -2
- data/lib/head_music/content/position.rb +0 -4
- data/lib/head_music/data/instruments.yml +118 -127
- data/lib/head_music/diatonic_interval/category.rb +24 -0
- data/lib/head_music/diatonic_interval/naming.rb +73 -0
- data/lib/head_music/diatonic_interval/parser.rb +47 -0
- data/lib/head_music/diatonic_interval/semitones.rb +36 -0
- data/lib/head_music/diatonic_interval/size.rb +50 -0
- data/lib/head_music/diatonic_interval.rb +1 -229
- data/lib/head_music/instrument/staff_scheme.rb +3 -3
- data/lib/head_music/instrument/{pitch_variant.rb → variant.rb} +6 -6
- data/lib/head_music/instrument.rb +9 -9
- data/lib/head_music/key_signature/enharmonic_equivalence.rb +2 -6
- data/lib/head_music/key_signature.rb +0 -1
- data/lib/head_music/locales/en.yml +1 -14
- data/lib/head_music/named.rb +0 -4
- data/lib/head_music/scale_degree.rb +9 -4
- data/lib/head_music/style/guidelines/notes_same_length.rb +0 -4
- data/lib/head_music/style/mark.rb +1 -4
- data/lib/head_music/version.rb +1 -1
- data/lib/head_music.rb +6 -1
- metadata +8 -3
@@ -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
|
data/lib/head_music/version.rb
CHANGED
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:
|
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:
|
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
|