coltrane 3.3.2 → 3.3.3

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: 3fe037a225ee4b1d95347b454262b9f97a89b457a4d9512f2bb494c61492587a
4
- data.tar.gz: 983e49a02cbaeb9d1451f060350f9af1e3bbb9bfeab4149456d8b216e5bb8729
3
+ metadata.gz: d8bcc965c58bf6b15535fb68f68afae4d2c2bc80c4093fed74d2262832493ae1
4
+ data.tar.gz: fbb8f333da624a0024cff3980393cf5b58d2072fc39f9f66cf7c5e90e974f8de
5
5
  SHA512:
6
- metadata.gz: 04c66aa471f914b9c061b55d083915888efe873ac6eec8b4efb3c4f62e335e16090126661b1f68e54a4c32dce0143fb3fd15936c2256cf1f83cd5a2fc6b516b7
7
- data.tar.gz: 63c1c79f57ace4dabcf4f8a010d7f30ac32fee0f0a7469a8f79b6f549ed88d29eadf2c3065a6febc85d867ea5eb82c4a8fd15f54f22bf6fde502134bf460cb74
6
+ metadata.gz: 5a3bbe886d212f9681fcee881062adf31f03420244d2a722768fadb7d3b13d6610afbc4ceb3411ffd83a86414aaa81e7723fda49279ee573bea3aba69733d5b1
7
+ data.tar.gz: e4415544069e87173a94a784cace25eb51b57f18763d9ad4b331ce49ea3738c07729c7fdc7c6b9ef5f25489de933ed8c777705dce35c1821936d7f8ca9ee4134
@@ -5,6 +5,9 @@
5
5
  - Fix chords so that they generate a barre and a non-barre version and prevent
6
6
  barre chords from picking notes before the barre.
7
7
 
8
+ ## [3.3.3]
9
+ - Fixes a bug in greek modes for accidental notes
10
+
8
11
  ## [3.3.2]
9
12
  - Fixes greek modes so now they output correct sharps/flats
10
13
  - Adds a coherence criteria for picking best guitar chords (based on distance between freqs.)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coltrane (3.3.2)
4
+ coltrane (3.3.3)
5
5
  color (~> 1.8)
6
6
  dry-monads (~> 0.4)
7
7
  paint (~> 2.0)
@@ -18,8 +18,7 @@ module Coltrane
18
18
  def initialize(mode, tone)
19
19
  super name: mode.capitalize, notes: begin
20
20
  @mode = mode.to_s
21
- @tone = tone
22
- # binding.pry
21
+ @tone = Note[tone]
23
22
  base_major_notes
24
23
  .rotate(mode_index)
25
24
  .zip(letter_sequence)
@@ -30,7 +29,7 @@ module Coltrane
30
29
  private
31
30
 
32
31
  def letter_sequence
33
- LETTER_SEQUENCE.yield_self { |seq| seq.rotate(seq.index(tone))}
32
+ LETTER_SEQUENCE.yield_self { |seq| seq.rotate(seq.index(tone.letter))}
34
33
  end
35
34
 
36
35
  def mode_index
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coltrane
4
- VERSION = '3.3.2'
4
+ VERSION = '3.3.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coltrane
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.2
4
+ version: 3.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Maciel