chord_diagrams 0.0.6 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/.travis.yml +2 -2
- data/README.md +7 -11
- data/chord_diagrams.gemspec +7 -7
- data/lib/chord_diagrams.rb +2 -2
- data/lib/chord_diagrams/fingerings.csv +7 -2
- data/lib/chord_diagrams/version.rb +1 -1
- metadata +18 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd5808f4c95547936f46bd3c6e6012f5d6fcfea5940c9b4674c2ed5caab6d1c8
|
4
|
+
data.tar.gz: d7307034e5ccd952930e2bb5a0e25722096d4ffa969ed8ddce1fe1d4ec522def
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b812b32121a8647a0b6e5dafe3547742be2d8c6c2202ca534a424b2dfae768e4bf60637feddf2e6922c9034a37292cbb072620374b74a557befe8199111d6031
|
7
|
+
data.tar.gz: dcc129ecd9af3344a04552be7a0878996d47fdad743077519b7633c64272dbc5b2a99ac4427441c79f32eaa9fff4fb01d6c0cec1558919389185e728d3efdbde
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.3
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ChordDiagrams
|
1
|
+
# ChordDiagrams [![Build Status](https://www.travis-ci.com/spilth/chord_diagrams.svg?branch=master)](https://www.travis-ci.com/spilth/chord_diagrams)
|
2
2
|
|
3
3
|
Generate SVGs for Guitar and Ukulele Chord Diagrams
|
4
4
|
|
@@ -12,11 +12,15 @@ gem 'chord_diagrams'
|
|
12
12
|
|
13
13
|
And then execute:
|
14
14
|
|
15
|
-
|
15
|
+
```bash
|
16
|
+
$ bundle
|
17
|
+
```
|
16
18
|
|
17
19
|
Or install it yourself as:
|
18
20
|
|
19
|
-
|
21
|
+
```bash
|
22
|
+
$ gem install chord_diagrams
|
23
|
+
```
|
20
24
|
|
21
25
|
## Usage
|
22
26
|
|
@@ -26,14 +30,6 @@ puts ChordDiagrams.guitar_svg('Am')
|
|
26
30
|
puts ChordDiagrams.ukulele_svg('Am')
|
27
31
|
```
|
28
32
|
|
29
|
-
### Guitar
|
30
|
-
|
31
|
-
<svg width="100" height="100" viewBox="0 0 200 200"><text x="100" y="40" text-anchor="middle" style="font-size:36; font-weight:bold">Am</text><line x1="50" y1="80" x2="150" y2="80" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="100" x2="150" y2="100" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="120" x2="150" y2="120" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="140" x2="150" y2="140" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="160" x2="150" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="80" x2="50" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="70" y1="80" x2="70" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="90" y1="80" x2="90" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="110" y1="80" x2="110" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="130" y1="80" x2="130" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="150" y1="80" x2="150" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="49" y1="77" x2="151" y2="77" style="stroke:black; stroke-width:8"/><circle cx="50" cy="61" r="6" style="stroke:black; fill:white; stroke-width:2"/><circle cx="70" cy="61" r="6" style="stroke:black; fill:white; stroke-width:2"/><circle cx="90" cy="110" r="8" style="fill:black"/><circle cx="110" cy="110" r="8" style="fill:black"/><circle cx="130" cy="90" r="8" style="fill:black"/><circle cx="150" cy="61" r="6" style="stroke:black; fill:white; stroke-width:2"/></svg>
|
32
|
-
|
33
|
-
### Ukulele
|
34
|
-
|
35
|
-
<svg width="80" height="100" viewBox="0 0 160 200"><text id="chordName" x="80" y="40" text-anchor="middle" style="font-size:36; font-weight:bold">Am</text><line x1="50" y1="80" x2="110" y2="80" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="100" x2="110" y2="100" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="120" x2="110" y2="120" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="140" x2="110" y2="140" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="160" x2="110" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="80" x2="50" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="70" y1="80" x2="70" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="90" y1="80" x2="90" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="110" y1="80" x2="110" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line id="nut" x1="49" y1="77" x2="111" y2="77" style="stroke:black; stroke-width:8"/><circle cx="50" cy="90" r="8" style="fill:black"/><circle cx="70" cy="61" r="6" style="stroke:black; fill:white; stroke-width:2"/><circle cx="90" cy="61" r="6" style="stroke:black; fill:white; stroke-width:2"/><circle cx="110" cy="61" r="6" style="stroke:black; fill:white; stroke-width:2"/></svg>
|
36
|
-
|
37
33
|
## Development
|
38
34
|
|
39
35
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/chord_diagrams.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ['Brian Kelly']
|
9
9
|
spec.email = ['bkelly@carbonfive.com']
|
10
10
|
|
11
|
-
spec.summary = 'Generate Chord Diagrams for Guitar'
|
12
|
-
spec.description = 'Generate Chord Diagrams for Guitar'
|
11
|
+
spec.summary = 'Generate Chord Diagrams for Guitar and Ukulele'
|
12
|
+
spec.description = 'Generate Chord Diagrams for Guitar and Ukulele'
|
13
13
|
spec.homepage = 'https://github.com/spilth/chord_diagrams'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
@@ -35,9 +35,9 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
36
36
|
spec.require_paths = ['lib']
|
37
37
|
|
38
|
-
spec.add_dependency 'victor', '0.2
|
39
|
-
spec.add_development_dependency 'bundler', '~> 2.
|
40
|
-
spec.add_development_dependency 'rake', '~>
|
41
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
42
|
-
spec.add_development_dependency 'nokogiri'
|
38
|
+
spec.add_dependency 'victor', '0.3.2'
|
39
|
+
spec.add_development_dependency 'bundler', '~> 2.2'
|
40
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
41
|
+
spec.add_development_dependency 'rspec', '~> 3.8'
|
42
|
+
spec.add_development_dependency 'nokogiri', '~> 1.11'
|
43
43
|
end
|
data/lib/chord_diagrams.rb
CHANGED
@@ -11,7 +11,7 @@ module ChordDiagrams
|
|
11
11
|
|
12
12
|
class << self
|
13
13
|
def ukulele_svg(name, _fingering = nil)
|
14
|
-
svg = Victor::SVG.new template: :
|
14
|
+
svg = Victor::SVG.new template: :minimal, width: 80, height: 100, viewBox: '0 0 160 200'
|
15
15
|
|
16
16
|
ChordDiagrams.draw_ukulele_name(name, svg)
|
17
17
|
ChordDiagrams.draw_ukulele_frets(svg)
|
@@ -29,7 +29,7 @@ module ChordDiagrams
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def guitar_svg(name, fingering = nil)
|
32
|
-
svg = Victor::SVG.new template: :
|
32
|
+
svg = Victor::SVG.new template: :minimal, width: 100, height: 100, viewBox: '0 0 200 200'
|
33
33
|
|
34
34
|
ChordDiagrams.draw_guitar_name(name, svg)
|
35
35
|
ChordDiagrams.draw_guitar_frets(svg)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
chord,guitar,ukulele
|
2
|
-
A,
|
2
|
+
A,x02220,2100
|
3
3
|
B,x24442,4322
|
4
4
|
Bb,x13331,3211
|
5
5
|
C,x32010,0003
|
@@ -25,6 +25,7 @@ C7,x32310,0001
|
|
25
25
|
C#7,x46464,1112
|
26
26
|
D7,x00212,2223
|
27
27
|
E7,020100,1202
|
28
|
+
E7sus4,020200,2200
|
28
29
|
F7,131211,2313
|
29
30
|
F#7,242322,3424
|
30
31
|
G7,320001,0212
|
@@ -43,7 +44,8 @@ Dsus4,xx0233,0230
|
|
43
44
|
Esus4,022200,4400
|
44
45
|
A7sus4,002030,0200
|
45
46
|
G7sus4,353533,0213
|
46
|
-
|
47
|
+
G+,x21003,332
|
48
|
+
Am,002210,2000
|
47
49
|
Bm,x24432,3222
|
48
50
|
Cm,x35543,0333
|
49
51
|
C#m,x46654,1104
|
@@ -85,6 +87,9 @@ Am/G,302210,0000
|
|
85
87
|
A#m/D#,xx1321,2214
|
86
88
|
Dm/F,10323x,2210
|
87
89
|
Gm/Bb,x10333,0231
|
90
|
+
A7/G,302020,0100
|
88
91
|
G#dim,4564xx,1202
|
89
92
|
D#dim7,xx1212,2323
|
90
93
|
G#dim7,456464,1212
|
94
|
+
Daug,xx0332,3221
|
95
|
+
Aaug,x03221,2114
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chord_diagrams
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Kelly
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: victor
|
@@ -16,71 +16,71 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.2
|
19
|
+
version: 0.3.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.2
|
26
|
+
version: 0.3.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '2.
|
33
|
+
version: '2.2'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
40
|
+
version: '2.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '13.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
61
|
+
version: '3.8'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
68
|
+
version: '3.8'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: nokogiri
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '1.11'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
83
|
-
description: Generate Chord Diagrams for Guitar
|
82
|
+
version: '1.11'
|
83
|
+
description: Generate Chord Diagrams for Guitar and Ukulele
|
84
84
|
email:
|
85
85
|
- bkelly@carbonfive.com
|
86
86
|
executables: []
|
@@ -89,6 +89,7 @@ extra_rdoc_files: []
|
|
89
89
|
files:
|
90
90
|
- ".gitignore"
|
91
91
|
- ".rspec"
|
92
|
+
- ".ruby-version"
|
92
93
|
- ".travis.yml"
|
93
94
|
- Gemfile
|
94
95
|
- LICENSE.txt
|
@@ -123,8 +124,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
124
|
- !ruby/object:Gem::Version
|
124
125
|
version: '0'
|
125
126
|
requirements: []
|
126
|
-
rubygems_version: 3.
|
127
|
+
rubygems_version: 3.1.6
|
127
128
|
signing_key:
|
128
129
|
specification_version: 4
|
129
|
-
summary: Generate Chord Diagrams for Guitar
|
130
|
+
summary: Generate Chord Diagrams for Guitar and Ukulele
|
130
131
|
test_files: []
|