ddf.minim.ugens
Class MoogFilter
java.lang.Object
ddf.minim.ugens.UGen
ddf.minim.ugens.MoogFilter
public class MoogFilter
- extends UGen
Constructor Summary |
MoogFilter(float frequencyInHz,
float normalizedResonance)
|
Method Summary |
void |
setAudioChannelCount(int channelCount)
Let this UGen know how many channels of audio you will be asking it for. |
protected void |
uGenerate(float[] out)
Implement this method when you extend UGen. |
Methods inherited from class ddf.minim.ugens.UGen |
addInput, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, sampleRateChanged, setSampleRate, tick, unpatch, unpatch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
audio
public UGen.UGenInput audio
frequency
public UGen.UGenInput frequency
resonance
public UGen.UGenInput resonance
MoogFilter
public MoogFilter(float frequencyInHz,
float normalizedResonance)
setAudioChannelCount
public void setAudioChannelCount(int channelCount)
- Description copied from class:
UGen
- Let this UGen know how many channels of audio you will be asking it for.
This will be called automatically when a UGen is patched to an AudioOuput
and propagated to all UGenInputs of type AUDIO.
- Overrides:
setAudioChannelCount
in class UGen
- Parameters:
channelCount
- how many channels of audio you will be generating with this
UGen
uGenerate
protected void uGenerate(float[] out)
- Description copied from class:
UGen
- Implement this method when you extend UGen. It will be called when your
UGen needs to generate one sample frame of audio. It is expected that you
will assign values to the array and not simply modify the
existing values. In the case where you write a UGen that takes audio
input and modifies it, the pattern to follow is to have the first
UGenInput you create be your audio input and then in uGenerate you will
use the
getLastValues
method of your audio UGenInput to
retrieve the audio you want to modify, which you will then modify however
you need to, assigning the result to the values in channels
.
- Specified by:
uGenerate
in class UGen
- Parameters:
out
- an array representing one sample frame.