Package com.softsynth.jmsl.jsyn.circuits
Class FMSynthNote
java.lang.Object
java.util.Observable
com.softsynth.jsyn.SynthObject
com.softsynth.jsyn.SynthSound
com.softsynth.jsyn.SynthCircuit
com.softsynth.jsyn.SynthNote
com.softsynth.jmsl.jsyn.circuits.FMSynthNote
- Direct Known Subclasses:
BrassSynthNote
public class FMSynthNote
extends com.softsynth.jsyn.SynthNote
Deprecated.
use the pure Java JSyn2 package instead
A FM pair SynthNote with envelopes for car amplitude and mod amplitude.
Uses Andrew Gram's FMCircuit
MOD 6/05 added SynthContext to constructor
Uses Andrew Gram's FMCircuit
MOD 6/05 added SynthContext to constructor
- Author:
- Nick Didkovsky, 2/27/2000
-
Field Summary
Fields inherited from class com.softsynth.jsyn.SynthNote
amplitude, frequency
Fields inherited from class com.softsynth.jsyn.SynthCircuit
output
-
Constructor Summary
Constructors Constructor Description FMSynthNote()
Deprecated.FMSynthNote(double numer, double denom, double index)
Deprecated.Construct a SynthNote that maintains numer/denom Fc:Fm ratio, with specified Modulation indexFMSynthNote(com.softsynth.jsyn.SynthContext synthContext)
Deprecated.FMSynthNote(com.softsynth.jsyn.SynthContext synthContext, double numer, double denom, double index)
Deprecated.Construct a SynthNote that maintains numer/denom Fc:Fm ratio, with specified Modulation index -
Method Summary
Modifier and Type Method Description double
getModIndex()
Deprecated.static void
main(java.lang.String[] args)
Deprecated.void
noteOff(int time)
Deprecated.Bang the circuit to shut down the soundvoid
noteOn(int time, double frq, double ampl)
Deprecated.Bang the circuit to make a soundvoid
setEnvelopes(double[] ampEnvData, double[] freqEnvData)
Deprecated.void
setModFreq(int time, double freq)
Deprecated.void
setModIndex(double index)
Deprecated.void
setRatioAndIndex(double numer, double denom, double index)
Deprecated.Set numer/denom Fc:Fm ratio, and specified Modulation indexMethods inherited from class com.softsynth.jsyn.SynthNote
note, noteOnFor
Methods inherited from class com.softsynth.jsyn.SynthCircuit
add, compile, delete, getPeer, loadByName
Methods inherited from class com.softsynth.jsyn.SynthSound
addPort, addPort, findNamedPort, getName, getNumPorts, getPortAt, getPriority, setPriority, setStage, setStage, start, start, stop, stop
Methods inherited from class com.softsynth.jsyn.SynthObject
deleteAll, enableDeletionByGarbageCollector, enableTracking, getSynthContext, isTrackingEnabled, toString, track
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
FMSynthNote
public FMSynthNote()Deprecated. -
FMSynthNote
public FMSynthNote(com.softsynth.jsyn.SynthContext synthContext)Deprecated. -
FMSynthNote
public FMSynthNote(double numer, double denom, double index) throws com.softsynth.jsyn.SynthExceptionDeprecated.Construct a SynthNote that maintains numer/denom Fc:Fm ratio, with specified Modulation index- Throws:
com.softsynth.jsyn.SynthException
-
FMSynthNote
public FMSynthNote(com.softsynth.jsyn.SynthContext synthContext, double numer, double denom, double index) throws com.softsynth.jsyn.SynthExceptionDeprecated.Construct a SynthNote that maintains numer/denom Fc:Fm ratio, with specified Modulation index- Throws:
com.softsynth.jsyn.SynthException
-
-
Method Details
-
setRatioAndIndex
public void setRatioAndIndex(double numer, double denom, double index)Deprecated.Set numer/denom Fc:Fm ratio, and specified Modulation index -
setEnvelopes
public void setEnvelopes(double[] ampEnvData, double[] freqEnvData) throws com.softsynth.jsyn.SynthExceptionDeprecated.- Throws:
com.softsynth.jsyn.SynthException
-
noteOn
public void noteOn(int time, double frq, double ampl)Deprecated.Bang the circuit to make a sound- Overrides:
noteOn
in classcom.softsynth.jsyn.SynthNote
-
noteOff
public void noteOff(int time)Deprecated.Bang the circuit to shut down the sound- Overrides:
noteOff
in classcom.softsynth.jsyn.SynthNote
-
setModFreq
public void setModFreq(int time, double freq) throws com.softsynth.jsyn.SynthExceptionDeprecated.- Throws:
com.softsynth.jsyn.SynthException
-
setModIndex
public void setModIndex(double index)Deprecated. -
getModIndex
public double getModIndex()Deprecated. -
main
public static void main(java.lang.String[] args)Deprecated.
-