diamond 0.5.5 → 0.5.6
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/LICENSE +1 -1
- data/README.md +12 -12
- data/lib/diamond.rb +4 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dda5f53e01c2c1c87fb8a3d3097084b567cf2d8c
|
4
|
+
data.tar.gz: ba31d836f9c08825122360a34a21a60dd856831e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7960c341e990577768433a01002966bebffcaed82eaa4ed1de9a085fdfa56e985f18674bc2956411cc93c50af985776e4ff157e232b7fc0e61685af79ed0af6e
|
7
|
+
data.tar.gz: 5c3c3c219757061151edb95962e748ab11b7c5dd9e0e4306038225adb88bec2a8be6b92c6b147aca36a607af43a68fb60399effd94850892542bd21a84ae69bc
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -11,16 +11,16 @@
|
|
11
11
|
* MIDI clock IO
|
12
12
|
* Multiplex clocks and arpeggiators
|
13
13
|
* Suited to [live coding](http://en.wikipedia.org/wiki/Live_coding)
|
14
|
-
* Generative arpeggio patterns
|
14
|
+
* Generative arpeggio patterns
|
15
15
|
|
16
16
|
##Installation
|
17
17
|
|
18
18
|
`gem install diamond`
|
19
|
-
|
19
|
+
|
20
20
|
or with Bundler, add this to your Gemfile
|
21
|
-
|
22
|
-
`gem "diamond"`
|
23
|
-
|
21
|
+
|
22
|
+
`gem "diamond"`
|
23
|
+
|
24
24
|
##Usage
|
25
25
|
|
26
26
|
```ruby
|
@@ -36,16 +36,16 @@ First, select a MIDI output using [unimidi](https://github.com/arirusso/unimidi)
|
|
36
36
|
The Diamond arpeggiator has a number of [optional parameters](http://rubydoc.info/github/arirusso/diamond/master/Diamond/Arpeggiator:initialize). For this example, here's a straightforward setup
|
37
37
|
|
38
38
|
```ruby
|
39
|
-
options = {
|
40
|
-
:gate => 90,
|
39
|
+
options = {
|
40
|
+
:gate => 90,
|
41
41
|
:interval => 7,
|
42
42
|
:midi => @output,
|
43
43
|
:pattern => "UpDown",
|
44
|
-
:range => 4,
|
44
|
+
:range => 4,
|
45
45
|
:rate => 8
|
46
46
|
}
|
47
47
|
|
48
|
-
arpeggiator = Diamond::Arpeggiator.new(options)
|
48
|
+
arpeggiator = Diamond::Arpeggiator.new(options)
|
49
49
|
```
|
50
50
|
|
51
51
|
Create a clock object, passing in a tempo value. In this case the tempo will be 138 BPM
|
@@ -69,7 +69,7 @@ chord = ["C3", "G3", "Bb3", "A4"]
|
|
69
69
|
Use `Arpeggiator#add` and `Arpeggiator#remove` to change the notes that the arpeggiator sees. (`Arpeggiator#<<` is the same as add)
|
70
70
|
|
71
71
|
```ruby
|
72
|
-
arpeggiator.add(chord)
|
72
|
+
arpeggiator.add(chord)
|
73
73
|
arpeggiator << "C5"
|
74
74
|
```
|
75
75
|
|
@@ -110,7 +110,7 @@ This [blog post](http://tx81z.blogspot.com/2011/07/live-coding-with-diamond.html
|
|
110
110
|
* [Use Diamond as a master MIDI clock](http://github.com/arirusso/diamond/blob/master/examples/midi_clock_output.rb)
|
111
111
|
|
112
112
|
[More...](http://github.com/arirusso/diamond/blob/master/examples)
|
113
|
-
|
113
|
+
|
114
114
|
##Other Documentation
|
115
115
|
|
116
116
|
* [rdoc](http://rubydoc.info/github/arirusso/diamond)
|
@@ -123,4 +123,4 @@ This [blog post](http://tx81z.blogspot.com/2011/07/live-coding-with-diamond.html
|
|
123
123
|
|
124
124
|
Apache 2.0, See the file LICENSE
|
125
125
|
|
126
|
-
Copyright (c) 2011-
|
126
|
+
Copyright (c) 2011-2015 [Ari Russo](http://arirusso.com)
|
data/lib/diamond.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
#
|
2
2
|
# Diamond
|
3
|
-
#
|
4
3
|
# MIDI arpeggiator in Ruby
|
5
|
-
#
|
4
|
+
#
|
5
|
+
# (c)2011-2015 Ari Russo
|
6
|
+
# Apache 2.0 License
|
6
7
|
#
|
7
8
|
|
8
9
|
# libs
|
@@ -30,6 +31,6 @@ require "diamond/sequence_parameters"
|
|
30
31
|
|
31
32
|
module Diamond
|
32
33
|
|
33
|
-
VERSION = "0.5.
|
34
|
+
VERSION = "0.5.6"
|
34
35
|
|
35
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diamond
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ari Russo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -136,7 +136,7 @@ dependencies:
|
|
136
136
|
requirements:
|
137
137
|
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: '0'
|
139
|
+
version: '1.0'
|
140
140
|
- - ">="
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: 1.0.3
|
@@ -146,7 +146,7 @@ dependencies:
|
|
146
146
|
requirements:
|
147
147
|
- - "~>"
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version: '0'
|
149
|
+
version: '1.0'
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 1.0.3
|
@@ -296,7 +296,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
296
296
|
version: 1.3.6
|
297
297
|
requirements: []
|
298
298
|
rubyforge_project: diamond
|
299
|
-
rubygems_version: 2.
|
299
|
+
rubygems_version: 2.4.6
|
300
300
|
signing_key:
|
301
301
|
specification_version: 4
|
302
302
|
summary: MIDI Arpeggiator
|