spcore 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,11 +22,13 @@ class EnvelopeDetector
22
22
  def attack_time= attack_time
23
23
  raise ArgumentError, "attack_time is <= 0.0" if attack_time <= 0.0
24
24
  @g_attack = Math.exp(-1.0 / (sample_rate * attack_time))
25
+ @attack_time = attack_time
25
26
  end
26
27
 
27
28
  def release_time= release_time
28
29
  raise ArgumentError, "release_time is <= 0.0" if release_time <= 0.0
29
30
  @g_release = Math.exp(-1.0 / (sample_rate * release_time))
31
+ @release_time = release_time
30
32
  end
31
33
 
32
34
  def process_sample sample
@@ -1,4 +1,4 @@
1
1
  module SPCore
2
2
  # spcore version
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spcore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -185,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  segments:
187
187
  - 0
188
- hash: -754557937
188
+ hash: 139506735
189
189
  required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  none: false
191
191
  requirements:
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  segments:
196
196
  - 0
197
- hash: -754557937
197
+ hash: 139506735
198
198
  requirements: []
199
199
  rubyforge_project:
200
200
  rubygems_version: 1.8.23