public class Midi2Hz extends UGen
UGen.InputType, UGen.UGenInput
Modifier and Type | Field and Description |
---|---|
UGen.UGenInput |
midiNoteIn
Patch something to this input that generates MIDI note numbers
(values in the range [0,127])
|
Constructor and Description |
---|
Midi2Hz()
Construct a Midi2Hz that generates a fixed value from MIDI note 0.
|
Midi2Hz(float fixedMidiNoteIn)
Construct a Midi2Hz that generates a fixed value from fixedMidiNoteIn.
|
Modifier and Type | Method and Description |
---|---|
void |
setMidiNoteIn(float fixedMidiNoteIn)
Set the fixed value this will use if midiNoteIn is not patched.
|
protected void |
uGenerate(float[] channels)
Implement this method when you extend UGen.
|
addAudio, addControl, addControl, addInput, channelCount, channelCountChanged, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, sampleRateChanged, setChannelCount, setSampleRate, tick, unpatch, unpatch
public UGen.UGenInput midiNoteIn
public Midi2Hz()
public Midi2Hz(float fixedMidiNoteIn)
fixedMidiNoteIn
- float: the MIDI note to convert to Hz (values in the range [0,127])public void setMidiNoteIn(float fixedMidiNoteIn)
fixedMidiNoteIn
- float: the MIDI note to convert to Hz (values in the range [0,127])protected void uGenerate(float[] channels)
UGen
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
.