Csound and CsoundAC API  5.17
Data Structures | Macros | Typedefs
csoundCore.h File Reference
#include "sysdep.h"
#include <stdarg.h>
#include <setjmp.h>
#include "csound.h"

Data Structures

struct  arglst
struct  argoffs
struct  auxch
struct  CORFIL
struct  CSOUND_
 Contains all function pointers, data, and data pointers required to run one instance of Csound. More...
struct  dklst
struct  DOWNDAT
struct  DPARM
struct  DPEXCL
struct  event
 This struct holds the data for one score event. More...
struct  fdch
struct  FGDATA
struct  FUNC
struct  GEN01ARGS
struct  insds
 This struct holds the info for a concrete instrument event instance in performance. More...
struct  instr
 This struct is filled out by otran() at orch parse time. More...
struct  lblblk
struct  mchnblk
struct  MEMFIL
struct  MEVENT
struct  monblk
struct  NGFENS
struct  OCTDAT
struct  oentry
struct  op
 A chain of TEXT structs. More...
struct  OPARMS
struct  opds
 This struct holds the info for one opcode in a concrete instrument instance in performance. More...
struct  pvx_memfile_
struct  SNDMEMFILE_
struct  SPECDAT
struct  text
 Storage for parsed orchestra code, for each opcode in an INSTRTXT. More...

Macros

#define ALLCHNLS   0x7fff
#define AMPLMSG   01
#define BYTREVL(n)
#define BYTREVS(n)   ((n>>8 & 0xFF) | (n<<8 & 0xFF00))
#define CPSOCTL(n)   ((MYFLT)(1 << ((int)(n) >> 13)) * csound->cpsocfrc[(int)(n) & 8191])
#define CSFILE_FD_R   1
#define CSFILE_FD_W   2
#define CSFILE_SND_R   4
#define CSFILE_SND_W   5
#define CSFILE_STD   3
#define CURTIME   (((double)csound->icurTime)/((double)csound->esr))
#define CURTIME_inc   (((double)csound->ksmps)/((double)csound->esr))
#define DFLT_DBFS   (FL(32768.0))
#define DFLT_KR   FL(4410.0)
#define DFLT_KSMPS   10
#define DFLT_NCHNLS   1
#define DFLT_SR   FL(44100.0)
#define DV32768   FL(0.000030517578125)
#define FLINKAGE1(name)
#define FMAXLEN   ((MYFLT)(MAXLEN))
#define IGN(X)   (void) X
#define INCOUNT   ORTXT.inlist->count
#define INF   (2147483647.0)
#define INOCOUNT   ORTXT.inoffs->count
#define LINKAGE1(name)
#define LOBITS   10
#define LOFACT   1024
#define LOG10D20   0.11512925 /* for db to ampfac */
#define LOMASK   1023
#define LOSCAL   FL(0.0009765625)
#define MAXCHAN   16 /* 16 MIDI channels; only one port for now */
#define MAXCHNLS   256
#define MAXINSNO   (200)
#define MAXLEN   0x1000000L
#define MAXNAME   (256)
#define MAXOCTS   8
#define MAXPOS   0x7FFFFFFFL
#define NOTOK   (-1)
#define OCTRES   8192
#define OK   (0)
#define ONEPT   1.02197486 /* A440 tuning factor */
#define ORTXT   h.optext->t
#define OUTCOUNT   ORTXT.outlist->count /* Not used */
#define OUTOCOUNT   ORTXT.outoffs->count
#define PFRAC(x)   ((MYFLT)((x) & ftp->lomask) * ftp->lodiv)
#define PHMASK   0x0FFFFFFL
#define PI   (3.141592653589793238462643383279502884197)
#define PI_F   ((MYFLT) PI)
#define PMAX   (1998)
#define RAWMSG   0x40
#define RNGEMSG   02
#define SSTRCOD   3945467
#define SSTRCOD1   3945466
#define SSTRCOD2   3945465
#define SSTRCOD3   3945464
#define SSTRSIZ   200
#define TIMEMSG   0x80
#define TWOPI   (6.283185307179586476925286766559005768394)
#define TWOPI_F   ((MYFLT) TWOPI)
#define VARGMAX   (1999)
#define WARNMSG   04
#define XINARG1   (p->XINCODE & 1)
#define XINARG2   (p->XINCODE & 2)
#define XINARG3   (p->XINCODE & 4)
#define XINARG4   (p->XINCODE & 8)
#define XINARG5   (p->XINCODE &16)
#define XINCODE   ORTXT.xincod
#define XOUTCODE   ORTXT.xoutcod
#define XOUTSTRCODE   ORTXT.xoutcod_str
#define XSTRCODE   ORTXT.xincod_str

Typedefs

typedef struct arglst ARGLST
typedef struct argoffs ARGOFFS
typedef struct auxch AUXCH
typedef struct CORFIL CORFIL
typedef struct dklst DKLST
typedef struct event EVTBLK
 This struct holds the data for one score event.
typedef struct fdch FDCH
typedef int(* GEN )(FGDATA *, FUNC *)
typedef struct insds INSDS
 This struct holds the info for a concrete instrument event instance in performance.
typedef struct instr INSTRTXT
 This struct is filled out by otran() at orch parse time.
typedef struct lblblk LBLBLK
typedef struct mchnblk MCHNBLK
typedef struct MEMFIL MEMFIL
typedef struct monblk MONPCH
typedef struct oentry OENTRY
typedef struct opds OPDS
 This struct holds the info for one opcode in a concrete instrument instance in performance.
