csoundCore.h File Reference

#include "sysdep.h"
#include <stdarg.h>
#include <setjmp.h>
#include <sndfile.h>
#include "csound.h"

Include dependency graph for csoundCore.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  OPARMS
struct  arglst
struct  argoffs
struct  text
struct  instr
struct  op
struct  fdch
struct  auxch
struct  monblk
struct  DPEXCL
struct  DPARM
struct  dklst
struct  mchnblk
struct  insds
struct  opds
struct  oentry
struct  lblblk
struct  OCTDAT
struct  DOWNDAT
struct  SPECDAT
struct  event
struct  GEN01ARGS
struct  FUNC
struct  FGDATA
struct  NGFENS
struct  MEMFIL
struct  MEVENT
struct  SNDMEMFILE_
struct  pvx_memfile_
struct  CSOUND_

Defines

#define OK   (0)
#define NOTOK   (-1)
#define CSFILE_FD_R   1
#define CSFILE_FD_W   2
#define CSFILE_STD   3
#define CSFILE_SND_R   4
#define CSFILE_SND_W   5
#define MAXINSNO   (200)
#define PMAX   (1000)
#define VARGMAX   (1001)
#define ORTXT   h.optext->t
#define INCOUNT   ORTXT.inlist->count
#define OUTCOUNT   ORTXT.outlist->count
#define INOCOUNT   ORTXT.inoffs->count
#define OUTOCOUNT   ORTXT.outoffs->count
#define XINCODE   ORTXT.xincod
#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 XOUTCODE   ORTXT.xoutcod
#define XSTRCODE   ORTXT.xincod_str
#define XOUTSTRCODE   ORTXT.xoutcod_str
#define MAXLEN   0x1000000L
#define FMAXLEN   ((MYFLT)(MAXLEN))
#define PHMASK   0x0FFFFFFL
#define PFRAC(x)   ((MYFLT)((x) & ftp->lomask) * ftp->lodiv)
#define MAXPOS   0x7FFFFFFFL
#define BYTREVS(n)   ((n>>8 & 0xFF) | (n<<8 & 0xFF00))
#define BYTREVL(n)
#define OCTRES   8192
#define CPSOCTL(n)   ((MYFLT)(1 << ((int)(n) >> 13)) * cpsocfrc[(int)(n) & 8191])
#define LOBITS   10
#define LOFACT   1024
#define LOSCAL   FL(0.0009765625)
#define LOMASK   1023
#define SSTRCOD   3945467
#define SSTRSIZ   200
#define ALLCHNLS   0x7fff
#define DFLT_SR   FL(44100.0)
#define DFLT_KR   FL(4410.0)
#define DFLT_KSMPS   10
#define DFLT_NCHNLS   1
#define MAXCHNLS   256
#define MAXNAME   (256)
#define DFLT_DBFS   (FL(32768.0))
#define MAXOCTS   8
#define MAXCHAN   16
#define ONEPT   1.02197486
#define LOG10D20   0.11512925
#define DV32768   FL(0.000030517578125)
#define PI   (3.1415926535897932384626433832795)
#define TWOPI   (6.28318530717958647692528676655901)
#define PI_F   ((MYFLT) PI)
#define TWOPI_F   ((MYFLT) TWOPI)
#define AMPLMSG   01
#define RNGEMSG   02
#define WARNMSG   04
#define RAWMSG   0x40
#define TIMEMSG   0x80
#define IGN(X)   (void) X

Typedefs

typedef struct arglst ARGLST
typedef struct argoffs ARGOFFS
typedef struct text TEXT
typedef struct instr INSTRTXT
typedef struct op OPTXT
typedef struct fdch FDCH
typedef struct auxch AUXCH
typedef struct monblk MONPCH
typedef struct dklst DKLST
typedef struct mchnblk MCHNBLK
typedef struct insds INSDS
typedef int(* SUBR )(CSOUND *, void *)
typedef struct opds OPDS
typedef struct oentry OENTRY
typedef struct lblblk LBLBLK
typedef struct event EVTBLK
typedef int(* GEN )(FGDATA *, FUNC *)
typedef struct SNDMEMFILE_ SNDMEMFILE
typedef struct pvx_memfile_ PVOCEX_MEMFILE


Define Documentation

#define ALLCHNLS   0x7fff

#define AMPLMSG   01

#define BYTREVL (  ) 

Value:

((n>>24 & 0xFF) | (n>>8 & 0xFF00L) | \
                    (n<<8 & 0xFF0000L) | (n<<24 & 0xFF000000L))

#define BYTREVS (  )     ((n>>8 & 0xFF) | (n<<8 & 0xFF00))

#define CPSOCTL (  )     ((MYFLT)(1 << ((int)(n) >> 13)) * 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 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 FMAXLEN   ((MYFLT)(MAXLEN))

#define IGN (  )     (void) X

#define INCOUNT   ORTXT.inlist->count

#define INOCOUNT   ORTXT.inoffs->count

#define LOBITS   10

#define LOFACT   1024

#define LOG10D20   0.11512925

#define LOMASK   1023

#define LOSCAL   FL(0.0009765625)

#define MAXCHAN   16

#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

#define ORTXT   h.optext->t

#define OUTCOUNT   ORTXT.outlist->count

#define OUTOCOUNT   ORTXT.outoffs->count

#define PFRAC (  )     ((MYFLT)((x) & ftp->lomask) * ftp->lodiv)

#define PHMASK   0x0FFFFFFL

#define PI   (3.1415926535897932384626433832795)

#define PI_F   ((MYFLT) PI)

#define PMAX   (1000)

#define RAWMSG   0x40

#define RNGEMSG   02

#define SSTRCOD   3945467

#define SSTRSIZ   200

#define TIMEMSG   0x80

#define TWOPI   (6.28318530717958647692528676655901)

#define TWOPI_F   ((MYFLT) TWOPI)

#define VARGMAX   (1001)

#define WARNMSG   04

Referenced by OpcodeBase< T >::warn().

#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 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 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.


Generated on Tue Apr 14 11:01:04 2009 for Csound and CsoundAC by  doxygen 1.5.8