Sha256: 6f6373c450958107caebc88b3c2cb6429cca73c9e283d29faa96c4e1fc1f88a0
Contents?: true
Size: 602 Bytes
Versions: 5
Compression:
Stored size: 602 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe SPCore::DelayLine do it 'should' do SAMPLE_RATE = 400 MAX_DELAY_SEC = 0.1 5.times do delay_line = SPCore::DelayLine.new( :sample_rate => SAMPLE_RATE, :max_delay_seconds => MAX_DELAY_SEC, :delay_seconds => (rand * MAX_DELAY_SEC) ) rand_sample = rand delay_line.push_sample rand_sample delay_line.delay_samples.times do delay_line.push_sample 0.0 end delay_line.delayed_sample.should eq(rand_sample) end end end
Version data entries
5 entries across 5 versions & 1 rubygems