Coltrane: A Music Calculation Library/CLI Written in Ruby

Coltrane

A music calculation library/CLI written in Ruby.

CLI (Command Line Interface)

Screenshot Screenshot

Features

  • Generate chord progressions for Jazz, Blues, Pop, or custom and see how to play them
  • Seek chords, see their notes and how to play them
  • Seek scales, see their notes and see how to play them
  • Find chords that are common between 2 scales
  • Find scales containing a chord or a set of notes
  • Find possible progressions of a chord sequence
  • All of the above can be seen on guitar, bass, piano or ukelele representations, no sheet music needed

How to discover a chord name using the notes

coltrane chords --notes C-E-G

CM:  C E G

To see it on guitar:

coltrane chords --notes C-E-G --on guitar

CM:

   ⬤    ⬤  ⬤   ⬤    ⬤  ⬤   ⬤    ⬤             ⬤  ⬤
   ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑
3  │ ⬤│ │ │ │ 8  │ │ │ │ ⬤│ 3  │ ⬤│ │ │ ⬤1  │ │ │ │ ⬤│
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
4  │ │ │ │ │ │ 9  │ │ │ │ │ │ 4  │ │ │ │ │ │ 2  │ │ ⬤│ │ │
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
5  │ │ ⬤│ ⬤│ 10 │ ⬤⬤│ │ │ 5  │ │ ⬤│ ⬤│ 3  ⬤⬤│ │ │ │
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
6  │ │ │ │ │ │ 11 │ │ │ │ │ │ 6  │ │ │ │ │ │ 4  │ │ │ │ │ │
   ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙

PS: It looks way better on the terminal 😒, specially on iTerm

How to discover a Scale by providing chords

You shall provide chords separated by dashes (--chords CM7-Dm7-EM) or notes (--notes C-Ab-F-G).

For example:

coltrane find-scale --chords E6/9-BM

Pentatonic Major C(1) C#(3) D(3) D#(1) E(5) F(0) F#(4) G(2) G#(2) A(4) A#(0) B(5)
Blues Major      C(2) C#(4) D(3) D#(2) E(5) F(1) F#(4) G(2) G#(3) A(4) A#(1) B(5)
Harmonic Minor   C(3) C#(5) D(2) D#(4) E(4) F(3) F#(4) G(2) G#(5) A(3) A#(3) B(4)
Hungarian Minor  C(2) C#(6) D(2) D#(4) E(3) F(3) F#(5) G(1) G#(5) A(3) A#(4) B(4)
Pentatonic Minor C(1) C#(5) D(0) D#(4) E(2) F(2) F#(4) G(0) G#(5) A(1) A#(3) B(3)
Blues Minor      C(2) C#(5) D(1) D#(4) E(2) F(3) F#(4) G(1) G#(5) A(2) A#(4) B(3)
Whole Tone       C(3) C#(3) D(3) D#(3) E(3) F(3) F#(3) G(3) G#(3) A(3) A#(3) B(3)
Flamenco         C(3) C#(4) D(2) D#(5) E(3) F(3) F#(4) G(3) G#(5) A(2) A#(4) B(4)
Major            C(2) C#(4) D(4) D#(2) E(6) F(1) F#(5) G(3) G#(3) A(5) A#(1) B(6)
Natural Minor    C(2) C#(6) D(1) D#(5) E(3) F(3) F#(5) G(1) G#(6) A(2) A#(4) B(4)

When on terminal, the command above will highlight the Scales that have all needed notes. The number in the parenthesis show how many chord notes were included.

How to find common chords

You may use this command to find a chord that may serve as bridge to a different scale/key (i.e. modulation). Coltrane offers you a command to find common chords shared between both keys/scales. Here is how you use it. Say you wanna transition from C Major to D Natural Minor.

coltrane common-chords C Major, D Natural Minor

Dm:  D F A
Am:  A C E
Dm7: D F A C
Am7: A C E G
CM:  C E G
FM:  F A C
CM6: C E G A
FM6: F A C D
C6/9: C E G A D
F6/9: F A C D G
C6/9(add11): C E G A D F
[...]

You can, whenever it fits, add an --on <instrument> to see the output in a graphical representation:

coltrane common-chords C Major, D Natural Minor --on piano

Dm:

