#include <stdio.h>
#include "sysdep.h"
#include "csound.h"
|
PUBLIC EVENT * | cscoreCreateEvent (CSOUND *, int) |
|
PUBLIC EVENT * | cscoreDefineEvent (CSOUND *, char *) |
|
PUBLIC EVENT * | cscoreCopyEvent (CSOUND *, EVENT *) |
|
PUBLIC EVENT * | cscoreGetEvent (CSOUND *) |
|
PUBLIC void | cscorePutEvent (CSOUND *, EVENT *) |
|
PUBLIC void | cscorePutString (CSOUND *, char *) |
|
PUBLIC EVLIST * | cscoreListCreate (CSOUND *, int) |
|
PUBLIC EVLIST * | cscoreListAppendEvent (CSOUND *, EVLIST *, EVENT *) |
|
PUBLIC EVLIST * | cscoreListAppendStringEvent (CSOUND *, EVLIST *, char *) |
|
PUBLIC EVLIST * | cscoreListGetSection (CSOUND *) |
|
PUBLIC EVLIST * | cscoreListGetNext (CSOUND *, MYFLT) |
|
PUBLIC EVLIST * | cscoreListGetUntil (CSOUND *, MYFLT) |
|
PUBLIC EVLIST * | cscoreListCopy (CSOUND *, EVLIST *) |
|
PUBLIC EVLIST * | cscoreListCopyEvents (CSOUND *, EVLIST *) |
|
PUBLIC EVLIST * | cscoreListExtractInstruments (CSOUND *, EVLIST *, char *) |
|
PUBLIC EVLIST * | cscoreListExtractTime (CSOUND *, EVLIST *, MYFLT, MYFLT) |
|
PUBLIC EVLIST * | cscoreListSeparateF (CSOUND *, EVLIST *) |
|
PUBLIC EVLIST * | cscoreListSeparateTWF (CSOUND *, EVLIST *) |
|
PUBLIC EVLIST * | cscoreListAppendList (CSOUND *, EVLIST *, EVLIST *) |
|
PUBLIC EVLIST * | cscoreListConcatenate (CSOUND *, EVLIST *, EVLIST *) |
|
PUBLIC void | cscoreListPut (CSOUND *, EVLIST *) |
|
PUBLIC int | cscoreListPlay (CSOUND *, EVLIST *) |
|
PUBLIC void | cscoreListSort (CSOUND *, EVLIST *) |
|
PUBLIC int | cscoreListCount (CSOUND *, EVLIST *) |
|
PUBLIC void | cscoreFreeEvent (CSOUND *, EVENT *) |
|
PUBLIC void | cscoreListFree (CSOUND *, EVLIST *) |
|
PUBLIC void | cscoreListFreeEvents (CSOUND *, EVLIST *) |
|
PUBLIC FILE * | cscoreFileOpen (CSOUND *, char *) |
|
PUBLIC void | cscoreFileClose (CSOUND *, FILE *) |
|
PUBLIC FILE * | cscoreFileGetCurrent (CSOUND *) |
|
PUBLIC void | cscoreFileSetCurrent (CSOUND *, FILE *) |
|
◆ CSHDR
◆ cscoreCopyEvent()
◆ cscoreCreateEvent()
◆ cscoreDefineEvent()
◆ cscoreFileClose()
◆ cscoreFileGetCurrent()
◆ cscoreFileOpen()
◆ cscoreFileSetCurrent()
◆ cscoreFreeEvent()
◆ cscoreGetEvent()
◆ cscoreListAppendEvent()
◆ cscoreListAppendList()
◆ cscoreListAppendStringEvent()
◆ cscoreListConcatenate()
◆ cscoreListCopy()
◆ cscoreListCopyEvents()
◆ cscoreListCount()
◆ cscoreListCreate()
◆ cscoreListExtractInstruments()
◆ cscoreListExtractTime()
◆ cscoreListFree()
◆ cscoreListFreeEvents()
◆ cscoreListGetNext()
◆ cscoreListGetSection()
◆ cscoreListGetUntil()
◆ cscoreListPlay()
◆ cscoreListPut()
◆ cscoreListSeparateF()
◆ cscoreListSeparateTWF()
◆ cscoreListSort()
◆ cscorePutEvent()
◆ cscorePutString()
unsigned int ksmps
Definition: csoundCore.h:552
int type
Definition: csound.h:587
@ CSFTYPE_PVF
Definition: csound.h:403
MYFLT scratchpad[4]
Definition: csoundCore.h:556
int(* csoundExitGraphCallback_)(CSOUND *)
Definition: csoundCore.h:1444
int(* OpenLibrary)(void **library, const char *libraryPath)
Definition: csoundCore.h:1356
int sampleAccurate
Definition: csoundCore.h:258
int(* PVOC_CreateFile)(CSOUND *, const char *, uint32, uint32, uint32, uint32, int32, int, int, float, float *, uint32)
Definition: csoundCore.h:1153
struct instr INSTRTXT
This struct is filled out by otran() at orch parse time.
void(* TableSet)(CSOUND *, int table, int index, MYFLT value)
Definition: csoundCore.h:1113
int(* CheckEvents)(CSOUND *)
Definition: csoundCore.h:1336
int inInstr
Definition: csoundCore.h:1764
int nchanif
Definition: csoundCore.h:1748
char muteTrackList[256]
Definition: csoundCore.h:820
int nchanof
Definition: csoundCore.h:1748
@ CSFTYPE_HETROT
Definition: csound.h:418
void * debug_opcode_ptr
Definition: csdebug.h:168
int16 mono
Definition: csoundCore.h:446
void(* module_list_add)(CSOUND *, char *, char *)
Definition: csoundCore.h:1289
int line
Definition: csoundCore.h:908
MYFLT * logbase2
Definition: csoundCore.h:1691
PUBLIC debug_instr_t * csoundDebugGetInstrInstances(CSOUND *csound)
Get a list of active instrument instances Returns a linked list of allocated instrument instances cso...
void(* InputMessage)(CSOUND *, const char *message__)
Definition: csoundCore.h:1375
CS_HASH_TABLE * sndmemfiles
Definition: csoundCore.h:1696
PUBLIC void * csoundCreateCondVar()
Creates a conditional variable.
int isOutput
Definition: csound.h:531
void PUBLIC csoundDestroyMessageBuffer(CSOUND *csound)
Releases all memory used by the message buffer.
MYFLT * spout
Definition: csoundCore.h:1522
char * orchestra
Definition: csoundCore.h:1646
void * remoteGlobals
Definition: csoundCore.h:1746
MYFLT prvtempo
Definition: csoundCore.h:835
int FFT_max_size
Definition: csoundCore.h:1574
NAMELST * toremove
Definition: csoundCore.h:1632
int(* WaitBarrier)(void *)
Definition: csoundCore.h:1205
AUXCH * auxchp
Definition: csoundCore.h:392
uint32_t nchnls
Definition: csoundCore.h:1475
PUBLIC void * csoundGetNamedGens(CSOUND *)
Finds the list of named gens.
struct threadInfo * next
Definition: csoundCore.h:849
PUBLIC MYFLT * csoundGetSpout(CSOUND *csound)
Returns the address of the Csound audio output working buffer (spout).
OPCODINFO * opcodeInfo
Definition: csoundCore.h:1558
int(* WriteCircularBuffer)(CSOUND *, void *, const void *, int)
Definition: csoundCore.h:1217
ARG * inArgs
Definition: csoundCore.h:307
char * data
Definition: csoundCore.h:414
int nChannels
number of channels
Definition: csoundCore.h:728
char * mac
Definition: csoundCore.h:844
message_string_queue_t * message_string_queue
Definition: csoundCore.h:1820
void * data
Definition: csdebug.h:86
PUBLIC void csoundSetMIDIInput(CSOUND *csound, const char *name)
Set MIDI input device name/number.
CORFIL * scstr
Definition: csoundCore.h:1502
Declares the public Csound application programming interface (API).
PUBLIC EVLIST * cscoreListCreate(CSOUND *, int)
spin_lock_t spinlock1
Definition: csoundCore.h:1592
int16 pgmno
most recently received program change
Definition: csoundCore.h:442
int lib
Definition: csoundCore.h:964
MYFLT * psetdata
Definition: csoundCore.h:333
char stdout_assign_flg
Definition: csoundCore.h:1716
struct opds * nxtp
Next opcode in perf-time chain.
Definition: csoundCore.h:603
int(* FTAlloc)(CSOUND *, int tableNum, int len)
Definition: csoundCore.h:1101
PUBLIC void csoundRemoveInstrumentBreakpoint(CSOUND *csound, MYFLT instr)
Remove instrument breakpoint.
char * body
Definition: csoundCore.h:226
int line
Definition: csdebug.h:71
PUBLIC int csoundSetGlobalEnv(const char *name, const char *value)
Set the global value of environment variable 'name' to 'value', or delete variable if 'value' is NULL...
CS_HASH_TABLE * stringPool
Definition: csoundCore.h:948
int32 length
Definition: csoundCore.h:706
int(* GEN)(FGDATA *, FUNC *)
Definition: csoundCore.h:700
Definition: csoundCore.h:1649
PUBLIC void csoundSpinLock(spin_lock_t *spinlock)
Locks the spinlock.
char * attributes
This member must be set explicitly to NULL if not used.
Definition: csound.h:650
struct fdch * nxtchp
Definition: csoundCore.h:368
void * reset_list
Definition: csoundCore.h:1697
PUBLIC EVENT * cscoreCreateEvent(CSOUND *, int)
void * namedgen
Definition: csoundCore.h:1693
int unused_int6
Definition: csoundCore.h:1622
int32 lomask
2^lobits - 1
Definition: csoundCore.h:659
PUBLIC EVLIST * cscoreListAppendEvent(CSOUND *, EVLIST *, EVENT *)
PUBLIC void cscorePutString(CSOUND *, char *)
CSOUND_STATUS
Enables Python interface.
Definition: csound.h:327
PUBLIC int csoundDestroyGlobalVariable(CSOUND *, const char *name)
Free memory allocated for "name" and remove "name" from the database.
int winsize
Definition: csoundCore.h:764
int scnt
Definition: csoundCore.h:1781
CS_VAR_MEM p0
Definition: csoundCore.h:577
char * orcname
Definition: csoundCore.h:1633
int dither_output
Definition: csoundCore.h:1530
#define PMAX
Definition: csoundCore.h:106
Definition: csoundCore.h:614
size_t nFrames
file length in sample frames
Definition: csoundCore.h:724
PUBLIC void csoundKeyPress(CSOUND *, char c)
Set the ASCII code of the most recent key pressed.
Specialization of CsoundEvent for low-level score events with raw pfields.
Definition: csound_threaded.hpp:120
int enableHostImplementedMIDIIO
Definition: csoundCore.h:1704
@ CSFTYPE_HTK
Definition: csound.h:398
char * chanif
Definition: csoundCore.h:1749
void * file_io_threadlock
Definition: csoundCore.h:1585
int count
Definition: csoundCore.h:926
PUBLIC MYFLT csoundGet0dBFS(CSOUND *)
Returns the 0dBFS level of the spin/spout buffers.
char * SF_id_software
Definition: csoundCore.h:1725
int sstrlen
Definition: csoundCore.h:1678
int stdmode
Definition: csoundCore.h:1642
MYFLT onedksmps
Definition: csoundCore.h:1533
This struct is filled out by otran() at orch parse time.
Definition: csoundCore.h:320
void * opcod_deact
Definition: csoundCore.h:560
Definition: csoundCore.h:632
PUBLIC int csoundDestroyBarrier(void *barrier)
Destroy a Thread Barrier.
PUBLIC void csoundTableSet(CSOUND *, int table, int index, MYFLT value)
Sets the value of a slot in a function table.
char engineStatus
Definition: csoundCore.h:1713
struct namelst * next
Definition: csoundCore.h:920
int peakchunks
Definition: csoundCore.h:1494
CsoundThreaded(CSOUND *csound_)
Definition: csound_threaded.hpp:180
virtual int operator()(CSOUND *csound_)=0
Dispatches the event to Csound during performance.
AUXCH * auxchp
Definition: csoundCore.h:522
MYFLT * data
Definition: csoundCore.h:409
int(* sfsampsize)(int format)
Definition: csoundCore.h:1251
uint16_t linenum
Definition: csoundCore.h:301
INSDS * curip
Definition: csoundCore.h:1491
PUBLIC void csoundInputMessageAsync(CSOUND *, const char *message)
Asynchronous version of csoundInputMessage().
int lincnt
Definition: csoundCore.h:1601
int maxinsno
Definition: csoundCore.h:953
@ CSFTYPE_SCORE
Definition: csound.h:372
int16 dat1
Definition: csoundCore.h:713
controlChannelHints_t hints
Definition: csound.h:656
struct instr * nxtinstxt
Definition: csoundCore.h:339
unsigned int outArgCount
Definition: csoundCore.h:310
char * namep
Definition: csoundCore.h:924
int16 outchns
Definition: csoundCore.h:935
PUBLIC void csoundPopFirstMessage(CSOUND *csound)
Removes the first message from the buffer.
void * cb_data
Definition: csdebug.h:165
PUBLIC void csoundSetMessageCallback(CSOUND *, void(*csoundMessageCallback_)(CSOUND *, int attr, const char *format, va_list valist))
Sets a function to be called by Csound to print an informational message.
int csd_line_counts
Definition: csound.h:501
int format
Definition: csoundCore.h:761
void * csmodule_db
Definition: csoundCore.h:1719
struct eventnode * nxt
Definition: csoundCore.h:827
MCHNBLK * chn
Definition: csoundCore.h:985
struct CSOUND_::musmonStatics__ musmonStatics
void * pvFileTable
Definition: csoundCore.h:1698
SRTBLK * bp
Definition: csoundCore.h:1596
char * SF_id_artist
Definition: csoundCore.h:1726
MYFLT(* Get0dBFS)(CSOUND *)
Definition: csoundCore.h:1022
PUBLIC EVLIST * cscoreListExtractTime(CSOUND *, EVLIST *, MYFLT, MYFLT)
int daemon
Definition: csoundCore.h:261
PUBLIC int64_t csound_opcode_init(CSOUND *, OENTRY **)
struct CSOUND_::libsndStatics__ libsndStatics
int unused_int1
Definition: csoundCore.h:1800
Definition: csoundCore.h:367
@ CSFTYPE_CAF
Definition: csound.h:392
double offbet
Definition: csoundCore.h:544
PUBLIC void * csoundQueryGlobalVariable(CSOUND *, const char *name)
Get pointer to space allocated with the name "name".
struct controlChannelInfo_s controlChannelInfo_t
CSHDR h
Definition: cscore.h:81
PUBLIC void csoundGetOutputFormat(CSOUND *csound, char *type, char *format)
Get output type and format.
void(* spoutran)(CSOUND *)
Definition: csoundCore.h:1461
int hostRequestedBufferSize
Definition: csoundCore.h:1705
char * opname
Definition: csoundCore.h:285
int inChar_
Definition: csoundCore.h:1683
SUBR dummyfn_2[29]
Definition: csoundCore.h:1402
int csoundIsScorePending_
Definition: csoundCore.h:1552
csound configuration structure, mirrors part of OPARMS, uses more meaningful names
Definition: csound.h:477
void(* DestroyThreadLock)(void *lock)
Definition: csoundCore.h:1194
breakpoint_cb_t bkpt_cb
Definition: csdebug.h:164
int(* csoundConfigureCallback_)(CSOUND *)
Definition: csoundCore.h:1439
EVTBLK * currevent
Definition: csoundCore.h:1490
int defer_gen01_load
Definition: csound.h:491
int(* iopadr)(CSOUND *, void *p)
Definition: csoundCore.h:291
char * opcod
Definition: csoundCore.h:304
char * name
Definition: csoundCore.h:696
int isNew
Definition: csoundCore.h:347
INSTRTXT ** dead_instr_pool
Definition: csoundCore.h:1471
IN_STACK * str
Definition: csoundCore.h:1609
Definition: csoundCore.h:923
char ** dag_task_dep
Definition: csoundCore.h:1771
PUBLIC void csoundDestroyThreadLock(void *lock)
Destroys the indicated monitor object.
int(* PVOCEX_LoadFile)(CSOUND *, const char *, PVOCEX_MEMFILE *)
Definition: csoundCore.h:1164
INSTRTXT * instr0
Definition: csoundCore.h:1470
int max_nchnls
Definition: csound.h:522
int32 end1
Definition: csoundCore.h:669
int reinitflag
Definition: csoundCore.h:1536
unsigned char m_veloc
Definition: csoundCore.h:538
int rawControllerMode
Definition: csoundCore.h:819
MYFLT(* GetScoreOffsetSeconds)(CSOUND *)
Definition: csoundCore.h:1372
int64_t icurTime
current time in seconds, inc.
Definition: csoundCore.h:1482
int use_only_orchfile
Definition: csoundCore.h:1718
unsigned char * bufp
Definition: csoundCore.h:822
int N
Definition: csoundCore.h:961
PUBLIC EVLIST * cscoreListAppendStringEvent(CSOUND *, EVLIST *, char *)
int(* SetConfigurationVariable)(CSOUND *, const char *name, void *value)
Definition: csoundCore.h:1128
PUBLIC void csoundSetMessageStringCallback(CSOUND *csound, void(*csoundMessageStrCallback)(CSOUND *csound, int attr, const char *str))
Sets an alternative function to be called by Csound to print an informational message,...
PUBLIC int csoundGetSizeOfMYFLT(void)
Return the size of MYFLT in bytes.
debug_status_t status
Definition: csdebug.h:161
PUBLIC int csoundUDPServerClose(CSOUND *csound)
Closes the UDP server, returning CSOUND_SUCCESS if the running server was successfully closed,...
int input_cnt
Definition: csoundCore.h:1610
char * csdname
Definition: csoundCore.h:1776
double curBeat
current time in beats, inc per kprd
Definition: csoundCore.h:1487
struct opds * nxti
Definition: csoundCore.h:506
volatile unsigned long message_string_queue_items
Definition: csoundCore.h:1818
Definition: csoundCore.h:284
const uint32_t csMidiScoMask
Contains all function pointers, data, and data pointers required to run one instance of Csound.
Definition: csoundCore.h:1011
int16 srngflg
Definition: csoundCore.h:1651
int midi_velocity
Definition: csound.h:496
int(* MidiOutCloseCallback)(CSOUND *, void *)
Definition: csoundCore.h:813
MYFLT mpidsr
Definition: csoundCore.h:1532
int kperf_nodebug(CSOUND *csound)
int16 type
Definition: csoundCore.h:711
PUBLIC EVLIST * cscoreListGetSection(CSOUND *)
int overlap
Definition: csoundCore.h:763
int midi_velocity_amp
Definition: csound.h:497
EVTBLK evt
Definition: csoundCore.h:1568
PUBLIC int csoundGetChannelDatasize(CSOUND *csound, const char *name)
returns the size of data stored in a channel; for string channels this might change if the channel sp...
PUBLIC int csoundListChannels(CSOUND *, controlChannelInfo_t **lst)
Returns a list of allocated channels in *lst.
int(* GetStrsmax)(CSOUND *)
Current maximum number of strings, accessible through the strset and strget opcodes.
Definition: csoundCore.h:1067
PUBLIC void csoundSeedRandMT(CsoundRandMTState *p, const uint32_t *initKey, uint32_t keyLength)
Initialise Mersenne Twister (MT19937) random number generator, using 'keyLength' unsigned 32 bit valu...
int size
Definition: csoundCore.h:408
EVTBLK e
Definition: csoundCore.h:692
CS_VAR_POOL * in_arg_pool
Definition: csoundCore.h:937
PUBLIC int csoundSpinTryLock(spin_lock_t *spinlock)
Tries the lock, returns CSOUND_SUCCESS if lock could be acquired, CSOUND_ERROR, otherwise.
PUBLIC int csoundSetControlChannelHints(CSOUND *, const char *name, controlChannelHints_t hints)
Set parameters hints for a control channel.
char * scorename
Definition: csoundCore.h:1465
volatile long msg_queue_wget
Definition: csoundCore.h:1803
char * outfilename
Definition: csoundCore.h:246
debug_variable_t * instrVarList
Definition: csdebug.h:92
PUBLIC void csoundCondWait(void *condVar, void *mutex)
Waits up on a conditional variable and mutex.
PUBLIC void csoundSetParams(CSOUND *csound, CSOUND_PARAMS *p)
Configure Csound with a given set of parameters defined in the CSOUND_PARAMS structure.
struct insds * lst_instance
Definition: csoundCore.h:336
struct insds INSDS
This struct holds the info for a concrete instrument event instance in performance.
char * path
Definition: csoundCore.h:890
int disable_csd_options
Definition: csoundCore.h:1736
char * intypes
Definition: csound.h:563
char * name
Definition: csound.h:654
int holdrand
Definition: csoundCore.h:1514
@ CSFTYPE_INTEGER_BINARY
Definition: csound.h:443
MYFLT cpu_power_busy
Definition: csoundCore.h:1492
PUBLIC void csoundSleep(size_t milliseconds)
Waits for at least the specified number of milliseconds, yielding the CPU to other threads.
int instcnt
Definition: csoundCore.h:346
This structure holds the parameter hints for control channels.
Definition: csound.h:639
int tieflag
Definition: csoundCore.h:1537
PUBLIC void csoundSetRTAudioModule(CSOUND *csound, const char *module)
Sets the current RT audio module.
void * event_insert_thread
Definition: csoundCore.h:1587
FILE * pout
Definition: csoundCore.h:1673
uint32_t ksmps_no_end
Definition: csoundCore.h:566
@ CSOUND_PERFORMANCE
Definition: csound.h:336
PUBLIC void csoundStopUDPConsole(CSOUND *csound)
Stop transmitting console messages via UDP.
THREADINFO * multiThreadedThreadInfo
Definition: csoundCore.h:1752
PUBLIC void csoundSetBreakpointCallback(CSOUND *csound, breakpoint_cb_t bkpt_cb, void *userdata)
Sets the breakpoint callback function.
struct insds * nxtinstance
Definition: csoundCore.h:510
void(* SetRtcloseCallback)(CSOUND *, void(*rtclose__)(CSOUND *))
Definition: csoundCore.h:1264
uint32 nframes
Definition: csoundCore.h:760
PUBLIC void csoundSetScorePending(CSOUND *, int pending)
Sets whether Csound score events are performed or not (real-time events will continue to be performed...
struct namedInstr * next
Definition: csoundCore.h:355
void(* SetRtplayCallback)(CSOUND *, void(*rtplay__)(CSOUND *, const MYFLT *outBuf, int nbytes))
Definition: csoundCore.h:1258
PUBLIC void csoundSetHostImplementedAudioIO(CSOUND *, int state, int bufSize)
Calling this function with a non-zero 'state' value between csoundCreate() and the start of performan...
CS_PRINTF2 int(* InitError)(CSOUND *, const char *msg,...)
Definition: csoundCore.h:1170
@ CSFTYPE_PVC
Definition: csound.h:419
int terminate_on_midi
Definition: csound.h:488
MIDIMESSAGE MIDIINbuffer2[MIDIINBUFMAX]
Definition: csoundCore.h:807
void(* Sleep)(size_t milliseconds)
Definition: csoundCore.h:1207
int sampleFormat
AE_SHORT, AE_FLOAT, etc.
Definition: csoundCore.h:730
int midi_key
Definition: csound.h:492
PUBLIC void csoundSetMIDIOutput(CSOUND *csound, const char *name)
Set MIDI output device name/number.
spin_lock_t spinlock
Definition: csoundCore.h:1591
struct debug_opcode_s * next
Definition: csdebug.h:79
PUBLIC int csoundGetFirstMessageAttr(CSOUND *csound)
Returns the attribute parameter (see msg_attr.h) of the first message in the buffer.
char * curmem
Definition: csoundCore.h:1605
int(* kperf)(CSOUND *)
Definition: csoundCore.h:1796
struct SNDMEMFILE_ SNDMEMFILE
PUBLIC void csoundSetRtcloseCallback(CSOUND *, void(*rtclose__)(CSOUND *))
Sets a function to be called by Csound for closing real-time audio playback and recording.
char * devName
device name (NULL/empty: default)
Definition: csound.h:540
channelCallback_t OutputChannelCallback_
Definition: csoundCore.h:1436
int(* audio_dev_list_callback)(CSOUND *, CS_AUDIODEVICE *, int)
Definition: csoundCore.h:1455
PUBLIC CSOUND * csoundCreate(void *hostData)
Creates an instance of Csound.
PUBLIC int csoundUDPServerStatus(CSOUND *csound)
returns the port number on which the server is running, or CSOUND_ERROR if the server is not running.
int debug_mode
Definition: csound.h:478
PVOCEX_MEMFILE * pvx_memfiles
Definition: csoundCore.h:1573
int16 loopmode2
release loop mode (0: none, 1: forward, 2: forward and backward)
Definition: csoundCore.h:667
int unused_int2
Definition: csoundCore.h:1612
int32 nrecs
Definition: csoundCore.h:1497
MYFLT polyaft[128]
polyphonic pressure indexed by note number
Definition: csoundCore.h:452
int(* Set_KeyCallback)(CSOUND *, int(*func)(void *, void *, unsigned int), void *userData, unsigned int typeMask)
Definition: csoundCore.h:1310
PUBLIC void csoundNotifyThreadLock(void *lock)
Notifies the indicated monitor object.
void * FFT_table_1
Definition: csoundCore.h:1575
MEVENT mep
Definition: csoundCore.h:986
int osfopen
Definition: csoundCore.h:1670
@ CSFTYPE_OTHER_BINARY
Definition: csound.h:452
PUBLIC void csoundSetKillGraphCallback(CSOUND *, void(*killGraphCallback_)(CSOUND *, WINDAT *windat))
Called by external software to set Csound's KillGraph function.
int32 soundend
sound file length in sample frames (flenfrms = soundend - 1)
Definition: csoundCore.h:673
int16 args
Definition: csoundCore.h:904
int type
Definition: csoundCore.h:274
MYFLT warp_factor
Definition: csoundCore.h:1604
int midiKeyPch
Definition: csoundCore.h:251
double loopStart
loop start (sample frames)
Definition: csoundCore.h:745
double curbt
Definition: csoundCore.h:1565
MYFLT channel
Definition: csoundCore.h:646
PUBLIC CS_PRINTF3 void csoundMessageS(CSOUND *, int attr, const char *format,...)
Print message with special attributes (see msg_attr.h for the list of available attributes).
int16 sectno
Definition: csoundCore.h:1652
PUBLIC void csoundDebugFreeVariables(CSOUND *csound, debug_variable_t *varHead)
Free variable list generated by csoundDebugGetVariables()
int use_cscore
Definition: csound.h:487
CSOUND * csound
Definition: csoundCore.h:550
void(* LockMutex)(void *mutex_)
Definition: csoundCore.h:1200
CS_HASH_TABLE * cfgVariableDB
Definition: csoundCore.h:1564
void(* ErrMsgV)(CSOUND *, const char *hdr, const char *fmt, va_list)
Definition: csoundCore.h:1176
int bufSamp_HW
total buffer size (-B) in sample frames
Definition: csound.h:546
int16 pgm2ins[128]
program change to instr number (<=0: ignore)
Definition: csoundCore.h:456
TEXT t
Definition: csoundCore.h:364
int message_level
Definition: csound.h:484
char filename[256]
Definition: csoundCore.h:703
void(* SetYieldCallback)(CSOUND *, int(*yieldCallback)(CSOUND *))
Definition: csoundCore.h:1309
virtual bool IsPlaying() const
Returns whether or not the performance thread routine is running.
Definition: csound_threaded.hpp:331
PUBLIC void csoundSetOutputChannelCallback(CSOUND *csound, channelCallback_t outputChannelCalback)
Sets the function which will be called whenever the outvalue opcode is used.
int32 instno
Definition: csoundCore.h:352
uint16 flags
Definition: csoundCore.h:287
struct SNDMEMFILE_ * nxt
Definition: csoundCore.h:720
CsoundThreaded()
Definition: csound_threaded.hpp:179
uint32_t mt[624]
Definition: csound.h:569
int isGraphable_
Definition: csoundCore.h:1684
Definition: csoundCore.h:373
int(* GetReleaseFlag)(void *p)
Definition: csoundCore.h:1058
int(* SUBR)(CSOUND *, void *)
Definition: csoundCore.h:593
INSDS actanchor
Definition: csoundCore.h:1546
void(* SetExitGraphCallback)(CSOUND *, int(*exitGraphCallback)(CSOUND *))
Definition: csoundCore.h:1305
int32 overlap
Definition: csound.h:578
INSDS * ip
Definition: csoundCore.h:987
const PUBLIC char * csoundGetUtilityDescription(CSOUND *, const char *utilName)
Get utility description.
char * Linebuf
Definition: csoundCore.h:1644
int oMaxLag
Definition: csoundCore.h:238
int(* kopadr)(CSOUND *, void *p)
Definition: csoundCore.h:292
uint32_t no_end
Definition: csoundCore.h:564
CS_VAR_POOL * varPool
Definition: csoundCore.h:326
char opcode
Definition: csound_threaded.hpp:122
virtual int PerformAndReset()
Like Perform, but calls Cleanup() and Reset() at the conclusion of the performance,...
Definition: csound_threaded.hpp:270
PUBLIC void csoundDisposeOpcodeList(CSOUND *, opcodeListEntry *opcodelist)
Releases an opcode list.
int midiSet
Definition: csoundCore.h:1636
int(* type2csfiletype)(int type, int encoding)
Definition: csoundCore.h:1240
MACRO * orc_macros
Definition: csoundCore.h:1580
DOWNDAT * downsrcp
Definition: csoundCore.h:635
double(* strtod)(char *, char **)
Definition: csoundCore.h:1365
PUBLIC debug_variable_t * csoundDebugGetVariables(CSOUND *csound, debug_instr_t *instr)
Get list of variables for instrument.
PUBLIC int csoundInitialize(int flags)
Initialise Csound library with specific flags.
PUBLIC void csoundSetRtplayCallback(CSOUND *, void(*rtplay__)(CSOUND *, const MYFLT *outBuf, int nbytes))
Sets a function to be called by Csound for performing real-time audio playback.
int32 orngcnt[MAXCHNLS]
Definition: csoundCore.h:1650
MYFLT e0dbfs_override
Definition: csound.h:509
int sliding
Definition: csound.h:576
int unused_int3
Definition: csoundCore.h:1611
int inZero
Definition: csoundCore.h:1801
PUBLIC void * csoundGetLibrarySymbol(void *library, const char *symbolName)
Platform-independent function to get a symbol address in a shared library.
int(* GetRandSeed)(CSOUND *, int which)
Definition: csoundCore.h:1186
AUXCH aux
Definition: csoundCore.h:410
float sampleRate
sample rate in Hz
Definition: csound.h:552
PUBLIC EVENT * cscoreDefineEvent(CSOUND *, char *)
#define MIDIMAXPORTS
Definition: csoundCore.h:793
MYFLT p2orig
Event start time.
Definition: csoundCore.h:490
int d
Definition: csoundCore.h:965
char * outypes
Definition: csoundCore.h:289
int32 flen
Definition: csoundCore.h:690
MYFLT(* GetA4)(CSOUND *csound)
Definition: csoundCore.h:1383
PUBLIC void ** csoundGetRtPlayUserData(CSOUND *)
Return pointer to user data pointer for real time audio output.
void * hostdata
Definition: csoundCore.h:1464
#define SSTRSIZ
Definition: csoundCore.h:168
PUBLIC EVLIST * cscoreListCopy(CSOUND *, EVLIST *)
int32 format
Definition: csound.h:581
PUBLIC void csoundDestroyCircularBuffer(CSOUND *csound, void *circularbuffer)
Free circular buffer.
PUBLIC void csoundDebugFreeInstrInstances(CSOUND *csound, debug_instr_t *instr)
Free list created by csoundDebugGetCurrentInstrInstance() or csoundDebugGetInstrInstances()
void * midiOutUserData
Definition: csoundCore.h:816
Definition: csoundCore.h:413
PUBLIC uint32_t csoundRandMT(CsoundRandMTState *p)
Returns next random number from MT19937 generator.
int(* insert_score_event)(CSOUND *, EVTBLK *, double)
Definition: csoundCore.h:1337
spin_lock_t memlock
Definition: csoundCore.h:1592
int(* PVOC_CloseFile)(CSOUND *, int)
Definition: csoundCore.h:1158
@ CSFTYPE_EXTRACT_PARMS
Definition: csound.h:379
int dplsb
Definition: csoundCore.h:468
int mti
Definition: csound.h:568
void(* GetOParms)(CSOUND *, OPARMS *)
Definition: csoundCore.h:1034
@ CSOUND_CONTROL_CHANNEL
Definition: csound.h:616
CORFIL * expanded_sco
Definition: csoundCore.h:1788
@ CSFTYPE_SOUNDFONT
Definition: csound.h:412
NAMES * smacros
Definition: csoundCore.h:1692
CS_TYPE * arrayType
Definition: csoundCore.h:401
int16 RegParNo
Definition: csoundCore.h:445
PUBLIC double csoundGetCPUTime(RTCLOCK *)
Return the elapsed CPU time (in seconds) since the specified timer structure was initialised.
char * outypes
Definition: csound.h:562
int warpin
Definition: csoundCore.h:1599
MYFLT gen01
Definition: csoundCore.h:642
PUBLIC int csoundUDPConsole(CSOUND *csound, const char *addr, int port, int mirror)
Turns on the transmission of console messages to UDP on address addr port port.
@ VDSP_LIB
Definition: csoundCore.h:217
PUBLIC int csoundScoreExtract(CSOUND *, FILE *inFile, FILE *outFile, FILE *extractFile)
Extracts from 'inFile', controlled by 'extractFile', and writes the result to 'outFile'.
struct _message_queue ** msg_queue
Definition: csoundCore.h:1802
struct CsoundRandMTState_ CsoundRandMTState
int MIDIoutDONE
Definition: csoundCore.h:805
int spoutactive
Definition: csoundCore.h:1477
Definition: csoundCore.h:351
int32 instno
Definition: csoundCore.h:933
CORFIL * scorestr
Definition: csoundCore.h:1466
@ CSFTYPE_MPC2K
Definition: csound.h:395
@ CSOUND_AUDIO_CHANNEL
Definition: csound.h:617
int echo
Definition: csoundCore.h:265
int16 multichan
Definition: csoundCore.h:1548
plugin module info
Definition: csoundCore.h:973
PUBLIC void cscorePutEvent(CSOUND *, EVENT *)
double rndfrac
Definition: csoundCore.h:1690
MYFLT mtpdsr
Definition: csoundCore.h:1532
IN_STACK * inputs
Definition: csoundCore.h:1609
struct TREE * right
Definition: csound.h:603
CS_PRINTF2 void(* Message)(CSOUND *, const char *fmt,...)
Definition: csoundCore.h:1040
int scoLineOffset
Definition: csoundCore.h:1775
double A4
Definition: csoundCore.h:1539
struct arg * next
Definition: csoundCore.h:277
void * API_lock
Definition: csoundCore.h:1590
MYFLT * buffer
Definition: csoundCore.h:963
MYFLT ekr
Definition: csoundCore.h:1480
PUBLIC void * csoundCreateThread(uintptr_t(*threadRoutine)(void *), void *userdata)
Creates and starts a new thread of execution.
int(* csoundYieldCallback_)(CSOUND *)
Definition: csoundCore.h:1445
int(* GetMidiNoteNumber)(void *p)
Definition: csoundCore.h:1056
MYFLT iskptim
Definition: csoundCore.h:644
int(* LockMutexNoWait)(void *mutex_)
Definition: csoundCore.h:1199
@ FFT_LIB
Definition: csoundCore.h:217
PUBLIC MYFLT csoundGetControlChannel(CSOUND *csound, const char *name, int *err)
retrieves the value of control channel identified by *name.
This struct holds the data for one score event.
Definition: csoundCore.h:479
@ CSFTYPE_IMAGE_PNG
Definition: csound.h:446
int dag_task_max_size
Definition: csoundCore.h:1772
MYFLT ifilno
Definition: csoundCore.h:643
struct _alloc_data_ ALLOC_DATA
uint32_t ksmps_offset
Definition: csoundCore.h:563
unsigned int bufSamp_SW
buffer fragment size (-b) in sample frames
Definition: csound.h:544
unsigned long alloc_queue_wp
Definition: csoundCore.h:1811
Definition: csoundCore.h:427
char * name
Definition: csoundCore.h:934
FILE * pin
Definition: csoundCore.h:1673
int32 revlpsum
Definition: csoundCore.h:1689
int(* ParseConfigurationVariable)(CSOUND *, const char *name, const char *value)
Definition: csoundCore.h:1129
PUBLIC void csoundTableCopyInAsync(CSOUND *csound, int table, MYFLT *src)
Asynchronous version of csoundTableCopyIn()
int * argoffspace
Definition: csoundCore.h:1510
@ CSFTYPE_LADSPA_PLUGIN
Definition: csound.h:430
double curBeat_inc
Definition: csoundCore.h:1487
MYFLT pchbend
pitch bend (-1 to 1)
Definition: csoundCore.h:460
PUBLIC EVLIST * cscoreListCopyEvents(CSOUND *, EVLIST *)
void(* csoundDrawGraphCallback_)(CSOUND *, WINDAT *windat)
Definition: csoundCore.h:1442
void * cmd_buffer
Definition: csdebug.h:160
@ CSOUND_PVS_CHANNEL
Definition: csound.h:619
int(* PVOC_FrameCount)(CSOUND *, int)
Definition: csoundCore.h:1161
PUBLIC void csoundSetHostData(CSOUND *, void *hostData)
Sets host data.
void(* InverseComplexFFT)(CSOUND *, MYFLT *buf, int FFTsize)
Definition: csoundCore.h:1142
MYFLT sample_rate
Definition: csoundCore.h:647
CS_HASH_TABLE * instrumentNames
Definition: csoundCore.h:952
concurrent_queue< CsoundEvent * > input_queue
Definition: csound_threaded.hpp:170
uint64_t kcounter
Definition: csoundCore.h:1478
PUBLIC void csoundSetYieldCallback(CSOUND *, int(*yieldCallback_)(CSOUND *))
Called by external software to set a function for checking system events, yielding cpu time for coope...
int(* DeleteConfigurationVariable)(CSOUND *, const char *name)
Definition: csoundCore.h:1133
@ CSFTYPE_INTEGER_TEXT
Definition: csound.h:442
@ CSFTYPE_AIFC
Definition: csound.h:385
int16 type
Definition: cscore.h:64
CS_VAR_MEM p1
Definition: csoundCore.h:578
This struct holds the info for one opcode in a concrete instrument instance in performance.
Definition: csoundCore.h:599
controlChannelType
Constants used by the bus interface (csoundGetChannelPtr() etc.).
Definition: csound.h:615
FILE * oscfp
Definition: csoundCore.h:1503
Abstract base class for Csound events to be enqueued for performance.
Definition: csound_threaded.hpp:107
int(* GetInputArgCnt)(void *p)
Definition: csoundCore.h:1079
@ CSFTYPE_PVCEX
Definition: csound.h:420
Definition: csoundCore.h:795
void(* InverseRealFFT)(CSOUND *, MYFLT *buf, int FFTsize)
Definition: csoundCore.h:1144
PUBLIC int csoundCloseLibrary(void *library)
Platform-independent function to unload a shared library.
int unused_intA
Definition: csoundCore.h:1627
unsigned int(* ReadAsync)(CSOUND *, void *, MYFLT *, int)
Definition: csoundCore.h:1247
jmp_buf exitjmp
Definition: csoundCore.h:1542
MYFLT p1
Definition: csdebug.h:69
void wait_and_pop(Data &popped_value)
Definition: csound_threaded.hpp:92
int devNum
device number (0-1023), 1024: default
Definition: csound.h:542
INSTRTXT instxtanchor
Definition: csoundCore.h:951
void(* SetInternalYieldCallback)(CSOUND *, int(*yieldCallback)(CSOUND *))
Definition: csoundCore.h:1320
CS_PRINTF2 void(* ErrorMsg)(CSOUND *, const char *fmt,...)
Definition: csoundCore.h:1175
uint32 inbufrem
Definition: csoundCore.h:1665
SNDFILE * infile
Definition: csoundCore.h:1660
PUBLIC void csoundDebugNext(CSOUND *csound)
Continue execution and break at next instrument instance.
struct opcodinfo * prv
Definition: csoundCore.h:939
PUBLIC void csoundGetStringChannel(CSOUND *csound, const char *name, char *string)
copies the string channel identified by *name into *string which should contain enough memory for the...
void(* SetUtilSr)(CSOUND *, MYFLT)
Definition: csoundCore.h:1350
void(* display)(CSOUND *, WINDAT *)
Definition: csoundCore.h:1294
OPTXT * optext
Orch file template part for this opcode.
Definition: csoundCore.h:609
PUBLIC EVLIST * cscoreListExtractInstruments(CSOUND *, EVLIST *, char *)
uint16 dsblksiz
Definition: csoundCore.h:286
MYFLT pidsr
Definition: csoundCore.h:1532
SUBR opadr
Perf-time (k- or a-rate) function pointer.
Definition: csoundCore.h:607
double curp2
Definition: csoundCore.h:1566
FILE * scfp
Definition: csoundCore.h:1501
bkpt_node_t * cur_bkpt
Definition: csdebug.h:163
PUBLIC EVLIST * cscoreListGetNext(CSOUND *, MYFLT)
int ascii_graphs
Definition: csound.h:482
int(* MidiWriteCallback)(CSOUND *, void *, const unsigned char *, int)
Definition: csoundCore.h:812
MYFLT tpidsr
Definition: csoundCore.h:1532
void * midiOutFileData
Definition: csoundCore.h:818
PUBLIC EVLIST * cscoreListConcatenate(CSOUND *, EVLIST *, EVLIST *)
double offtim
Definition: csoundCore.h:546
unsigned int inbufsiz
Definition: csoundCore.h:1668
MYFLT * cpsocfrc
Definition: csoundCore.h:1786
int parserUdoflag
Definition: csoundCore.h:1778
struct opds OPDS
This struct holds the info for one opcode in a concrete instrument instance in performance.
int hardware_buffer_frames
Definition: csound.h:480
@ CSFTYPE_LPC
Definition: csound.h:422
PUBLIC void csoundSetOutput(CSOUND *csound, const char *name, const char *type, const char *format)
Set output destination, type and format type can be one of "wav","aiff", "au","raw",...
PUBLIC void csoundTableCopyOut(CSOUND *csound, int table, MYFLT *dest)
Copy the contents of a function table into a supplied array *dest The table number is assumed to be v...
double(* GetOffTime)(void *p)
Definition: csoundCore.h:1059
PUBLIC void * csoundCreateThreadLock(void)
Creates and returns a monitor object, or NULL if not successful.
MYFLT * ftable
table data (flen + 1 MYFLT values)
Definition: csoundCore.h:685
int lplayed
Definition: csoundCore.h:1653
PUBLIC FILE * cscoreFileOpen(CSOUND *, char *)
char * strarg
Definition: csoundCore.h:482
void push(Data const &data)
Definition: csound_threaded.hpp:70
@ CSFTYPE_SCOT
Definition: csound.h:377
MYFLT p3orig
Definition: cscore.h:75
@ CSFTYPE_SCO_INCLUDE
Definition: csound.h:375
struct MEMFIL * next
Definition: csoundCore.h:707
void * endp
Definition: csoundCore.h:376
int(* FileClose)(CSOUND *, void *)
Definition: csoundCore.h:1237
int modules_loaded
Definition: csoundCore.h:1793
CORFIL * playscore
Definition: csoundCore.h:247
const uint32_t csScoInMask
int nspin
Definition: csoundCore.h:1524
void * rtPlay_userdata
Definition: csoundCore.h:1541
PUBLIC void csoundSetInput(CSOUND *csound, const char *name)
Set input source.
int isfopen
Definition: csoundCore.h:1669
bkpt_node_t * bkpt_anchor
Definition: csdebug.h:162
PUBLIC CS_PRINTF2 void csoundMessage(CSOUND *, const char *format,...)
Displays an informational message.
double(* GetCPUTime)(RTCLOCK *)
Definition: csoundCore.h:1210
PUBLIC int csoundCreateGlobalVariable(CSOUND *, const char *name, size_t nbytes)
Allocate nbytes bytes of memory that can be accessed later by calling csoundQueryGlobalVariable() wit...
void(* SetDebug)(CSOUND *, int d)
Set internal debug mode.
Definition: csoundCore.h:1031
void(* rewriteheader)(void *ofd)
Definition: csoundCore.h:1231
int ksmps_override
Definition: csoundCore.h:263
void * auxp
Definition: csoundCore.h:376
@ CSFTYPE_SVX
Definition: csound.h:405
int sampsNeeded
Definition: csoundCore.h:1681
char * optype
Definition: csound.h:591
int16 sustaining
current state of sustain pedal (0: off)
Definition: csoundCore.h:466
controlChannelBehavior behav
Definition: csound.h:640
char * name
Definition: csoundCore.h:913
int32 nsamps
Definition: csoundCore.h:626
int sectcnt
Definition: csoundCore.h:1544
bool try_pop(Data &popped_value)
Definition: csound_threaded.hpp:82
char * filedir[256]
Definition: csoundCore.h:1789
@ CSFTYPE_AU
Definition: csound.h:387
PUBLIC void csoundDebugStop(CSOUND *csound)
Stop Csound rendering and enter the debugger.
void(* spinrecv)(CSOUND *)
Definition: csoundCore.h:1460
@ CSFTYPE_RAW_AUDIO
Definition: csound.h:382
Definition: csoundCore.h:620
void * first_delayr
Definition: csoundCore.h:1686
uint64_t kcounter
Definition: csdebug.h:70
int16 is_marked_repeat
Definition: csoundCore.h:903
std::atomic< bool > keep_running
Definition: csound_threaded.hpp:167
void * midiInUserData
Definition: csoundCore.h:815
debug_instr_t * instrListHead
Definition: csdebug.h:93
MYFLT * auxspin
Definition: csoundCore.h:1526
void * lprdaddr
Definition: csoundCore.h:1731
void(* csoundMakeGraphCallback_)(CSOUND *, WINDAT *windat, const char *name)
Definition: csoundCore.h:1440
int(* GetZakBounds)(CSOUND *, MYFLT **)
Definition: csoundCore.h:1062
int randSeed2
Definition: csoundCore.h:1516
char * strarg
Definition: cscore.h:71
void * tpsave
Definition: csoundCore.h:1578
@ CSFTYPE_STD_MIDI
Definition: csound.h:413
unsigned int p
Definition: csoundCore.h:228
MACRO * unused_ptr1
Definition: csoundCore.h:1628
MYFLT kicvt
Definition: csoundCore.h:554
void(* SetExternalMidiInOpenCallback)(CSOUND *, int(*func)(CSOUND *, void **, const char *))
Definition: csoundCore.h:1273
MYFLT aftouch
channel pressure (0-127)
Definition: csoundCore.h:458
PUBLIC int csoundScoreEventAbsolute(CSOUND *, char type, const MYFLT *pfields, long numFields, double time_ofs)
Like csoundScoreEvent(), this function inserts a score event, but at absolute time with respect to th...
virtual void Join()
Causes the calling thread to wait for the end of the performance thread routine.
Definition: csound_threaded.hpp:320
int isOutput
Definition: csound.h:523
int randSeed1
Definition: csoundCore.h:1515
int rate
Definition: csound.h:598
int line
Definition: csoundCore.h:915
int sinelength
Definition: csoundCore.h:1784
PUBLIC int csoundModuleInfo(void)
struct debug_variable_s * next
Definition: csdebug.h:87
MYFLT e0dbfs_override
Definition: csoundCore.h:260
CS_VAR_POOL * out_arg_pool
Definition: csoundCore.h:936
EVENT ** ep
Definition: csoundCore.h:1655
NAMES * omacros
Definition: csoundCore.h:1692
char * strarg
Definition: csoundCore.h:575
PUBLIC void csoundRewindScore(CSOUND *)
Rewinds a compiled Csound score to the time specified with csoundSetScoreOffsetSeconds().
PUBLIC int csoundModuleCreate(CSOUND *)
@ CSOUND_VAR_CHANNEL
Definition: csound.h:620
struct debug_opcode_s * prev
Definition: csdebug.h:80
char * sconame
Definition: csoundCore.h:1634
void(* SetAudioDeviceListCallback)(CSOUND *csound, int(*audiodevlist__)(CSOUND *, CS_AUDIODEVICE *list, int isOutput))
Definition: csoundCore.h:1265
uint32_t(* RandMT)(CsoundRandMTState *p)
Definition: csoundCore.h:1184
char * delayederrormessages
Definition: csoundCore.h:1593
void(* RealFFT)(CSOUND *, MYFLT *buf, int FFTsize)
Definition: csoundCore.h:1143
PUBLIC void csoundSetCscoreCallback(CSOUND *, void(*cscoreCallback_)(CSOUND *))
Sets an external callback for Cscore processing.
int csdlinecount
Definition: csoundCore.h:1637
int realtime_audio_flag
Definition: csoundCore.h:1586
int(* GetTable)(CSOUND *, MYFLT **tablePtr, int tableNum)
Definition: csoundCore.h:1110
MYFLT(* GetSr)(CSOUND *)
Definition: csoundCore.h:1015
const char * name
Definition: csdebug.h:84
PUBLIC void csoundSetExternalMidiOutOpenCallback(CSOUND *, int(*func)(CSOUND *, void **userData, const char *devName))
Sets callback for opening real time MIDI output.
@ CSFTYPE_RF64
Definition: csound.h:396
int32 posit
Definition: csoundCore.h:914
char * name
file ID (short name)
Definition: csoundCore.h:719
int linebufsiz
Definition: csoundCore.h:1645
char * Linebufend
Definition: csoundCore.h:1641
void * useropinfo
Definition: csoundCore.h:294
int dpmsb
Definition: csoundCore.h:467
uint32_t(* GetNchnls_i)(CSOUND *)
Get number of input channels.
Definition: csoundCore.h:1021
int index
Definition: csoundCore.h:276
EVENT * lsect
Definition: csoundCore.h:1656
PUBLIC int csoundRand31(int *seedVal)
Simple linear congruential random number generator: (*seedVal) = (*seedVal) * 742938285 % 2147483647 ...
int32 lenmask
length mask ( = flen - 1) for power of two table size, 0 otherwise
Definition: csoundCore.h:655
unsigned int ksmps
Definition: csoundCore.h:1474
PUBLIC void csoundSetMessageLevel(CSOUND *, int messageLevel)
Sets the Csound message level (from 0 to 231).
PUBLIC void csoundSetSpinSample(CSOUND *csound, int frame, int channel, MYFLT sample)
Sets the audio input working buffer (spin) to the indicated sample this only ever makes sense before ...
struct _message_queue_t_ message_string_queue_t
MYFLT max
Definition: csound.h:644
OPDS * prvi
Definition: csoundCore.h:616
int(* sprintf)(char *str, const char *format,...)
Definition: csoundCore.h:1366
OPARMS * oparms
Definition: csoundCore.h:1527
void(* SetRecopenCallback)(CSOUND *, int(*recopen__)(CSOUND *, const csRtAudioParams *parm))
Definition: csoundCore.h:1260
float data[1]
interleaved sample data
Definition: csoundCore.h:753
int unused_int4[RPTDEPTH]
Definition: csoundCore.h:1618
int max_lpc_slot
Definition: csoundCore.h:1733
int sampleFormat
sample format (AE_SHORT etc.)
Definition: csound.h:550
void * winEPS_globals
Definition: csoundCore.h:1743
int(* AppendOpcode)(CSOUND *, const char *opname, int dsblksiz, int flags, int thread, const char *outypes, const char *intypes, int(*iopadr)(CSOUND *, void *), int(*kopadr)(CSOUND *, void *), int(*aopadr)(CSOUND *, void *))
Definition: csoundCore.h:1325
struct insds * nxtolap
Definition: csoundCore.h:528
MYFLT * lclbas
Definition: csdebug.h:67
FILE * Linepipe
Definition: csoundCore.h:1498
float * data
Definition: csoundCore.h:759
int type
Definition: csound.h:655
int nevents
Definition: cscore.h:83
int ksmps_override
Definition: csound.h:511
CS_HASH_TABLE * chn_db
Definition: csoundCore.h:1734
int(* getsndin)(CSOUND *, void *, MYFLT *, int, void *)
Definition: csoundCore.h:1230
virtual void InputMessage(const char *message)
Enqueues a textual score event or events for dispatch from the performance thread routine.
Definition: csound_threaded.hpp:290
RTCLOCK * csRtClock
Definition: csoundCore.h:1518
struct dklst * nxtlst
Definition: csoundCore.h:434
PUBLIC int csoundModuleInit(CSOUND *)
MYFLT lodiv
1 / 2^lobits
Definition: csoundCore.h:661
MYFLT * spout
Definition: csoundCore.h:569
int(* GetOutputArgCnt)(void *p)
Definition: csoundCore.h:1081
PUBLIC void cscoreListFreeEvents(CSOUND *, EVLIST *)
int pmax
Definition: csoundCore.h:323
PUBLIC void csoundSetDebug(CSOUND *, int debug)
Sets whether Csound prints debug messages from the DebugMsg() internal API function.
int16 insno
instrument number assigned to this channel
Definition: csoundCore.h:444
MYFLT cvtbas
LOFACT * (table_sr / orch_sr), cpscvt = cvtbas / base_freq.
Definition: csoundCore.h:663
virtual int ReadScore(const char *score)
Enqueues a textual score event, score fragment, or entire score for dispatch from the performance thr...
Definition: csound_threaded.hpp:299
PUBLIC long csoundGetOutputBufferSize(CSOUND *)
Returns the number of samples in Csound's output buffer.
int usingcscore
Definition: csoundCore.h:239
#define PUBLIC
Definition: csound.h:272
int(* ReadCircularBuffer)(CSOUND *, void *, void *, int)
Definition: csoundCore.h:1216
@ CSFTYPE_FTABLES_BINARY
Definition: csound.h:436
int daemon
Definition: csound.h:510
void(* FDClose)(CSOUND *, FDCH *fdchp)
Definition: csoundCore.h:1234
@ CSFTYPE_IRCAM
Definition: csound.h:383
@ CSFTYPE_MAT5
Definition: csound.h:400
PUBLIC void * csoundCreateMutex(int isRecursive)
Creates and returns a mutex object, or NULL if not successful.
PUBLIC void csoundDestroyMutex(void *mutex_)
Destroys the indicated mutex object.
size_t nbytes
Definition: csoundCore.h:391
int nocheckpcnt
Definition: csoundCore.h:348
unsigned int line
Definition: csoundCore.h:888
virtual int Perform()
Overrides Csound::Perform to run in a separate thread of execution.
Definition: csound_threaded.hpp:261
void * csoundCallbacks_
Definition: csoundCore.h:1500
void * pylocal
Definition: csoundCore.h:548
char * endp
Definition: csoundCore.h:705
@ CSFTYPE_HRTF
Definition: csound.h:426
@ CSOUND_INITIALIZATION
Definition: csound.h:334
PUBLIC EVLIST * cscoreListSeparateF(CSOUND *, EVLIST *)
char unused_char0[RPTDEPTH][NAMELEN]
Definition: csoundCore.h:1617
void * evtFuncChain
Definition: csoundCore.h:1549
OPDS * prvp
Definition: csoundCore.h:617
MYFLT * extra
Definition: csoundCore.h:496
void(* InverseRealFFTnp2)(CSOUND *, MYFLT *buf, int FFTsize)
Definition: csoundCore.h:1148
char * outtypes
Definition: csoundCore.h:934
int32 unused_int9
Definition: csoundCore.h:1626
PUBLIC MYFLT csoundGetSpoutSample(CSOUND *csound, int frame, int channel)
Returns the indicated sample from the Csound audio output working buffer (spout); only ever makes sen...
int(* playopen_callback)(CSOUND *, const csRtAudioParams *parm)
Definition: csoundCore.h:1450
Definition: csoundCore.h:625
int syntax_check_only
Definition: csound.h:500
int MIDIINbufIndex
Definition: csoundCore.h:806
CS_HASH_TABLE * constantsPool
Definition: csoundCore.h:947
@ CSFTYPE_ORCHESTRA
Definition: csound.h:371
#define MAXOCTS
Definition: csoundCore.h:180
void * debug_instr_ptr
Definition: csdebug.h:166
int type
Definition: csound.h:596
PUBLIC void csoundSetExternalMidiErrorStringCallback(CSOUND *, const char *(*func)(int))
Sets callback for converting MIDI error codes to strings.
char opname[16]
Definition: csdebug.h:76
int active
Definition: csoundCore.h:340
struct CSOUND_::lineventStatics__ lineventStatics
Definition: csoundCore.h:717
void * instrptr
Definition: csdebug.h:68
int midi_key_cps
Definition: csound.h:493
@ CSFTYPE_UNKNOWN
Definition: csound.h:456
int value
Definition: csound.h:589
int(* AddUtility)(CSOUND *, const char *name, int(*UtilFunc)(CSOUND *, int, char **))
Definition: csoundCore.h:1343
PUBLIC int csoundReadCircularBuffer(CSOUND *csound, void *circular_buffer, void *out, int items)
Read from circular buffer.
char * memend
Definition: csoundCore.h:1606
char * SF_csd_licence
Definition: csoundCore.h:1721
char * message_string
Definition: csoundCore.h:1817
int warped
Definition: csoundCore.h:1677
int event_insert_loop
Definition: csoundCore.h:1588
void * csdebug_data
Definition: csoundCore.h:1795
MYFLT omaxamp[MAXCHNLS]
Definition: csoundCore.h:1506
void(* dispinit)(CSOUND *)
Definition: csoundCore.h:1296
@ CSFTYPE_OPTIONS
Definition: csound.h:378
void * open_files
Definition: csoundCore.h:1694
int(* GetSizeOfMYFLT)(void)
Definition: csoundCore.h:1033
struct ORCTOKEN * next
Definition: csound.h:592
const PUBLIC char * csoundGetEnv(CSOUND *csound, const char *name)
Get pointer to the value of environment variable 'name', searching in this order: local environment o...
@ CSFTYPE_ORC_INCLUDE
Definition: csound.h:374
int performState
Definition: csoundCore.h:1738
int sormsg
Definition: csoundCore.h:1654
PUBLIC int csoundGetChannelPtr(CSOUND *, MYFLT **p, const char *name, int type)
Stores a pointer to the specified channel of the bus in *p, creating the channel first if it does not...
PUBLIC void csoundTableCopyOutAsync(CSOUND *csound, int table, MYFLT *dest)
Asynchronous version of csoundTableCopyOut()
int strsiz
Definition: csoundCore.h:1782
int32 oposit
Definition: csoundCore.h:909
char * orchestrab
Definition: csoundCore.h:1646
PUBLIC void csoundSetInputChannelCallback(CSOUND *csound, channelCallback_t inputChannelCalback)
Sets the function which will be called whenever the invalue opcode is used.
int16 muted
Definition: csoundCore.h:329
int(* CreateConfigurationVariable)(CSOUND *, const char *name, void *p, int type, int flags, void *min, void *max, const char *shortDesc, const char *longDesc)
Definition: csoundCore.h:1123
int enableHostImplementedAudioIO
Definition: csoundCore.h:1703
PUBLIC void * csoundGetHostData(CSOUND *)
Returns host data.
int orcLineOffset
Definition: csoundCore.h:1774
int insno
Definition: csoundCore.h:983
TEXT t
Definition: csoundCore.h:322
char intype
Definition: csoundCore.h:311
void(* dispset)(CSOUND *, WINDAT *, MYFLT *, int32, char *, int, char *)
Definition: csoundCore.h:1293
int last_name
Definition: csoundCore.h:1608
void(* SetScoreOffsetSeconds)(CSOUND *, MYFLT offset)
Definition: csoundCore.h:1373
void(* SetPlayopenCallback)(CSOUND *, int(*playopen__)(CSOUND *, const csRtAudioParams *parm))
Definition: csoundCore.h:1256
CSOUND_FILETYPES
The following constants are used with csound->FileOpen2() and csound->ldmemfile2() to specify the for...
Definition: csound.h:369
PUBLIC void csoundDebugContinue(CSOUND *csound)
Continue execution from breakpoint.
int(* GetDebug)(CSOUND *)
Definition: csoundCore.h:1032
struct csdebug_data_s csdebug_data_t
char * midname
Definition: csoundCore.h:1635
MYFLT * gbloffbas
Definition: csoundCore.h:1582
PUBLIC EVLIST * cscoreListSeparateTWF(CSOUND *, EVLIST *)
int(* DestroyBarrier)(void *)
Definition: csoundCore.h:1204
PUBLIC void csoundReadScoreAsync(CSOUND *csound, const char *str)
Asynchronous version of csoundReadScore().
double cmdTempo
Definition: csoundCore.h:243
@ CSOUND_MEMORY
Definition: csound.h:338
MYFLT p[PMAX+1]
All p-fields for this event (SSTRCOD: string argument)
Definition: csoundCore.h:494
int(* DestroyGlobalVariable)(CSOUND *, const char *name)
Definition: csoundCore.h:1122
INSTRTXT * instr
Definition: csoundCore.h:532
Definition: csoundCore.h:1631
int midi_key_pch
Definition: csound.h:495
void(* SetExternalMidiReadCallback)(CSOUND *, int(*func)(CSOUND *, void *, unsigned char *, int))
Definition: csoundCore.h:1275
int Linefd
Definition: csoundCore.h:1499
int(* GetReinitFlag)(CSOUND *)
Definition: csoundCore.h:1064
char * opname
Definition: csound.h:561
struct cshdr * prvblk
Definition: cscore.h:62
int n
Definition: csoundCore.h:887
int16 size
Definition: cscore.h:65
CS_VAR_POOL * varPool
Definition: csoundCore.h:946
int y
Definition: csound.h:646
char relesing
Definition: csoundCore.h:540
int count
Definition: csoundCore.h:269
PUBLIC void * csoundCreateCircularBuffer(CSOUND *csound, int numelem, int elemsize)
Create circular buffer with numelem number of elements.
char * Linep
Definition: csoundCore.h:1641
PUBLIC void csoundDestroy(CSOUND *)
Destroys an instance of Csound.
@ CSFTYPE_AVR
Definition: csound.h:397
int sample_accurate
Definition: csound.h:504
void * userData
Definition: csoundCore.h:393
uint32 outbufrem
Definition: csoundCore.h:1666
void(* FileOpenCallback_)(CSOUND *, const char *, int, int, int)
Definition: csoundCore.h:1447
int multiThreadedComplete
Definition: csoundCore.h:1751
@ CSFTYPE_VOC
Definition: csound.h:406
CsoundTextEvent(const char *text)
Definition: csound_threaded.hpp:143
int fft_lib
Definition: csoundCore.h:264
struct insds * nxtact
Definition: csoundCore.h:514
const uint32_t csScoSortMask
PUBLIC int cscoreListPlay(CSOUND *, EVLIST *)
int * sizes
Definition: csoundCore.h:399
MYFLT * inbuf
Definition: csoundCore.h:1662
int heartbeat
Definition: csound.h:490
int(* GetDitherMode)(CSOUND *)
Definition: csoundCore.h:1269
PUBLIC void csoundSetInstrumentBreakpoint(CSOUND *csound, MYFLT instr, int skip)
Set a breakpoint for an instrument number.
char * intypes
Definition: csoundCore.h:290
PUBLIC void csoundGetNamedGEN(CSOUND *csound, int num, char *name, int len)
Gets the GEN name from a number num, if this is a named GEN The final parameter is the max len of the...
Definition: csoundCore.h:273
struct MACRO * s
Definition: csoundCore.h:889
ENGINE_STATE engineState
Definition: csoundCore.h:1468
struct debug_instr_s debug_instr_t
char * orchname
Definition: csoundCore.h:1465
uint32_t(* GetNchnls)(CSOUND *)
Get number of output channels.
Definition: csoundCore.h:1019
int(* FSeekAsync)(CSOUND *, void *, int, int)
Definition: csoundCore.h:1249
virtual void SetKperiodCallback(void(*kperiod_callback_)(CSOUND *, void *), void *kperiod_callback_user_data_)
Definition: csound_threaded.hpp:188
EVTBLK blk
Definition: csoundCore.h:984
struct opcodinfo * opcode_info
Definition: csoundCore.h:344
SUBR last_callback_
Definition: csoundCore.h:1448
PUBLIC double csoundGetRealTime(RTCLOCK *)
Return the elapsed real time (in seconds) since the specified timer structure was initialised.
char * filename
Definition: csoundCore.h:757
CS_NORETURN CS_PRINTF2 void(* Die)(CSOUND *, const char *msg,...)
Definition: csoundCore.h:1169
PUBLIC void csoundSetAudioChannel(CSOUND *csound, const char *name, MYFLT *samples)
sets the audio channel identified by *name with data from array *samples which should contain at leas...
unsigned int inArgCount
Definition: csoundCore.h:308
int sexp
Definition: csoundCore.h:804
int initonly
Definition: csoundCore.h:1554
PUBLIC int csoundWriteCircularBuffer(CSOUND *csound, void *p, const void *inp, int items)
Write to circular buffer.
PUBLIC MYFLT * csoundGetOutputBuffer(CSOUND *)
Returns the address of the Csound audio output buffer.
int(* RegisterSenseEventCallback)(CSOUND *, void(*func)(CSOUND *, void *), void *userData)
Definition: csoundCore.h:1314
@ CSOUND_SIGNAL
Definition: csound.h:340
void(* DestroyCircularBuffer)(CSOUND *, void *)
Definition: csoundCore.h:1219
PUBLIC void cscoreFileSetCurrent(CSOUND *, FILE *)
PUBLIC MYFLT csoundSystemSr(CSOUND *csound, MYFLT val)
If val > 0, sets the internal variable holding the system HW sr.
@ CSFTYPE_MAT4
Definition: csound.h:399
int op
Definition: csoundCore.h:1598
uint32 dwData
Definition: csoundCore.h:796
MYFLT maxamp[MAXCHNLS]
Definition: csoundCore.h:1504
MYFLT min
Definition: csound.h:643
int segamps
Definition: csoundCore.h:1654
void * rtRecord_userdata
Definition: csoundCore.h:1540
PUBLIC uint32_t csoundGetNchnls(CSOUND *)
Returns the number of audio output channels.
@ CSFTYPE_ATS
Definition: csound.h:423
struct op * nxtop
Definition: csoundCore.h:363
int32 opdstot
Definition: csoundCore.h:331
int evt_poll_cnt
Definition: csoundCore.h:1555
AUXCH auxch
Definition: csoundCore.h:629
int Mforcdecs
Definition: csoundCore.h:1557
MYFLT * data
Definition: csoundCore.h:402
CsoundScoreEvent(char opcode_, const MYFLT *pfields_, long pfield_count)
Definition: csound_threaded.hpp:124
@ CSOUND_CONTROL_CHANNEL_LIN
Definition: csound.h:631
uint32 omaxpos[MAXCHNLS]
Definition: csoundCore.h:1507
int height
Definition: csound.h:648
MYFLT * spin
Definition: csoundCore.h:1521
struct marked_sections MARKED_SECTIONS
ALLOC_DATA * alloc_queue
Definition: csoundCore.h:1809
int outformat
Definition: csoundCore.h:235
#define MAX_MESSAGE_STR
Definition: csoundCore.h:991
int32 fno
table number
Definition: csoundCore.h:677
int32 NB
Definition: csound.h:577
ARGLST * outlist
Definition: csoundCore.h:306
int opcodedirWasOK
Definition: csoundCore.h:1735
int syntaxCheckOnly
Definition: csoundCore.h:256
uint64_t kcounter
Definition: csoundCore.h:551
int dead_instr_no
Definition: csoundCore.h:1472
#define MIDIINBUFMAX
Definition: csoundCore.h:790
struct TREE * next
Definition: csound.h:604
struct engine_state ENGINE_STATE
This struct will hold the current engine state after compilation.
PUBLIC MYFLT csoundGetScoreOffsetSeconds(CSOUND *)
Returns the score time beginning at which score events will actually immediately be performed (see cs...
EVTNODE * freeEvtNodes
Definition: csoundCore.h:1551
PUBLIC void cscoreListFree(CSOUND *, EVLIST *)
#define RPTDEPTH
Definition: csoundCore.h:1616
PUBLIC int csoundSetIsGraphable(CSOUND *, int isGraphable)
Tells Csound whether external graphic table display is supported.
char op
Definition: cscore.h:72
@ CSFTYPE_SDIF
Definition: csound.h:425
int midiVelocityAmp
Definition: csoundCore.h:252
PUBLIC void csoundSetRtrecordCallback(CSOUND *, int(*rtrecord__)(CSOUND *, MYFLT *inBuf, int nbytes))
Sets a function to be called by Csound for performing real-time audio recording.
int delayr_stack_depth
Definition: csoundCore.h:1685
void(* Remove_KeyCallback)(CSOUND *, int(*func)(void *, void *, unsigned int))
Definition: csoundCore.h:1312
Device information.
Definition: csound.h:518
@ CSFTYPE_SNAPSHOT
Definition: csound.h:431
struct NAME__ * nxt
Definition: csoundCore.h:925
int parserNamedInstrFlag
Definition: csoundCore.h:1779
void * memalloc_db
Definition: csoundCore.h:1569
int(* SetUtilityDescription)(CSOUND *, const char *utilName, const char *utilDesc)
Definition: csoundCore.h:1347
uint32_t ktimstamp
Definition: csoundCore.h:633
PUBLIC void csoundSetFileOpenCallback(CSOUND *p, void(*func)(CSOUND *, const char *, int, int, int))
Sets an external callback for receiving notices whenever Csound opens a file.
int(* MidiReadCallback)(CSOUND *, void *, unsigned char *, int)
Definition: csoundCore.h:809
int16 chan
Definition: csoundCore.h:712
struct text TEXT
Storage for parsed orchestra code, for each opcode in an INSTRTXT.
char * sfoutname
Definition: csoundCore.h:1661
int genmax
Definition: csoundCore.h:1562
@ CSOUND_ERROR
Definition: csound.h:332
int chans
Definition: csoundCore.h:766
Definition: csoundCore.h:651
int(* aopadr)(CSOUND *, void *p)
Definition: csoundCore.h:293
int16 datcnt
Definition: csoundCore.h:823
int(* GetChannelPtr)(CSOUND *, MYFLT **, const char *, int)
Definition: csoundCore.h:1393
GEN01ARGS gen01args
GEN01 parameters.
Definition: csoundCore.h:683
MYFLT(* system_sr)(CSOUND *, MYFLT)
Definition: csoundCore.h:1368
PUBLIC uint32_t csoundGetNchnlsInput(CSOUND *csound)
Returns the number of audio input channels.
int16 pch
Definition: csoundCore.h:419
@ CSOUND_SUCCESS
Definition: csound.h:330
Definition: csoundCore.h:702
void(* Free)(CSOUND *, void *ptr)
Definition: csoundCore.h:1095
double nxtbt
Definition: csoundCore.h:1565
PUBLIC void csoundSetMakeGraphCallback(CSOUND *, void(*makeGraphCallback_)(CSOUND *, WINDAT *windat, const char *name))
Called by external software to set Csound's MakeGraph function.
void(* RealFFTnp2)(CSOUND *, MYFLT *buf, int FFTsize)
Definition: csoundCore.h:1147
PUBLIC void csoundScoreEventAsync(CSOUND *, char type, const MYFLT *pFields, long numFields)
Asynchronous version of csoundScoreEvent().
int attr
Definition: csoundCore.h:993
size_t allocated
Definition: csoundCore.h:403
long(* RunCommand)(const char *const *argv, int noWait)
Definition: csoundCore.h:1355
void(* InitTimerStruct)(RTCLOCK *)
Definition: csoundCore.h:1208
MYFLT p3orig
Length.
Definition: csoundCore.h:492
PUBLIC void csoundSetDrawGraphCallback(CSOUND *, void(*drawGraphCallback_)(CSOUND *, WINDAT *windat))
Called by external software to set Csound's DrawGraph function.
MYFLT * powerof2
Definition: csoundCore.h:1785
double quality
Definition: csoundCore.h:262
PUBLIC void csoundUnlockMutex(void *mutex_)
Releases the indicated mutex object, which should be owned by the current thread, otherwise the opera...
PUBLIC void csoundDeleteUtilityList(CSOUND *, char **lst)
Releases an utility list previously returned by csoundListUtilities().
PUBLIC void csoundLockMutex(void *mutex_)
Acquires the indicated mutex object; if it is already in use by another thread, the function waits un...
double nxtim
Definition: csoundCore.h:1566
CsoundRandMTState * csRandState
Definition: csoundCore.h:1517
MEMFIL * memfiles
Definition: csoundCore.h:1572
unsigned int(* WriteAsync)(CSOUND *, void *, MYFLT *, int)
Definition: csoundCore.h:1248
int scnt
String argument(s) (NULL if none)
Definition: csoundCore.h:481
PUBLIC void csoundDeleteChannelList(CSOUND *, controlChannelInfo_t *lst)
Releases a channel list previously returned by csoundListChannels().
int file_io_start
Definition: csoundCore.h:1584
void(* csoundMessageCallback_)(CSOUND *, int attr, const char *format, va_list args)
Definition: csoundCore.h:1437
This struct holds the info for a concrete instrument event instance in performance.
Definition: csoundCore.h:504
struct opds * pds
Definition: csoundCore.h:555
void(* breakpoint_cb_t)(CSOUND *, debug_bkpt_info_t *, void *userdata)
Breakpoint callback function type.
Definition: csdebug.h:156
int(* SetIsGraphable)(CSOUND *, int isGraphable)
Definition: csoundCore.h:1297
#define MBUFSIZ
Definition: csoundCore.h:789
int tempo
Definition: csound.h:485
void(* FDRecord)(CSOUND *, FDCH *fdchp)
Definition: csoundCore.h:1233
int(* ftError)(const FGDATA *, const char *,...)
Definition: csoundCore.h:1382
OPARMS oparms_
Definition: csoundCore.h:1744
MYFLT smaxamp[MAXCHNLS]
Definition: csoundCore.h:1505
int FFT_library
Definition: csound.h:512
int inerrcnt
Definition: csoundCore.h:1545
int(* ISSTRCOD)(MYFLT)
Definition: csoundCore.h:1376
CSHDR h
Definition: cscore.h:70
int(* CreateGlobalVariable)(CSOUND *, const char *name, size_t nbytes)
Definition: csoundCore.h:1119
@ CSFTYPE_XI
Definition: csound.h:407
double prvbt
Definition: csoundCore.h:1565
struct pvx_memfile_ * nxt
Definition: csoundCore.h:758
Definition: csoundCore.h:695
int jumpset
Definition: csoundCore.h:1791
int16 dat2
Definition: csoundCore.h:714
PUBLIC int csoundGetTableArgs(CSOUND *csound, MYFLT **argsPtr, int tableNum)
Stores pointer to the arguments used to generate function table 'tableNum' in *argsPtr,...
int(* MidiInCloseCallback)(CSOUND *, void *)
Definition: csoundCore.h:810
struct op * nxtop
Definition: csoundCore.h:321
MYFLT * disprep_fftcoefs
Definition: csoundCore.h:1742
int(* PVOC_PutFrames)(CSOUND *, int, const float *, int32)
Definition: csoundCore.h:1159
double beatOffs
Definition: csoundCore.h:1485
PUBLIC int csoundGetTable(CSOUND *, MYFLT **tablePtr, int tableNum)
Stores pointer to function table 'tableNum' in *tablePtr, and returns the table length (not including...
PUBLIC void csoundCondSignal(void *condVar)
Signals a conditional variable.
MYFLT clock_base
Definition: csoundCore.h:1603
PUBLIC uintptr_t csoundJoinThread(void *thread)
Waits until the indicated thread's routine has finished.
struct instr_semantics_t * instRoot
Definition: csoundCore.h:1763
PUBLIC int csoundSetOption(CSOUND *csound, const char *option)
Set a single csound option (flag).
PUBLIC void csoundSetLanguage(cslanguage_t lang_code)
Set language to 'lang_code' (lang_code can be for example CSLANGUAGE_ENGLISH_UK or CSLANGUAGE_FRENCH ...
@ CSFTYPE_XSCANU_MATRIX
Definition: csound.h:437
PUBLIC int csoundModuleDestroy(CSOUND *)
MYFLT srate
Definition: csoundCore.h:627
MYFLT * spin
Definition: csoundCore.h:568
PUBLIC void csoundSetExternalMidiReadCallback(CSOUND *, int(*func)(CSOUND *, void *userData, unsigned char *buf, int nBytes))
Sets callback for reading from real time MIDI input.
int32 unused_int7[RPTDEPTH]
Definition: csoundCore.h:1619
CSOUND * csound
Definition: csoundCore.h:390
A thread-safe queue, or first-in first-out (FIFO) queue, implemented using only the standard C++11 li...
Definition: csound_threaded.hpp:63
MYFLT * ktempo
Definition: csoundCore.h:834
void(* rtplay_callback)(CSOUND *, const MYFLT *outBuf, int nbytes)
Definition: csoundCore.h:1451
INSTRTXT * ip
Definition: csoundCore.h:354
PUBLIC int csoundIsScorePending(CSOUND *)
Sets whether Csound score events are performed or not, independently of real-time MIDI events (see cs...
@ CSFTYPE_SCORE_OUT
Definition: csound.h:376
uint32 start_kcnt
Definition: csoundCore.h:828
int nChannels
number of channels
Definition: csound.h:548
bool empty() const
Definition: csound_threaded.hpp:77
void(* UnlockMutex)(void *mutex_)
Definition: csoundCore.h:1201
spin_lock_t spoutlock
Definition: csoundCore.h:1591
virtual int ScoreEvent(char opcode, const MYFLT *pfields, long pfield_count)
Enqueues a low-level score event with raw pfields for dispatch from the performance thread routine.
Definition: csound_threaded.hpp:279
PUBLIC void csoundFlushCircularBuffer(CSOUND *csound, void *p)
Empty circular buffer of any remaining data.
int16 loopmode1
sustain loop mode (0: none, 1: forward, 2: forward and backward)
Definition: csoundCore.h:665
@ CSFTYPE_PAF
Definition: csound.h:402
int SF_id_scopyright
Definition: csoundCore.h:1724
PUBLIC void csoundSetExitGraphCallback(CSOUND *, int(*exitGraphCallback_)(CSOUND *))
Called by external software to set Csound's ExitGraph function.
void * fd
handle returned by csound->FileOpen()
Definition: csoundCore.h:370
int32 revlpsiz[6]
Definition: csoundCore.h:1688
int ugens4_rand_15
Definition: csoundCore.h:1740
void * searchPathCache
Definition: csoundCore.h:1695
PUBLIC void csoundRemoveKeyboardCallback(CSOUND *csound, int(*func)(void *, void *, unsigned int))
Removes a callback previously set with csoundRegisterKeyboardCallback().
int(* recopen_callback)(CSOUND *, const csRtAudioParams *parm)
Definition: csoundCore.h:1452
void(* SetMIDIDeviceListCallback)(CSOUND *csound, int(*audiodevlist__)(CSOUND *, CS_MIDIDEVICE *list, int isOutput))
Definition: csoundCore.h:1287
PUBLIC int csoundTableLength(CSOUND *, int table)
Returns the length of a function table (not including the guard point), or -1 if the table does not e...
CS_PRINTF2 void(* DebugMsg)(CSOUND *, const char *msg,...)
Definition: csoundCore.h:1173
int M
Definition: csoundCore.h:961
void(* RealFFT2)(CSOUND *csound, void *p, MYFLT *sig)
Definition: csoundCore.h:1380
MYFLT(* Pow2)(CSOUND *, MYFLT a)
Definition: csoundCore.h:1070
void(* MessageV)(CSOUND *, int attr, const char *format, va_list args)
Definition: csoundCore.h:1042
struct controlChannelHints_s controlChannelHints_t
This structure holds the parameter hints for control channels.
debug_instr_t * breakpointInstr
Definition: csdebug.h:91
char * insname
Definition: csoundCore.h:345
int maxalloc
Definition: csoundCore.h:342
double fvalue
Definition: csound.h:590
PUBLIC int csoundGetVersion(void)
Returns the version number times 1000 (5.00.0 = 5000).
MYFLT(* GetInverseRealFFTScale)(CSOUND *, int FFTsize)
Definition: csoundCore.h:1140
Definition: csoundCore.h:826
@ CSFTYPE_WAVE
Definition: csound.h:386
PUBLIC EVLIST * cscoreListGetUntil(CSOUND *, MYFLT)
MYFLT csoundScoreOffsetSeconds_
Definition: csoundCore.h:1682
struct opds * nxti
Next opcode in init-time chain.
Definition: csoundCore.h:601
PUBLIC int csoundGetMessageLevel(CSOUND *)
Returns the Csound message level (from 0 to 231).
PUBLIC EVENT * cscoreGetEvent(CSOUND *)
MYFLT cpuload
Definition: csoundCore.h:343
CS_HASH_TABLE * envVarDB
Definition: csoundCore.h:1571
void(* SetExternalMidiWriteCallback)(CSOUND *, int(*func)(CSOUND *, void *, const unsigned char *, int))
Definition: csoundCore.h:1281
int(* doCsoundCallback)(CSOUND *, void *, unsigned int)
Definition: csoundCore.h:1457
PUBLIC int csoundRegisterKeyboardCallback(CSOUND *, int(*func)(void *userData, void *p, unsigned int type), void *userData, unsigned int type)
Registers general purpose callback functions that will be called to query keyboard events.
CsoundThreaded(void *host_data)
Definition: csound_threaded.hpp:181
const uint32_t csPlayScoMask
CS_PRINTF3 void(* MessageS)(CSOUND *, int attr, const char *fmt,...)
Definition: csoundCore.h:1041
int RTevents
Definition: csoundCore.h:240
int oflag
Definition: csoundCore.h:1647
int unused_int5
Definition: csoundCore.h:1620
int sfwrite
Definition: csoundCore.h:233
struct MACRO * next
Definition: csoundCore.h:897
@ FFT_INV
Definition: csoundCore.h:218
void(* SetMessageLevel)(CSOUND *, int messageLevel)
Definition: csoundCore.h:1044
char * name
Definition: csoundCore.h:353
unsigned int len
Definition: csoundCore.h:227
int(* ListChannels)(CSOUND *, controlChannelInfo_t **)
Definition: csoundCore.h:1394
int xtratim
Definition: csoundCore.h:524
volatile long msg_queue_items
Definition: csoundCore.h:1806
PUBLIC void * csoundQueryGlobalVariableNoCheck(CSOUND *, const char *name)
This function is the same as csoundQueryGlobalVariable(), except the variable is assumed to exist and...
int32 end2
Definition: csoundCore.h:671
struct insds * nxtoff
Definition: csoundCore.h:518
PUBLIC uint32_t csoundGetKsmps(CSOUND *)
Returns the number of audio sample frames per control sample.
MYFLT control_rate_override
Definition: csound.h:506
@ CSFTYPE_HETRO
Definition: csound.h:417
MYFLT * spraw
Definition: csoundCore.h:1523
int16 datreq
Definition: csoundCore.h:823
char * SF_id_date
Definition: csoundCore.h:1728
@ CSFTYPE_OTHER_TEXT
Definition: csound.h:451
PUBLIC EVLIST * cscoreListAppendList(CSOUND *, EVLIST *, EVLIST *)
PUBLIC void csoundSetScoreOffsetSeconds(CSOUND *, MYFLT time)
Csound score events prior to the specified time are not performed, and performance begins immediately...
unsigned char * endatp
Definition: csoundCore.h:822
MYFLT * lclbas
Definition: csoundCore.h:574
void * argPtr
Definition: csoundCore.h:275
void(* RealFFTMult)(CSOUND *, MYFLT *outbuf, MYFLT *buf1, MYFLT *buf2, int FFTsize, MYFLT scaleFac)
Definition: csoundCore.h:1145
@ CSOUND_CONTROL_CHANNEL_NO_HINTS
Definition: csound.h:629
int compute_weights
Definition: csound.h:502
FILE * scoreout
Definition: csoundCore.h:1509
int no_default_paths
Definition: csound.h:498
MONPCH * monocur
Definition: csoundCore.h:448
PUBLIC void csoundSetHostImplementedMIDIIO(CSOUND *csound, int state)
call this function with state 1 if the host is implementing MIDI via the callbacks below.
std::queue< Data > queue_
Definition: csound_threaded.hpp:66
MYFLT keylst[1]
cnt + keynos
Definition: csoundCore.h:437
Definition: csoundCore.h:756
int line
Definition: csdebug.h:77
FILE * scorein
Definition: csoundCore.h:1508
int(* GetMidiChannelNumber)(void *p)
Definition: csoundCore.h:1054
@ CSOUND_OUTPUT_CHANNEL
Definition: csound.h:625
int32 pgmno
Definition: csoundCore.h:435
std::mutex mutex_
Definition: csound_threaded.hpp:67
Definition: csoundCore.h:843
ARG * outArgs
Definition: csoundCore.h:309
char * sstrbuf
Definition: csoundCore.h:1679
PUBLIC long csoundGetInputBufferSize(CSOUND *)
Returns the number of samples in Csound's input buffer.
struct auxch * nxtchp
Definition: csoundCore.h:374
PUBLIC void * csoundGetCurrentThreadId(void)
Returns the ID of the currently executing thread, or NULL for failure.
Real-time audio parameters structure.
Definition: csound.h:538
char * dl_opcodes_oplibs
Definition: csoundCore.h:1720
PUBLIC FILE * cscoreFileGetCurrent(CSOUND *)
int rewrt_hdr
Definition: csoundCore.h:242
int pending_release
Definition: csoundCore.h:341
@ CSFTYPE_FLOATS_TEXT
Definition: csound.h:440
PUBLIC int csoundSetPvsChannel(CSOUND *, const PVSDATEXT *fin, const char *name)
Sends a PVSDATEX fin to the pvsin opcode (f-rate) for channel 'name'.
uint8_t thread
Definition: csoundCore.h:288
int(* GetMidiVelocity)(void *p)
Definition: csoundCore.h:1057
int postscript
Definition: csoundCore.h:237
PUBLIC void cscoreFileClose(CSOUND *, FILE *)
int int1
Definition: csoundCore.h:1760
FUNC ** flist
Definition: csoundCore.h:1559
int maxopcno
Definition: csoundCore.h:949
int32 scount
Definition: csoundCore.h:622
CS_PRINTF3 int(* PerfError)(CSOUND *, OPDS *h, const char *msg,...)
Definition: csoundCore.h:1171
PUBLIC MYFLT csoundGetKr(CSOUND *)
Returns the number of control samples per second.
PUBLIC MYFLT csoundGetSr(CSOUND *)
Returns the number of audio sample frames per second.
@ CSFTYPE_WVE
Definition: csound.h:393
volatile long msg_queue_rstart
Definition: csoundCore.h:1805
char * SF_id_title
Definition: csoundCore.h:1722
MYFLT prvp2
Definition: csoundCore.h:1602
CS_HASH_TABLE * opcodes
Definition: csoundCore.h:1496
PUBLIC void csoundSetMIDIFileOutput(CSOUND *csound, const char *name)
Set MIDI file utput name.
Definition: csoundCore.h:893
int(* dispexit)(CSOUND *)
Definition: csoundCore.h:1295
void(* AuxAlloc)(CSOUND *, size_t nbytes, AUXCH *auxchp)
Definition: csoundCore.h:1090
void * pointer2
Definition: csoundCore.h:1759
@ CSFTYPE_OGG
Definition: csound.h:394
int16 * isintab
Definition: csoundCore.h:1730
MYFLT * outbuf
Definition: csoundCore.h:1663
struct insds * kinsptr[128]
list of active notes (NULL: not active)
Definition: csoundCore.h:450
int realtime
Definition: csoundCore.h:259
char stdin_assign_flg
Definition: csoundCore.h:1715
MYFLT retval
Definition: csoundCore.h:573
PUBLIC int csoundSpinLockInit(spin_lock_t *spinlock)
If the spinlock is not locked, lock it and return; if is is locked, wait until it is unlocked,...
void * midiFileData
Definition: csoundCore.h:817
PUBLIC int csoundReadScore(CSOUND *csound, const char *str)
Read, preprocess, and load a score from an ASCII string It can be called repeatedly,...
Definition: csoundCore.h:423
char * chanof
Definition: csoundCore.h:1749
@ CSFTYPE_MIDI_SYSEX
Definition: csound.h:414
int(* AuxAllocAsync)(CSOUND *, size_t, AUXCH *, AUXASYNC *, aux_cb, void *)
Definition: csoundCore.h:1384
PUBLIC void * csoundCreateBarrier(unsigned int max)
Create a Thread Barrier.
int sfsampsize
Definition: csoundCore.h:236
const PUBLIC char * csoundGetFirstMessage(CSOUND *csound)
Returns the first message from the buffer.
int unused_int8
Definition: csoundCore.h:1625
int(* PVOC_fseek)(CSOUND *, int, int)
Definition: csoundCore.h:1162
int kperf_debug(CSOUND *csound)
int pipdevout
Definition: csoundCore.h:1671
void * kperiod_callback_user_data
Definition: csound_threaded.hpp:169
int(* TableLength)(CSOUND *, int table)
Definition: csoundCore.h:1111
double scaleFac
amplitude scale factor
Definition: csoundCore.h:751
OPDS * ids
Definition: csoundCore.h:988
void * directory
Definition: csoundCore.h:1808
@ CSOUND_CONTROL_CHANNEL_EXP
Definition: csound.h:632
int input_size
Definition: csoundCore.h:1610
uint32_t flen
table length, not including the guard point
Definition: csoundCore.h:653
const char * typeName
Definition: csdebug.h:85
struct pvsdat_ext PVSDATEXT
int maxfnum
Definition: csoundCore.h:1560
Definition: csoundCore.h:802
PUBLIC void cscoreListPut(CSOUND *, EVLIST *)
PUBLIC int csoundAppendOpcode(CSOUND *, const char *opname, int dsblksiz, int flags, int thread, const char *outypes, const char *intypes, int(*iopadr)(CSOUND *, void *), int(*kopadr)(CSOUND *, void *), int(*aopadr)(CSOUND *, void *))
Appends an opcode implemented by external software to Csound's internal opcode list.
int(* RegisterResetCallback)(CSOUND *, void *userData, int(*func)(CSOUND *, void *))
Definition: csoundCore.h:1318
@ CSOUND_CONTROL_CHANNEL_INT
Definition: csound.h:630
char * name
Definition: csoundCore.h:919
Definition: csoundCore.h:231
virtual ~CsoundThreaded()
Definition: csound_threaded.hpp:182
MYFLT ekr
Definition: csoundCore.h:553
PUBLIC void csoundSetDefaultMessageCallback(void(*csoundMessageCallback_)(CSOUND *, int attr, const char *format, va_list valist))
PUBLIC int csoundGetAPIVersion(void)
Returns the API version number times 100 (1.00 = 100).
struct namedInstr INSTRNAME
int(* GetErrorCnt)(CSOUND *)
Definition: csoundCore.h:1395
INSTRTXT ** instrtxtp
Definition: csoundCore.h:950
char * lexeme
Definition: csound.h:588
ORCTOKEN * value
Definition: csound.h:597
uint32_t tempStatus
Definition: csoundCore.h:1773
long(* GetInputBufferSize)(CSOUND *)
Definition: csoundCore.h:1026
Nen FFT interface.
Definition: csoundCore.h:960
@ CSOUND_INPUT_CHANNEL
Definition: csound.h:624
AuxAllocAsync data.
Definition: csoundCore.h:389
int aftouch
Definition: csoundCore.h:1807
INSDS * frstoff
Definition: csoundCore.h:1511
controlChannelBehavior
Definition: csound.h:628
int32 N
Definition: csound.h:575
INSTRTXT * ip
Definition: csoundCore.h:938
virtual int operator()(CSOUND *csound_)
Dispatches the event to Csound during performance.
Definition: csound_threaded.hpp:147
int(* GetTieFlag)(CSOUND *)
Definition: csoundCore.h:1063
DPARM * dparms
drumset params
Definition: csoundCore.h:473
int postscript_graphs
Definition: csound.h:483
A chain of TEXT structs.
Definition: csoundCore.h:362
MYFLT onedsr
Definition: csoundCore.h:1531
void(* channelCallback_t)(CSOUND *csound, const char *channelName, void *channelValuePtr, const void *channelType)
Definition: csound.h:659
Definition: csoundCore.h:932
@ CSFTYPE_FTABLES_TEXT
Definition: csound.h:435
@ CSFTYPE_UNUSED
Definition: csound.h:429
struct insds * prvinstance
Definition: csoundCore.h:512
void * stdOp_Env
reserved for std opcode library
Definition: csoundCore.h:1513
PUBLIC uint32_t csoundGetRandomSeedFromTime(void)
Return a 32-bit unsigned integer to be used as seed from current time.
void(* rtclose_callback)(CSOUND *)
Definition: csoundCore.h:1454
@ CSOUND_CHANNEL_TYPE_MASK
Definition: csound.h:622
PUBLIC int csoundGetAudioDevList(CSOUND *csound, CS_AUDIODEVICE *list, int isOutput)
This function can be called to obtain a list of available input or output audio devices.
int32 npts
Definition: csoundCore.h:634
PUBLIC double csoundGetScoreTime(CSOUND *)
Returns the current score time in seconds since the beginning of performance.
struct debug_opcode_s debug_opcode_t
void * FFT_table_2
Definition: csoundCore.h:1576
long(* GetOutputBufferSize)(CSOUND *)
Definition: csoundCore.h:1027
EVTBLK * init_event
Definition: csoundCore.h:1813
const PUBLIC char * csoundGetInputName(CSOUND *)
Returns the audio input name (-i).
void(* SetDrawGraphCallback)(CSOUND *, void(*drawGraphCallback)(CSOUND *, WINDAT *p))
Definition: csoundCore.h:1301
int_least64_t starttime_real
Definition: csound.h:556
const PUBLIC char * csoundGetOutputName(CSOUND *)
Returns the audio output name (-o).
ARGLST * inlist
Definition: csoundCore.h:305
void * barrier2
Definition: csoundCore.h:1755
void(* SetMessageCallback)(CSOUND *, void(*csoundMessageCallback)(CSOUND *, int attr, const char *format, va_list valist))
Definition: csoundCore.h:1045
EVTBLK evt
Definition: csoundCore.h:829
uint32 nframes
Definition: csoundCore.h:1672
INSDS ** dag_task_map
Definition: csoundCore.h:1767
double timeOffs
start time of current section
Definition: csoundCore.h:1485
PUBLIC void csoundSetExternalMidiInOpenCallback(CSOUND *, int(*func)(CSOUND *, void **userData, const char *devName))
Sets callback for opening real time MIDI input.
PUBLIC int * csoundGetChannelLock(CSOUND *, const char *name)
Recovers a pointer to a lock for the specified channel called 'name'.
struct dag_t * multiThreadedDag
Definition: csoundCore.h:1753
void * file_io_thread
Definition: csoundCore.h:1583
spin_lock_t alloc_spinlock
Definition: csoundCore.h:1812
MACRO * unused_ptr2
Definition: csoundCore.h:1607
void * opcod_iobufs
Definition: csoundCore.h:559
int nocarry
Definition: csoundCore.h:1629
void * subins_deact
Definition: csoundCore.h:560
PUBLIC void csoundSetAudioDeviceListCallback(CSOUND *csound, int(*audiodevlist__)(CSOUND *, CS_AUDIODEVICE *list, int isOutput))
Sets a function that is called to obtain a list of audio devices.
int realtime_mode
Definition: csound.h:503
struct xyindat_ XYINDAT
Definition: csound.h:469
int keep_tmp
Definition: csoundCore.h:1495
PUBLIC void cscoreListSort(CSOUND *, EVLIST *)
FDCH * fdchp
Definition: csoundCore.h:520
int(* rtrecord_callback)(CSOUND *, MYFLT *inBuf, int nbytes)
Definition: csoundCore.h:1453
MACRO * unused_ptr0[RPTDEPTH]
Definition: csoundCore.h:1621
char * xfilename
Definition: csoundCore.h:1493
Definition: csoundCore.h:886
int numThreads
Definition: csoundCore.h:255
PUBLIC void csoundDebuggerInit(CSOUND *csound)
Intialize debugger facilities.
int strsmax
Definition: csoundCore.h:1519
int64_t(* GetCurrentTimeSamples)(CSOUND *)
Definition: csoundCore.h:1025
debug_opcode_t * currentOpcode
Definition: csdebug.h:94
void * printerrormessagesflag
Definition: csoundCore.h:1594
PUBLIC void ** csoundGetRtRecordUserData(CSOUND *)
Return pointer to user data pointer for real time audio input.
This struct will hold the current engine state after compilation.
Definition: csoundCore.h:945
MYFLT * outbufp
Definition: csoundCore.h:1664
double sampleRate
sample rate in Hz
Definition: csoundCore.h:726
void(* SeedRandMT)(CsoundRandMTState *p, const uint32_t *initKey, uint32_t keyLength)
Definition: csoundCore.h:1182
Storage for parsed orchestra code, for each opcode in an INSTRTXT.
Definition: csoundCore.h:300
@ CSFTYPE_FLOATS_BINARY
Definition: csound.h:441
EVENT ** epend
Definition: csoundCore.h:1655
void * bkpt_buffer
Definition: csdebug.h:159
PUBLIC void csoundSetMIDIModule(CSOUND *csound, const char *module)
Sets the current MIDI IO module.
@ CSOUND_STRING_CHANNEL
Definition: csound.h:618
int(* RunUtility)(CSOUND *, const char *name, int argc, char **argv)
Definition: csoundCore.h:1345
int ring_bell
Definition: csound.h:486
void(* cscoreCallback_)(CSOUND *)
Definition: csoundCore.h:1446
int16 pcnt
Definition: cscore.h:73
PUBLIC void csoundClearBreakpoints(CSOUND *csound)
Clear all breakpoints.
PUBLIC int csoundGetMessageCnt(CSOUND *csound)
Returns the number of pending messages in the buffer.
struct debug_instr_s * next
Definition: csdebug.h:72
PUBLIC void cscoreFreeEvent(CSOUND *, EVENT *)
char * name
Definition: csoundCore.h:894
virtual ~CsoundEvent()
Definition: csound_threaded.hpp:109
int32 srngcnt[MAXCHNLS]
Definition: csoundCore.h:1650
PUBLIC int csoundUDPServerStart(CSOUND *csound, unsigned int port)
Starts the UDP server on a supplied port number returns CSOUND_SUCCESS if server has been started suc...
int width
Definition: csound.h:647
PUBLIC MYFLT * csoundGetSpin(CSOUND *)
Returns the address of the Csound audio input working buffer (spin).
PUBLIC void csoundSetControlChannel(CSOUND *csound, const char *name, MYFLT val)
sets the value of control channel identified by *name
std::thread performance_thread
Definition: csound_threaded.hpp:166
void(* SetExternalMidiOutCloseCallback)(CSOUND *, int(*func)(CSOUND *, void *))
Definition: csoundCore.h:1283
int info_message_request
Definition: csoundCore.h:1792
Definition: csoundCore.h:848
PUBLIC int csoundWaitThreadLock(void *lock, size_t milliseconds)
Waits on the indicated monitor object for the indicated period.
int16 ksuscnt
number of held (sustaining) notes
Definition: csoundCore.h:464
CS_HASH_TABLE * namedGlobals
Definition: csoundCore.h:1563
std::vector< MYFLT > pfields
Definition: csound_threaded.hpp:123
volatile long msg_queue_wput
Definition: csoundCore.h:1804
PUBLIC void csoundRemoveBreakpoint(CSOUND *csound, int line, int instr)
Remove a previously set line breakpoint.
PUBLIC int csoundGetControlChannelHints(CSOUND *, const char *name, controlChannelHints_t *hints)
Returns special parameters (assuming there are any) of a control channel, previously set with csoundS...
PUBLIC int csoundOpenLibrary(void **library, const char *libraryPath)
Platform-independent function to load a shared library.
Definition: csoundCore.h:992
void * markup
Definition: csound.h:605
MYFLT iformat
Definition: csoundCore.h:645
int(* CloseLibrary)(void *library)
Definition: csoundCore.h:1357
int nchnls_i_override
Definition: csound.h:508
std::string events
Definition: csound_threaded.hpp:142
EVTBLK prve
Definition: csoundCore.h:1643
SUBR iopadr
Initialization (i-time) function pointer.
Definition: csoundCore.h:605
PUBLIC void csoundWaitThreadLockNoTimeout(void *lock)
Waits on the indicated monitor object until it is notified.
char * sp
Definition: csoundCore.h:1597
PUBLIC int csoundPeekCircularBuffer(CSOUND *csound, void *circular_buffer, void *out, int items)
Read from circular buffer without removing them from the buffer.
PUBLIC int csoundGetMIDIDevList(CSOUND *csound, CS_MIDIDEVICE *list, int isOutput)
This function can be called to obtain a list of available input or output midi devices.
void(* SetKillGraphCallback)(CSOUND *, void(*killGraphCallback)(CSOUND *, WINDAT *p))
Definition: csoundCore.h:1303
struct midiglobals MGLOBAL
void(* SetExternalMidiOutOpenCallback)(CSOUND *, int(*func)(CSOUND *, void **, const char *))
Definition: csoundCore.h:1279
const PUBLIC char * csoundModuleErrorCodeToString(int)
int16 inchns
Definition: csoundCore.h:935
@ CSFTYPE_SDS
Definition: csound.h:404
int guardreq
Definition: csoundCore.h:691
char * beginp
Definition: csoundCore.h:704
Definition: csoundCore.h:418
MYFLT dflt
Definition: csound.h:642
@ CSFTYPE_UNKNOWN_AUDIO
Definition: csound.h:408
Definition: csoundCore.h:440
int number_of_threads
Definition: csound.h:499
OPDS * ids
Definition: csoundCore.h:1467
MYFLT srate
Definition: csoundCore.h:767
REMOT_BUF SVrecvbuf
Definition: csoundCore.h:1745
float sr_override
Definition: csoundCore.h:244
OPDS h
Definition: csoundCore.h:833
@ CSFTYPE_W64
Definition: csound.h:389
int noDefaultPaths
Definition: csoundCore.h:253
void * setup
Definition: csoundCore.h:962
char * intypes
Definition: csoundCore.h:934
int len
Definition: csound.h:599
Definition: csoundCore.h:1658
int linpos
Definition: csoundCore.h:1600
double(* GetRealTime)(RTCLOCK *)
Definition: csoundCore.h:1209
Definition: csoundCore.h:397
PUBLIC void csoundSetMIDIFileInput(CSOUND *csound, const char *name)
Set MIDI file input name.
int flags
Definition: csound.h:564
DKLST * klists
chain of dpgm keylists
Definition: csoundCore.h:471
int enableMsgAttr
Definition: csoundCore.h:1680
int score_parser
Definition: csoundCore.h:1798
char str[MAX_MESSAGE_STR]
Definition: csoundCore.h:994
PUBLIC int csoundLockMutexNoWait(void *mutex_)
Acquires the indicated mutex object and returns zero, unless it is already in use by another thread,...
Definition: csoundCore.h:1640
SRTBLK * frstbp
Definition: csoundCore.h:1543
int32 nchanls
number of channels
Definition: csoundCore.h:675
int evt_poll_maxcnt
Definition: csoundCore.h:1556
char * Midiname
Definition: csoundCore.h:248
Specialization of CsoundEvent for high-level textual score events, fragments of scores,...
Definition: csound_threaded.hpp:140
int(* MidiInOpenCallback)(CSOUND *, void **, const char *)
Definition: csoundCore.h:808
MYFLT onedksmps
Definition: csoundCore.h:554
PUBLIC int csoundScoreEvent(CSOUND *, char type, const MYFLT *pFields, long numFields)
Send a new score event.
int x
Definition: csound.h:645
CsoundRandMTState randState_
Definition: csoundCore.h:1737
void(* NotifyThreadLock)(void *lock)
Definition: csoundCore.h:1196
SNDFILE * outfile
Definition: csoundCore.h:1659
int(* MidiOutOpenCallback)(CSOUND *, void **, const char *)
Definition: csoundCore.h:811
MYFLT(* SetReleaseLengthSeconds)(void *p, MYFLT n)
Definition: csoundCore.h:1053
void * utility_db
Definition: csoundCore.h:1729
int buffer_frames
Definition: csound.h:479
PUBLIC void csoundSetPlayopenCallback(CSOUND *, int(*playopen__)(CSOUND *, const csRtAudioParams *parm))
Sets a function to be called by Csound for opening real-time audio playback.
SUBR first_callback_
Definition: csoundCore.h:1434
int arrayMemberSize
Definition: csoundCore.h:400
PUBLIC char ** csoundListUtilities(CSOUND *)
Returns a NULL terminated list of registered utility names.
int(* AppendOpcodes)(CSOUND *, const OENTRY *opcodeList, int n)
Definition: csoundCore.h:1330
MYFLT kicvt
Definition: csoundCore.h:1535
MYFLT(* intpow)(MYFLT, int32)
Definition: csoundCore.h:1072
MGLOBAL * midiGlobals
Definition: csoundCore.h:1570
PUBLIC int csoundGetPvsChannel(CSOUND *csound, PVSDATEXT *fout, const char *name)
Receives a PVSDAT fout from the pvsout opcode (f-rate) at channel 'name' Returns zero on success,...
MACRO * mac
Definition: csoundCore.h:907
unsigned int outbufsiz
Definition: csoundCore.h:1668
void * message_buffer
Definition: csoundCore.h:1790
struct pvx_memfile_ PVOCEX_MEMFILE
struct threadInfo THREADINFO
OENTRY * oentry
Definition: csoundCore.h:303
int(* Rand31)(int *seedVal)
Definition: csoundCore.h:1185
char * nxp
Definition: csoundCore.h:1597
uint64_t locn
Definition: csoundCore.h:302
PUBLIC void csoundSetRecopenCallback(CSOUND *, int(*recopen_)(CSOUND *, const csRtAudioParams *parm))
Sets a function to be called by Csound for opening real-time audio recording.
struct insds * instance
Definition: csoundCore.h:334
int(* insert_score_event_at_sample)(CSOUND *, EVTBLK *, int64_t)
Definition: csoundCore.h:1338
int wintype
Definition: csoundCore.h:765
int tieflag
Definition: csoundCore.h:571
Definition: csdebug.h:158
unsigned char m_pitch
Definition: csoundCore.h:536
MYFLT _system_sr
Definition: csoundCore.h:1794
PUBLIC MYFLT * csoundGetInputBuffer(CSOUND *)
Returns the address of the Csound audio input buffer.
int termifend
Definition: csoundCore.h:241
void(* csoundKillGraphCallback_)(CSOUND *, WINDAT *windat)
Definition: csoundCore.h:1443
PUBLIC MYFLT csoundTableGet(CSOUND *, int table, int index)
Returns the value of a slot in a function table.
watchList *volatile * dag_task_watch
Definition: csoundCore.h:1769
CS_VAR_MEM p2
Definition: csoundCore.h:579
int p2
Definition: csoundCore.h:966
Definition: csoundCore.h:832
@ CSFTYPE_FLAC
Definition: csound.h:391
uint64_t locn
Definition: csound.h:601
int MTrkend
Definition: csoundCore.h:1557
int(* sscanf)(char *str, const char *format,...)
Definition: csoundCore.h:1367
int currentLPCSlot
Definition: csoundCore.h:1732
int useCsdLineCounts
Definition: csoundCore.h:257
@ CSFTYPE_UNIFIED_CSD
Definition: csound.h:370
int16 m_sust
Definition: csoundCore.h:534
Definition: csoundCore.h:225
int linepos
Definition: csoundCore.h:1613
MYFLT(* GetKr)(CSOUND *)
Definition: csoundCore.h:1016
struct cshdr * nxtblk
Definition: cscore.h:63
PUBLIC int csoundGetDebug(CSOUND *)
Returns whether Csound is set to print debug messages sent through the DebugMsg() internal API functi...
EVTNODE * OrcTrigEvts
Definition: csoundCore.h:1550
int32(* strarg2insno)(CSOUND *, void *p, int is_string)
Definition: csoundCore.h:1084
int type
Definition: csoundCore.h:982
struct windat_ WINDAT
Definition: csound.h:468
int pipdevin
Definition: csoundCore.h:1671
int dag_num_active
Definition: csoundCore.h:1766
channelCallback_t InputChannelCallback_
Definition: csoundCore.h:1435
int nslots
Definition: cscore.h:82
int64_t advanceCnt
Definition: csoundCore.h:1553
uint32 maxpos[MAXCHNLS]
Definition: csoundCore.h:1507
PUBLIC int cscoreListCount(CSOUND *, EVLIST *)
int margs
Definition: csoundCore.h:898
AUXCH auxch
Definition: csoundCore.h:636
virtual void Stop()
Signals the performance thread routine to stop and return.
Definition: csound_threaded.hpp:309
struct opcodinfo OPCODINFO
MYFLT onedkr
Definition: csoundCore.h:554
MYFLT pbensens
pitch bend sensitivity in semitones
Definition: csoundCore.h:462
struct instr_semantics_t * instCurr
Definition: csoundCore.h:1762
void(* csoundMessageStringCallback)(CSOUND *csound, int attr, const char *str)
Definition: csoundCore.h:1814
PUBLIC long csoundRunCommand(const char *const *argv, int noWait)
Runs an external command with the arguments specified in 'argv'.
int dag_changed
Definition: csoundCore.h:1765
Definition: csoundCore.h:912
void(* SetRtrecordCallback)(CSOUND *, int(*rtrecord__)(CSOUND *, MYFLT *inBuf, int nbytes))
Definition: csoundCore.h:1262
int dimensions
Definition: csoundCore.h:398
volatile unsigned long alloc_queue_items
Definition: csoundCore.h:1810
int(* RegisterDeinitCallback)(CSOUND *, void *p, int(*func)(CSOUND *, void *))
Definition: csoundCore.h:1316
struct insds * act_instance
Definition: csoundCore.h:337
Definition: csoundCore.h:1595
struct op OPTXT
A chain of TEXT structs.
unsigned long message_string_queue_wp
Definition: csoundCore.h:1819
MYFLT p2
Definition: csdebug.h:69
MYFLT esr
Definition: csoundCore.h:1479
int vmax
Definition: csoundCore.h:323
int(* sftype2csfiletype)(int type)
Definition: csoundCore.h:1242
INSDS * insdshead
Owner instrument instance data structure.
Definition: csoundCore.h:611
void ClearQueue()
Definition: csound_threaded.hpp:171
struct opds * nxtp
Definition: csoundCore.h:508
@ CSFTYPE_SCRIPT_TEXT
Definition: csound.h:450
#define MAXCHNLS
Definition: csoundCore.h:174
Definition: csoundCore.h:902
uintptr_t(* JoinThread)(void *thread)
Definition: csoundCore.h:1192
@ CSFTYPE_AIFF
Definition: csound.h:384
MCHNBLK * m_chnbp
Definition: csoundCore.h:526
int pextrab
Definition: csoundCore.h:323
Definition: csoundCore.h:268
MYFLT(* TableGet)(CSOUND *, int table, int index)
Definition: csoundCore.h:1112
struct monblk * prv
Definition: csoundCore.h:420
std::condition_variable condition_variable_
Definition: csound_threaded.hpp:68
watchList * dag_wlmm
Definition: csoundCore.h:1770
struct _FFT_SETUP CSOUND_FFT_SETUP
Nen FFT interface.
int outbufsamps
Definition: csoundCore.h:234
int line
Definition: csound.h:600
int midi_key_oct
Definition: csound.h:494
int(* PVOC_GetFrames)(CSOUND *, int, float *, uint32)
Definition: csoundCore.h:1160
int type
Definition: csoundCore.h:926
void(* WaitThreadLockNoTimeout)(void *lock)
Definition: csoundCore.h:1197
CORFIL * expanded_orc
Definition: csoundCore.h:1787
int acnt
Definition: csoundCore.h:895
PUBLIC void csoundAddSpinSample(CSOUND *csound, int frame, int channel, MYFLT sample)
Adds the indicated sample into the audio input working buffer (spin); this only ever makes sense befo...
struct insds * prvact
Definition: csoundCore.h:516
int odebug
Definition: csoundCore.h:232
unsigned char mbuf[MBUFSIZ]
Definition: csoundCore.h:821
int perferrcnt
Definition: csoundCore.h:1545
double startOffs
playback start offset frames
Definition: csoundCore.h:743
void * barrier1
Definition: csoundCore.h:1754
Definition: csoundCore.h:433
PUBLIC int csoundIsNamedGEN(CSOUND *csound, int num)
Checks if a given GEN number num is a named GEN if so, it returns the string length (excluding termin...
int wintype
Definition: csound.h:580
void * threadId
Definition: csoundCore.h:850
Definition: csoundCore.h:688
#define MARGS
Definition: csoundCore.h:882
@ CSFTYPE_SD2
Definition: csound.h:388
struct CSOUND_::sread__ sread
CS_VAR_MEM p3
Definition: csoundCore.h:580
int32 rngcnt[MAXCHNLS]
Definition: csoundCore.h:1547
PUBLIC int csoundKillInstance(CSOUND *csound, MYFLT instr, char *instrName, int mode, int allow_release)
Kills off one or more running instances of an instrument identified by instr (number) or instrName (n...
CS_VARIABLE * varPoolHead
Definition: csdebug.h:66
void * last_delayr
Definition: csoundCore.h:1687
int16 insno
Definition: csoundCore.h:530
MYFLT sicvt
Definition: csoundCore.h:1531
char * SF_id_copyright
Definition: csoundCore.h:1723
CS_PRINTF2 void(* Warning)(CSOUND *, const char *msg,...)
Definition: csoundCore.h:1172
uint64_t(* GetKcounter)(CSOUND *)
Get number of control blocks elapsed.
Definition: csoundCore.h:1024
PUBLIC void csoundSetExternalMidiOutCloseCallback(CSOUND *, int(*func)(CSOUND *, void *userData))
Sets callback for closing real time MIDI output.
PUBLIC int csoundGetModule(CSOUND *csound, int number, char **name, char **type)
retrieves a module name and type ("audio" or "midi") given a number Modules are added to list as csou...
void(* RewindScore)(CSOUND *)
Definition: csoundCore.h:1374
int64_t ibeatTime
beat time = 60 / tempo
Definition: csoundCore.h:1489
double curTime_inc
Definition: csoundCore.h:1483
int(* FTDelete)(CSOUND *, int tableNum)
Definition: csoundCore.h:1102
struct TREE * left
Definition: csound.h:602
CORFIL * orchstr
Definition: csoundCore.h:1466
int dither
Definition: csoundCore.h:1674
struct in_stack_s IN_STACK
int ugens4_rand_16
Definition: csoundCore.h:1739
PUBLIC int csoundRunUtility(CSOUND *, const char *name, int argc, char **argv)
Run utility with the specified name and command line arguments.
int(* midi_dev_list_callback)(CSOUND *, CS_MIDIDEVICE *, int)
Definition: csoundCore.h:1456
int(* PVOC_OpenFile)(CSOUND *, const char *, void *, void *)
Definition: csoundCore.h:1157
void(* SetExternalMidiInCloseCallback)(CSOUND *, int(*func)(CSOUND *, void *))
Definition: csoundCore.h:1277
Definition: csoundCore.h:981
size_t size
Definition: csoundCore.h:375
CS_NORETURN void(* LongJmp)(CSOUND *, int)
Definition: csoundCore.h:1174
PUBLIC void csoundInputMessage(CSOUND *, const char *message)
Input a NULL-terminated string (as if from a console), used for line events.
PUBLIC void csoundGetAudioChannel(CSOUND *csound, const char *name, MYFLT *samples)
copies the audio channel identified by *name into array *samples which should contain enough memory f...
char ** strsets
Definition: csoundCore.h:1520
char opcod
Event type.
Definition: csoundCore.h:486
uint32 smaxpos[MAXCHNLS]
Definition: csoundCore.h:1507
float * frame
Definition: csound.h:583
int nspout
Definition: csoundCore.h:1525
double baseFreq
base frequency (in Hz)
Definition: csoundCore.h:749
PUBLIC void csoundScoreEventAbsoluteAsync(CSOUND *, char type, const MYFLT *pfields, long numFields, double time_ofs)
Asynchronous version of csoundScoreEventAbsolute().
FUNC * sinetable
Definition: csoundCore.h:1783
void(* SetMakeGraphCallback)(CSOUND *, void(*makeGraphCallback)(CSOUND *, WINDAT *p, const char *name))
Definition: csoundCore.h:1298
int argcnt
arg count
Definition: csoundCore.h:681
int pvErrorCode
Definition: csoundCore.h:1700
aux_cb notify
Definition: csoundCore.h:394
@ PFFT_LIB
Definition: csoundCore.h:217
SRTBLK * prvibp
Definition: csoundCore.h:1596
MYFLT e0dbfs
Definition: csoundCore.h:1538
MYFLT(* GetInverseComplexFFTScale)(CSOUND *, int FFTsize)
Definition: csoundCore.h:1139
MYFLT p2orig
Definition: cscore.h:74
uint32 framecount
Definition: csound.h:582
MYFLT dbfs_to_float
Definition: csoundCore.h:1538
int32 winsize
Definition: csound.h:579
PUBLIC void csoundClearSpin(CSOUND *)
Clears the input buffer (spin).
struct debug_variable_s debug_variable_t
PUBLIC int csoundWaitBarrier(void *barrier)
Wait on the thread barrier.
PUBLIC EVENT * cscoreCopyEvent(CSOUND *, EVENT *)
void * nxtd
Definition: csoundCore.h:562
void(* ComplexFFT)(CSOUND *, MYFLT *buf, int FFTsize)
Definition: csoundCore.h:1141
Definition: csoundCore.h:641
CS_HASH_TABLE * symbtab
Definition: csoundCore.h:1799
TYPE_POOL * typePool
Definition: csoundCore.h:1473
char pftype
Definition: csoundCore.h:312
double loopEnd
loop end (sample frames)
Definition: csoundCore.h:747
OPDS h
Definition: csoundCore.h:615
@ CSFTYPE_LORIS
Definition: csound.h:424
void * pointer1
Definition: csoundCore.h:1758
int tran_nchnlsi
Definition: csoundCore.h:1780
int pvNumFiles
Definition: csoundCore.h:1699
int size
Definition: csoundCore.h:415
void * init_pass_threadlock
Definition: csoundCore.h:1589
Definition: csoundCore.h:407
virtual int PerformRoutine()
Definition: csound_threaded.hpp:193
PUBLIC void csoundSetStringChannel(CSOUND *csound, const char *name, char *string)
sets the string channel identified by *name with *string
PUBLIC void csoundSetMIDIDeviceListCallback(CSOUND *csound, int(*mididevlist__)(CSOUND *, CS_MIDIDEVICE *list, int isOutput))
Sets a function that is called to obtain a list of MIDI devices.
MCHNBLK * m_chnbp[MIDIMAXPORTS *16]
reserve space for up to MIDIMAXPORTS MIDI devices
Definition: csoundCore.h:1529
int(* csoundInternalYieldCallback_)(CSOUND *)
Definition: csoundCore.h:1458
uint32_t(* GetRandomSeedFromTime)(void)
Definition: csoundCore.h:1181
int reinitflag
Definition: csoundCore.h:572
CSOUND * csound
Definition: csoundCore.h:689
PUBLIC int64_t csoundGetCurrentTimeSamples(CSOUND *csound)
Return the current performance time in samples.
char orcname_mode
Definition: csoundCore.h:1717
Definition: csoundCore.h:710
void(* audtran)(CSOUND *, const MYFLT *, int)
Definition: csoundCore.h:1463
int(* PerformKsmps)(CSOUND *)
Definition: csoundCore.h:1339
PUBLIC void csoundMessageV(CSOUND *, int attr, const char *format, va_list args)
int datenabl
Definition: csoundCore.h:469
int nchnls_override
Definition: csound.h:507
int inchnls
Definition: csoundCore.h:1476
PUBLIC void csoundTableCopyIn(CSOUND *csound, int table, MYFLT *src)
Copy the contents of an array *src into a given function table The table number is assumed to be vali...
int synterrcnt
Definition: csoundCore.h:1545
MYFLT p3
Definition: csdebug.h:69
int16 rngflg
Definition: csoundCore.h:1548
PUBLIC int csoundScoreSort(CSOUND *, FILE *inFile, FILE *outFile)
Sorts score file 'inFile' and writes the result to 'outFile'.
int_least64_t starttime_CPU
Definition: csound.h:557
void * schedule_kicked
Definition: csoundCore.h:1741
PUBLIC void csoundCreateMessageBuffer(CSOUND *csound, int toStdOut)
Creates a buffer for storing messages printed by Csound.
volatile stateWithPadding * dag_task_status
Definition: csoundCore.h:1768
char * SF_id_comment
Definition: csoundCore.h:1727
char actflg
Definition: csoundCore.h:542
void(* SetExternalMidiErrorStringCallback)(CSOUND *, const char *(*func)(int))
Definition: csoundCore.h:1285
PUBLIC void csoundDebuggerClean(CSOUND *csound)
Cleanup debugger facilities.
void * tseg
Definition: csoundCore.h:1578
PUBLIC void csoundSetExternalMidiWriteCallback(CSOUND *, int(*func)(CSOUND *, void *userData, const unsigned char *buf, int nBytes))
Sets callback for writing to real time MIDI output.
virtual int PerformAndResetRoutine()
Definition: csound_threaded.hpp:222
int(* SetReleaseLength)(void *p, int n)
Definition: csoundCore.h:1052
PUBLIC void csoundSetBreakpoint(CSOUND *csound, int line, int instr, int skip)
Set a breakpoint on a particular line.
void(* FlushCircularBuffer)(CSOUND *, void *)
Definition: csoundCore.h:1218
int(* audrecv)(CSOUND *, MYFLT *, int)
Definition: csoundCore.h:1462
struct event EVTBLK
This struct holds the data for one score event.
int fileType
TYP_WAV, TYP_AIFF, etc.
Definition: csoundCore.h:732
int32 lobits
log2(MAXLEN / flen) for power of two table size, 0 otherwise
Definition: csoundCore.h:657
int io_initialised
Definition: csoundCore.h:1821
void * pinstance
Definition: csoundCore.h:484
int16 pcnt
Number of p-fields.
Definition: csoundCore.h:488
void(* NotifyFileOpened)(CSOUND *, const char *, int, int, int)
Definition: csoundCore.h:1241
Definition: csoundCore.h:918
AUXCH *(* aux_cb)(CSOUND *, void *, AUXCH *)
this callback is used to notify the availability of new storage in AUXCH *.
Definition: csoundCore.h:384
PUBLIC MYFLT csoundGetA4(CSOUND *)
Returns the A4 frequency reference.
PUBLIC void csoundInitTimerStruct(RTCLOCK *)
Initialise a timer structure.
void(* SetUtilNchnls)(CSOUND *, int)
Definition: csoundCore.h:1351
MYFLT sample_rate_override
Definition: csound.h:505
This class provides a multi-threaded C++ interface to the "C" Csound API.
Definition: csound_threaded.hpp:163
int(* WaitThreadLock)(void *lock, size_t milliseconds)
Definition: csoundCore.h:1195
PUBLIC int csoundNewOpcodeList(CSOUND *, opcodeListEntry **opcodelist)
Gets an alphabetically sorted list of all opcodes.
PUBLIC NGFENS * csound_fgen_init(CSOUND *)
int displays
Definition: csound.h:481
int(* GetMessageLevel)(CSOUND *)
Definition: csoundCore.h:1043
int init_done
Definition: csoundCore.h:570
int Mxtroffs
Definition: csoundCore.h:1557
int64_t cyclesRemaining
Definition: csoundCore.h:1567
int(* GetZaBounds)(CSOUND *, MYFLT **)
Definition: csoundCore.h:1388
@ FFT_FWD
Definition: csoundCore.h:218
@ CSFTYPE_WAVEX
Definition: csound.h:390
int(* hfgens)(CSOUND *, FUNC **, const EVTBLK *, int)
Definition: csoundCore.h:1100
int nchnls_override
Definition: csoundCore.h:245
MONPCH * monobas
Definition: csoundCore.h:447
MYFLT onedkr
Definition: csoundCore.h:1534
char * fullName
full path filename
Definition: csoundCore.h:722
PUBLIC void csoundGetParams(CSOUND *csound, CSOUND_PARAMS *p)
Get the current set of parameters from a CSOUND instance in a CSOUND_PARAMS structure.
char * body
Definition: csoundCore.h:896
PUBLIC void csoundSpinUnLock(spin_lock_t *spinlock)
Unlocks the spinlock.
PUBLIC int csoundRegisterSenseEventCallback(CSOUND *, void(*func)(CSOUND *, void *), void *userData)
Register a function to be called once in every control period by sensevents().
@ CSFTYPE_NIST
Definition: csound.h:401
int fftsize
Definition: csoundCore.h:762
void(* DestroyMutex)(void *mutex_)
Definition: csoundCore.h:1202
MEVENT * Midevtblk
Definition: csoundCore.h:803
PUBLIC void csoundSetExternalMidiInCloseCallback(CSOUND *, int(*func)(CSOUND *, void *userData))
Sets callback for closing real time MIDI input.
struct names * next
Definition: csoundCore.h:845
uint32_t(* GetKsmps)(CSOUND *)
Definition: csoundCore.h:1017
virtual int operator()(CSOUND *csound_)
Dispatches the event to Csound during performance.
Definition: csound_threaded.hpp:131
char unused_char1[NAMELEN]
Definition: csoundCore.h:1624
int(* GetInstrumentNumber)(void *p)
Definition: csoundCore.h:1061
@ CSFTYPE_POSTSCRIPT
Definition: csound.h:449
MYFLT ctl_val[136]
...
Definition: csoundCore.h:454
GEN * gensub
Definition: csoundCore.h:1561
int loopMode
loop mode: 0: no loop information 1: off 2: forward 3: backward 4: bidirectional
Definition: csoundCore.h:741
struct CSOUND_::onefileStatics__ onefileStatics
@ CSFTYPE_CVANAL
Definition: csound.h:421
char * FMidioutname
Definition: csoundCore.h:250
uint64_t global_kcounter
Definition: csoundCore.h:1478
char * Midioutname
Definition: csoundCore.h:249
#define NAMELEN
Definition: csoundCore.h:1615