Class: Scruby::Audio::Ugens::EnvGen

Inherits:
Ugen show all
Defined in:
lib/scruby/audio/ugens/env_gen.rb

Constant Summary

Constants inherited from Ugen

Ugen::E_RATES, Ugen::RATES

Constants included from UgenOperations

UgenOperations::BINARY, UgenOperations::OP_SYMBOLS, UgenOperations::UNARY

Instance Attribute Summary

Attributes inherited from Ugen

#channels, #index, #inputs, #output_index, #rate, #special_index

Class Method Summary collapse

Methods inherited from Ugen

#encode, #initialize, instantiate, #muladd, new, synthdef, synthdef=, #to_s, #ugen?

Methods included from UgenOperations

included, #valid_ugen_input?

Constructor Details

This class inherits a constructor from Scruby::Audio::Ugens::Ugen

Class Method Details

.ar(envelope, gate = 1, levelScale = 1, levelBias = 0, timeScale = 1, doneAction = 0) ⇒ Object



6
7
8
# File 'lib/scruby/audio/ugens/env_gen.rb', line 6

def ar( envelope, gate = 1, levelScale = 1, levelBias = 0, timeScale = 1, doneAction = 0 )
  new(:audio, gate, levelScale, levelBias, timeScale, doneAction, *envelope.to_array)
end

.kr(envelope, gate = 1, levelScale = 1, levelBias = 0, timeScale = 1, doneAction = 0) ⇒ Object



10
11
12
# File 'lib/scruby/audio/ugens/env_gen.rb', line 10

def kr( envelope, gate = 1, levelScale = 1, levelBias = 0, timeScale = 1, doneAction = 0 )
  new(:control, gate, levelScale, levelBias, timeScale, doneAction, *envelope.to_array)
end