typedef struct op OPTXT
 A chain of TEXT structs.
typedef struct pvx_memfile_ PVOCEX_MEMFILE
typedef struct SNDMEMFILE_ SNDMEMFILE
typedef int(* SUBR )(CSOUND *, void *)
typedef struct text TEXT
 Storage for parsed orchestra code, for each opcode in an INSTRTXT.

Macro Definition Documentation

#define ALLCHNLS   0x7fff
#define AMPLMSG   01
#define BYTREVL (   n)
Value:
((n>>24 & 0xFF) | (n>>8 & 0xFF00L) | \
(n<<8 & 0xFF0000L) | (n<<24 & 0xFF000000L))
#define BYTREVS (   n)    ((n>>8 & 0xFF) | (n<<8 & 0xFF00))
#define CPSOCTL (   n)    ((MYFLT)(1 << ((int)(n) >> 13)) * csound->cpsocfrc[(int)(n) & 8191])
#define CSFILE_FD_R   1
#define CSFILE_FD_W   2
#define CSFILE_SND_R   4
#define CSFILE_SND_W   5
#define CSFILE_STD   3
#define CURTIME   (((double)csound->icurTime)/((double)csound->esr))
#define CURTIME_inc   (((double)csound->ksmps)/((double)csound->esr))
#define DFLT_DBFS   (FL(32768.0))
#define DFLT_KR   FL(4410.0)
#define DFLT_KSMPS   10
#define DFLT_NCHNLS   1
#define DFLT_SR   FL(44100.0)
#define DV32768   FL(0.000030517578125)
#define FLINKAGE1 (   name)
Value:
NGFENS* name##_init(CSOUND *csound) \
{ (void) csound; return name; }
#define FMAXLEN   ((MYFLT)(MAXLEN))
#define IGN (   X)    (void) X
#define INCOUNT   ORTXT.inlist->count
#define INF   (2147483647.0)
#define INOCOUNT   ORTXT.inoffs->count
#define LINKAGE1 (   name)
Value:
long name##_init(CSOUND *csound, OENTRY **ep) \
{ (void) csound; *ep = name; return (long) (sizeof(name)); }
#define LOBITS   10
#define LOFACT   1024
#define LOG10D20   0.11512925 /* for db to ampfac */
#define LOMASK   1023
#define LOSCAL   FL(0.0009765625)
#define MAXCHAN   16 /* 16 MIDI channels; only one port for now */
#define MAXCHNLS   256
#define MAXINSNO   (200)
#define MAXLEN   0x1000000L
#define MAXNAME   (256)
#define MAXOCTS   8
#define MAXPOS   0x7FFFFFFFL
#define NOTOK   (-1)
#define OCTRES   8192
#define OK   (0)
#define ONEPT   1.02197486 /* A440 tuning factor */
#define ORTXT   h.optext->t
#define OUTCOUNT   ORTXT.outlist->count /* Not used */
#define OUTOCOUNT   ORTXT.outoffs->count
#define PFRAC (   x)    ((MYFLT)((x) & ftp->lomask) * ftp->lodiv)
#define PHMASK   0x0FFFFFFL
#define PI   (3.141592653589793238462643383279502884197)
#define PI_F   ((MYFLT) PI)
#define PMAX   (1998)
#define RAWMSG   0x40
#define RNGEMSG   02
#define SSTRCOD   3945467
#define SSTRCOD1   3945466
#define SSTRCOD2   3945465
#define SSTRCOD3   3945464
#define SSTRSIZ   200
#define TIMEMSG   0x80
#define TWOPI   (6.283185307179586476925286766559005768394)
#define TWOPI_F   ((MYFLT) TWOPI)
#define VARGMAX   (1999)
#define WARNMSG   04
#define XINARG1   (p->XINCODE & 1)
#define XINARG2   (p->XINCODE & 2)
#define XINARG3   (p->XINCODE & 4)
#define XINARG4   (p->XINCODE & 8)
#define XINARG5   (p->XINCODE &16)
#define XINCODE   ORTXT.xincod
#define XOUTCODE   ORTXT.xoutcod
#define XOUTSTRCODE   ORTXT.xoutcod_str
#define XSTRCODE   ORTXT.xincod_str

Typedef Documentation

typedef struct arglst ARGLST
typedef struct argoffs ARGOFFS
typedef struct auxch AUXCH
typedef struct CORFIL CORFIL
typedef struct dklst DKLST
typedef struct event EVTBLK

This struct holds the data for one score event.

typedef struct fdch FDCH
typedef int(* GEN)(FGDATA *, FUNC *)
typedef struct insds INSDS

This struct holds the info for a concrete instrument event instance in performance.

typedef struct instr INSTRTXT

This struct is filled out by otran() at orch parse time.

It is used as a template for instrument events.

typedef struct lblblk LBLBLK
typedef struct mchnblk MCHNBLK
typedef struct MEMFIL MEMFIL
typedef struct monblk MONPCH
typedef struct oentry OENTRY
typedef struct opds OPDS

This struct holds the info for one opcode in a concrete instrument instance in performance.

typedef struct op OPTXT

A chain of TEXT structs.

Note that this is identical with the first two members of struct INSTRTEXT, and is so typecast at various points in code.

typedef struct pvx_memfile_ PVOCEX_MEMFILE
typedef struct SNDMEMFILE_ SNDMEMFILE
typedef int(* SUBR)(CSOUND *, void *)
typedef struct text TEXT

Storage for parsed orchestra code, for each opcode in an INSTRTXT.