cemetry 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d2537df51d7240bcf95a55784a70c344d28c936
4
- data.tar.gz: e9c4166297f1fc46aa8ba1dd92dc0171d05e0251
3
+ metadata.gz: abbc308da2bab59ef0dac80504a225f5f35a378f
4
+ data.tar.gz: 771e53f0fe3f0b82da2e0736aaa778473f4faa44
5
5
  SHA512:
6
- metadata.gz: e0f6394de8d060b53836b10d0ed4ffc8fd55f62e7ebf02b79b35f0304dc3a99014ac0a8a8d9155e2f88e072c63e116de5ac20b87257d99dd875d67f8dda7172f
7
- data.tar.gz: 34df0a964f8055e4bb94163b9046a59e7f93b47b6008ec90ef111ddbff4d015af1a5275ab3dc7fa7862dc8c174d53edd8fe4d029cf479f31e0bc7e3cb45dd2bf
6
+ metadata.gz: 1198f9b8fc8d56c7e1c7a9598f1683179784509053325d02d7c2db715f075eedf60cc8cfb5ee9b1fe6df2e200f619c8d9730090931c0cef255fac7cb87339e95
7
+ data.tar.gz: 4a6d1d63ccf8cfb7c768cc28164bf11058ecebc85a7792bcb5e88f7fc72534a8f3e39bc1d42f0b833a1fc93d547c90105eb98133a10983ec24eb82fe95cbfecb
data/cemetry.gemspec CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_dependency "miserable", "~> 0.0"
21
21
  spec.add_dependency "osc-ruby"
22
+ spec.add_dependency "noone"
22
23
 
23
24
  spec.add_development_dependency "bundler", "~> 1.10"
24
25
  spec.add_development_dependency "rake", "~> 10.0"
data/exe/cemetry CHANGED
@@ -3,4 +3,4 @@
3
3
  require "cemetry"
4
4
 
5
5
  seq = Cemetry::Sequence.new(120)
6
- seq.play -> { [36, 37, 38, 39, 40].sample }
6
+ seq.play -> { ["C", "D", "E", "F", "G"].sample }
@@ -1,3 +1,3 @@
1
1
  module Cemetry
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/cemetry.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require "cemetry/version"
2
2
  require "miserable"
3
3
  require "osc-ruby"
4
+ require "noone"
4
5
 
5
6
  module Cemetry
6
7
  class Sequence
@@ -18,7 +19,8 @@ module Cemetry
18
19
  retry
19
20
  end
20
21
  loop do
21
- osc_client.send(OSC::Message.new("/sequence", proc.call))
22
+ note = Noone::NOTE_TABLE[proc.call]
23
+ osc_client.send(OSC::Message.new("/sequence", note))
22
24
  sleep(@bpm_msec.quarter_note / 1_000)
23
25
  break if only_once
24
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cemetry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hirofumi Wakasugi
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: noone
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement