step_sequencer 1.0.2 → 1.0.4

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: 4b304a4cacaf0be6c3ac12af620f605ce922d72f
4
- data.tar.gz: 1c89410d8a783a72ba50abd0a3f7d28c73443461
3
+ metadata.gz: 55948bf736c01e67b1903eca679591e3b0a60836
4
+ data.tar.gz: 6fb552d92acc6fe945133f6b84369910a91575a9
5
5
  SHA512:
6
- metadata.gz: eb63db81096d2ee7ccae1b68d60077363252b6e69e42104d25c9cf760bc7318ab0c8af1af91b6c1458bdd240265462858b503d709f7d802602484087e36ed1a1
7
- data.tar.gz: 5db28c5866e81a44078e1a9e0ee79fee18ba4de71055f5b79d5dca73786fca1aa80ef9a4b8e3401d830a4965fa814b494b03e6f98f421cb038a57dd936dbaaa1
6
+ metadata.gz: 12a1635ba9bdce8abdafd8e6922374e019b296c3c24f27acd5a346d0e224503f3cdce1651b313850897d7cca34bb13d45e097736f2bf8af37389b726b84183c9
7
+ data.tar.gz: 9f9252b569d58e1309ae70d98bee17cf547b28e3780558fd8ae4b2af3c729bc3a7e0aa354db718c6fec9fdf09a6d3ce436cda2b19a7dbc04277f017dd98466cc
data/README.md CHANGED
@@ -138,7 +138,7 @@ As the above examples illustrate, `#build` is always given an array of sources
138
138
  it's empty, `args` is always a array, the signature of which is dependent on the
139
139
  specific effects component's implementation.
140
140
 
141
- **2. `StepSequencer::SoundPlayer`**
141
+ 2. **`StepSequencer::SoundPlayer`**
142
142
 
143
143
  Playing sounds is a two part process. First, the player must be initialized,
144
144
  which is when the sounds are mapped to rows.
@@ -16,7 +16,7 @@ class StepSequencer::SoundBuilder::DefaultEffects::Combine < protocol
16
16
  # `sox #{sources.join(" ")} #{outfile}`
17
17
 
18
18
  class << self
19
- private
19
+ protected
20
20
  def generate_outfile_path(sources)
21
21
  "#{output_dir}/#{SecureRandom.urlsafe_base64}.mp3"
22
22
  end
@@ -11,7 +11,7 @@ class StepSequencer::SoundBuilder::DefaultEffects::Gain < protocol
11
11
  end
12
12
 
13
13
  class << self
14
- private
14
+ protected
15
15
  def build_outfile_path path, value
16
16
  "#{output_dir}/#{SecureRandom.urlsafe_base64}.mp3"
17
17
  end
@@ -13,7 +13,7 @@ class StepSequencer::SoundBuilder::DefaultEffects::Loop < protocol
13
13
  end
14
14
 
15
15
  class << self
16
- private
16
+ protected
17
17
  def build_outfile_path
18
18
  "#{output_dir}/#{SecureRandom.urlsafe_base64}.mp3"
19
19
  end
@@ -15,7 +15,7 @@ class StepSequencer::SoundBuilder::DefaultEffects::Overlay < protocol
15
15
  end
16
16
 
17
17
  class << self
18
- private
18
+ protected
19
19
  def build_outfile_path
20
20
  "#{output_dir}/#{SecureRandom.urlsafe_base64}.mp3"
21
21
  end
@@ -23,7 +23,7 @@ class StepSequencer::SoundBuilder::DefaultEffects::Pitch < protocol
23
23
  end
24
24
 
25
25
  class << self
26
- private
26
+ protected
27
27
  def build_outfile_name(source, value)
28
28
  "#{output_dir}/#{SecureRandom.urlsafe_base64}.mp3"
29
29
  end
@@ -15,7 +15,7 @@ class StepSequencer::SoundBuilder::DefaultEffects::Slice < protocol
15
15
  end
16
16
 
17
17
  class << self
18
- private
18
+ protected
19
19
  def build_outfile_path
20
20
  "#{output_dir}/#{SecureRandom.urlsafe_base64}.mp3"
21
21
  end
@@ -11,7 +11,7 @@ class StepSequencer::SoundBuilder::DefaultEffects::Speed < protocol
11
11
  end
12
12
 
13
13
  class << self
14
- private
14
+ protected
15
15
  def build_outfile_path path, value
16
16
  "#{output_dir}/#{SecureRandom.urlsafe_base64}.mp3"
17
17
  end
@@ -10,7 +10,7 @@ class StepSequencer::SoundBuilder::EffectsComponentProtocol
10
10
 
11
11
  class << self
12
12
 
13
- private
13
+ protected
14
14
 
15
15
  # Helper method to call other effects
16
16
  def builder
@@ -18,7 +18,7 @@ class StepSequencer::SoundBuilder
18
18
  end
19
19
 
20
20
  class << self
21
- private
21
+ protected
22
22
  def effects_components
23
23
  StepSequencer::SoundBuilder::EffectsComponents
24
24
  end
@@ -42,7 +42,7 @@ class StepSequencer::SoundPlayer
42
42
  @limit = nil # an upper limit for steps_played, defaults to no limit
43
43
  end
44
44
 
45
- private
45
+ protected
46
46
 
47
47
  def build_matrix_from_string(string)
48
48
  string.tr(" ", '').gsub(/\#.+$/, '').split("\n").map(&:chars).map do |chars|
@@ -4,7 +4,7 @@ require 'method_source'
4
4
  # =============================================================================
5
5
  # A custom test runner. The tests themselves are in test_cases.rb
6
6
  # Usage: StepSequencer::Tests.run
7
- # The private method run_test_collection can also be used; it's more modular.
7
+ # The protected method run_test_collection can also be used; it's more modular.
8
8
  # =============================================================================
9
9
 
10
10
  class StepSequencer::Tests
@@ -33,7 +33,7 @@ class StepSequencer::Tests
33
33
  end
34
34
 
35
35
  class << self
36
- private
36
+ protected
37
37
 
38
38
  def builder_tests
39
39
  StepSequencer::Tests::TestCases::Builder
@@ -89,7 +89,7 @@ class StepSequencer::Tests
89
89
 
90
90
  # Helpers made available to test cases (if they include the module)
91
91
  module TestCaseHelpers
92
- private
92
+ protected
93
93
  def asset_path(name)
94
94
  Gem.find_files("step_sequencer/test_assets/#{name}.mp3")[0]
95
95
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module StepSequencer
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: step_sequencer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - max pleaner