Csound  6.11
csound.h
Go to the documentation of this file.
1 /*
2  csound.h:
3 
4  Copyright (C) 2003 2005 2008 2013 by John ffitch, Istvan Varga,
5  Mike Gogins, Victor Lazzarini,
6  Andres Cabrera, Steven Yi
7 
8  This file is part of Csound.
9 
10  The Csound Library is free software; you can redistribute it
11  and/or modify it under the terms of the GNU Lesser General Public
12  License as published by the Free Software Foundation; either
13  version 2.1 of the License, or (at your option) any later version.
14 
15  Csound is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public
21  License along with Csound; if not, write to the Free Software
22  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
23  02110-1301 USA
24 */
25 
26 #ifndef CSOUND_H
27 #define CSOUND_H
28 
256 /*
257  * Platform-dependent definitions and declarations.
258  */
259 
260 #if (defined(WIN32) || defined(_WIN32)) && !defined(SWIG)
261 # if defined(__BUILDING_LIBCSOUND)
262 # define PUBLIC __declspec(dllexport)
263 # define PUBLIC_DATA __declspec(dllexport)
264 # else
265 # define PUBLIC __declspec(dllexport)
266 # define PUBLIC_DATA __declspec(dllimport)
267 # endif
268 #elif defined(__GNUC__) && (__GNUC__ >= 4) /* && !defined(__MACH__) */
269 # define PUBLIC __attribute__ ( (visibility("default")) )
270 # define PUBLIC_DATA __attribute__ ( (visibility("default")) )
271 #else
272 # define PUBLIC
273 # define PUBLIC_DATA
274 #endif
275 
276 #if defined(MSVC)
277 # include <intrin.h> /* for _InterlockedExchange */
278 #endif
279 
280 #if defined(__MACH__)
281 // on OSX 10.6 i386 does not have all builtins
282 #if defined(MAC_OS_X_VERSION_10_6)
283 #ifdef HAVE_ATOMIC_BUILTIN
284 #ifndef __x86_64__
285 #undef HAVE_ATOMIC_BUILTIN
286 #endif
287 #endif
288 #endif
289 #endif
290 
295 #ifdef SWIG
296 #define CS_PRINTF2
297 #define CS_PRINTF3
298 #include "float-version.h"
299 #ifndef __MYFLT_DEF
300 #define __MYFLT_DEF
301 #ifndef USE_DOUBLE
302 #define MYFLT float
303 #else
304 #define MYFLT double
305 #endif
306 #endif
307  %module csnd6
308  %{
309 # include "sysdep.h"
310 # include "text.h"
311 # include <stdarg.h>
312  %}
313 #else
314 # include "sysdep.h"
315 # include "text.h"
316 # include <stdarg.h>
317 #endif
318 
319 #ifdef __cplusplus
320 extern "C" {
321 #endif
322 
327  typedef enum
328  {
329  /* Completed successfully. */
331  /* Unspecified failure. */
333  /* Failed during initialization. */
335  /* Failed during performance. */
337  /* Failed to allocate requested memory. */
339  /* Termination requested by SIGINT or SIGTERM. */
341  } CSOUND_STATUS;
342 
343  /* Compilation or performance aborted, but not as a result of an error
344  (e.g. --help, or running an utility with -U). */
345 #define CSOUND_EXITJMP_SUCCESS (256)
346 
351 #define CSOUNDINIT_NO_SIGNAL_HANDLER 1
352 #define CSOUNDINIT_NO_ATEXIT 2
353 
358 #define CSOUND_CALLBACK_KBD_EVENT (0x00000001U)
359 #define CSOUND_CALLBACK_KBD_TEXT (0x00000002U)
360 
369  typedef enum {
370  CSFTYPE_UNIFIED_CSD = 1, /* Unified Csound document */
371  CSFTYPE_ORCHESTRA, /* the primary orc file (may be temporary) */
372  CSFTYPE_SCORE, /* the primary sco file (may be temporary)
373  or any additional score opened by Cscore */
374  CSFTYPE_ORC_INCLUDE, /* a file #included by the orchestra */
375  CSFTYPE_SCO_INCLUDE, /* a file #included by the score */
376  CSFTYPE_SCORE_OUT, /* used for score.srt, score.xtr, cscore.out */
377  CSFTYPE_SCOT, /* Scot score input format */
378  CSFTYPE_OPTIONS, /* for .csoundrc and -@ flag */
379  CSFTYPE_EXTRACT_PARMS, /* extraction file specified by -x */
380 
381  /* audio file types that Csound can write (10-19) or read */
408  CSFTYPE_UNKNOWN_AUDIO, /* used when opening audio file for reading
409  or temp file written with <CsSampleB> */
410 
411  /* miscellaneous music formats */
413  CSFTYPE_STD_MIDI, /* Standard MIDI file */
414  CSFTYPE_MIDI_SYSEX, /* Raw MIDI codes, eg. SysEx dump */
415 
416  /* analysis formats */
419  CSFTYPE_PVC, /* original PVOC format */
420  CSFTYPE_PVCEX, /* PVOC-EX format */
427 
428  /* Types for plugins and the files they read/write */
432 
433  /* Special formats for Csound ftables or scanned synthesis
434  matrices with header info */
435  CSFTYPE_FTABLES_TEXT, /* for ftsave and ftload */
436  CSFTYPE_FTABLES_BINARY, /* for ftsave and ftload */
437  CSFTYPE_XSCANU_MATRIX, /* for xscanu opcode */
438 
439  /* These are for raw lists of numbers without header info */
440  CSFTYPE_FLOATS_TEXT, /* used by GEN23, GEN28, dumpk, readk */
441  CSFTYPE_FLOATS_BINARY, /* used by dumpk, readk, etc. */
442  CSFTYPE_INTEGER_TEXT, /* used by dumpk, readk, etc. */
443  CSFTYPE_INTEGER_BINARY, /* used by dumpk, readk, etc. */
444 
445  /* image file formats */
447 
448  /* For files that don't match any of the above */
449  CSFTYPE_POSTSCRIPT, /* EPS format used by graphs */
450  CSFTYPE_SCRIPT_TEXT, /* executable script files (eg. Python) */
453 
454  /* This should only be used internally by the original FileOpen()
455  API call or for temp files written with <CsFileB> */
458 
459  /*
460  * TYPE DEFINITIONS
461  */
462 
463  /*
464  * Forward declarations.
465  */
466 
467  typedef struct CSOUND_ CSOUND;
468  typedef struct windat_ WINDAT;
469  typedef struct xyindat_ XYINDAT;
470 
471 
477  typedef struct {
478  int debug_mode; /* debug mode, 0 or 1 */
479  int buffer_frames; /* number of frames in in/out buffers */
480  int hardware_buffer_frames; /* ibid. hardware */
481  int displays; /* graph displays, 0 or 1 */
482  int ascii_graphs; /* use ASCII graphs, 0 or 1 */
483  int postscript_graphs; /* use postscript graphs, 0 or 1 */
484  int message_level; /* message printout control */
485  int tempo; /* tempo (sets Beatmode) */
486  int ring_bell; /* bell, 0 or 1 */
487  int use_cscore; /* use cscore for processing */
488  int terminate_on_midi; /* terminate performance at the end
489  of midifile, 0 or 1 */
490  int heartbeat; /* print heart beat, 0 or 1 */
491  int defer_gen01_load ; /* defer GEN01 load, 0 or 1 */
492  int midi_key; /* pfield to map midi key no */
493  int midi_key_cps; /* pfield to map midi key no as cps */
494  int midi_key_oct; /* pfield to map midi key no as oct */
495  int midi_key_pch; /* pfield to map midi key no as pch */
496  int midi_velocity; /* pfield to map midi velocity */
497  int midi_velocity_amp; /* pfield to map midi velocity as amplitude */
498  int no_default_paths; /* disable relative paths from files, 0 or 1 */
499  int number_of_threads; /* number of threads for multicore performance */
500  int syntax_check_only; /* do not compile, only check syntax */
501  int csd_line_counts; /* csd line error reporting */
502  int compute_weights; /* deprecated, kept for backwards comp. */
503  int realtime_mode; /* use realtime priority mode, 0 or 1 */
504  int sample_accurate; /* use sample-level score event accuracy */
505  MYFLT sample_rate_override; /* overriding sample rate */
506  MYFLT control_rate_override; /* overriding control rate */
507  int nchnls_override; /* overriding number of out channels */
508  int nchnls_i_override; /* overriding number of in channels */
509  MYFLT e0dbfs_override; /* overriding 0dbfs */
510  int daemon; /* daemon mode */
511  int ksmps_override; /* ksmps override */
512  int FFT_library; /* fft_lib */
513  } CSOUND_PARAMS;
514 
518  typedef struct {
519  char device_name[64];
520  char device_id[64];
521  char rt_module[64];
523  int isOutput;
524  } CS_AUDIODEVICE;
525 
526  typedef struct {
527  char device_name[64];
528  char interface_name[64];
529  char device_id[64];
530  char midi_module[64];
531  int isOutput;
532  } CS_MIDIDEVICE;
533 
534 
538  typedef struct {
540  char *devName;
542  int devNum;
544  unsigned int bufSamp_SW;
552  float sampleRate;
553  } csRtAudioParams;
554 
555  typedef struct RTCLOCK_S {
556  int_least64_t starttime_real;
557  int_least64_t starttime_CPU;
558  } RTCLOCK;
559 
560  typedef struct {
561  char *opname;
562  char *outypes;
563  char *intypes;
564  int flags;
565  } opcodeListEntry;
566 
567  typedef struct CsoundRandMTState_ {
568  int mti;
569  uint32_t mt[624];
571 
572  /* PVSDATEXT is a variation on PVSDAT used in
573  the pvs bus interface */
574  typedef struct pvsdat_ext {
575  int32 N;
576  int sliding; /* Flag to indicate sliding case */
577  int32 NB;
578  int32 overlap;
579  int32 winsize;
580  int wintype;
581  int32 format;
582  uint32 framecount;
583  float* frame;
584  } PVSDATEXT;
585 
586  typedef struct ORCTOKEN {
587  int type;
588  char *lexeme;
589  int value;
590  double fvalue;
591  char *optype;
592  struct ORCTOKEN *next;
593  } ORCTOKEN;
594 
595  typedef struct TREE {
596  int type;
598  int rate;
599  int len;
600  int line;
601  uint64_t locn;
602  struct TREE *left;
603  struct TREE *right;
604  struct TREE *next;
605  void *markup; // TEMPORARY - used by semantic checker to
606  // markup node adds OENTRY or synthetic var
607  // names to expression nodes should be moved
608  // to TYPE_TABLE
609  } TREE;
610 
611 
615  typedef enum {
621 
623 
627 
628  typedef enum {
634 
639  typedef struct controlChannelHints_s {
641 
642  MYFLT dflt;
643  MYFLT min;
644  MYFLT max;
645  int x;
646  int y;
647  int width;
648  int height;
650  char *attributes;
652 
653  typedef struct controlChannelInfo_s {
654  char *name;
655  int type;
658 
659  typedef void (*channelCallback_t)(CSOUND *csound,
660  const char *channelName,
661  void *channelValuePtr,
662  const void *channelType);
663 
664 #ifndef CSOUND_CSDL_H
665 
677  PUBLIC int csoundInitialize(int flags);
678 
686  PUBLIC CSOUND *csoundCreate(void *hostData);
687 
691  PUBLIC void csoundDestroy(CSOUND *);
692 
696  PUBLIC int csoundGetVersion(void);
697 
701  PUBLIC int csoundGetAPIVersion(void);
711  PUBLIC TREE *csoundParseOrc(CSOUND *csound, const char *str);
712 
717  PUBLIC int csoundCompileTree(CSOUND *csound, TREE *root);
718 
722  PUBLIC int csoundCompileTreeAsync(CSOUND *csound, TREE *root);
723 
724 
730  PUBLIC void csoundDeleteTree(CSOUND *csound, TREE *tree);
731 
741  PUBLIC int csoundCompileOrc(CSOUND *csound, const char *str);
742 
749  PUBLIC int csoundCompileOrcAsync(CSOUND *csound, const char *str);
750 
761  PUBLIC MYFLT csoundEvalCode(CSOUND *csound, const char *str);
762 
775  PUBLIC int csoundInitializeCscore(CSOUND *, FILE *insco, FILE *outsco);
776 
781  PUBLIC int csoundCompileArgs(CSOUND *, int argc, const char **argv);
782 
793  PUBLIC int csoundStart(CSOUND *csound);
794 
811  PUBLIC int csoundCompile(CSOUND *, int argc, const char **argv);
812 
864  PUBLIC int csoundCompileCsd(CSOUND *csound, const char *csd_filename);
865 
872  PUBLIC int csoundCompileCsdText(CSOUND *csound, const char *csd_text);
873 
885  PUBLIC int csoundPerform(CSOUND *);
886 
898 
908 
914  PUBLIC void csoundStop(CSOUND *);
915 
922  PUBLIC int csoundCleanup(CSOUND *);
923 
929  PUBLIC void csoundReset(CSOUND *);
930 
941  PUBLIC int csoundUDPServerStart(CSOUND *csound, unsigned int port);
942 
946  PUBLIC int csoundUDPServerStatus(CSOUND *csound);
947 
952  PUBLIC int csoundUDPServerClose(CSOUND *csound);
953 
962  PUBLIC int csoundUDPConsole(CSOUND *csound, const char *addr,
963  int port, int mirror);
964 
968  PUBLIC void csoundStopUDPConsole(CSOUND *csound);
969 
978  PUBLIC MYFLT csoundGetSr(CSOUND *) ;
979 
983  PUBLIC MYFLT csoundGetKr(CSOUND *);
984 
988  PUBLIC uint32_t csoundGetKsmps(CSOUND *);
989 
994  PUBLIC uint32_t csoundGetNchnls(CSOUND *);
995 
1001  PUBLIC uint32_t csoundGetNchnlsInput(CSOUND *csound);
1002 
1006  PUBLIC MYFLT csoundGet0dBFS(CSOUND *);
1007 
1011  PUBLIC MYFLT csoundGetA4(CSOUND *);
1012 
1016  PUBLIC int64_t csoundGetCurrentTimeSamples(CSOUND *csound);
1017 
1021  PUBLIC int csoundGetSizeOfMYFLT(void);
1022 
1026  PUBLIC void *csoundGetHostData(CSOUND *);
1027 
1031  PUBLIC void csoundSetHostData(CSOUND *, void *hostData);
1032 
1037  PUBLIC int csoundSetOption(CSOUND *csound, const char *option);
1038 
1046  PUBLIC void csoundSetParams(CSOUND *csound, CSOUND_PARAMS *p);
1047 
1052  PUBLIC void csoundGetParams(CSOUND *csound, CSOUND_PARAMS *p);
1053 
1058  PUBLIC int csoundGetDebug(CSOUND *);
1059 
1064  PUBLIC void csoundSetDebug(CSOUND *, int debug);
1065 
1066 
1078  PUBLIC const char *csoundGetOutputName(CSOUND *);
1079 
1083  PUBLIC const char *csoundGetInputName(CSOUND *);
1084 
1096  PUBLIC void csoundSetOutput(CSOUND *csound, const char *name,
1097  const char *type, const char *format);
1098 
1106  PUBLIC void csoundGetOutputFormat(CSOUND *csound,char *type,
1107  char *format);
1108 
1112  PUBLIC void csoundSetInput(CSOUND *csound, const char *name);
1113 
1117  PUBLIC void csoundSetMIDIInput(CSOUND *csound, const char *name);
1118 
1122  PUBLIC void csoundSetMIDIFileInput(CSOUND *csound, const char *name);
1123 
1127  PUBLIC void csoundSetMIDIOutput(CSOUND *csound, const char *name);
1128 
1132  PUBLIC void csoundSetMIDIFileOutput(CSOUND *csound, const char *name);
1133 
1134 #if !defined(SWIG)
1135 
1148  void (*func)(CSOUND*, const char*,
1149  int, int, int));
1150 #endif
1151 
1160  PUBLIC void csoundSetRTAudioModule(CSOUND *csound, const char *module);
1161 
1175  PUBLIC int csoundGetModule(CSOUND *csound, int number,
1176  char **name, char **type);
1177 
1182 
1187 
1194 
1201 
1207  PUBLIC MYFLT *csoundGetSpin(CSOUND *);
1208 
1212  PUBLIC void csoundClearSpin(CSOUND *);
1213 
1221  PUBLIC void csoundAddSpinSample(CSOUND *csound,
1222  int frame, int channel, MYFLT sample);
1223 
1229  PUBLIC void csoundSetSpinSample(CSOUND *csound,
1230  int frame, int channel, MYFLT sample);
1231 
1237  PUBLIC MYFLT *csoundGetSpout(CSOUND *csound);
1238 
1245  PUBLIC MYFLT csoundGetSpoutSample(CSOUND *csound, int frame, int channel);
1246 
1251 
1256 
1268  int state, int bufSize);
1269 
1270 
1294  PUBLIC int csoundGetAudioDevList(CSOUND *csound,
1295  CS_AUDIODEVICE *list, int isOutput);
1296 
1301  PUBLIC void
1303  int (*playopen__)(CSOUND *,
1304  const csRtAudioParams *parm));
1305 
1311  void (*rtplay__)(CSOUND *,
1312  const MYFLT *outBuf,
1313  int nbytes));
1314 
1320  int (*recopen_)(CSOUND *,
1321  const csRtAudioParams *parm));
1322 
1328  int (*rtrecord__)(CSOUND *,
1329  MYFLT *inBuf,
1330  int nbytes));
1331 
1336  PUBLIC void csoundSetRtcloseCallback(CSOUND *, void (*rtclose__)(CSOUND *));
1337 
1344  int (*audiodevlist__)(CSOUND *,
1345  CS_AUDIODEVICE *list,
1346  int isOutput));
1347 
1356  PUBLIC void csoundSetMIDIModule(CSOUND *csound, const char *module);
1357 
1363  int state);
1364 
1377  PUBLIC int csoundGetMIDIDevList(CSOUND *csound,
1378  CS_MIDIDEVICE *list, int isOutput);
1379 
1384  int (*func)(CSOUND *,
1385  void **userData,
1386  const char *devName));
1387 
1392  int (*func)(CSOUND *,
1393  void *userData,
1394  unsigned char *buf,
1395  int nBytes));
1396 
1401  int (*func)(CSOUND *,
1402  void *userData));
1403 
1408  int (*func)(CSOUND *,
1409  void **userData,
1410  const char *devName));
1411 
1416  int (*func)(CSOUND *,
1417  void *userData,
1418  const unsigned char *buf,
1419  int nBytes));
1420 
1425  int (*func)(CSOUND *,
1426  void *userData));
1427 
1432  const char *(*func)(int));
1433 
1434 
1441  int (*mididevlist__)(CSOUND *,
1442  CS_MIDIDEVICE *list,
1443  int isOutput));
1444 
1455  PUBLIC int csoundReadScore(CSOUND *csound, const char *str);
1456 
1460  PUBLIC void csoundReadScoreAsync(CSOUND *csound, const char *str);
1461 
1466  PUBLIC double csoundGetScoreTime(CSOUND *);
1467 
1473 
1482  PUBLIC void csoundSetScorePending(CSOUND *, int pending);
1483 
1489 
1499  PUBLIC void csoundSetScoreOffsetSeconds(CSOUND *, MYFLT time);
1500 
1506 
1514  void (*cscoreCallback_)(CSOUND *));
1515 
1522  PUBLIC int csoundScoreSort(CSOUND *, FILE *inFile, FILE *outFile);
1523 
1532  FILE *inFile, FILE *outFile, FILE *extractFile);
1533 
1542  PUBLIC CS_PRINTF2 void csoundMessage(CSOUND *, const char *format, ...);
1543 
1549  PUBLIC CS_PRINTF3 void csoundMessageS(CSOUND *,
1550  int attr, const char *format, ...);
1551 
1552  PUBLIC void csoundMessageV(CSOUND *,
1553  int attr, const char *format, va_list args);
1554 
1555  PUBLIC void csoundSetDefaultMessageCallback(void (*csoundMessageCallback_)(
1556  CSOUND *,
1557  int attr,
1558  const char *format,
1559  va_list valist));
1560 
1566  void (*csoundMessageCallback_)(CSOUND *,
1567  int attr,
1568  const char *format,
1569  va_list valist));
1570 
1577  void (*csoundMessageStrCallback)(CSOUND *csound,
1578  int attr,
1579  const char *str));
1580 
1585 
1589  PUBLIC void csoundSetMessageLevel(CSOUND *, int messageLevel);
1590 
1605  PUBLIC void csoundCreateMessageBuffer(CSOUND *csound, int toStdOut);
1606 
1610  PUBLIC const char* csoundGetFirstMessage(CSOUND *csound);
1611 
1617 
1621  PUBLIC void csoundPopFirstMessage(CSOUND *csound);
1622 
1626  PUBLIC int csoundGetMessageCnt(CSOUND *csound);
1627 
1632 
1684  MYFLT **p, const char *name, int type);
1685 
1697 
1702 
1712  PUBLIC int csoundSetControlChannelHints(CSOUND *, const char *name,
1713  controlChannelHints_t hints);
1714 
1727  PUBLIC int csoundGetControlChannelHints(CSOUND *, const char *name,
1728  controlChannelHints_t *hints);
1729 
1736  PUBLIC int *csoundGetChannelLock(CSOUND *, const char *name);
1737 
1743  PUBLIC MYFLT csoundGetControlChannel(CSOUND *csound, const char *name,
1744  int *err);
1745 
1749  PUBLIC void csoundSetControlChannel(CSOUND *csound,
1750  const char *name, MYFLT val);
1751 
1756  PUBLIC void csoundGetAudioChannel(CSOUND *csound,
1757  const char *name, MYFLT *samples);
1758 
1763  PUBLIC void csoundSetAudioChannel(CSOUND *csound,
1764  const char *name, MYFLT *samples);
1765 
1771  PUBLIC void csoundGetStringChannel(CSOUND *csound,
1772  const char *name, char *string);
1773 
1777  PUBLIC void csoundSetStringChannel(CSOUND *csound,
1778  const char *name, char *string);
1779 
1787  PUBLIC int csoundGetChannelDatasize(CSOUND *csound, const char *name);
1788 
1791  PUBLIC void
1793  channelCallback_t inputChannelCalback);
1794 
1797  PUBLIC void
1799  channelCallback_t outputChannelCalback);
1800 
1807  PUBLIC int csoundSetPvsChannel(CSOUND *, const PVSDATEXT *fin,
1808  const char *name);
1809 
1816  PUBLIC int csoundGetPvsChannel(CSOUND *csound, PVSDATEXT *fout,
1817  const char *name);
1818 
1827  char type, const MYFLT *pFields, long numFields);
1828 
1833  char type, const MYFLT *pFields, long numFields);
1834 
1841  char type, const MYFLT *pfields, long numFields, double time_ofs);
1842 
1847  char type, const MYFLT *pfields, long numFields, double time_ofs);
1852  PUBLIC void csoundInputMessage(CSOUND *, const char *message);
1853 
1857  PUBLIC void csoundInputMessageAsync(CSOUND *, const char *message);
1858 
1869  PUBLIC int csoundKillInstance(CSOUND *csound, MYFLT instr,
1870  char *instrName, int mode, int allow_release);
1871 
1872 
1886  void (*func)(CSOUND *, void *),
1887  void *userData);
1888 
1895  PUBLIC void csoundKeyPress(CSOUND *, char c);
1896 
1936  int (*func)(void *userData, void *p,
1937  unsigned int type),
1938  void *userData, unsigned int type);
1939 
1944  int (*func)(void *, void *, unsigned int));
1945 
1954  PUBLIC int csoundTableLength(CSOUND *, int table);
1955 
1960  PUBLIC MYFLT csoundTableGet(CSOUND *, int table, int index);
1961 
1966  PUBLIC void csoundTableSet(CSOUND *, int table, int index, MYFLT value);
1967 
1968 
1974  PUBLIC void csoundTableCopyOut(CSOUND *csound, int table, MYFLT *dest);
1975 
1979  PUBLIC void csoundTableCopyOutAsync(CSOUND *csound, int table, MYFLT *dest);
1985  PUBLIC void csoundTableCopyIn(CSOUND *csound, int table, MYFLT *src);
1986 
1990  PUBLIC void csoundTableCopyInAsync(CSOUND *csound, int table, MYFLT *src);
1991 
1998  PUBLIC int csoundGetTable(CSOUND *, MYFLT **tablePtr, int tableNum);
1999 
2009  PUBLIC int csoundGetTableArgs(CSOUND *csound, MYFLT **argsPtr, int tableNum);
2010 
2016  PUBLIC int csoundIsNamedGEN(CSOUND *csound, int num);
2017 
2022  PUBLIC void csoundGetNamedGEN(CSOUND *csound, int num, char *name, int len);
2023 
2032  PUBLIC int csoundSetIsGraphable(CSOUND *, int isGraphable);
2033 
2038  void (*makeGraphCallback_)(CSOUND *,
2039  WINDAT *windat,
2040  const char *name));
2041 
2046  void (*drawGraphCallback_)(CSOUND *,
2047  WINDAT *windat));
2048 
2053  void (*killGraphCallback_)(CSOUND *,
2054  WINDAT *windat));
2055 
2060  int (*exitGraphCallback_)(CSOUND *));
2061 
2070  PUBLIC void *csoundGetNamedGens(CSOUND *);
2071 
2078  PUBLIC int csoundNewOpcodeList(CSOUND *, opcodeListEntry **opcodelist);
2079 
2084 
2092  PUBLIC int csoundAppendOpcode(CSOUND *, const char *opname,
2093  int dsblksiz, int flags, int thread,
2094  const char *outypes, const char *intypes,
2095  int (*iopadr)(CSOUND *, void *),
2096  int (*kopadr)(CSOUND *, void *),
2097  int (*aopadr)(CSOUND *, void *));
2098 
2113  PUBLIC void csoundSetYieldCallback(CSOUND *, int (*yieldCallback_)(CSOUND *));
2114 
2121  PUBLIC void *csoundCreateThread(uintptr_t (*threadRoutine)(void *),
2122  void *userdata);
2123 
2133  PUBLIC void *csoundGetCurrentThreadId(void);
2134 
2139  PUBLIC uintptr_t csoundJoinThread(void *thread);
2144  PUBLIC void *csoundCreateThreadLock(void);
2145 
2154  PUBLIC int csoundWaitThreadLock(void *lock, size_t milliseconds);
2155 
2161  PUBLIC void csoundWaitThreadLockNoTimeout(void *lock);
2162 
2166  PUBLIC void csoundNotifyThreadLock(void *lock);
2167 
2171  PUBLIC void csoundDestroyThreadLock(void *lock);
2172 
2186  PUBLIC void *csoundCreateMutex(int isRecursive);
2187 
2193  PUBLIC void csoundLockMutex(void *mutex_);
2194 
2202  PUBLIC int csoundLockMutexNoWait(void *mutex_);
2203 
2210  PUBLIC void csoundUnlockMutex(void *mutex_);
2211 
2216  PUBLIC void csoundDestroyMutex(void *mutex_);
2217 
2218 
2224  PUBLIC void *csoundCreateBarrier(unsigned int max);
2225 
2229  PUBLIC int csoundDestroyBarrier(void *barrier);
2230 
2234  PUBLIC int csoundWaitBarrier(void *barrier);
2235 
2236 
2238  PUBLIC void* csoundCreateCondVar();
2239 
2241  PUBLIC void csoundCondWait(void* condVar, void* mutex);
2242 
2244  PUBLIC void csoundCondSignal(void* condVar);
2245 
2250  PUBLIC void csoundSleep(size_t milliseconds);
2251 
2274  PUBLIC int csoundSpinLockInit(spin_lock_t *spinlock);
2275 
2279  PUBLIC void csoundSpinLock(spin_lock_t *spinlock);
2280 
2285  PUBLIC int csoundSpinTryLock(spin_lock_t *spinlock);
2286 
2290  PUBLIC void csoundSpinUnLock(spin_lock_t *spinlock);
2291 
2292 
2310  PUBLIC long csoundRunCommand(const char * const *argv, int noWait);
2311 
2316 
2321  PUBLIC double csoundGetRealTime(RTCLOCK *);
2322 
2327  PUBLIC double csoundGetCPUTime(RTCLOCK *);
2328 
2332  PUBLIC uint32_t csoundGetRandomSeedFromTime(void);
2333 
2346  PUBLIC void csoundSetLanguage(cslanguage_t lang_code);
2347 
2355  PUBLIC const char *csoundGetEnv(CSOUND *csound, const char *name);
2356 
2364  PUBLIC int csoundSetGlobalEnv(const char *name, const char *value);
2365 
2375  const char *name, size_t nbytes);
2376 
2381  PUBLIC void *csoundQueryGlobalVariable(CSOUND *, const char *name);
2382 
2389  PUBLIC void *csoundQueryGlobalVariableNoCheck(CSOUND *, const char *name);
2390 
2396  PUBLIC int csoundDestroyGlobalVariable(CSOUND *, const char *name);
2397 
2404  PUBLIC int csoundRunUtility(CSOUND *, const char *name,
2405  int argc, char **argv);
2406 
2414  PUBLIC char **csoundListUtilities(CSOUND *);
2415 
2419  PUBLIC void csoundDeleteUtilityList(CSOUND *, char **lst);
2420 
2427  const char *utilName);
2428 
2436  PUBLIC int csoundRand31(int *seedVal);
2437 
2444  const uint32_t *initKey, uint32_t keyLength);
2445 
2450  PUBLIC uint32_t csoundRandMT(CsoundRandMTState *p);
2451 
2452 #endif /* !CSOUND_CSDL_H */
2453 
2454  /* typedefs, macros, and interface functions for configuration variables */
2455 #include "cfgvar.h"
2456  /* message attribute definitions for csoundMessageS() and csoundMessageV() */
2457 #include "msg_attr.h"
2458  /* macro definitions for Csound release, and API version */
2459 #include "version.h"
2460 
2469  int numelem, int elemsize);
2470 
2480  PUBLIC int csoundReadCircularBuffer(CSOUND *csound, void *circular_buffer,
2481  void *out, int items);
2482 
2491  PUBLIC int csoundPeekCircularBuffer(CSOUND *csound, void *circular_buffer,
2492  void *out, int items);
2493 
2503  PUBLIC int csoundWriteCircularBuffer(CSOUND *csound, void *p,
2504  const void *inp, int items);
2511  PUBLIC void csoundFlushCircularBuffer(CSOUND *csound, void *p);
2512 
2516  PUBLIC void csoundDestroyCircularBuffer(CSOUND *csound, void *circularbuffer);
2517 
2521  PUBLIC int csoundOpenLibrary(void **library, const char *libraryPath);
2522 
2526  PUBLIC int csoundCloseLibrary(void *library);
2527 
2531  PUBLIC void *csoundGetLibrarySymbol(void *library, const char *symbolName);
2532 
2533 
2536 #ifdef SWIGPYTHON
2537 
2538  PUBLIC CSOUND *csoundGetInstance(int64_t obj){ return (CSOUND *)obj; }
2539 
2540 #endif
2541 
2542 
2543 #ifdef SOME_FINE_DAY /* these functions are now deprecated */
2544 
2551  PUBLIC int csoundQueryInterface(const char *name,
2552  void **iface, int *version);
2553 
2554 
2570  PUBLIC void csoundSetInputValueCallback(CSOUND *,
2571  void (*inputValueCalback_)(CSOUND *,
2572  const char *channelName,
2573  MYFLT *value));
2574 
2584  PUBLIC void csoundSetOutputValueCallback(CSOUND *,
2585  void (*outputValueCalback_)(CSOUND *,
2586  const char *channelName,
2587  MYFLT value));
2588 
2611  PUBLIC void csoundSetChannelIOCallback(CSOUND *,
2612  CsoundChannelIOCallback_t func);
2613 
2623  PUBLIC int csoundPerformKsmpsAbsolute(CSOUND *);
2624 #endif
2625 
2626 
2627 #ifdef __cplusplus
2628 }
2629 #endif
2630 
2631 #endif /* CSOUND_H */
char * intypes
Definition: csound.h:563
PUBLIC void csoundPopFirstMessage(CSOUND *csound)
Definition: csound.h:414
Definition: csound.h:617
Definition: csound.h:376
PUBLIC int csoundRunUtility(CSOUND *, const char *name, int argc, char **argv)
Definition: csound.h:391
Definition: csound.h:450
Definition: csound.h:390
PUBLIC void csoundTableCopyOutAsync(CSOUND *csound, int table, MYFLT *dest)
PUBLIC int csoundGetMessageLevel(CSOUND *)
int midi_key_cps
Definition: csound.h:493
int flags
Definition: csound.h:564
PUBLIC int csoundOpenLibrary(void **library, const char *libraryPath)
PUBLIC void csoundScoreEventAbsoluteAsync(CSOUND *, char type, const MYFLT *pfields, long numFields, double time_ofs)
Definition: csound.h:431
PUBLIC int csoundNewOpcodeList(CSOUND *, opcodeListEntry **opcodelist)
Definition: csound.h:424
PUBLIC void csoundDeleteTree(CSOUND *csound, TREE *tree)
PUBLIC int csoundCompile(CSOUND *, int argc, const char **argv)
Definition: csound.h:624
Definition: csound.h:574
char * name
Definition: csound.h:654
PUBLIC void csoundSetScoreOffsetSeconds(CSOUND *, MYFLT time)
PUBLIC void csoundSetMIDIInput(CSOUND *csound, const char *name)
PUBLIC int csoundInitialize(int flags)
PUBLIC void * csoundGetLibrarySymbol(void *library, const char *symbolName)
PUBLIC int csoundSetGlobalEnv(const char *name, const char *value)
PUBLIC int64_t csoundGetCurrentTimeSamples(CSOUND *csound)
PUBLIC CS_PRINTF2 void csoundMessage(CSOUND *, const char *format,...)
PUBLIC void csoundSetDebug(CSOUND *, int debug)
PUBLIC MYFLT * csoundGetSpin(CSOUND *)
PUBLIC uint32_t csoundGetNchnlsInput(CSOUND *csound)
int32 overlap
Definition: csound.h:578
Definition: csound.h:393
double fvalue
Definition: csound.h:590
PUBLIC void csoundGetStringChannel(CSOUND *csound, const char *name, char *string)
PUBLIC int csoundCompileTreeAsync(CSOUND *csound, TREE *root)
Definition: csound.h:443
PUBLIC void csoundSetExternalMidiInCloseCallback(CSOUND *, int(*func)(CSOUND *, void *userData))
PUBLIC int csoundGetModule(CSOUND *csound, int number, char **name, char **type)
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 *))
Definition: csound.h:441
PUBLIC void csoundRewindScore(CSOUND *)
int debug_mode
Definition: csound.h:478
void(* channelCallback_t)(CSOUND *csound, const char *channelName, void *channelValuePtr, const void *channelType)
Definition: csound.h:659
Definition: csound.h:392
struct xyindat_ XYINDAT
Definition: csound.h:469
PUBLIC int csoundGetControlChannelHints(CSOUND *, const char *name, controlChannelHints_t *hints)
PUBLIC void csoundSetCscoreCallback(CSOUND *, void(*cscoreCallback_)(CSOUND *))
Definition: csound.h:375
Definition: csound.h:338
char * opname
Definition: csound.h:561
PUBLIC int csoundUDPConsole(CSOUND *csound, const char *addr, int port, int mirror)
PUBLIC void csoundSetMessageCallback(CSOUND *, void(*csoundMessageCallback_)(CSOUND *, int attr, const char *format, va_list valist))
PUBLIC void csoundSetScorePending(CSOUND *, int pending)
int postscript_graphs
Definition: csound.h:483
PUBLIC void * csoundGetHostData(CSOUND *)
int use_cscore
Definition: csound.h:487
PUBLIC void csoundSetExternalMidiWriteCallback(CSOUND *, int(*func)(CSOUND *, void *userData, const unsigned char *buf, int nBytes))
Definition: csound.h:395
Definition: csound.h:567
Definition: csound.h:372
PUBLIC void csoundSetAudioDeviceListCallback(CSOUND *csound, int(*audiodevlist__)(CSOUND *, CS_AUDIODEVICE *list, int isOutput))
PUBLIC void csoundSetExternalMidiInOpenCallback(CSOUND *, int(*func)(CSOUND *, void **userData, const char *devName))
PUBLIC MYFLT csoundGet0dBFS(CSOUND *)
int nchnls_override
Definition: csound.h:507
int csd_line_counts
Definition: csound.h:501
PUBLIC void csoundSetStringChannel(CSOUND *csound, const char *name, char *string)
PUBLIC int csoundGetTable(CSOUND *, MYFLT **tablePtr, int tableNum)
int realtime_mode
Definition: csound.h:503
int32 format
Definition: csound.h:581
Definition: csound.h:387
PUBLIC void csoundSetHostData(CSOUND *, void *hostData)
PUBLIC void csoundSetRTAudioModule(CSOUND *csound, const char *module)
int ascii_graphs
Definition: csound.h:482
PUBLIC int csoundGetAPIVersion(void)
char * optype
Definition: csound.h:591
Definition: csound.h:449
int type
Definition: csound.h:587
PUBLIC void csoundDestroy(CSOUND *)
Definition: csound.h:408
Definition: csound.h:422
Definition: csound.h:399
PUBLIC MYFLT * csoundGetOutputBuffer(CSOUND *)
MYFLT sample_rate_override
Definition: csound.h:505
int midi_key_pch
Definition: csound.h:495
PUBLIC void csoundSetExternalMidiOutOpenCallback(CSOUND *, int(*func)(CSOUND *, void **userData, const char *devName))
PUBLIC void csoundSeedRandMT(CsoundRandMTState *p, const uint32_t *initKey, uint32_t keyLength)
PUBLIC void csoundDeleteUtilityList(CSOUND *, char **lst)
PUBLIC void csoundSetExternalMidiOutCloseCallback(CSOUND *, int(*func)(CSOUND *, void *userData))
PUBLIC int csoundRand31(int *seedVal)
struct CsoundRandMTState_ CsoundRandMTState
PUBLIC void csoundSetRecopenCallback(CSOUND *, int(*recopen_)(CSOUND *, const csRtAudioParams *parm))
Definition: csound.h:418
PUBLIC int csoundGetFirstMessageAttr(CSOUND *csound)
PUBLIC CSOUND * csoundCreate(void *hostData)
PUBLIC long csoundGetOutputBufferSize(CSOUND *)
int isOutput
Definition: csound.h:523
Definition: csound.h:403
PUBLIC int csoundSetIsGraphable(CSOUND *, int isGraphable)
PUBLIC int csoundLockMutexNoWait(void *mutex_)
Definition: csound.h:595
unsigned int bufSamp_SW
Definition: csound.h:544
Definition: csound.h:555
PUBLIC CS_PRINTF3 void csoundMessageS(CSOUND *, int attr, const char *format,...)
PUBLIC int csoundGetTableArgs(CSOUND *csound, MYFLT **argsPtr, int tableNum)
PUBLIC int csoundUDPServerStart(CSOUND *csound, unsigned int port)
PUBLIC void csoundDestroyThreadLock(void *lock)
PUBLIC double csoundGetRealTime(RTCLOCK *)
PUBLIC int csoundListChannels(CSOUND *, controlChannelInfo_t **lst)
PUBLIC MYFLT csoundGetSpoutSample(CSOUND *csound, int frame, int channel)
int ring_bell
Definition: csound.h:486
PUBLIC void csoundGetOutputFormat(CSOUND *csound, char *type, char *format)
int len
Definition: csound.h:599
PUBLIC void csoundSetMIDIFileInput(CSOUND *csound, const char *name)
int height
Definition: csound.h:648
PUBLIC int csoundSpinTryLock(spin_lock_t *spinlock)
PUBLIC void csoundReadScoreAsync(CSOUND *csound, const char *str)
PUBLIC void csoundAddSpinSample(CSOUND *csound, int frame, int channel, MYFLT sample)
Definition: csound.h:586
PUBLIC void ** csoundGetRtRecordUserData(CSOUND *)
PUBLIC void csoundDestroyMutex(void *mutex_)
PUBLIC void csoundSpinUnLock(spin_lock_t *spinlock)
PUBLIC void * csoundCreateCircularBuffer(CSOUND *csound, int numelem, int elemsize)
struct ORCTOKEN * next
Definition: csound.h:592
Definition: csound.h:332
PUBLIC long csoundRunCommand(const char *const *argv, int noWait)
PUBLIC void csoundSetFileOpenCallback(CSOUND *p, void(*func)(CSOUND *, const char *, int, int, int))
PUBLIC MYFLT csoundEvalCode(CSOUND *csound, const char *str)
int nChannels
Definition: csound.h:548
PUBLIC void csoundSetMIDIModule(CSOUND *csound, const char *module)
Definition: csound.h:425
int number_of_threads
Definition: csound.h:499
PUBLIC const char * csoundGetFirstMessage(CSOUND *csound)
controlChannelType
Definition: csound.h:615
PUBLIC char ** csoundListUtilities(CSOUND *)
PUBLIC void csoundGetNamedGEN(CSOUND *csound, int num, char *name, int len)
Definition: csound.h:430
PUBLIC void csoundInputMessageAsync(CSOUND *, const char *message)
Definition: csound.h:417
int width
Definition: csound.h:647
Definition: csound.h:383
Definition: csound.h:620
PUBLIC int csoundInitializeCscore(CSOUND *, FILE *insco, FILE *outsco)
PUBLIC TREE * csoundParseOrc(CSOUND *csound, const char *str)
PUBLIC void * csoundCreateThreadLock(void)
Definition: csound.h:622
int midi_velocity_amp
Definition: csound.h:497
Definition: csound.h:419
int x
Definition: csound.h:645
int sliding
Definition: csound.h:576
PUBLIC int csoundReadScore(CSOUND *csound, const char *str)
PUBLIC void csoundSetRtplayCallback(CSOUND *, void(*rtplay__)(CSOUND *, const MYFLT *outBuf, int nbytes))
PUBLIC void csoundSetDefaultMessageCallback(void(*csoundMessageCallback_)(CSOUND *, int attr, const char *format, va_list valist))
Definition: csound.h:336
PUBLIC void * csoundGetNamedGens(CSOUND *)
PUBLIC const char * csoundGetOutputName(CSOUND *)
int heartbeat
Definition: csound.h:490
Definition: csound.h:398
PUBLIC void csoundSetInputChannelCallback(CSOUND *csound, channelCallback_t inputChannelCalback)
PUBLIC void csoundInitTimerStruct(RTCLOCK *)
int_least64_t starttime_real
Definition: csound.h:556
PUBLIC void csoundWaitThreadLockNoTimeout(void *lock)
Definition: csound.h:377
CSOUND_STATUS
Definition: csound.h:327
Definition: csound.h:412
int daemon
Definition: csound.h:510
int terminate_on_midi
Definition: csound.h:488
PUBLIC void csoundSetControlChannel(CSOUND *csound, const char *name, MYFLT val)
PUBLIC void csoundNotifyThreadLock(void *lock)
PUBLIC void csoundSetExternalMidiErrorStringCallback(CSOUND *, const char *(*func)(int))
struct TREE * next
Definition: csound.h:604
PUBLIC int * csoundGetChannelLock(CSOUND *, const char *name)
PUBLIC int csoundSpinLockInit(spin_lock_t *spinlock)
int message_level
Definition: csound.h:484
int tempo
Definition: csound.h:485
PUBLIC void csoundFlushCircularBuffer(CSOUND *csound, void *p)
PUBLIC void csoundCreateMessageBuffer(CSOUND *csound, int toStdOut)
#define PUBLIC
Definition: csound.h:272
controlChannelBehavior behav
Definition: csound.h:640
Definition: csound.h:618
PUBLIC MYFLT * csoundGetInputBuffer(CSOUND *)
PUBLIC void csoundSetLanguage(cslanguage_t lang_code)
Definition: csound.h:629
Definition: csound.h:407
int mti
Definition: csound.h:568
PUBLIC MYFLT csoundTableGet(CSOUND *, int table, int index)
PUBLIC void csoundSetParams(CSOUND *csound, CSOUND_PARAMS *p)
int hardware_buffer_frames
Definition: csound.h:480
PUBLIC void csoundTableSet(CSOUND *, int table, int index, MYFLT value)
struct pvsdat_ext PVSDATEXT
Definition: csound.h:400
Definition: csound.h:405
Definition: csound.h:639
int defer_gen01_load
Definition: csound.h:491
Definition: csound.h:436
int line
Definition: csound.h:600
PUBLIC int csoundRegisterKeyboardCallback(CSOUND *, int(*func)(void *userData, void *p, unsigned int type), void *userData, unsigned int type)
PUBLIC void csoundSetAudioChannel(CSOUND *csound, const char *name, MYFLT *samples)
MYFLT e0dbfs_override
Definition: csound.h:509
PUBLIC int csoundCompileTree(CSOUND *csound, TREE *root)
PUBLIC void * csoundCreateBarrier(unsigned int max)
char * attributes
Definition: csound.h:650
PUBLIC int csoundPerformBuffer(CSOUND *)
Definition: csound.h:385
int y
Definition: csound.h:646
PUBLIC void csoundGetParams(CSOUND *csound, CSOUND_PARAMS *p)
Definition: csound.h:389
Definition: csound.h:631
Definition: csound.h:384
Definition: csound.h:421
PUBLIC uint32_t csoundRandMT(CsoundRandMTState *p)
PUBLIC void csoundSetExitGraphCallback(CSOUND *, int(*exitGraphCallback_)(CSOUND *))
Definition: csound.h:451
Definition: csound.h:330
struct TREE TREE
void PUBLIC csoundDestroyMessageBuffer(CSOUND *csound)
Definition: csound.h:388
Definition: csound.h:442
PUBLIC void csoundSetMIDIDeviceListCallback(CSOUND *csound, int(*mididevlist__)(CSOUND *, CS_MIDIDEVICE *list, int isOutput))
int rate
Definition: csound.h:598
PUBLIC uint32_t csoundGetKsmps(CSOUND *)
PUBLIC int csoundScoreEvent(CSOUND *, char type, const MYFLT *pFields, long numFields)
Definition: csound.h:616
Definition: csound.h:429
PUBLIC int csoundScoreEventAbsolute(CSOUND *, char type, const MYFLT *pfields, long numFields, double time_ofs)
PUBLIC void csoundClearSpin(CSOUND *)
PUBLIC int csoundGetMIDIDevList(CSOUND *csound, CS_MIDIDEVICE *list, int isOutput)
PUBLIC int csoundSetOption(CSOUND *csound, const char *option)
PUBLIC void csoundSetSpinSample(CSOUND *csound, int frame, int channel, MYFLT sample)
PUBLIC int csoundCompileOrc(CSOUND *csound, const char *str)
Definition: csound.h:423
struct TREE * right
Definition: csound.h:603
Definition: csound.h:406
int_least64_t starttime_CPU
Definition: csound.h:557
Definition: csound.h:401
PUBLIC void csoundSleep(size_t milliseconds)
PUBLIC void csoundSetKillGraphCallback(CSOUND *, void(*killGraphCallback_)(CSOUND *, WINDAT *windat))
MYFLT control_rate_override
Definition: csound.h:506
PUBLIC const char * csoundGetEnv(CSOUND *csound, const char *name)
struct ORCTOKEN ORCTOKEN
Definition: csound.h:378
int devNum
Definition: csound.h:542
PUBLIC int csoundStart(CSOUND *csound)
PUBLIC int csoundPerformKsmps(CSOUND *)
int wintype
Definition: csound.h:580
Definition: csound.h:386
int32 NB
Definition: csound.h:577
PUBLIC void csoundSetMIDIOutput(CSOUND *csound, const char *name)
PUBLIC void csoundDisposeOpcodeList(CSOUND *, opcodeListEntry *opcodelist)
PUBLIC void csoundSetMessageStringCallback(CSOUND *csound, void(*csoundMessageStrCallback)(CSOUND *csound, int attr, const char *str))
PUBLIC void csoundSetYieldCallback(CSOUND *, int(*yieldCallback_)(CSOUND *))
Definition: csound.h:402
PUBLIC int csoundRegisterSenseEventCallback(CSOUND *, void(*func)(CSOUND *, void *), void *userData)
PUBLIC int csoundGetSizeOfMYFLT(void)
PUBLIC int csoundIsScorePending(CSOUND *)
MYFLT min
Definition: csound.h:643
PUBLIC int csoundGetPvsChannel(CSOUND *csound, PVSDATEXT *fout, const char *name)
PUBLIC void csoundSetMIDIFileOutput(CSOUND *csound, const char *name)
PUBLIC MYFLT csoundGetKr(CSOUND *)
PUBLIC int csoundPeekCircularBuffer(CSOUND *csound, void *circular_buffer, void *out, int items)
PUBLIC uintptr_t csoundJoinThread(void *thread)
PUBLIC void csoundSetInput(CSOUND *csound, const char *name)
int bufSamp_HW
Definition: csound.h:546
PUBLIC MYFLT csoundGetA4(CSOUND *)
ORCTOKEN * value
Definition: csound.h:597
int32 N
Definition: csound.h:575
int value
Definition: csound.h:589
PUBLIC void csoundTableCopyOut(CSOUND *csound, int table, MYFLT *dest)
PUBLIC void csoundCondSignal(void *condVar)
Definition: csound.h:370
PUBLIC int csoundGetVersion(void)
Definition: csound.h:371
int midi_key_oct
Definition: csound.h:494
PUBLIC void csoundSetHostImplementedAudioIO(CSOUND *, int state, int bufSize)
Definition: csound.h:413
PUBLIC int csoundDestroyGlobalVariable(CSOUND *, const char *name)
struct TREE * left
Definition: csound.h:602
PUBLIC MYFLT csoundGetSr(CSOUND *)
PUBLIC int csoundWaitThreadLock(void *lock, size_t milliseconds)
uint32 framecount
Definition: csound.h:582
PUBLIC int csoundSetPvsChannel(CSOUND *, const PVSDATEXT *fin, const char *name)
PUBLIC int csoundPerform(CSOUND *)
Definition: csound.h:435
PUBLIC void csoundDeleteChannelList(CSOUND *, controlChannelInfo_t *lst)
int midi_key
Definition: csound.h:492
PUBLIC double csoundGetCPUTime(RTCLOCK *)
PUBLIC void * csoundCreateCondVar()
PUBLIC void csoundMessageV(CSOUND *, int attr, const char *format, va_list args)
struct controlChannelInfo_s controlChannelInfo_t
PUBLIC void csoundSetDrawGraphCallback(CSOUND *, void(*drawGraphCallback_)(CSOUND *, WINDAT *windat))
PUBLIC void csoundTableCopyIn(CSOUND *csound, int table, MYFLT *src)
PUBLIC void * csoundCreateMutex(int isRecursive)
float sampleRate
Definition: csound.h:552
PUBLIC void csoundSpinLock(spin_lock_t *spinlock)
MYFLT dflt
Definition: csound.h:642
PUBLIC void csoundTableCopyInAsync(CSOUND *csound, int table, MYFLT *src)
PUBLIC int csoundWaitBarrier(void *barrier)
PUBLIC int csoundKillInstance(CSOUND *csound, MYFLT instr, char *instrName, int mode, int allow_release)
Definition: csound.h:437
PUBLIC int csoundCreateGlobalVariable(CSOUND *, const char *name, size_t nbytes)
int compute_weights
Definition: csound.h:502
PUBLIC void csoundCondWait(void *condVar, void *mutex)
struct windat_ WINDAT
Definition: csound.h:468
int type
Definition: csound.h:596
PUBLIC void csoundDestroyCircularBuffer(CSOUND *csound, void *circularbuffer)
int syntax_check_only
Definition: csound.h:500
Definition: csound.h:632
PUBLIC void csoundSetMessageLevel(CSOUND *, int messageLevel)
PUBLIC void csoundStop(CSOUND *)
Definition: csound.h:426
Definition: csound.h:452
PUBLIC int csoundReadCircularBuffer(CSOUND *csound, void *circular_buffer, void *out, int items)
PUBLIC int csoundCompileCsd(CSOUND *csound, const char *csd_filename)
PUBLIC double csoundGetScoreTime(CSOUND *)
int midi_velocity
Definition: csound.h:496
PUBLIC void * csoundGetCurrentThreadId(void)
PUBLIC int csoundCloseLibrary(void *library)
Definition: csound.h:477
controlChannelBehavior
Definition: csound.h:628
Definition: csound.h:538
struct CSOUND_ CSOUND
Definition: csound.h:467
Definition: csound.h:396
PUBLIC int csoundCleanup(CSOUND *)
PUBLIC void csoundSetPlayopenCallback(CSOUND *, int(*playopen__)(CSOUND *, const csRtAudioParams *parm))
Definition: csound.h:374
MYFLT max
Definition: csound.h:644
PUBLIC uint32_t csoundGetNchnls(CSOUND *)
void * markup
Definition: csound.h:605
PUBLIC void csoundRemoveKeyboardCallback(CSOUND *csound, int(*func)(void *, void *, unsigned int))
PUBLIC void csoundReset(CSOUND *)
PUBLIC int csoundCompileArgs(CSOUND *, int argc, const char **argv)
PUBLIC int csoundIsNamedGEN(CSOUND *csound, int num)
int sampleFormat
Definition: csound.h:550
Definition: csound.h:334
Definition: csound.h:397
PUBLIC void * csoundCreateThread(uintptr_t(*threadRoutine)(void *), void *userdata)
Definition: csound.h:340
PUBLIC int csoundGetDebug(CSOUND *)
PUBLIC void csoundSetRtrecordCallback(CSOUND *, int(*rtrecord__)(CSOUND *, MYFLT *inBuf, int nbytes))
PUBLIC int csoundWriteCircularBuffer(CSOUND *csound, void *p, const void *inp, int items)
PUBLIC int csoundGetChannelDatasize(CSOUND *csound, const char *name)
Definition: csound.h:518
struct controlChannelHints_s controlChannelHints_t
int FFT_library
Definition: csound.h:512
Definition: csound.h:625
char * lexeme
Definition: csound.h:588
PUBLIC void ** csoundGetRtPlayUserData(CSOUND *)
CSOUND_FILETYPES
Definition: csound.h:369
PUBLIC int csoundSetControlChannelHints(CSOUND *, const char *name, controlChannelHints_t hints)
struct RTCLOCK_S RTCLOCK
PUBLIC void csoundSetHostImplementedMIDIIO(CSOUND *csound, int state)
Definition: csound.h:394
int sample_accurate
Definition: csound.h:504
Definition: csound.h:653
uint64_t locn
Definition: csound.h:601
PUBLIC void * csoundQueryGlobalVariable(CSOUND *, const char *name)
Definition: csound.h:526
PUBLIC void csoundKeyPress(CSOUND *, char c)
PUBLIC void csoundScoreEventAsync(CSOUND *, char type, const MYFLT *pFields, long numFields)
int isOutput
Definition: csound.h:531
PUBLIC MYFLT csoundGetScoreOffsetSeconds(CSOUND *)
PUBLIC void csoundSetExternalMidiReadCallback(CSOUND *, int(*func)(CSOUND *, void *userData, unsigned char *buf, int nBytes))
Definition: csound.h:619
PUBLIC MYFLT csoundGetControlChannel(CSOUND *csound, const char *name, int *err)
Definition: csound.h:404
PUBLIC long csoundGetInputBufferSize(CSOUND *)
Definition: csound.h:630
PUBLIC int csoundUDPServerClose(CSOUND *csound)
PUBLIC void csoundUnlockMutex(void *mutex_)
PUBLIC void csoundSetMakeGraphCallback(CSOUND *, void(*makeGraphCallback_)(CSOUND *, WINDAT *windat, const char *name))
PUBLIC void csoundInputMessage(CSOUND *, const char *message)
int displays
Definition: csound.h:481
PUBLIC void csoundGetAudioChannel(CSOUND *csound, const char *name, MYFLT *samples)
PUBLIC void csoundSetOutputChannelCallback(CSOUND *csound, channelCallback_t outputChannelCalback)
controlChannelHints_t hints
Definition: csound.h:656
Definition: csound.h:420
PUBLIC int csoundGetMessageCnt(CSOUND *csound)
PUBLIC void csoundLockMutex(void *mutex_)
Definition: csound.h:440
PUBLIC int csoundScoreExtract(CSOUND *, FILE *inFile, FILE *outFile, FILE *extractFile)
PUBLIC int csoundTableLength(CSOUND *, int table)
Definition: csound.h:456
PUBLIC void csoundSetOutput(CSOUND *csound, const char *name, const char *type, const char *format)
PUBLIC void csoundStopUDPConsole(CSOUND *csound)
PUBLIC int csoundGetAudioDevList(CSOUND *csound, CS_AUDIODEVICE *list, int isOutput)
PUBLIC int csoundScoreSort(CSOUND *, FILE *inFile, FILE *outFile)
PUBLIC void * csoundQueryGlobalVariableNoCheck(CSOUND *, const char *name)
char * devName
Definition: csound.h:540
int ksmps_override
Definition: csound.h:511
PUBLIC int csoundUDPServerStatus(CSOUND *csound)
PUBLIC int csoundCompileOrcAsync(CSOUND *csound, const char *str)
Definition: csound.h:560
Definition: csound.h:382
PUBLIC int csoundGetChannelPtr(CSOUND *, MYFLT **p, const char *name, int type)
int nchnls_i_override
Definition: csound.h:508
int max_nchnls
Definition: csound.h:522
PUBLIC const char * csoundGetUtilityDescription(CSOUND *, const char *utilName)
PUBLIC const char * csoundGetInputName(CSOUND *)
PUBLIC uint32_t csoundGetRandomSeedFromTime(void)
int no_default_paths
Definition: csound.h:498
Definition: csound.h:446
int buffer_frames
Definition: csound.h:479
PUBLIC int csoundCompileCsdText(CSOUND *csound, const char *csd_text)
PUBLIC MYFLT * csoundGetSpout(CSOUND *csound)
PUBLIC void csoundSetRtcloseCallback(CSOUND *, void(*rtclose__)(CSOUND *))
char * outypes
Definition: csound.h:562
float * frame
Definition: csound.h:583
Definition: csound.h:379
int32 winsize
Definition: csound.h:579
PUBLIC int csoundDestroyBarrier(void *barrier)
int type
Definition: csound.h:655