MIDI-File als Device. Mehr ...
#include "Defs.h"
#include <owl/pch.h>
#include <mmsystem.h>
#include "DevMidF.h"
#include "Execute.h"
#include "GrafKern.h"
#include "Runtime.h"
#include "wx/wfstream.h"
gehe zum Quellcode dieser Datei
Makrodefinitionen | |
#define | H_MMSYSTEM |
#define | GET_INDEX(taste, tonsystem) |
#define | GET_ABSTAND(taste, tonsystem) |
#define | GET_FREQ(taste, tonsystem) |
#define | ZWZ 1.059463094 |
#define | LONG_TO_HERTZ(x) (440.0*pow(ZWZ,((((float)x)/(double)16777216.0))-69)) |
#define | LONG_TO_CENT(x) ( ((float)x)/(double)167772.13 ) |
#define | MIDI_OUT3(code1, code2, code3) Tracks.MidiOut3(code1, code2, code3) |
#define | MIDI_OUT2(code1, code2) Tracks.MidiOut2(code1, code2) |
#define | zugriff ((unsigned char*) &freq) |
#define | zgf ((unsigned char*) &pb) |
#define | MIDI_PITCH(i) |
#define | MIDI_SOUND(i, sound) if ( sound != -1 ) MIDI_OUT2(0xC0+i, sound) |
#define | MAKE_ID(route, box, taste, channel) ((((DWORD)channel) << 24) + (((DWORD)route->GetId()) << 16) + ((DWORD)box << 8) + taste) |
#define | NO_DELTA 0x7fffffffl |
#define | MIDICODE(i) (0xff & (midiCode >> (8*i))) |
Funktionen | |
DWORD | ReadLength (mutIFstream &is) |
void | WriteLength (mutOFstream &os, DWORD l) |
long | LongAbs (long x) |
long | ReadDelta (BYTE *data, DWORD *i) |
Variablen | |
int | lMidiCode [8] = { 3, 3, 3, 3, 2, 2, 3, 1 } |
BYTE * | pData |
int | nData |
long | NRT_Speed |
MIDI-File als Device.
GPL
Revision 1.6 2011-07-27 20:48:32 keinstein started to move arrays using MAX_BOX into struct mutabor_box_type
Revision 1.5 2011-02-20 22:35:56 keinstein updated license information; some file headers have to be revised, though
Revision 1.4 2010-12-13 00:27:53 keinstein compiles in linux as well as in mingw
Revision 1.3 2010-11-23 21:19:22 keinstein make automatic stopping working again
Revision 1.2 2010-11-21 13:15:46 keinstein merged experimental_tobias
Revision 1.1.2.4 2010-09-29 13:03:30 keinstein config can be stored and restored with new treeconfig
Revision 1.1.2.3 2010-09-15 17:58:01 keinstein old configuration can be loaded again.
Revision 1.1.2.2 2010-08-10 15:54:29 keinstein new, direct route configuration on init
Revision 1.13.2.4 2010-07-06 09:06:25 keinstein allow empty input and output devices in routes
Revision 1.13.2.3 2010/04/15 09:28:43 keinstein changing routes works, but is not honoured by MIDI, yet
Revision 1.13.2.2 2010/03/30 08:38:27 keinstein added rudimentary command line support changed debug system to allow selection of messages via command line further enhancements to the route dialogs
Revision 1.13.2.1 2009/08/04 11:30:49 keinstein removed mut.h
Revision 1.13 2008/10/27 15:02:58 keinstein moved CurrentTimer to Device
Revision 1.12 2008/10/01 09:26:10 keinstein fix midi file playing
Revision 1.11 2008/07/22 07:57:06 keinstein solved some valgrind issues
Revision 1.10 2008/07/21 08:56:18 keinstein Changed numeric device modes into an enum use wxTimer instead of obsolete WinXP timers
Revision 1.9 2008/04/28 08:00:37 keinstein Fix some size warnings
Revision 1.8 2008/03/11 10:37:34 keinstein Holyday edition put CM_xxx in an enum use wx constants document mutframe some white space formattings make route saving more system specific many other fixes
Revision 1.7 2007/12/17 12:52:15 keinstein Make the file compile in WX Unicode mode
Revision 1.6 2006/01/18 15:07:39 keinstein 3 translation calls
Revision 1.5 2005/11/07 19:42:54 keinstein Some additional changes
Definiert in Datei DevMidF.cpp.