nilsteps 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 858207709fea73cf045a1cb96c1fb5a2ef553420
4
- data.tar.gz: cc2a593575d7c3a5de303215a7407219f9eb5ddd
3
+ metadata.gz: db5ea5dd73c6ee5857368375921e67f8bf3766a7
4
+ data.tar.gz: be0719a197f8f1fd93c2b4967898b8f6d842df7b
5
5
  SHA512:
6
- metadata.gz: 990278394c4484e76e0610a4a992ba1bd5b35ffb03d1205f9531f29069c3f4bf9aaeea619231b138b1278cdd56127263a5e8f591a0f7bc1bc71d308fad977446
7
- data.tar.gz: d90b070fafc5c33f8db206c43fd015b0b01d1b8fcea40fc88fbbabac65d609d4a1d5575357f1c5261d979e8771bc6a31ec93f6ca07d8a3aec2f2e43ef97b7c5d
6
+ metadata.gz: acae591e280c76356339d9c03fc1ac41ee83c344359f2da5bdf8762efe4bf043da8a03d979b727ebf6b3aaab6f46c6287bae5086d44322b38b59892d699514d5
7
+ data.tar.gz: 8bcb7a9027ecd5cdfa52e3ed62d742eb45b1f9876bb1145e27708fe2c98e9708fe5d84a043ff9d38c8d2db477191dbbd658ac1f4883ff05b5eb2c9d9d42008a6
data/README.md CHANGED
@@ -22,7 +22,7 @@ Or install it yourself as:
22
22
 
23
23
  ```ruby
24
24
  # C1 for 1st note and D1 for 8th note of 16 steps in a bar
25
- seq = NilSteps::Sequencer.new
25
+ seq = Nilsteps::Sequencer.new
26
26
  seq.setup_steps(0 => 'C1', 8 => 'D1')
27
27
  seq.play(4)
28
28
  ```
@@ -24,7 +24,6 @@ module Nilsteps
24
24
  # 16 steps / bar OSC sequencer for a track
25
25
  #
26
26
  class Sequencer
27
-
28
27
  def initialize(bpm: 120, length: 16, osc_server: "localhost", osc_port: 2345)
29
28
  @steps = Array.new(length)
30
29
  @resolution = 16 # Cannot change resolution for the moment
@@ -45,24 +44,24 @@ module Nilsteps
45
44
  end
46
45
  end
47
46
 
48
- # def note_length
49
- # case @resolution
50
- # when 1
51
- # @bpm_to_ms.whole_note
52
- # when 2
53
- # @bpm_to_ms.half_note
54
- # when 4
55
- # @bpm_to_ms.quater_note
56
- # when 8
57
- # @bpm_to_ms.eighth_note
58
- # when 16
59
- # @bpm_to_ms.sixteenth_note
60
- # when 32
61
- # @bpm_to_ms.thirtysecond_note
62
- # else
63
- # @bpm_to_ms.sixteenth_note
64
- # end
65
- # end
47
+ def note_length
48
+ case @resolution
49
+ when 1
50
+ @bpm_to_ms.whole_note
51
+ when 2
52
+ @bpm_to_ms.half_note
53
+ when 4
54
+ @bpm_to_ms.quater_note
55
+ when 8
56
+ @bpm_to_ms.eighth_note
57
+ when 16
58
+ @bpm_to_ms.sixteenth_note
59
+ when 32
60
+ @bpm_to_ms.thirtysecond_note
61
+ else
62
+ @bpm_to_ms.sixteenth_note
63
+ end
64
+ end
66
65
 
67
66
  #
68
67
  # Play sequence
@@ -1,3 +1,3 @@
1
1
  module Nilsteps
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nilsteps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - WAKASUGI 5T111111
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-16 00:00:00.000000000 Z
11
+ date: 2016-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.4.5
129
+ rubygems_version: 2.5.1
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Simple OSC step sequencer