csnd

Class Csound


public class Csound
extends java.lang.Object

Field Summary

protected boolean
swigCMemOwn

Constructor Summary

Csound()
Csound(SWIGTYPE_p_void hostData)
Csound(long cPtr, boolean cMemoryOwn)

Method Summary

int
AppendOpcode(String opname, int dsblksiz, int thread, String outypes, String intypes, SWIGTYPE_p_f_p_CSOUND__p_void__int iopadr, SWIGTYPE_p_f_p_CSOUND__p_void__int kopadr, SWIGTYPE_p_f_p_CSOUND__p_void__int aopadr)
int
ChanIASet(SWIGTYPE_p_float value, int n)
int
ChanIKSet(double value, int n)
int
ChanOAGet(SWIGTYPE_p_float value, int n)
int
ChanOKGet(SWIGTYPE_p_float value, int n)
int
Cleanup()
int
Compile(String csdName)
int
Compile(String orcName, String scoName)
int
Compile(String arg1, String arg2, String arg3)
int
Compile(String arg1, String arg2, String arg3, String arg4)
int
Compile(String arg1, String arg2, String arg3, String arg4, String arg5)
int
Compile(int argc, SWIGTYPE_p_p_char argv)
int
CreateConfigurationVariable(String name, SWIGTYPE_p_void p, int type, int flags, SWIGTYPE_p_void min, SWIGTYPE_p_void max, String shortDesc, String longDesc)
int
CreateGlobalVariable(String name, int nbytes)
void
DeleteChannelList(CsoundChannelListEntry lst)
int
DeleteConfigurationVariable(String name)
void
DeleteUtilityList(SWIGTYPE_p_p_char lst)
int
DestroyGlobalVariable(String name)
void
DestroyMessageBuffer()
void
DisposeOpcodeList(opcodeListEntry opcodelist)
void
EnableMessageBuffer(int toStdOut)
float
Get0dBFS()
float
GetChannel(String name)
int
GetChannelPtr(SWIGTYPE_p_float p, String name, int type)
int
GetControlChannelParams(String name, SWIGTYPE_p_float dflt, SWIGTYPE_p_float min, SWIGTYPE_p_float max)
SWIGTYPE_p_CSOUND_
GetCsound()
int
GetDebug()
String
GetEnv(String name)
String
GetFirstMessage()
int
GetFirstMessageAttr()
SWIGTYPE_p_void
GetHostData()
SWIGTYPE_p_float
GetInputBuffer()
int
GetInputBufferSize()
float
GetKr()
int
GetKsmps()
int
GetMessageCnt()
int
GetMessageLevel()
int
GetNchnls()
SWIGTYPE_p_float
GetOutputBuffer()
int
GetOutputBufferSize()
String
GetOutputFileName()
SWIGTYPE_p_p_void
GetRtPlayUserData()
SWIGTYPE_p_p_void
GetRtRecordUserData()
int
GetSampleFormat()
int
GetSampleSize()
float
GetScoreOffsetSeconds()
double
GetScoreTime()
SWIGTYPE_p_float
GetSpin()
SWIGTYPE_p_float
GetSpout()
float
GetSr()
int
GetStrVarMaxLen()
int
GetTable(SWIGTYPE_p_float tablePtr, int tableNum)
String
GetUtilityDescription(String utilName)
int
InitializeCscore(SWIGTYPE_p_FILE insco, SWIGTYPE_p_FILE outsco)
void
InputMessage(String message)
int
IsScorePending()
void
KeyPress(char c)
int
ListChannels(CsoundChannelListEntry lst)
SWIGTYPE_p_p_csCfgVariable_u
ListConfigurationVariables()
SWIGTYPE_p_p_char
ListUtilities()
void
Message(String format)
void
MessageS(int attr, String format)
int
NewOpcodeList(opcodeListEntry opcodelist)
int
ParseConfigurationVariable(String name, String value)
int
Perform()
int
Perform(String csdName)
int
Perform(String orcName, String scoName)
int
Perform(String arg1, String arg2, String arg3)
int
Perform(String arg1, String arg2, String arg3, String arg4)
int
Perform(String arg1, String arg2, String arg3, String arg4, String arg5)
int
Perform(int argc, SWIGTYPE_p_p_char argv)
int
PerformBuffer()
int
PerformKsmps()
int
PerformKsmpsAbsolute()
void
PopFirstMessage()
int
PreCompile()
void
PvsBusDestroy()
void
PvsBusInit()
void
PvsBusInit(int N)
void
PvsBusInit(int N, int olaps)
void
PvsBusInit(int N, int olaps, int wsize)
void
PvsBusInit(int N, int olaps, int wsize, int wtype)
void
PvsBusInit(int N, int olaps, int wsize, int wtype, int format)
int
PvsinSet(PVSDATEXT value, int n)
void
PvsinSet(float val, int k, int n)
int
PvsoutGet(PVSDATEXT value, int n)
float
PvsoutGet(int k, int n)
csCfgVariable_t
QueryConfigurationVariable(String name)
SWIGTYPE_p_void
QueryGlobalVariable(String name)
SWIGTYPE_p_void
QueryGlobalVariableNoCheck(String name)
void
Reset()
void
RewindScore()
int
RunUtility(String name, int argc, SWIGTYPE_p_p_char argv)
int
ScoreEvent(char type, SWIGTYPE_p_float pFields, int numFields)
int
ScoreExtract(SWIGTYPE_p_FILE inFile, SWIGTYPE_p_FILE outFile, SWIGTYPE_p_FILE extractFile)
int
ScoreSort(SWIGTYPE_p_FILE inFile, SWIGTYPE_p_FILE outFile)
void
SetChannel(String name, String value)
void
SetChannel(String name, double value)
void
SetChannelIOCallback(SWIGTYPE_p_f_p_CSOUND__p_q_const__char_p_float_int__void func)
int
SetConfigurationVariable(String name, SWIGTYPE_p_void value)
int
SetControlChannelParams(String name, int type, double dflt, double min, double max)
void
SetDebug(int debug)
void
SetHostData(SWIGTYPE_p_void hostData)
void
SetHostImplementedAudioIO(int state, int bufSize)
void
SetMessageLevel(int messageLevel)
void
SetScoreOffsetSeconds(double time)
void
SetScorePending(int pending)
void
Stop()
float
TableGet(int table, int index)
int
TableLength(int table)
void
TableSet(int table, int index, double value)
void
delete()
protected void
finalize()
protected static long
getCPtr(Csound obj)

