- java.lang.Object
-
- com.pdplusplus.PdMaster
-
- com.pdplusplus.SoundFiler
-
public class SoundFiler extends PdMaster
-
-
Field Summary
Fields Modifier and Type Field Description long
FILE_AIF
long
FILE_MAT
long
FILE_RAW
long
FILE_SND
long
FILE_WAV
long
pointer
long
STK_FLOAT32
long
STK_FLOAT64
long
STK_SINT16
long
STK_SINT24
long
STK_SINT32
long
STK_SINT8
-
Constructor Summary
Constructors Constructor Description SoundFiler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SoundFiler
allocate()
static void
free(SoundFiler wav)
double[]
getArray()
double
read(java.lang.String file)
void
write(java.lang.String fileName, int nChannels, long type, long format, double[] array)
-
Methods inherited from class com.pdplusplus.PdMaster
dbtopow, dbtorms, DEBUG, free, ftom, getBlockSize, getFFTWindow, getSampleRate, getTimeInMilliSeconds, getTimeInSampleTicks, mtof, powtodb, rmstodb, SET_DEBUG, setBlockSize, setFFTWindow, setSampleRate
-
-
-
-
Field Detail
-
FILE_RAW
public final long FILE_RAW
- See Also:
- Constant Field Values
-
FILE_WAV
public final long FILE_WAV
- See Also:
- Constant Field Values
-
FILE_SND
public final long FILE_SND
- See Also:
- Constant Field Values
-
FILE_AIF
public final long FILE_AIF
- See Also:
- Constant Field Values
-
FILE_MAT
public final long FILE_MAT
- See Also:
- Constant Field Values
-
STK_SINT8
public final long STK_SINT8
- See Also:
- Constant Field Values
-
STK_SINT16
public final long STK_SINT16
- See Also:
- Constant Field Values
-
STK_SINT24
public final long STK_SINT24
- See Also:
- Constant Field Values
-
STK_SINT32
public final long STK_SINT32
- See Also:
- Constant Field Values
-
STK_FLOAT32
public final long STK_FLOAT32
- See Also:
- Constant Field Values
-
STK_FLOAT64
public final long STK_FLOAT64
- See Also:
- Constant Field Values
-
pointer
public long pointer
-
-
Method Detail
-
allocate
public static SoundFiler allocate()
-
free
public static void free(SoundFiler wav)
-
read
public double read(java.lang.String file)
-
write
public void write(java.lang.String fileName, int nChannels, long type, long format, double[] array)
-
getArray
public double[] getArray()
-
-