Class RingModBell
java.lang.Object
com.jsyn.unitgen.UnitGenerator
com.jsyn.unitgen.Circuit
com.softsynth.jmsl.jsyn2.unitvoices.RingModBell
- All Implemented Interfaces:
com.jsyn.unitgen.UnitSource,com.jsyn.unitgen.UnitVoice
public class RingModBell
extends com.jsyn.unitgen.Circuit
implements com.jsyn.unitgen.UnitVoice
Bell generated by ring modulating two triangle waves. Ring modulation simply
involves multiplying two signals together.
Output = Osc2.output * ( (Osc1.output * ExpLag.output) + ExpLag.output);
Osc1.Frequency = Osc2.frequency * modIndex;
- Author:
- (C) 1997 Phil Burk, SoftSynth.com, All Rights Reserved MOD changed to JSyn2 API by Nick Didkovsky Dec 28, 2016
-
Field Summary
Fields Modifier and Type Field Description com.jsyn.ports.UnitInputPortamplitudecom.jsyn.unitgen.AddampMixercom.jsyn.unitgen.AsymptoticRampexpLagcom.jsyn.unitgen.MultiplyfreqScalarcom.jsyn.ports.UnitInputPortfrequencycom.jsyn.ports.UnitInputPorthalfLifecom.jsyn.unitgen.PassThroughmFrequencyPassThroughcom.jsyn.ports.UnitInputPortmodIndexcom.jsyn.unitgen.TriangleOscillatorosc1com.jsyn.unitgen.TriangleOscillatorosc2com.jsyn.unitgen.MultiplyringModFields inherited from class com.jsyn.unitgen.UnitGenerator
FALSE, PORT_NAME_AMPLITUDE, PORT_NAME_CUTOFF, PORT_NAME_FREQUENCY, PORT_NAME_FREQUENCY_SCALER, PORT_NAME_INPUT, PORT_NAME_OUTPUT, PORT_NAME_PAN, PORT_NAME_PHASE, PORT_NAME_PRESSURE, PORT_NAME_TIMBRE, PORT_NAME_TIME, TRUE -
Constructor Summary
Constructors Constructor Description RingModBell() -
Method Summary
Methods inherited from class com.jsyn.unitgen.Circuit
add, addPortAlias, flattenOutputs, generate, getPortByName, setEnabled, setFrameRate, setSynthesisEngine, usePresetMethods inherited from class com.jsyn.unitgen.UnitGenerator
addPort, addPort, convertHalfLifeToMultiplier, generate, getCircuit, getFramePeriod, getFrameRate, getId, getPorts, getSynthesisEngine, getSynthesizer, getTopUnit, getUnitGenerator, isEnabled, isStartRequired, printConnections, printConnections, printConnections, pullData, setCircuit, setPort, start, start, start, stop, stop, stopMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jsyn.unitgen.UnitVoice
getUnitGenerator, setPort, usePreset
-
Field Details
-
osc1
public com.jsyn.unitgen.TriangleOscillator osc1 -
osc2
public com.jsyn.unitgen.TriangleOscillator osc2 -
expLag
public com.jsyn.unitgen.AsymptoticRamp expLag -
freqScalar
public com.jsyn.unitgen.Multiply freqScalar -
ringMod
public com.jsyn.unitgen.Multiply ringMod -
ampMixer
public com.jsyn.unitgen.Add ampMixer -
modIndex
public com.jsyn.ports.UnitInputPort modIndex -
halfLife
public com.jsyn.ports.UnitInputPort halfLife -
amplitude
public com.jsyn.ports.UnitInputPort amplitude -
mFrequencyPassThrough
public com.jsyn.unitgen.PassThrough mFrequencyPassThrough -
frequency
public com.jsyn.ports.UnitInputPort frequency
-
-
Constructor Details
-
RingModBell
public RingModBell()
-
-
Method Details
-
getOutput
public com.jsyn.ports.UnitOutputPort getOutput()- Specified by:
getOutputin interfacecom.jsyn.unitgen.UnitSource
-