csnd

Class Csound

public class Csound extends Object

Field Summary
protected booleanswigCMemOwn
Constructor Summary
protected Csound(long cPtr, boolean cMemoryOwn)
Csound()
Csound(SWIGTYPE_p_void hostData)
Method Summary
voidAddSpinSample(int frame, int channel, float sample)
intAppendOpcode(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)
intChanIASet(SWIGTYPE_p_float value, int n)
intChanIASetSample(int channel, int frame, float sample)
intChanIKSet(double value, int n)
intChanIKSetValue(int channel, float value)
intChanOAGet(SWIGTYPE_p_float value, int n)
floatChanOAGetSample(int channel, int frame)
intChanOKGet(SWIGTYPE_p_float value, int n)
floatChanOKGetValue(int channel)
intCleanup()
intCompile(int argc, SWIGTYPE_p_p_char argv)
intCompile(String csdName)
intCompile(String orcName, String scoName)
intCompile(String arg1, String arg2, String arg3)
intCompile(String arg1, String arg2, String arg3, String arg4)
intCompile(String arg1, String arg2, String arg3, String arg4, String arg5)
intCompile(String orcstr, String scorstr, int argc, SWIGTYPE_p_p_char argv)
intCompileFromStrings(String orcstr, String scorstr, String arg1, String arg2, String arg3, String arg4, String arg5, String arg6)
intCompileFromStrings(String orcstr, String scorstr, String arg1, String arg2, String arg3, String arg4, String arg5)
intCompileFromStrings(String orcstr, String scorstr, String arg1, String arg2, String arg3, String arg4)
intCompileFromStrings(String orcstr, String scorstr, String arg1, String arg2, String arg3)
intCompileFromStrings(String orcstr, String scorstr, String arg1, String arg2)
intCompileFromStrings(String orcstr, String scorstr, String arg1)
intCompileFromStrings(String orcstr, String scorstr)
intCompileFromStrings(String orcstr, String scorstr, int argc, SWIGTYPE_p_p_char argv)
intCreateConfigurationVariable(String name, SWIGTYPE_p_void p, int type, int flags, SWIGTYPE_p_void min, SWIGTYPE_p_void max, String shortDesc, String longDesc)
intCreateGlobalVariable(String name, int nbytes)
voiddelete()
voidDeleteChannelList(CsoundChannelListEntry lst)
intDeleteConfigurationVariable(String name)
voidDeleteUtilityList(SWIGTYPE_p_p_char lst)
intDestroyGlobalVariable(String name)
voidDestroyMessageBuffer()
voidDisposeOpcodeList(opcodeListEntry opcodelist)
voidEnableMessageBuffer(int toStdOut)
protected voidfinalize()
protected static longgetCPtr(Csound obj)
SWIGTYPE_p_voidgetPydata()
floatGet0dBFS()
floatGetChannel(String name)
intGetChannelPtr(SWIGTYPE_p_p_float p, String name, int type)
intGetControlChannelParams(String name, SWIGTYPE_p_float dflt, SWIGTYPE_p_float min, SWIGTYPE_p_float max)
SWIGTYPE_p_CSOUND_GetCsound()
intGetDebug()
StringGetEnv(String name)
StringGetFirstMessage()
intGetFirstMessageAttr()
SWIGTYPE_p_voidGetHostData()
SWIGTYPE_p_floatGetInputBuffer()
intGetInputBufferSize()
floatGetKr()
intGetKsmps()
intGetMessageCnt()
intGetMessageLevel()
intGetNchnls()
SWIGTYPE_p_floatGetOutputBuffer()
intGetOutputBufferSize()
StringGetOutputFileName()
SWIGTYPE_p_p_voidGetRtPlayUserData()
SWIGTYPE_p_p_voidGetRtRecordUserData()
intGetSampleFormat()
intGetSampleSize()
floatGetScoreOffsetSeconds()
doubleGetScoreTime()
SWIGTYPE_p_floatGetSpin()
SWIGTYPE_p_floatGetSpout()
floatGetSpoutSample(int frame, int channel)
floatGetSr()
intGetStrVarMaxLen()
intGetTable(SWIGTYPE_p_p_float tablePtr, int tableNum)
StringGetUtilityDescription(String utilName)
intInitializeCscore(SWIGTYPE_p_FILE insco, SWIGTYPE_p_FILE outsco)
voidInputMessage(String message)
intIsScorePending()
voidKeyPressed(char c)
intListChannels(SWIGTYPE_p_p_CsoundChannelListEntry_ lst)
SWIGTYPE_p_p_csCfgVariable_uListConfigurationVariables()
SWIGTYPE_p_p_charListUtilities()
voidMessage(String format)
voidMessageS(int attr, String format)
intNewOpcodeList(SWIGTYPE_p_p_opcodeListEntry opcodelist)
intParseConfigurationVariable(String name, String value)
intPerform()
intPerform(int argc, SWIGTYPE_p_p_char argv)
intPerform(String csdName)
intPerform(String orcName, String scoName)
intPerform(String arg1, String arg2, String arg3)
intPerform(String arg1, String arg2, String arg3, String arg4)
intPerform(String arg1, String arg2, String arg3, String arg4, String arg5)
intPerformBuffer()
intPerformKsmps()
intPerformKsmpsAbsolute()
voidPopFirstMessage()
intPreCompile()
intPvsinSet(PVSDATEXT value, int n)
intPvsoutGet(PVSDATEXT value, int n)
csCfgVariable_tQueryConfigurationVariable(String name)
SWIGTYPE_p_voidQueryGlobalVariable(String name)
SWIGTYPE_p_voidQueryGlobalVariableNoCheck(String name)
voidReset()
voidRewindScore()
intRunUtility(String name, int argc, SWIGTYPE_p_p_char argv)
voidsetPydata(SWIGTYPE_p_void value)
intScoreEvent(char type, SWIGTYPE_p_float pFields, int numFields)
intScoreEventAbsolute(char type, SWIGTYPE_p_float pFields, int numFields, double time_ofs)
intScoreExtract(SWIGTYPE_p_FILE inFile, SWIGTYPE_p_FILE outFile, SWIGTYPE_p_FILE extractFile)
intScoreSort(SWIGTYPE_p_FILE inFile, SWIGTYPE_p_FILE outFile)
voidSetChannel(String name, double value)
voidSetChannel(String name, String value)
voidSetChannelIOCallback(SWIGTYPE_p_f_p_CSOUND__p_q_const__char_p_float_int__void func)
intSetConfigurationVariable(String name, SWIGTYPE_p_void value)
intSetControlChannelParams(String name, int type, double dflt, double min, double max)
voidSetDebug(int debug)
voidSetExternalMidiInCloseCallback(SWIGTYPE_p_f_p_CSOUND__p_void__int func)
voidSetExternalMidiInOpenCallback(SWIGTYPE_p_f_p_CSOUND__p_p_void_p_q_const__char__int func)
voidSetExternalMidiReadCallback(SWIGTYPE_p_f_p_CSOUND__p_void_p_unsigned_char_int__int func)
voidSetHostData(SWIGTYPE_p_void hostData)
voidSetHostImplementedAudioIO(int state, int bufSize)
voidSetInputValueCallback(SWIGTYPE_p_f_p_CSOUND__p_q_const__char_p_float__void inputValueCallback_)
voidSetMessageCallback(SWIGTYPE_p_f_p_CSOUND__int_p_q_const__char_va_list__void csoundMessageCallback_)
voidSetMessageLevel(int messageLevel)
voidSetOutputValueCallback(SWIGTYPE_p_f_p_CSOUND__p_q_const__char_float__void outputValueCallback_)
voidSetScoreOffsetSeconds(double time)
voidSetScorePending(int pending)
voidStop()
floatTableGet(int table, int index)
intTableLength(int table)
voidTableSet(int table, int index, double value)

