step_sequencer 1.0.4 → 1.0.5

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: 55948bf736c01e67b1903eca679591e3b0a60836
4
- data.tar.gz: 6fb552d92acc6fe945133f6b84369910a91575a9
3
+ metadata.gz: ddc6dfe6be70248edee578950052dacc7944ea3b
4
+ data.tar.gz: 4a8eacd58b0cdfb10765b9a8aa24f37b0a00a6fd
5
5
  SHA512:
6
- metadata.gz: 12a1635ba9bdce8abdafd8e6922374e019b296c3c24f27acd5a346d0e224503f3cdce1651b313850897d7cca34bb13d45e097736f2bf8af37389b726b84183c9
7
- data.tar.gz: 9f9252b569d58e1309ae70d98bee17cf547b28e3780558fd8ae4b2af3c729bc3a7e0aa354db718c6fec9fdf09a6d3ce436cda2b19a7dbc04277f017dd98466cc
6
+ metadata.gz: c902c87f5daa05e6387560fac206fd0957db4b07d4e7204dfa392759d0a5757208c163599f1b5c5ecb9152cafce32ac6ab936e925081e1766236a0d03d1be4c8
7
+ data.tar.gz: cad29f31636190892f4a4889015e6525bea34f8769d56b1453bd36775ded43e0f5600a3d442aeb2446cd9ee65800111be20827c4f40770711fa6c4c9cf833a7b
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
- protected
19
+ public
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
- protected
14
+ public
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
- protected
16
+ public
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
- protected
18
+ public
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
- protected
26
+ public
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
- protected
18
+ public
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
- protected
14
+ public
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
- protected
13
+ public
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
- protected
21
+ public
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
- protected
45
+ public
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 protected method run_test_collection can also be used; it's more modular.
7
+ # The public 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
- protected
36
+ public
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
- protected
92
+ public
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.4'
2
+ VERSION = '1.0.5'
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.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - max pleaner