org.tritonus.saol.engine.opcodes
Class PitchOpcodes

java.lang.Object
  extended by 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.


Constructor Summary
PitchOpcodes()
           
 
Method Summary
static void buildOpcodeTable(OpcodeTable opcodeTable)
           
 float cpsmidi(float x)
           
 float cpsoct(float x)
           
 float cpspch(float x)
           
 float gettune()
           
 float midicps(float x, float y)
           
static float midioct(float x)
           
static float midipch(float x)
           
 float octcps(float x)
           
static float octmidi(float x)
           
static float octpch(float x)
           
 float pchcps(float x)
           
static float pchmidi(float x)
           
static float pchoct(float x)
           
 float settune(float x)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PitchOpcodes

public PitchOpcodes()
Method Detail

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)