Field Details

swigCMemOwn

protected boolean swigCMemOwn

Constructor Details

Csound

public Csound()

Csound

public Csound(SWIGTYPE_p_void hostData)

Csound

protected Csound(long cPtr,
                 boolean cMemoryOwn)

Method Details

AppendOpcode

public int AppendOpcode(String opname,
                        int dsblksiz,
                        int thread,
                        String outypes,
                        String intypes,
                        SWIGTYPE_p_f_p_CSOUND__p_void__int iopadr,
                        SWIGTYPE_p_f_p_CSOUND__p_void__int kopadr,
                        SWIGTYPE_p_f_p_CSOUND__p_void__int aopadr)

ChanIASet

public int ChanIASet(SWIGTYPE_p_float value,
                     int n)

ChanIKSet

public int ChanIKSet(double value,
                     int n)

ChanOAGet

public int ChanOAGet(SWIGTYPE_p_float value,
                     int n)

ChanOKGet

public int ChanOKGet(SWIGTYPE_p_float value,
                     int n)

Cleanup

public int Cleanup()

Compile

public int Compile(String csdName)

Compile

public int Compile(String orcName,
                   String scoName)

Compile

public int Compile(String arg1,
                   String arg2,
                   String arg3)

Compile

public int Compile(String arg1,
                   String arg2,
                   String arg3,
                   String arg4)

Compile

public int Compile(String arg1,
                   String arg2,
                   String arg3,
                   String arg4,
                   String arg5)