┌─┬─┬┬─┬─╥─┬─┬┬─┬┬─┬─╥─┬─┬┬─┬─╥─┬─┬┬─┬┬─┬─┐
│ │ ││ │ ║ │ ││ ││ │ ║ │ ││ │ ║ │ ││ ││ │ │
│ │ ││ │ ║ │ ││ ││ │ ║ │ ││ │ ║ │ ││ ││ │ │
│ │ ││ │ ║ │ ││ ││ │ ║ │ ││ │ ║ │ ││ ││ │ │
│ ┕╥┙┕╥┙ ║ ┕╥┙┕╥┙┕╥┙ ║ ┕╥┙┕╥┙ ║ ┕╥┙┕╥┙┕╥┙ │
│  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  │
│  ║D♮║  ║F♮║  ║A♮║  ║  ║D♮║  ║F♮║  ║A♮║  │
└──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──┘

Am:

┌─┬─┬┬─┬─╥─┬─┬┬─┬┬─┬─╥─┬─┬┬─┬─╥─┬─┬┬─┬┬─┬─┐
│ │ ││ │ ║ │ ││ ││ │ ║ │ ││ │ ║ │ ││ ││ │ │
│ │ ││ │ ║ │ ││ ││ │ ║ │ ││ │ ║ │ ││ ││ │ │
│ │ ││ │ ║ │ ││ ││ │ ║ │ ││ │ ║ │ ││ ││ │ │
│ ┕╥┙┕╥┙ ║ ┕╥┙┕╥┙┕╥┙ ║ ┕╥┙┕╥┙ ║ ┕╥┙┕╥┙┕╥┙ │
│  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  │
│C♮║  ║E♮║  ║  ║A♮║  ║C♮║  ║E♮║  ║  ║A♮║  │
└──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──┘

[...]

Quickly generate chord progressions

coltrane progression jazz in A --on guitar

Bm7:

       ⬤  ⬤       ⬤⬤  ⬤       ⬤⬤           ⬤    ⬤
   ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑
2  ⬤⬤│ ⬤│ ⬤2  ⬤│ │ │ │ ⬤2  ⬤│ │ │ │ ⬤9  │ │ ⬤│ │ │
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
3  │ │ │ │ │ │ 3  │ │ │ │ │ │ 3  │ │ │ │ ⬤│ 10 ⬤│ │ │ │ ⬤
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
4  │ │ │ │ │ │ 4  │ │ │ ⬤│ │ 4  │ │ │ ⬤│ │ 11 │ │ │ ⬤│ │
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
5  │ │ │ │ │ │ 5  │ │ │ │ │ │ 5  │ │ │ │ │ │ 12 │ │ │ │ │ │
   ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙


E7:

   ⬤  ⬤  ⬤⬤           ⬤⬤   ⬤      ⬤⬤   ⬤  ⬤    ⬤
   ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑
1  │ │ │ ⬤│ │ 6  │ │ ⬤│ │ │ 4  │ │ │ ⬤│ │ 1  │ │ │ ⬤│ │
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
2  │ ⬤│ │ │ │ 7  ⬤⬤│ ⬤│ │ 5  │ ⬤│ │ │ │ 2  │ ⬤│ │ │ │
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
3  │ │ │ │ │ │ 8  │ │ │ │ │ │ 6  │ │ ⬤│ │ │ 3  │ │ │ │ ⬤│
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
4  │ │ │ │ │ │ 9  │ │ │ │ │ │ 7  │ │ │ │ │ │ 4  │ │ │ │ │ │
   ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙


A7:

   ⬤⬤  ⬤  ⬤   ⬤⬤      ⬤   ⬤⬤           ⬤⬤  ⬤
   ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑
10 │ │ │ │ ⬤│ 5  │ │ ⬤│ ⬤│ 5  │ │ ⬤│ ⬤⬤9  │ │ │ │ │ ⬤
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
11 │ │ ⬤│ │ │ 6  │ │ │ ⬤│ │ 6  │ │ │ ⬤│ │ 10 │ │ │ │ ⬤│
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
12 │ │ │ │ │ │ 7  │ │ │ │ │ │ 7  │ │ │ │ │ │ 11 │ │ ⬤│ │ │
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
13 │ │ │ │ │ │ 8  │ │ │ │ │ │ 8  │ │ │ │ │ │ 12 │ │ │ │ │ │
   ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙

You can say Jazz, Pop, Blues, etc. You can also generate progressions in a custom way, using roman numerals:

coltrane progression I-vi-V-iidim in D

Generate fretboard sheets for improvising

Sometimes you wanna see the scale on guitar for improvising:


