midifile.h

Go to the documentation of this file.
00001 /*
00002     midifile.h:
00003 
00004     Copyright (C) 2005 Istvan Varga
00005 
00006     This file is part of Csound.
00007 
00008     The Csound Library is free software; you can redistribute it
00009     and/or modify it under the terms of the GNU Lesser General Public
00010     License as published by the Free Software Foundation; either
00011     version 2.1 of the License, or (at your option) any later version.
00012 
00013     Csound is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU Lesser General Public License for more details.
00017 
00018     You should have received a copy of the GNU Lesser General Public
00019     License along with Csound; if not, write to the Free Software
00020     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00021     02111-1307 USA
00022 */
00023 
00024 #ifndef CSOUND_MIDIFILE_H
00025 #define CSOUND_MIDIFILE_H
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00031 /* open MIDI file, read all tracks, and create event list */
00032 
00033 int csoundMIDIFileOpen(CSOUND *csound, const char *name);
00034 
00035 /* read MIDI file event data at performace time */
00036 
00037 int csoundMIDIFileRead(CSOUND *csound, unsigned char *buf, int nBytes);
00038 
00039 /* destroy MIDI file event list */
00040 
00041 int csoundMIDIFileClose(CSOUND *csound);
00042 
00043  /* ------------------------------------------------------------------------ */
00044 
00045 typedef struct {
00046     OPDS    h;
00047     MYFLT   *kResult;
00048 } MIDITEMPO;
00049 
00050 /* miditempo opcode: returns the current tempo of MIDI file */
00051 
00052 extern int midiTempoOpcode(CSOUND *csound, MIDITEMPO *p);
00053 
00054 #ifdef __cplusplus
00055 }
00056 #endif
00057 
00058 #endif      /* CSOUND_MIDIFILE_H */
00059 

Generated on Tue Apr 14 11:00:49 2009 for Csound and CsoundAC by  doxygen 1.5.8