Package jmsltutorial
Class TriangleSynthNote
java.lang.Object
java.util.Observable
com.softsynth.jsyn.SynthObject
com.softsynth.jsyn.SynthSound
com.softsynth.jsyn.SynthCircuit
com.softsynth.jsyn.SynthNote
jmsltutorial.TriangleSynthNote
public class TriangleSynthNote
extends com.softsynth.jsyn.SynthNote
A SineOscillator SynthNote with an amplitude envelope. noteOn() sustains, noteOff() releases.
- Author:
- Nick Didkovsky, 11/21/2000 10:12AM, copyright (c) 2000 Nick Didkovsky, all rights reserved.
-
Field Summary
Fields inherited from class com.softsynth.jsyn.SynthNote
amplitude, frequencyFields inherited from class com.softsynth.jsyn.SynthCircuit
output -
Constructor Summary
Constructors Constructor Description TriangleSynthNote() -
Method Summary
Methods inherited from class com.softsynth.jsyn.SynthNote
note, noteOff, noteOn, noteOnForMethods inherited from class com.softsynth.jsyn.SynthCircuit
add, compile, delete, getPeer, loadByNameMethods inherited from class com.softsynth.jsyn.SynthSound
addPort, addPort, findNamedPort, getName, getNumPorts, getPortAt, getPriority, setPriority, setStage, start, start, stop, stopMethods inherited from class com.softsynth.jsyn.SynthObject
deleteAll, enableDeletionByGarbageCollector, enableTracking, getSynthContext, isTrackingEnabled, toString, trackMethods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObserversMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
TriangleSynthNote
public TriangleSynthNote()
-
-
Method Details
-
setStage
public void setStage(int time, int stage)setStage will be called by noteOn after freq and ampo are set. setStage(1) will be called by noteOff()- Overrides:
setStagein classcom.softsynth.jsyn.SynthSound
-
main
public static void main(java.lang.String[] args)Play some noteOn / noteOff()'s to test the SynthNote
-