stave 0.1.3 → 0.1.4

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: 0cf07a51299c29e08fc087a57c7956dfbef43c06ef913fdda11bdcbe67ef40ff
4
- data.tar.gz: 353ec540396d0e6d0031c43ab3915684f79b532455ed74c979c485caeaca47f7
3
+ metadata.gz: ebae6cd14565702017ab59053e673ba6bc1276904e18a9b4fb98a45c9d3a43a6
4
+ data.tar.gz: ce5db442ea409f00aed3a0a51be34b70e1b24b5c1edb5c71f88f5e4d67efe65f
5
5
  SHA512:
6
- metadata.gz: f0bb69f03b3aac8f5ddaadb4e305d3c27d90b8a2d85796a64032b8d45a75d3947d6987a13b6d423351a92ca689d3726d3fbfae5962904936095c88d477559311
7
- data.tar.gz: 919b81b27591ff1b08de445a66b3860b3d73e79b2fb298935308fa5117c4d47c7fde511056d421e5076f1ab11e3db694e09afe361f2129023c5537dc3d40f910
6
+ metadata.gz: f0cd0052bf3e73b3bb4bcc606867a246f85320652aee174744c846a4cde70f6c4ee6a7d27618ea6e15a016e950ee3f358492a41a0f6ac4213d198c41c296eb69
7
+ data.tar.gz: 47abcd848fa4e243637ba5fc9b87d48c221ca9cae70795b2426d86eb90dac780b31ec7ddb42125ed2325b9fae1f5bb9d92b5690e0e1eca1f152abc81db63b2a9
@@ -32,6 +32,14 @@ module Stave
32
32
  degrees[position]
33
33
  end
34
34
 
35
+ def degree_note(degree)
36
+ return unless degrees.include?(degree)
37
+
38
+ position = degrees.index(degree)
39
+
40
+ notes[position]
41
+ end
42
+
35
43
  def uniq
36
44
  notes.uniq(&:variant)
37
45
  end
data/lib/stave/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Stave
2
- VERSION = "0.1.3".freeze
2
+ VERSION = "0.1.4".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stave
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Welham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-16 00:00:00.000000000 Z
11
+ date: 2024-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zeitwerk