coltrane scale F pentatonic --on guitar

F Pentatonic Major:

E -- | F  -- G  -- A  -- -- C  -- D  -- -- F  -- G  -- A  -- -- C  -- D  --
A A  | -- -- C  -- D  -- -- F  -- G  -- A  -- -- C  -- D  -- -- F  -- G  --
D D  | -- -- F  -- G  -- A  -- -- C  -- D  -- -- F  -- G  -- A  -- -- C  --
G G  | -- A  -- -- C  -- D  -- -- F  -- G  -- A  -- -- C  -- D  -- -- F  --
B -- | C  -- D  -- -- F  -- G  -- A  -- -- C  -- D  -- -- F  -- G  -- A  --
E -- | F  -- G  -- A  -- -- C  -- D  -- -- F  -- G  -- A  -- -- C  -- D  --

             03    05    07    09       12       15    17    19

The same work for --on piano, --on bass, -- on ukulele, etc.

You can also see the chords by typing --tertians <size> or --chords [size]. --tertians will give you chords by sequential thirds while --chords will give you all chords with supplied size (or simply all if empty).

ProTip: You can force the guitar frets visualization for chords too using the --on guitar_frets option.

Finding the progression of a chord sequence

Perhaps this is the most complex operation that Coltrane performs. It searches the chords on all known scales, generates the progression notation and print in, sorted by notes left out. That is because most songs, specially knowadays, may use chords that contain notes which are outside of that scale.

This command us to analyze songs and discover what they have in common, even tho they have different notes.

Let's say we want to find the possible progressions of Red Hot Chili Pepper's Otherside:

coltrane find-progression Am-F-C-G

i-VI-III-VII   in A Natural Minor (0 notes out)
vi-IV-I-V      in C Major (0 notes out)
iii-I-V-II     in F Major (1 notes out)
vi-III-VII-IV  in D Hungarian Minor (1 notes out)
v-III-VII-IV   in D Natural Minor (1 notes out)
ii-VII-IV-I    in G Hungarian Minor (2 notes out)
ii-VII-IV-I    in G Natural Minor (2 notes out)
vii-V-II-VI    in A# Major (2 notes out)
iv-II-V-III    in D Pentatonic Minor (2 notes out)
v-II-VI-III    in D Blues Minor (2 notes out)
iii-I-IV-II    in F Pentatonic Major (2 notes out)
iv-I-V-II      in F Blues Major (2 notes out)

PS: Notice that vi-IV-I-V is the well known I-V-vi-IV progression, used in a lot of songs.

Interactive mode (shell)

Simply type coltrane or coltrane shell to enable interactive mode. You can then run commands without typing coltrane before, E.G.: scale D harmonic minor

Installation

$ gem install coltrane

PS: Once you install the gem the CLI is instaled in your system and it's ready to be used.

Any questions? Feature requests? Bugs?

  1. Find me on Twitter. I'll be glad to answer.
  2. Open an issue.
  3. Join our chatroom

Extra

Contributing

We are looking for contributors. Find me on our chatroom if you need any kind of information.

How to contribute

  1. Fork this code
  2. Install the test suite (RSpec) by running good old bundle command
  3. Make your changes and maybe write a test or two.
  4. Check if specs pass bundle exec rspec spec
  5. Submit a PR.

License

The gem is available as open source under the terms of the MIT License.

by Pedro Maciel | twitter | pedro@pedromaciel.com


Author: pedrozath
Source code: https://github.com/pedrozath/coltrane
License: MIT license

#ruby  #ruby-on-rails 

What is GEEK

Buddha Community

Coltrane: A Music Calculation Library/CLI Written in Ruby

Coltrane: A Music Calculation Library/CLI Written in Ruby

Coltrane

A music calculation library/CLI written in Ruby.

CLI (Command Line Interface)

Screenshot Screenshot

Features

  • Generate chord progressions for Jazz, Blues, Pop, or custom and see how to play them
  • Seek chords, see their notes and how to play them
  • Seek scales, see their notes and see how to play them
  • Find chords that are common between 2 scales
  • Find scales containing a chord or a set of notes
  • Find possible progressions of a chord sequence
  • All of the above can be seen on guitar, bass, piano or ukelele representations, no sheet music needed

How to discover a chord name using the notes

coltrane chords --notes C-E-G

CM:  C E G

To see it on guitar:

coltrane chords --notes C-E-G --on guitar

