Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 1366dace46
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (18 sloc) 0.619 kB
require File.expand_path(File.dirname(__FILE__)) + "/helper"
require "scruby/control_name"
require "scruby/env"
require "scruby/ugens/ugen"
require "scruby/ugens/ugen_operations"
require "scruby/ugens/env_gen"
include Scruby
include Ugens
describe EnvGen do
it "should not instantiate with #new" do
lambda { EnvGen.new :audio, 1, 2 }.should raise_error
end
it "should have correct inputs" do
envgen = EnvGen.kr Env.adsr
envgen.rate.should == :control
envgen.inputs.should == [ 1, 1, 0, 1, 0, 0, 3, 2, -99, 1, 0.01, 5, -4, 0.5, 0.3, 5, -4, 0, 1, 5, -4 ].collect{ |i| i.to_f }
end
end
Jump to Line
Something went wrong with that request. Please try again.