Compile

public int Compile(int argc,
                   SWIGTYPE_p_p_char argv)

CreateConfigurationVariable

public int CreateConfigurationVariable(String name,
                                       SWIGTYPE_p_void p,
                                       int type,
                                       int flags,
                                       SWIGTYPE_p_void min,
                                       SWIGTYPE_p_void max,
                                       String shortDesc,
                                       String longDesc)

CreateGlobalVariable

public int CreateGlobalVariable(String name,
                                int nbytes)

DeleteChannelList

public void DeleteChannelList(CsoundChannelListEntry lst)

DeleteConfigurationVariable

public int DeleteConfigurationVariable(String name)

DeleteUtilityList

public void DeleteUtilityList(SWIGTYPE_p_p_char lst)

DestroyGlobalVariable

public int DestroyGlobalVariable(String name)

DestroyMessageBuffer

public void DestroyMessageBuffer()

DisposeOpcodeList

public void DisposeOpcodeList(opcodeListEntry opcodelist)

EnableMessageBuffer

public void EnableMessageBuffer(int toStdOut)

Get0dBFS

public float Get0dBFS()

GetChannel

public float GetChannel(String name)

GetChannelPtr

public int GetChannelPtr(SWIGTYPE_p_float p,
                         String name,
                         int type)

GetControlChannelParams

public int GetControlChannelParams(String name,
                                   SWIGTYPE_p_float dflt,
                                   SWIGTYPE_p_float min,
                                   SWIGTYPE_p_float max)

GetCsound

public SWIGTYPE_p_CSOUND_ GetCsound()

GetDebug

public int GetDebug()

GetEnv

public String GetEnv(String name)

GetFirstMessage

public String GetFirstMessage()

GetFirstMessageAttr

public int GetFirstMessageAttr()

GetHostData

public SWIGTYPE_p_void GetHostData()

GetInputBuffer

public SWIGTYPE_p_float GetInputBuffer()

GetInputBufferSize

public int GetInputBufferSize()

GetKr

public float GetKr()

GetKsmps

public int GetKsmps()

GetMessageCnt

public int GetMessageCnt()

GetMessageLevel

public int GetMessageLevel()

GetNchnls

public int GetNchnls()

GetOutputBuffer

public SWIGTYPE_p_float GetOutputBuffer()

GetOutputBufferSize

public int GetOutputBufferSize()

GetOutputFileName

public String GetOutputFileName()

GetRtPlayUserData

public SWIGTYPE_p_p_void GetRtPlayUserData()

GetRtRecordUserData

public SWIGTYPE_p_p_void GetRtRecordUserData()

GetSampleFormat

public int GetSampleFormat()

GetSampleSize

public int GetSampleSize()

GetScoreOffsetSeconds

public float GetScoreOffsetSeconds()

GetScoreTime

public double GetScoreTime()

GetSpin

public SWIGTYPE_p_float GetSpin()

GetSpout

public SWIGTYPE_p_float GetSpout()

GetSr

public float GetSr()

GetStrVarMaxLen

public int GetStrVarMaxLen()

GetTable

public int GetTable(SWIGTYPE_p_float tablePtr,
                    int tableNum)

GetUtilityDescription

public String GetUtilityDescription(String utilName)

InitializeCscore

public int InitializeCscore(SWIGTYPE_p_FILE insco,
                            SWIGTYPE_p_FILE outsco)

InputMessage

public void InputMessage(String message)

IsScorePending

public int IsScorePending()

KeyPress

public void KeyPress(char c)

ListChannels

public int ListChannels(CsoundChannelListEntry lst)

ListConfigurationVariables

public SWIGTYPE_p_p_csCfgVariable_u ListConfigurationVariables()

ListUtilities

public SWIGTYPE_p_p_char ListUtilities()

Message

public void Message(String format)

MessageS

public void MessageS(int attr,
                     String format)

NewOpcodeList

public int NewOpcodeList(opcodeListEntry opcodelist)

ParseConfigurationVariable