CM:

   ⬤    ⬤  ⬤   ⬤    ⬤  ⬤   ⬤    ⬤             ⬤  ⬤
   ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑
3  │ ⬤│ │ │ │ 8  │ │ │ │ ⬤│ 3  │ ⬤│ │ │ ⬤1  │ │ │ │ ⬤│
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
4  │ │ │ │ │ │ 9  │ │ │ │ │ │ 4  │ │ │ │ │ │ 2  │ │ ⬤│ │ │
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
5  │ │ ⬤│ ⬤│ 10 │ ⬤⬤│ │ │ 5  │ │ ⬤│ ⬤│ 3  ⬤⬤│ │ │ │
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
6  │ │ │ │ │ │ 11 │ │ │ │ │ │ 6  │ │ │ │ │ │ 4  │ │ │ │ │ │
   ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙

PS: It looks way better on the terminal 😒, specially on iTerm

How to discover a Scale by providing chords

You shall provide chords separated by dashes (--chords CM7-Dm7-EM) or notes (--notes C-Ab-F-G).

For example:

coltrane find-scale --chords E6/9-BM

Pentatonic Major C(1) C#(3) D(3) D#(1) E(5) F(0) F#(4) G(2) G#(2) A(4) A#(0) B(5)
Blues Major      C(2) C#(4) D(3) D#(2) E(5) F(1) F#(4) G(2) G#(3) A(4) A#(1) B(5)
Harmonic Minor   C(3) C#(5) D(2) D#(4) E(4) F(3) F#(4) G(2) G#(5) A(3) A#(3) B(4)
Hungarian Minor  C(2) C#(6) D(2) D#(4) E(3) F(3) F#(5) G(1) G#(5) A(3) A#(4) B(4)
Pentatonic Minor C(1) C#(5) D(0) D#(4) E(2) F(2) F#(4) G(0) G#(5) A(1) A#(3) B(3)
Blues Minor      C(2) C#(5) D(1) D#(4) E(2) F(3) F#(4) G(1) G#(5) A(2) A#(4) B(3)
Whole Tone       C(3) C#(3) D(3) D#(3) E(3) F(3) F#(3) G(3) G#(3) A(3) A#(3) B(3)
Flamenco         C(3) C#(4) D(2) D#(5) E(3) F(3) F#(4) G(3) G#(5) A(2) A#(4) B(4)
Major            C(2) C#(4) D(4) D#(2) E(6) F(1) F#(5) G(3) G#(3) A(5) A#(1) B(6)
Natural Minor    C(2) C#(6) D(1) D#(5) E(3) F(3) F#(5) G(1) G#(6) A(2) A#(4) B(4)

When on terminal, the command above will highlight the Scales that have all needed notes. The number in the parenthesis show how many chord notes were included.

How to find common chords

You may use this command to find a chord that may serve as bridge to a different scale/key (i.e. modulation). Coltrane offers you a command to find common chords shared between both keys/scales. Here is how you use it. Say you wanna transition from C Major to D Natural Minor.

coltrane common-chords C Major, D Natural Minor

Dm:  D F A
Am:  A C E
Dm7: D F A C
Am7: A C E G
CM:  C E G
FM:  F A C
CM6: C E G A
FM6: F A C D
C6/9: C E G A D
F6/9: F A C D G
C6/9(add11): C E G A D F
[...]

You can, whenever it fits, add an --on <instrument> to see the output in a graphical representation:

coltrane common-chords C Major, D Natural Minor --on piano

Dm:

┌─┬─┬┬─┬─╥─┬─┬┬─┬┬─┬─╥─┬─┬┬─┬─╥─┬─┬┬─┬┬─┬─┐
│ │ ││ │ ║ │ ││ ││ │ ║ │ ││ │ ║ │ ││ ││ │ │
│ │ ││ │ ║ │ ││ ││ │ ║ │ ││ │ ║ │ ││ ││ │ │
│ │ ││ │ ║ │ ││ ││ │ ║ │ ││ │ ║ │ ││ ││ │ │
│ ┕╥┙┕╥┙ ║ ┕╥┙┕╥┙┕╥┙ ║ ┕╥┙┕╥┙ ║ ┕╥┙┕╥┙┕╥┙ │
│  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  │
│  ║D♮║  ║F♮║  ║A♮║  ║  ║D♮║  ║F♮║  ║A♮║  │
└──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──┘

Am:

