Package jmslexamples.jsyn2.unitvoices
Class SpeedyUnitVoice
java.lang.Object
com.jsyn.unitgen.UnitGenerator
com.jsyn.unitgen.Circuit
jmslexamples.jsyn2.unitvoices.SpeedyUnitVoice
- All Implemented Interfaces:
com.jsyn.unitgen.UnitSource
,com.jsyn.unitgen.UnitVoice
public class SpeedyUnitVoice
extends com.jsyn.unitgen.Circuit
implements com.jsyn.unitgen.UnitVoice, com.jsyn.unitgen.UnitSource
For Speedy example, JSyn2 API. Modified in 2012 from the original 2004.
- Author:
- Nick Didkovsky, email: nick@didkovsky.com, (c) 2012 Nick Didkovsky, all rights reserved.
-
Field Summary
Fields Modifier and Type Field Description com.jsyn.ports.UnitInputPort
amplitude
com.jsyn.ports.UnitInputPort
attack
com.jsyn.ports.UnitInputPort
decay
com.jsyn.ports.UnitInputPort
delay
com.jsyn.ports.UnitInputPort
frequency
com.jsyn.ports.UnitInputPort
hold
com.jsyn.ports.UnitInputPort
release
com.jsyn.ports.UnitInputPort
sustain
Fields 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 SpeedyUnitVoice()
-
Method Summary
Methods inherited from class com.jsyn.unitgen.Circuit
add, addPortAlias, flattenOutputs, generate, getPortByName, setEnabled, setFrameRate, setSynthesisEngine, usePreset
Methods 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, stop
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.jsyn.unitgen.UnitVoice
getUnitGenerator, setPort, usePreset
-
Field Details
-
frequency
public com.jsyn.ports.UnitInputPort frequency -
amplitude
public com.jsyn.ports.UnitInputPort amplitude -
attack
public com.jsyn.ports.UnitInputPort attack -
decay
public com.jsyn.ports.UnitInputPort decay -
delay
public com.jsyn.ports.UnitInputPort delay -
hold
public com.jsyn.ports.UnitInputPort hold -
release
public com.jsyn.ports.UnitInputPort release -
sustain
public com.jsyn.ports.UnitInputPort sustain
-
-
Constructor Details
-
SpeedyUnitVoice
public SpeedyUnitVoice()
-
-
Method Details
-
getOutput
public com.jsyn.ports.UnitOutputPort getOutput()- Specified by:
getOutput
in interfacecom.jsyn.unitgen.UnitSource
-
main
public static void main(java.lang.String[] args)