Logo Search packages:      
Sourcecode: csound version File versions

midiops.h

/*
    midiops.h:

    Copyright (C) 1995 Barry Vercoe, Gabriel maldonado,
                       Istvan Varga, John ffitch

    This file is part of Csound.

    The Csound Library is free software; you can redistribute it
    and/or modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    Csound is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with Csound; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA
*/
                                /*                      MIDIOPS.H       */
#ifndef MIDIOPS_H
#define MIDIOPS_H

#define NOTEOFF_TYPE  0x80
#define NOTEON_TYPE   0x90
#define POLYAFT_TYPE  0xA0
#define CONTROL_TYPE  0xB0
#define PROGRAM_TYPE  0xC0
#define AFTOUCH_TYPE  0xD0
#define PCHBEND_TYPE  0xE0
#define SYSTEM_TYPE   0xF0

#define DATENTRY        6
#define VOLUME          7
#define SUSTAIN_SW      64
#define NRPNLSB         98
#define NRPNMSB         99
#define RPNLSB          100
#define RPNMSB          101

#define VIB_RATE        128     /* ROLAND EXTENDED CTRLS */
#define VIB_DEPTH       129     /* in unused ctl_val spc */
#define VIB_DELAY       130
#define TVF_CUTOFF      131
#define TVF_RESON       132
#define TVA_RIS         133
#define TVA_DEC         134
#define TVA_RLS         135

00054 typedef struct {
    OPDS    h;
    MYFLT   *chnl, *insno, *iresetctls;
} MASSIGN;

00059 typedef struct {
    OPDS    h;
    MYFLT   *chnl, *ctrls[64];
} CTLINIT;

00064 typedef struct {
    OPDS    h;
    MYFLT   *r, *imax, *ifn;
} MIDIAMP;

00069 typedef struct {
    OPDS    h;
    MYFLT   *r, *ictlno, *ilo, *ihi;
    int32   ctlno;
    MYFLT   scale, lo;
} MIDICTL;

00076 typedef struct {
    OPDS    h;
    MYFLT   *r, *ichano, *ictlno, *ilo, *ihi;
    int32   chano, ctlno;
    MYFLT   scale, lo;
} CHANCTL;

00083 typedef struct {
    OPDS    h;
    MYFLT   *r, *iscal;
    MYFLT   scale, prvbend, prvout;
} MIDIKMB;

00089 typedef struct {
    OPDS    h;
    MYFLT   *r, *ilo, *ihi;
} MIDIMAP;

00094 typedef struct {
    OPDS    h;
    MYFLT   *r, *ilo, *ihi;
    MYFLT   scale, lo;
} MIDIKMAP;

00100 typedef struct {
    OPDS    h;
    MYFLT   *olap;
} MIDIOLAP;

00105 typedef struct {
    OPDS    h;
    MYFLT   *r;
} MIDIAGE;

00110 typedef struct {
    OPDS    h;
    MYFLT   *r, *tablenum;
    /* *numgrades, *interval, *basefreq, *basekeymidi; */
} CPSTABLE;

00116 typedef struct {
    OPDS    h;
    MYFLT   *ans;
} GTEMPO;

00121 typedef struct {
    OPDS    h;
    MYFLT   *ichn;
} MIDICHN;

00126 typedef struct {
    OPDS    h;
    MYFLT   *ipgm, *inst, *ichn;
} PGMASSIGN;

00131 typedef struct {
    OPDS    h;
    MYFLT   *status, *chan, *data1, *data2;
    int     local_buf_index;        /* IV - Nov 30 2002 */
} MIDIIN;

00137 typedef struct {
    OPDS    h;
    MYFLT   *pgm, *chn, *ochan;
    int     local_buf_index;        /* IV - Nov 30 2002 */
    int     watch;
} PGMIN;

00144 typedef struct {
    OPDS    h;
    MYFLT   *data, *numb, *chn, *ochan, *onum;
    int     local_buf_index;        /* IV - Nov 30 2002 */
    int     watch1, watch2;
} CTLIN;

#endif


Generated by  Doxygen 1.6.0   Back to index