┌─┬─┬┬─┬─╥─┬─┬┬─┬┬─┬─╥─┬─┬┬─┬─╥─┬─┬┬─┬┬─┬─┐
│ │ ││ │ ║ │ ││ ││ │ ║ │ ││ │ ║ │ ││ ││ │ │
│ │ ││ │ ║ │ ││ ││ │ ║ │ ││ │ ║ │ ││ ││ │ │
│ │ ││ │ ║ │ ││ ││ │ ║ │ ││ │ ║ │ ││ ││ │ │
│ ┕╥┙┕╥┙ ║ ┕╥┙┕╥┙┕╥┙ ║ ┕╥┙┕╥┙ ║ ┕╥┙┕╥┙┕╥┙ │
│  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  │
│C♮║  ║E♮║  ║  ║A♮║  ║C♮║  ║E♮║  ║  ║A♮║  │
└──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──╨──┘

[...]

Quickly generate chord progressions

coltrane progression jazz in A --on guitar

Bm7:

       ⬤  ⬤       ⬤⬤  ⬤       ⬤⬤           ⬤    ⬤
   ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑
2  ⬤⬤│ ⬤│ ⬤2  ⬤│ │ │ │ ⬤2  ⬤│ │ │ │ ⬤9  │ │ ⬤│ │ │
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
3  │ │ │ │ │ │ 3  │ │ │ │ │ │ 3  │ │ │ │ ⬤│ 10 ⬤│ │ │ │ ⬤
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
4  │ │ │ │ │ │ 4  │ │ │ ⬤│ │ 4  │ │ │ ⬤│ │ 11 │ │ │ ⬤│ │
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
5  │ │ │ │ │ │ 5  │ │ │ │ │ │ 5  │ │ │ │ │ │ 12 │ │ │ │ │ │
   ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙


E7:

   ⬤  ⬤  ⬤⬤           ⬤⬤   ⬤      ⬤⬤   ⬤  ⬤    ⬤
   ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑
1  │ │ │ ⬤│ │ 6  │ │ ⬤│ │ │ 4  │ │ │ ⬤│ │ 1  │ │ │ ⬤│ │
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
2  │ ⬤│ │ │ │ 7  ⬤⬤│ ⬤│ │ 5  │ ⬤│ │ │ │ 2  │ ⬤│ │ │ │
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
3  │ │ │ │ │ │ 8  │ │ │ │ │ │ 6  │ │ ⬤│ │ │ 3  │ │ │ │ ⬤│
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
4  │ │ │ │ │ │ 9  │ │ │ │ │ │ 7  │ │ │ │ │ │ 4  │ │ │ │ │ │
   ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙


A7:

   ⬤⬤  ⬤  ⬤   ⬤⬤      ⬤   ⬤⬤           ⬤⬤  ⬤
   ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑    ┍━┯━┯━┯━┯━┑
10 │ │ │ │ ⬤│ 5  │ │ ⬤│ ⬤│ 5  │ │ ⬤│ ⬤⬤9  │ │ │ │ │ ⬤
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
11 │ │ ⬤│ │ │ 6  │ │ │ ⬤│ │ 6  │ │ │ ⬤│ │ 10 │ │ │ │ ⬤│
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
12 │ │ │ │ │ │ 7  │ │ │ │ │ │ 7  │ │ │ │ │ │ 11 │ │ ⬤│ │ │
   ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥    ┝━┿━┿━┿━┿━┥
13 │ │ │ │ │ │ 8  │ │ │ │ │ │ 8  │ │ │ │ │ │ 12 │ │ │ │ │ │
   ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙    ┕━┷━┷━┷━┷━┙

You can say Jazz, Pop, Blues, etc. You can also generate progressions in a custom way, using roman numerals:

coltrane progression I-vi-V-iidim in D

Generate fretboard sheets for improvising

Sometimes you wanna see the scale on guitar for improvising:


coltrane scale F pentatonic --on guitar

F Pentatonic Major:

E -- | F  -- G  -- A  -- -- C  -- D  -- -- F  -- G  -- A  -- -- C  -- D  --
A A  | -- -- C  -- D  -- -- F  -- G  -- A  -- -- C  -- D  -- -- F  -- G  --
D D  | -- -- F  -- G  -- A  -- -- C  -- D  -- -- F  -- G  -- A  -- -- C  --
G G  | -- A  -- -- C  -- D  -- -- F  -- G  -- A  -- -- C  -- D  -- -- F  --
B -- | C  -- D  -- -- F  -- G  -- A  -- -- C  -- D  -- -- F  -- G  -- A  --
E -- | F  -- G  -- A  -- -- C  -- D  -- -- F  -- G  -- A  -- -- C  -- D  --

             03    05    07    09       12       15    17    19