public int ParseConfigurationVariable(String name,
                                      String value)

Perform

public int Perform()

Perform

public int Perform(String csdName)

Perform

public int Perform(String orcName,
                   String scoName)

Perform

public int Perform(String arg1,
                   String arg2,
                   String arg3)

Perform

public int Perform(String arg1,
                   String arg2,
                   String arg3,
                   String arg4)

Perform

public int Perform(String arg1,
                   String arg2,
                   String arg3,
                   String arg4,
                   String arg5)

Perform

public int Perform(int argc,
                   SWIGTYPE_p_p_char argv)

PerformBuffer

public int PerformBuffer()

PerformKsmps

public int PerformKsmps()

PerformKsmpsAbsolute

public int PerformKsmpsAbsolute()

PopFirstMessage

public void PopFirstMessage()

PreCompile

public int PreCompile()

PvsBusDestroy

public void PvsBusDestroy()

PvsBusInit

public void PvsBusInit()

PvsBusInit

public void PvsBusInit(int N)

PvsBusInit

public void PvsBusInit(int N,
                       int olaps)

PvsBusInit

public void PvsBusInit(int N,
                       int olaps,
                       int wsize)

PvsBusInit

public void PvsBusInit(int N,
                       int olaps,
                       int wsize,
                       int wtype)

PvsBusInit

public void PvsBusInit(int N,
                       int olaps,
                       int wsize,
                       int wtype,
                       int format)

PvsinSet

public int PvsinSet(PVSDATEXT value,
                    int n)

PvsinSet

public void PvsinSet(float val,
                     int k,
                     int n)

PvsoutGet

public int PvsoutGet(PVSDATEXT value,
                     int n)

PvsoutGet

public float PvsoutGet(int k,
                       int n)

QueryConfigurationVariable

public csCfgVariable_t QueryConfigurationVariable(String name)

QueryGlobalVariable

public SWIGTYPE_p_void QueryGlobalVariable(String name)

QueryGlobalVariableNoCheck

public SWIGTYPE_p_void QueryGlobalVariableNoCheck(String name)

Reset

public void Reset()

RewindScore

public void RewindScore()

RunUtility

public int RunUtility(String name,
                      int argc,
                      SWIGTYPE_p_p_char argv)

ScoreEvent

public int ScoreEvent(char type,
                      SWIGTYPE_p_float pFields,
                      int numFields)

ScoreExtract

public int ScoreExtract(SWIGTYPE_p_FILE inFile,
                        SWIGTYPE_p_FILE outFile,
                        SWIGTYPE_p_FILE extractFile)

ScoreSort

public int ScoreSort(SWIGTYPE_p_FILE inFile,
                     SWIGTYPE_p_FILE outFile)

SetChannel

public void SetChannel(String name,
                       String value)

SetChannel

public void SetChannel(String name,
                       double value)

SetChannelIOCallback

public void SetChannelIOCallback(SWIGTYPE_p_f_p_CSOUND__p_q_const__char_p_float_int__void func)

SetConfigurationVariable

public int SetConfigurationVariable(String name,
                                    SWIGTYPE_p_void value)

SetControlChannelParams

public int SetControlChannelParams(String name,
                                   int type,
                                   double dflt,
                                   double min,
                                   double max)

SetDebug

public void SetDebug(int debug)

SetHostData

public void SetHostData(SWIGTYPE_p_void hostData)

SetHostImplementedAudioIO

public void SetHostImplementedAudioIO(int state,
                                      int bufSize)

SetMessageLevel

public void SetMessageLevel(int messageLevel)

SetScoreOffsetSeconds

public void SetScoreOffsetSeconds(double time)

SetScorePending

public void SetScorePending(int pending)

Stop

public void Stop()

TableGet

public float TableGet(int table,
                      int index)

TableLength

public int TableLength(int table)

TableSet

public void TableSet(int table,
                     int index,
                     double value)

delete

public void delete()

finalize

protected void finalize()

getCPtr

protected static long getCPtr(Csound obj)