org.tritonus.saol.engine.opcodes
Class PitchOpcodes
java.lang.Object
org.tritonus.saol.engine.opcodes.PitchOpcodes
public final class PitchOpcodes
- extends java.lang.Object
The tune-related opcodes (Section 5.9.5).
These opcodes depend on a tune value. This tune value
is global, but only inside the current orchestra. To allow
the concurrent rendering of multiple orchestras, the tune value
cannot be global (in programming language terms), but has to
be encapsulated in class instances. So this class has to be
instantiated once per orchestra rendering.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PitchOpcodes
public PitchOpcodes()
buildOpcodeTable
public static void buildOpcodeTable(OpcodeTable opcodeTable)
gettune
public float gettune()
settune
public float settune(float x)
octpch
public static float octpch(float x)
pchoct
public static float pchoct(float x)
cpspch
public float cpspch(float x)
pchcps
public float pchcps(float x)
cpsoct
public float cpsoct(float x)
octcps
public float octcps(float x)
midipch
public static float midipch(float x)
pchmidi
public static float pchmidi(float x)
midioct
public static float midioct(float x)
octmidi
public static float octmidi(float x)
midicps
public float midicps(float x,
float y)
cpsmidi
public float cpsmidi(float x)