The same work for --on piano, --on bass, -- on ukulele, etc.

You can also see the chords by typing --tertians <size> or --chords [size]. --tertians will give you chords by sequential thirds while --chords will give you all chords with supplied size (or simply all if empty).

ProTip: You can force the guitar frets visualization for chords too using the --on guitar_frets option.

Finding the progression of a chord sequence

Perhaps this is the most complex operation that Coltrane performs. It searches the chords on all known scales, generates the progression notation and print in, sorted by notes left out. That is because most songs, specially knowadays, may use chords that contain notes which are outside of that scale.

This command us to analyze songs and discover what they have in common, even tho they have different notes.

Let's say we want to find the possible progressions of Red Hot Chili Pepper's Otherside:

coltrane find-progression Am-F-C-G

i-VI-III-VII   in A Natural Minor (0 notes out)
vi-IV-I-V      in C Major (0 notes out)
iii-I-V-II     in F Major (1 notes out)
vi-III-VII-IV  in D Hungarian Minor (1 notes out)
v-III-VII-IV   in D Natural Minor (1 notes out)
ii-VII-IV-I    in G Hungarian Minor (2 notes out)
ii-VII-IV-I    in G Natural Minor (2 notes out)
vii-V-II-VI    in A# Major (2 notes out)
iv-II-V-III    in D Pentatonic Minor (2 notes out)
v-II-VI-III    in D Blues Minor (2 notes out)
iii-I-IV-II    in F Pentatonic Major (2 notes out)
iv-I-V-II      in F Blues Major (2 notes out)

PS: Notice that vi-IV-I-V is the well known I-V-vi-IV progression, used in a lot of songs.

Interactive mode (shell)

Simply type coltrane or coltrane shell to enable interactive mode. You can then run commands without typing coltrane before, E.G.: scale D harmonic minor

Installation

$ gem install coltrane

PS: Once you install the gem the CLI is instaled in your system and it's ready to be used.

Any questions? Feature requests? Bugs?

  1. Find me on Twitter. I'll be glad to answer.
  2. Open an issue.
  3. Join our chatroom

Extra

Contributing

We are looking for contributors. Find me on our chatroom if you need any kind of information.

How to contribute

  1. Fork this code
  2. Install the test suite (RSpec) by running good old bundle command
  3. Make your changes and maybe write a test or two.
  4. Check if specs pass bundle exec rspec spec
  5. Submit a PR.

License

The gem is available as open source under the terms of the MIT License.

by Pedro Maciel | twitter | pedro@pedromaciel.com


Author: pedrozath
Source code: https://github.com/pedrozath/coltrane
License: MIT license

#ruby  #ruby-on-rails 

Ruby on Rails Development Services | Ruby on Rails Development

Ruby on Rails is a development tool that offers Web & Mobile App Developers a structure for all the codes they write resulting in time-saving with all the common repetitive tasks during the development stage.

Want to build a Website or Mobile App with Ruby on Rails Framework

Connect with WebClues Infotech, the top Web & Mobile App development company that has served more than 600 clients worldwide. After serving them with our services WebClues Infotech is ready to serve you in fulfilling your Web & Mobile App Development Requirements.

Want to know more about development on the Ruby on Rails framework?

Visit: https://www.webcluesinfotech.com/ruby-on-rails-development/

Share your requirements https://www.webcluesinfotech.com/contact-us/

View Portfolio https://www.webcluesinfotech.com/portfolio/

#ruby on rails development services #ruby on rails development #ruby on rails web development company #ruby on rails development company #hire ruby on rails developer #hire ruby on rails developers

Shardul Bhatt

Shardul Bhatt

1626850869

7 Reasons to Trust Ruby on Rails

Ruby on Rails is an amazing web development framework. Known for its adaptability, it powers 3,903,258 sites internationally. Ruby on Rails development speeds up the interaction within web applications. It is productive to such an extent that a Ruby on Rails developer can develop an application 25% to 40% quicker when contrasted with different frameworks. 

Around 2.1% (21,034) of the best 1 million sites utilize Ruby on Rails. The framework is perfect for creating web applications in every industry. Regardless of whether it's medical services or vehicles, Rails carries a higher degree of dynamism to each application. 

