music_theory 0.3.0 → 0.3.1
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 +4 -4
- data/README.md +59 -2
- data/lib/music_theory/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a5d519ace1b093d55f459520a9d7ed3558fec0b
|
|
4
|
+
data.tar.gz: 21c5654334a06e7aaca2997cc7bfec37c77715b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 21096c8b9596fd01f847d0fdc054476b3a12c10982c0312d9f5ad542c3e3cdde557c7f5f0912aac3b9563c0c1a3c67f6bbc77a15647f78baf55a025f69cef142
|
|
7
|
+
data.tar.gz: 7973890652597a1ef13db3d7945bee252732f5b6049b678a0ea4ba56535501a56b8978d0fb723aa0f7907ba528ef06ab911ec652ea3784eda5b356219001f5c8
|
data/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# MusicTheory
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Learn Music through Ruby!
|
|
4
|
+
|
|
5
|
+
Based on my presentation at MtnWest Ruby Conference. Slides/link to come.
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
@@ -20,7 +22,56 @@ Or install it yourself as:
|
|
|
20
22
|
|
|
21
23
|
## Usage
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
Play any of the sample songs by running them with ruby
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
ruby samples/arpeggios.rb
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
``` ruby
|
|
33
|
+
require 'music_theory'
|
|
34
|
+
```
|
|
35
|
+
Make new notes
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
MusicTheory::Note.new
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Play Notes
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
MusicTheory::Note.new.play
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Create scales
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
MusicTheory::Scale.new
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Play Scales
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
MusicTheory::Scale.new.play
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Play chords
|
|
60
|
+
```
|
|
61
|
+
MusicTheory::Scale.new.chord.play
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Play third
|
|
65
|
+
```
|
|
66
|
+
MusicTheory::Scale.new.third.play
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Play arpeggios
|
|
70
|
+
```
|
|
71
|
+
MusicTheory::Scale.new.arpeggio.play
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
|
|
24
75
|
|
|
25
76
|
## Contributing
|
|
26
77
|
|
|
@@ -29,3 +80,9 @@ TODO: Write usage instructions here
|
|
|
29
80
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
30
81
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
31
82
|
5. Create a new Pull Request
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## Thanks
|
|
86
|
+
|
|
87
|
+
1. URUG community
|
|
88
|
+
2. Alex Speller (for indirect inspiration)
|
data/lib/music_theory/version.rb
CHANGED