head_music 0.23.3 → 0.23.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c9d3d90728c4751d6a84e85709800a2afa51eee3f15f21f37dc7ec1a4c9897a
4
- data.tar.gz: 1d70bf4966c1ffb0cff66468d52a49a52a712b341a5ac9849482c64d5f406988
3
+ metadata.gz: 2560dc1ecfabf9f035a6c9349f6764582dd803edaad98cf6edf70b73ba67452b
4
+ data.tar.gz: 8f48d2ac8336316478854efd66eb80e2a05d47b9a015cbbebf0b25a709518c3c
5
5
  SHA512:
6
- metadata.gz: 52447f9c047fcf064f5710a833202129bf878971080eb6aab54b0cce8921fb5381fefc999cba7ee8ca3a15de87f9f04843a39eaf1283efeef9516e8c0e92e20e
7
- data.tar.gz: a4c5039cd26a401e50e83fb53425e9aeae6d134bf0f96d99a84a9b9b1e19ddbb0dcb7bc50e573abb008ee8af7d7373c1a0804ad97116933919dcff86cb625dc1
6
+ metadata.gz: 125db0856552fee0160105993dd57c8566d96c904ba4df58d8292cd4becc9422638bb75b1da8c25e636c59f81ba0e4b518625e57c6cffacd336ee992918735b0
7
+ data.tar.gz: 55b3a99f40051c9c4f3929e0a15930c4325441a3d18c43125daae0730e718eee0f3e6b3a0fbb851e01d916c040a499d6c577638716ea61298f458f3bc3037b80
@@ -2,7 +2,7 @@
2
2
 
3
3
  # A clef assigns pitches to the lines and spaces of a staff.
4
4
  class HeadMusic::Clef
5
- include HeadMusic::NamedRudiment
5
+ include HeadMusic::Named
6
6
 
7
7
  CLEFS = [
8
8
  {
@@ -2,7 +2,7 @@
2
2
 
3
3
  # An instrument can be assigned to a staff.
4
4
  class HeadMusic::Instrument
5
- include HeadMusic::NamedRudiment
5
+ include HeadMusic::Named
6
6
 
7
7
  INSTRUMENTS = {
8
8
  violin: {
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # NameRudiment is a module to be included in classes whose instances may be identified by name.
4
- module HeadMusic::NamedRudiment
4
+ module HeadMusic::Named
5
5
  attr_reader :name
6
6
  delegate :to_s, to: :name
7
7
 
@@ -3,7 +3,7 @@
3
3
  # A reference pitch has a pitch and a frequency
4
4
  # With no arguments, it assumes that A4 = 440.0 Hz
5
5
  class HeadMusic::ReferencePitch
6
- include HeadMusic::NamedRudiment
6
+ include HeadMusic::Named
7
7
 
8
8
  DEFAULT_PITCH_NAME = 'A4'
9
9
  DEFAULT_FREQUENCY = 440.0
@@ -2,7 +2,7 @@
2
2
 
3
3
  # A rhythmic unit is a rudiment of duration consisting of doublings and divisions of a whole note.
4
4
  class HeadMusic::RhythmicUnit
5
- include HeadMusic::NamedRudiment
5
+ include HeadMusic::Named
6
6
 
7
7
  MULTIPLES = ['whole', 'double whole', 'longa', 'maxima'].freeze
8
8
  FRACTIONS = [
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HeadMusic
4
- VERSION = '0.23.3'
4
+ VERSION = '0.23.4'
5
5
  end
data/lib/head_music.rb CHANGED
@@ -17,7 +17,7 @@ require 'humanize'
17
17
  require 'head_music/utilities/hash_key'
18
18
 
19
19
  # modules
20
- require 'head_music/named_rudiment'
20
+ require 'head_music/named'
21
21
 
22
22
  # rudiments
23
23
  require 'head_music/chromatic_interval'
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.23.3
4
+ version: 0.23.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Head
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-25 00:00:00.000000000 Z
11
+ date: 2020-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -142,7 +142,7 @@ files:
142
142
  - lib/head_music/meter.rb
143
143
  - lib/head_music/motion.rb
144
144
  - lib/head_music/musical_symbol.rb
145
- - lib/head_music/named_rudiment.rb
145
+ - lib/head_music/named.rb
146
146
  - lib/head_music/octave.rb
147
147
  - lib/head_music/pitch.rb
148
148
  - lib/head_music/pitch/enharmonic_equivalence.rb