Be that as it may, what makes the framework so mainstream? Some say that it is affordable, some say it is on the grounds that the Ruby on Rails improvement environment is simple and basic. There are numerous reasons that make it ideal for creating dynamic applications.

Read more: Best Ruby on Rails projects Examples

7 reasons Ruby on Rails is preferred

There are a few other well-known backend services for web applications like Django, Flask, Laravel, and that's only the tip of the iceberg. So for what reason should organizations pick Ruby on Rails application development? We believe the accompanying reasons will feature why different organizations trust the framework -

Quick prototyping 

Rails works on building MVPs in a couple of months. Organizations incline toward Ruby on Rails quick application development as it offers them more opportunity to showcase the elements. Regular development groups accomplish 25% to 40% higher efficiency when working with Rails. Joined with agile, Ruby on Rails empowers timely delivery.

Basic and simple 

Ruby on Rails is easy to arrange and work with. It is not difficult to learn also. Both of these things are conceivable as a result of Ruby. The programming language has one of the most straightforward sentence structures, which is like the English language. Ruby is a universally useful programming language, working on things for web applications. 

Cost-effective 

Probably the greatest advantage of Rails is that it is very reasonable. The system is open-source, which implies there is no licensing charge included. Aside from that, engineers are additionally effectively accessible, that too at a lower cost. There are a large number of Ruby on Rails engineers for hire at an average compensation of $107,381 each year. 

Startup-friendly

Ruby on Rails is regularly known as "the startup technology." It offers adaptable, fast, and dynamic web improvement to new companies. Most arising organizations and new businesses lean toward this as a direct result of its quick application improvement capacities. It prompts quicker MVP development, which permits new companies to rapidly search for venture investment. 

Adaptable framework 

Ruby on Rails is profoundly adaptable and versatile. In any event, when engineers miss adding any functions, they can utilize different modules to add highlights into the application. Aside from that, they can likewise reclassify components by eliminating or adding them during the development environment. Indeed, even individual projects can be extended and changed. 

Convention over configuration

Regardless of whether it's Ruby on Rails enterprise application development or ecommerce-centered applications, the system utilizes convention over configuration. Developers don't have to go through hours attempting to set up the Ruby on Rails improvement environment. The standard conventions cover everything, improving on things for engineers on the task. The framework likewise utilizes the standard of "Don't Repeat Yourself" to guarantee there are no redundancies. 

Versatile applications 

At the point when organizations scale, applications regularly slack. However, this isn't the situation with Ruby on Rails web application development. The system powers sites with high traffic, It can deal with a huge load of worker demands immediately. Adaptability empowers new businesses to keep utilizing the structure even after they prepare their first model for dispatch. 

Checkout Pros and Cons of Ruby on Rails for Web Development

Bottom Line 

Ruby on Rails is as yet a significant framework utilized by organizations all over the world - of every kind. In this day and age, it is probably the best framework to digitize endeavors through powerful web applications.

A software development company provides comprehensive Ruby on Rails development to guarantee startups and MNCs can benefit as much as possible from their digital application needs. 

Reach us today for a FREE CONSULTATION

#ruby on rails development #ruby on rails application development #ruby on rails web application development #ruby on rails developer

Emily Johnson

1599568900

Hire Ruby on Rails Developer | Hire RoR Developer

Are you looking for Ruby on Rails developers for building next-generation web applications?

Bacancy Technology is top-notch Ruby on Rails development company providing world’s best Ruby On Rails Development Services With 8+ Years Of Experience. Hire Ruby on Rails developer for web application that reflects cutting-edge solutions for your business needs. Access 40+ RoR developers. save upto 40% on development cost.

Get top Ruby on Rails developers from Bacancy Technology, contact now and hire your choice of developer’s within 48 Hours, to know more about our RoR services & pricing: https://www.bacancytechnology.com/ruby-on-rails-development

ruby on rails development

#hire ruby on rails developer #ruby on rails developer #ruby on rails development company #ruby on rails development services #hire ror developer #ruby on rails development

CSS Boss

CSS Boss

1606912089

How to create a calculator using javascript - Pure JS tutorials |Web Tutorials

In this video I will tell you How to create a calculator using javascript very easily.

#how to build a simple calculator in javascript #how to create simple calculator using javascript #javascript calculator tutorial #javascript birthday calculator #calculator using javascript and html