Field Detail

swigCMemOwn

protected boolean swigCMemOwn

Constructor Detail

Csound

protected Csound(long cPtr, boolean cMemoryOwn)

Csound

public Csound()

Csound

public Csound(SWIGTYPE_p_void hostData)

Method Detail

AddSpinSample

public void AddSpinSample(int frame, int channel, float sample)

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)

ChanIASetSample

public int ChanIASetSample(int channel, int frame, float sample)

ChanIKSet

public int ChanIKSet(double value, int n)

ChanIKSetValue

public int ChanIKSetValue(int channel, float value)

ChanOAGet

public int ChanOAGet(SWIGTYPE_p_float value, int n)

ChanOAGetSample

public float ChanOAGetSample(int channel, int frame)

ChanOKGet

public int ChanOKGet(SWIGTYPE_p_float value, int n)

ChanOKGetValue

public float ChanOKGetValue(int channel)

Cleanup

public int Cleanup()

Compile

public int Compile(int argc, SWIGTYPE_p_p_char argv)

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(String orcstr, String scorstr, int argc, SWIGTYPE_p_p_char argv)

CompileFromStrings

public int CompileFromStrings(String orcstr, String scorstr, String arg1, String arg2, String arg3, String arg4, String arg5, String arg6)

CompileFromStrings

