CSOUND_ Struct Reference
#include <csoundCore.h>
Data Fields
- int(* AddUtility )(CSOUND *, const char *name, int(*UtilFunc)(CSOUND *, int, char **))
- int(* AppendOpcode )(CSOUND *, const char *opname, int dsblksiz, int thread, const char *outypes, const char *intypes, int(*iopadr)(CSOUND *, void *), int(*kopadr)(CSOUND *, void *), int(*aopadr)(CSOUND *, void *))
- int(* AppendOpcodes )(CSOUND *, const OENTRY *opcodeList, int n)
- void(* AuxAlloc )(CSOUND *, size_t nbytes, AUXCH *auxchp)
- double beatOffs
- void *(* Calloc )(CSOUND *, size_t nbytes)
- const char *(* CfgErrorCodeToString )(int errcode)
- int(* ChanIASet )(CSOUND *, const MYFLT *value, int n)
- int(* ChanIKSet )(CSOUND *, MYFLT value, int n)
- int(* ChanOAGet )(CSOUND *, MYFLT *value, int n)
- int(* ChanOKGet )(CSOUND *, MYFLT *value, int n)
- int(* CheckEvents )(CSOUND *)
- int(* Cleanup )(CSOUND *)
- int(* CloseLibrary )(void *library)
- int(* Compile )(CSOUND *, int argc, char **argv)
- void(* ComplexFFT )(CSOUND *, MYFLT *buf, int FFTsize)
- CSOUND *(* Create )(void *hostData)
- void *(* Create_Mutex )(int isRecursive)
- void *(* CreateBarrier )(unsigned int max)
- int(* CreateConfigurationVariable )(CSOUND *, const char *name, void *p, int type, int flags, void *min, void *max, const char *shortDesc, const char *longDesc)
- void *(* CreateFileHandle )(CSOUND *, void *, int, const char *)
- int(* CreateGlobalVariable )(CSOUND *, const char *name, size_t nbytes)
- void *(* CreateThread )(uintptr_t(*threadRoutine)(void *), void *userdata)
- void *(* CreateThreadLock )(void)
- CsoundRandMTState * csRandState
- RTCLOCK * csRtClock
- double curBeat
- double curBeat_inc
- INSDS * curip
- EVTBLK * currevent
- double curTime_inc
- MYFLT dbfs_to_float
- CS_PRINTF2 void(* DebugMsg )(CSOUND *, const char *msg,...)
- char * delayederrormessages
- void(* DeleteCfgVarList )(csCfgVariable_t **lst)
- void(* DeleteChannelList )(CSOUND *, CsoundChannelListEntry *lst)
- int(* DeleteConfigurationVariable )(CSOUND *, const char *name)
- void(* DeleteUtilityList )(CSOUND *, char **lst)
- void(* Destroy )(CSOUND *)
- int(* DestroyBarrier )(void *)
- int(* DestroyGlobalVariable )(CSOUND *, const char *name)
- void(* DestroyMutex )(void *mutex_)
- void(* DestroyThreadLock )(void *lock)
- CS_NORETURN CS_PRINTF2 void(* Die )(CSOUND *, const char *msg,...)
- int(* dispexit )(CSOUND *)
- void(* dispinit )(CSOUND *)
- void(* display )(CSOUND *, WINDAT *)
- void(* DisposeOpcodeList )(CSOUND *, opcodeListEntry *)
- void(* dispset )(CSOUND *, WINDAT *, MYFLT *, int32, char *, int, char *)
- int dither_output
- SUBR dummyfn_2 [86]
- int dummyint [10]
- long dummyint32 [10]
- MYFLT e0dbfs
- MYFLT ekr
- void(* ErrMsgV )(CSOUND *, const char *hdr, const char *fmt, va_list)
- CS_PRINTF2 void(* ErrorMsg )(CSOUND *, const char *fmt,...)
- MYFLT esr
- void(* FDClose )(CSOUND *, FDCH *fdchp)
- void(* FDRecord )(CSOUND *, FDCH *fdchp)
- int(* FileClose )(CSOUND *, void *)
- void *(* FileOpen )(CSOUND *, void *, int, const char *, void *, const char *)
- void *(* FileOpen2 )(CSOUND *, void *, int, const char *, void *, const char *, int, int)
- char *(* FindInputFile )(CSOUND *, const char *filename, const char *envList)
- char *(* FindOutputFile )(CSOUND *, const char *filename, const char *envList)
- void * flgraphGlobals
- void(* Free )(CSOUND *, void *ptr)
- int(* FTAlloc )(CSOUND *, int tableNum, int len)
- int(* FTDelete )(CSOUND *, int tableNum)
- FUNC *(* FTFind )(CSOUND *, MYFLT *argp)
- FUNC *(* FTFindP )(CSOUND *, MYFLT *argp)
- FUNC *(* FTnp2Find )(CSOUND *, MYFLT *argp)
- int(* GetAPIVersion )(void)
- int(* GetChannelPtr )(CSOUND *, MYFLT **p, const char *name, int type)
- int(* GetControlChannelParams )(CSOUND *, const char *name, MYFLT *dflt, MYFLT *min, MYFLT *max)
- double(* GetCPUTime )(RTCLOCK *)
- void *(* GetCurrentThreadID )(void)
- int(* GetDebug )(CSOUND *)
- const char *(* GetEnv )(CSOUND *, const char *name)
- char *(* GetFileName )(void *)
- void *(* GetHostData )(CSOUND *)
- unsigned long(* GetInputArgAMask )(void *p)
- int(* GetInputArgCnt )(void *p)
- char *(* GetInputArgName )(void *p, int n)
- unsigned long(* GetInputArgSMask )(void *p)
- MYFLT *(* GetInputBuffer )(CSOUND *)
- long(* GetInputBufferSize )(CSOUND *)
- int(* GetInstrumentNumber )(void *p)
- MYFLT(* GetInverseComplexFFTScale )(CSOUND *, int FFTsize)
- MYFLT(* GetInverseRealFFTScale )(CSOUND *, int FFTsize)
- MYFLT(* GetKr )(CSOUND *)
- int(* GetKsmps )(CSOUND *)
- void *(* GetLibrarySymbol )(void *library, const char *procedureName)
- int(* GetMessageLevel )(CSOUND *)
- MCHNBLK *(* GetMidiChannel )(void *p)
- int(* GetMidiChannelNumber )(void *p)
- int(* GetMidiNoteNumber )(void *p)
- int(* GetMidiVelocity )(void *p)
- int(* GetNchnls )(CSOUND *)
- double(* GetOffTime )(void *p)
- char *(* GetOpcodeName )(void *p)
- unsigned long(* GetOutputArgAMask )(void *p)
- int(* GetOutputArgCnt )(void *p)
- char *(* GetOutputArgName )(void *p, int n)
- unsigned long(* GetOutputArgSMask )(void *p)
- MYFLT *(* GetOutputBuffer )(CSOUND *)
- long(* GetOutputBufferSize )(CSOUND *)
- MYFLT *(* GetPFields )(void *p)
- uint32_t(* GetRandomSeedFromTime )(void)
- double(* GetRealTime )(RTCLOCK *)
- int(* GetReleaseFlag )(void *p)
- void **(* GetRtPlayUserData )(CSOUND *)
- void **(* GetRtRecordUserData )(CSOUND *)
- int(* GetSampleFormat )(CSOUND *)
- int(* GetSampleSize )(CSOUND *)
- MYFLT(* GetScoreOffsetSeconds )(CSOUND *)
- double(* GetScoreTime )(CSOUND *)
- int(* GetSizeOfMYFLT )(void)
- int(* getsndin )(CSOUND *, void *, MYFLT *, int, void *)
- MYFLT *(* GetSpin )(CSOUND *)
- MYFLT *(* GetSpout )(CSOUND *)
- MYFLT(* GetSr )(CSOUND *)
- char *(* getstrformat )(int format)
- int(* GetTable )(CSOUND *, MYFLT **tablePtr, int tableNum)
- const char *(* GetUtilityDescription )(CSOUND *, const char *utilName)
- int(* GetVersion )(void)
- MYFLT global_ekr
- long global_kcounter
- int global_ksmps
- int(* hfgens )(CSOUND *, FUNC **, const EVTBLK *, int)
- int holdrand
- void * hostdata
- long ibeatTime
- long icurTime
- OPDS * ids
- CS_PRINTF2 int(* InitError )(CSOUND *, const char *msg,...)
- void(* InitTimerStruct )(RTCLOCK *)
- void(* InputMessage )(CSOUND *, const char *message__)
- int(* insert_score_event )(CSOUND *, EVTBLK *, double)
- int(* insert_score_event_at_sample )(CSOUND *, EVTBLK *, long)
- INSTRTXT ** instrtxtp
- MYFLT(* intpow )(MYFLT, int32)
- void(* InverseComplexFFT )(CSOUND *, MYFLT *buf, int FFTsize)
- void(* InverseRealFFT )(CSOUND *, MYFLT *buf, int FFTsize)
- void(* InverseRealFFTnp2 )(CSOUND *, MYFLT *buf, int FFTsize)
- int(* IsScorePending )(CSOUND *)
- uintptr_t(* JoinThread )(void *thread)
- long kcounter
- void(* KeyPress )(CSOUND *, char c__)
- MYFLT kicvt
- int ksmps
- MEMFIL *(* ldmemfile )(CSOUND *, const char *)
- MEMFIL *(* ldmemfile2 )(CSOUND *, const char *, int)
- int(* ListChannels )(CSOUND *, CsoundChannelListEntry **lst)
- csCfgVariable_t **(* ListConfigurationVariables )(CSOUND *)
- char **(* ListUtilities )(CSOUND *)
- SNDMEMFILE *(* LoadSoundFile )(CSOUND *, const char *, SF_INFO *)
- char *(* LocalizeString )(const char *)
- void(* LockMutex )(void *mutex_)
- int(* LockMutexNoWait )(void *mutex_)
- CS_NORETURN void(* LongJmp )(CSOUND *, int)
- MCHNBLK * m_chnbp [64]
- void *(* Malloc )(CSOUND *, size_t nbytes)
- int maxinsno
- CS_PRINTF2 void(* Message )(CSOUND *, const char *fmt,...)
- CS_PRINTF3 void(* MessageS )(CSOUND *, int attr, const char *fmt,...)
- void(* MessageV )(CSOUND *, int attr, const char *format, va_list args)
- MYFLT mpidsr
- MYFLT mtpdsr
- int nchnls
- int(* NewOpcodeList )(CSOUND *, opcodeListEntry **)
- void(* NotifyFileOpened )(CSOUND *, const char *, int, int, int)
- void(* NotifyThreadLock )(void *lock)
- int nspin
- int nspout
- MYFLT onedkr
- MYFLT onedksmps
- MYFLT onedsr
- OPARMS * oparms
- int(* OpenLibrary )(void **library, const char *libraryPath)
- char * orchname
- int(* ParseConfigurationVariable )(CSOUND *, const char *name, const char *value)
- OPDS * pds
- CS_PRINTF2 int(* PerfError )(CSOUND *, const char *msg,...)
- int(* Perform )(CSOUND *)
- int(* PerformBuffer )(CSOUND *)
- int(* PerformKsmps )(CSOUND *)
- int(* PerformKsmpsAbsolute )(CSOUND *)
- MYFLT pidsr
- void * printerrormessagesflag
- int(* PVOC_CloseFile )(CSOUND *, int)
- int(* PVOC_CreateFile )(CSOUND *, const char *, uint32, uint32, uint32, uint32, int32, int, int, float, float *, uint32)
- const char *(* PVOC_ErrorString )(CSOUND *)
- int(* PVOC_FrameCount )(CSOUND *, int)
- int(* PVOC_fseek )(CSOUND *, int, int)
- int(* PVOC_GetFrames )(CSOUND *, int, float *, uint32)
- int(* PVOC_OpenFile )(CSOUND *, const char *, void *, void *)
- int(* PVOC_PutFrames )(CSOUND *, int, const float *, int32)
- int(* PVOCEX_LoadFile )(CSOUND *, const char *, PVOCEX_MEMFILE *)
- int(* PvsinSet )(CSOUND *, const PVSDATEXT *value, int n)
- int(* PvsoutGet )(CSOUND *, PVSDATEXT *value, int n)
- csCfgVariable_t *(* QueryConfigurationVariable )(CSOUND *, const char *name)
- void *(* QueryGlobalVariable )(CSOUND *, const char *name)
- void *(* QueryGlobalVariableNoCheck )(CSOUND *, const char *name)
- int(* Rand31 )(int *seedVal)
- uint32_t(* RandMT )(CsoundRandMTState *p)
- int randSeed1
- int randSeed2
- void(* RealFFT )(CSOUND *, MYFLT *buf, int FFTsize)
- void(* RealFFTMult )(CSOUND *, MYFLT *outbuf, MYFLT *buf1, MYFLT *buf2, int FFTsize, MYFLT scaleFac)
- void(* RealFFTnp2 )(CSOUND *, MYFLT *buf, int FFTsize)
- void *(* ReAlloc )(CSOUND *, void *oldp, size_t nbytes)
- int(* RegisterDeinitCallback )(CSOUND *, void *p, int(*func)(CSOUND *, void *))
- int(* RegisterResetCallback )(CSOUND *, void *userData, int(*func)(CSOUND *, void *))
- int(* RegisterSenseEventCallback )(CSOUND *, void(*func)(CSOUND *, void *), void *userData)
- int reinitflag
- void(* Remove_Callback )(CSOUND *, int(*func)(void *, void *, unsigned int))
- void(* Reset )(CSOUND *)
- void(* RewindScore )(CSOUND *)
- void(* rewriteheader )(SNDFILE *ofd)
- void * rtPlay_userdata
- void * rtRecord_userdata
- long(* RunCommand )(const char *const *argv, int noWait)
- int(* RunUtility )(CSOUND *, const char *name, int argc, char **argv)
- void *(* SAsndgetset )(CSOUND *, char *, void *, MYFLT *, MYFLT *, MYFLT *, int)
- int(* ScoreEvent )(CSOUND *, char type, const MYFLT *pFields, long numFields)
- char * scorename
- void(* SeedRandMT )(CsoundRandMTState *p, const uint32_t *initKey, uint32_t keyLength)
- int(* Set_Callback )(CSOUND *, int(*func)(void *, void *, unsigned int), void *userData, unsigned int typeMask)
- void(* SetChannelIOCallback )(CSOUND *, CsoundChannelIOCallback_t func)
- int(* SetConfigurationVariable )(CSOUND *, const char *name, void *value)
- int(* SetControlChannelParams )(CSOUND *, const char *name, int type, MYFLT dflt, MYFLT min, MYFLT max)
- void(* SetDebug )(CSOUND *, int d)
- void(* SetDrawGraphCallback )(CSOUND *, void(*drawGraphCallback)(CSOUND *, WINDAT *p))
- void(* SetExitGraphCallback )(CSOUND *, int(*exitGraphCallback)(CSOUND *))
- void(* SetExternalMidiErrorStringCallback )(CSOUND *, const char *(*func)(int))
- void(* SetExternalMidiInCloseCallback )(CSOUND *, int(*func)(CSOUND *, void *))
- void(* SetExternalMidiInOpenCallback )(CSOUND *, int(*func)(CSOUND *, void **, const char *))
- void(* SetExternalMidiOutCloseCallback )(CSOUND *, int(*func)(CSOUND *, void *))
- void(* SetExternalMidiOutOpenCallback )(CSOUND *, int(*func)(CSOUND *, void **, const char *))
- void(* SetExternalMidiReadCallback )(CSOUND *, int(*func)(CSOUND *, void *, unsigned char *, int))
- void(* SetExternalMidiWriteCallback )(CSOUND *, int(*func)(CSOUND *, void *, const unsigned char *, int))
- void(* SetHostData )(CSOUND *, void *hostData)
- void(* SetInputValueCallback )(CSOUND *, void(*inputValueCalback)(CSOUND *, const char *channelName, MYFLT *value))
- void(* SetInternalYieldCallback )(CSOUND *, int(*yieldCallback)(CSOUND *))
- int(* SetIsGraphable )(CSOUND *, int isGraphable)
- void(* SetKillGraphCallback )(CSOUND *, void(*killGraphCallback)(CSOUND *, WINDAT *p))
- void(* SetKillXYinCallback )(CSOUND *, void(*)(CSOUND *, XYINDAT *))
- void(* SetMakeGraphCallback )(CSOUND *, void(*makeGraphCallback)(CSOUND *, WINDAT *p, const char *name))
- void(* SetMakeXYinCallback )(CSOUND *, void(*)(CSOUND *, XYINDAT *, MYFLT, MYFLT))
- void(* SetMessageCallback )(CSOUND *, void(*csoundMessageCallback)(CSOUND *, int attr, const char *format, va_list valist))
- void(* SetMessageLevel )(CSOUND *, int messageLevel)
- void(* SetOutputValueCallback )(CSOUND *, void(*outputValueCalback)(CSOUND *, const char *channelName, MYFLT value))
- void(* SetPlayopenCallback )(CSOUND *, int(*playopen__)(CSOUND *, const csRtAudioParams *parm))
- void(* SetReadXYinCallback )(CSOUND *, void(*)(CSOUND *, XYINDAT *))
- void(* SetRecopenCallback )(CSOUND *, int(*recopen__)(CSOUND *, const csRtAudioParams *parm))
- int(* SetReleaseLength )(void *p, int n)
- MYFLT(* SetReleaseLengthSeconds )(void *p, MYFLT n)
- void(* SetRtcloseCallback )(CSOUND *, void(*rtclose__)(CSOUND *))
- void(* SetRtplayCallback )(CSOUND *, void(*rtplay__)(CSOUND *, const MYFLT *outBuf, int nbytes))
- void(* SetRtrecordCallback )(CSOUND *, int(*rtrecord__)(CSOUND *, MYFLT *inBuf, int nbytes))
- void(* SetScoreOffsetSeconds )(CSOUND *, MYFLT offset)
- void(* SetScorePending )(CSOUND *, int pending)
- int(* SetUtilityDescription )(CSOUND *, const char *utilName, const char *utilDesc)
- void(* SetYieldCallback )(CSOUND *, int(*yieldCallback)(CSOUND *))
- int(* sfsampsize )(int format)
- int(* sftype2csfiletype )(int type)
- MYFLT sicvt
- void(* Sleep )(size_t milliseconds)
- void *(* sndgetset )(CSOUND *, void *)
- MYFLT * spin
- int spinlock
- MYFLT * spout
- int spoutactive
- int spoutlock
- void * stdOp_Env
- int32(* strarg2insno )(CSOUND *, void *p, int is_string)
- char *(* strarg2name )(CSOUND *, char *, void *, const char *, int)
- char ** strsets
- int strsmax
- int strVarMaxLen
- MYFLT(* TableGet )(CSOUND *, int table, int index)
- int(* TableLength )(CSOUND *, int table)
- void(* TableSet )(CSOUND *, int table, int index, MYFLT value)
- int tieflag
- double timeOffs
- MYFLT tpidsr
- int(* type2csfiletype )(int type, int encoding)
- char *(* type2string )(int type)
- void(* UnlockMutex )(void *mutex_)
- int(* WaitBarrier )(void *)
- int(* WaitThreadLock )(void *lock, size_t milliseconds)
- void(* WaitThreadLockNoTimeout )(void *lock)
- CS_PRINTF2 void(* Warning )(CSOUND *, const char *msg,...)
- void * widgetGlobals
- long zalast
- MYFLT * zastart
- long zklast
- MYFLT * zkstart
Detailed Description
Contains all function pointers, data, and data pointers required to run one instance of Csound.
Field Documentation
int(* CSOUND_::AppendOpcode)(CSOUND *, const char *opname, int dsblksiz, int thread, const char *outypes, const char *intypes, int(*iopadr)(CSOUND *, void *), int(*kopadr)(CSOUND *, void *), int(*aopadr)(CSOUND *, void *)) |
current time in beats, inc per kprd
current time in seconds, inc. per kprd
used by init and perf loops
reserve space for up to 4 MIDI devices
int(* CSOUND_::PVOC_CreateFile)(CSOUND *, const char *, uint32, uint32, uint32, uint32, int32, int, int, float, float *, uint32) |
reserved for std opcode library
max. length of string variables + 1
start time of current section