public int CompileFromStrings(String orcstr, String scorstr, String arg1, String arg2, String arg3, String arg4, String arg5)

CompileFromStrings

public int CompileFromStrings(String orcstr, String scorstr, String arg1, String arg2, String arg3, String arg4)

CompileFromStrings

public int CompileFromStrings(String orcstr, String scorstr, String arg1, String arg2, String arg3)

CompileFromStrings

public int CompileFromStrings(String orcstr, String scorstr, String arg1, String arg2)

CompileFromStrings

public int CompileFromStrings(String orcstr, String scorstr, String arg1)

CompileFromStrings

public int CompileFromStrings(String orcstr, String scorstr)

CompileFromStrings

public int CompileFromStrings(String orcstr, String scorstr, 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)

delete

public void delete()

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)

finalize

protected void finalize()

getCPtr

protected static long getCPtr(Csound obj)

getPydata

public SWIGTYPE_p_void getPydata()

Get0dBFS

public float Get0dBFS()

GetChannel

public float GetChannel(String name)

GetChannelPtr

public int GetChannelPtr(SWIGTYPE_p_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()

GetSpoutSample

public float GetSpoutSample(int frame, int channel)

GetSr

public float GetSr()

GetStrVarMaxLen

public int GetStrVarMaxLen()

GetTable

public int GetTable(SWIGTYPE_p_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()

KeyPressed

public void KeyPressed(char c)

ListChannels

public int ListChannels(SWIGTYPE_p_p_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(SWIGTYPE_p_p_opcodeListEntry opcodelist)

ParseConfigurationVariable

public int ParseConfigurationVariable(String name, String value)

Perform

public int Perform()

Perform

public int Perform(int argc, SWIGTYPE_p_p_char argv)

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)

PerformBuffer

public int PerformBuffer()

PerformKsmps

public int PerformKsmps()

PerformKsmpsAbsolute

public int PerformKsmpsAbsolute()

PopFirstMessage

public void PopFirstMessage()

PreCompile

public int PreCompile()

PvsinSet

public int PvsinSet(PVSDATEXT value, int n)

PvsoutGet

public int PvsoutGet(PVSDATEXT value, 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)

setPydata

public void setPydata(SWIGTYPE_p_void value)

ScoreEvent

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

ScoreEventAbsolute

public int ScoreEventAbsolute(char type, SWIGTYPE_p_float pFields, int numFields, double time_ofs)

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, double value)

SetChannel

public void SetChannel(String name, String 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)

SetExternalMidiInCloseCallback

public void SetExternalMidiInCloseCallback(SWIGTYPE_p_f_p_CSOUND__p_void__int func)

SetExternalMidiInOpenCallback

public void SetExternalMidiInOpenCallback(SWIGTYPE_p_f_p_CSOUND__p_p_void_p_q_const__char__int func)

SetExternalMidiReadCallback

public void SetExternalMidiReadCallback(SWIGTYPE_p_f_p_CSOUND__p_void_p_unsigned_char_int__int func)

SetHostData

public void SetHostData(SWIGTYPE_p_void hostData)

SetHostImplementedAudioIO

public void SetHostImplementedAudioIO(int state, int bufSize)

SetInputValueCallback

public void SetInputValueCallback(SWIGTYPE_p_f_p_CSOUND__p_q_const__char_p_float__void inputValueCallback_)

SetMessageCallback

public void SetMessageCallback(SWIGTYPE_p_f_p_CSOUND__int_p_q_const__char_va_list__void csoundMessageCallback_)

SetMessageLevel

public void SetMessageLevel(int messageLevel)

SetOutputValueCallback

public void SetOutputValueCallback(SWIGTYPE_p_f_p_CSOUND__p_q_const__char_float__void outputValueCallback_)

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)