GUIDOLib  1.7.7
A Music Score Rendering Engine
GUIDO2Midi.h
Go to the documentation of this file.
1 #ifndef __GUIDO2MIDI__
2 #define __GUIDO2MIDI__
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2011 Grame
7 
8  This Source Code Form is subject to the terms of the Mozilla Public
9  License, v. 2.0. If a copy of the MPL was not distributed with this
10  file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 
12  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
13  research@grame.fr
14 
15 */
16 
17 #include <map>
18 #include <ostream>
19 
20 #include "GUIDOEngine.h"
21 
33 typedef struct Guido2MidiParams
34 {
35  int fTempo;
36  int fTicks;
37  int fChan;
38 
39  float fIntensity;
40  float fAccentFactor;
42 
43  float fDFactor;
45  float fSlurFactor;
46  float fTenutoFactor;
48 
49  std::map<int, int> fVChans;
50 
52 
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
57 
65  GUIDOAPI GuidoErrCode GuidoAR2MIDIFile(const ARHandler ar, const char* filename, const Guido2MidiParams* params);
66  GUIDOAPI GuidoErrCode GuidoAR2MIDI(const ARHandler ar, std::ostream& out, const Guido2MidiParams* params);
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
75 #endif
Guido2MidiParams::fDFactor
float fDFactor
default duration factor [0.0 ... 1.0] - default value: 0.8
Definition: GUIDO2Midi.h:43
GUIDOEngine.h
Guido2MidiParams::fChan
int fChan
the default Midi channel - default value: 1
Definition: GUIDO2Midi.h:37
Guido2MidiParams::fTenutoFactor
float fTenutoFactor
tenuto duration factor - default value: 0.90
Definition: GUIDO2Midi.h:46
Guido2MidiParams::fSlurFactor
float fSlurFactor
legato duration factor - default value: 1.0
Definition: GUIDO2Midi.h:45
Guido2MidiParams::fStaccatoFactor
float fStaccatoFactor
staccato duration factor - default value: 0.5
Definition: GUIDO2Midi.h:44
GUIDOAPI
#define GUIDOAPI
Definition: GUIDOExport.h:39
Guido2MidiParams::fTempo
int fTempo
default tempo in quarter per minute - default value: 120
Definition: GUIDO2Midi.h:35
Guido2MidiParams
struct Guido2MidiParams Guido2MidiParams
A data structure containing the settings for MIDI conversion.
Guido2MidiParams::fFermataFactor
float fFermataFactor
fermata duration factor - default value: 2.0
Definition: GUIDO2Midi.h:47
GuidoErrCode
GuidoErrCode
The guido error codes list.
Definition: GUIDOEngine.h:211
Guido2MidiParams::fTicks
int fTicks
ticks per quarternote - default value: 960 (64*3*5)
Definition: GUIDO2Midi.h:36
Guido2MidiParams
A data structure containing the settings for MIDI conversion.
Definition: GUIDO2Midi.h:33
GuidoAR2MIDI
GuidoErrCode GuidoAR2MIDI(const ARHandler ar, std::ostream &out, const Guido2MidiParams *params)
Guido2MidiParams::fMarcatoFactor
float fMarcatoFactor
marcato intensity factor - default value: 1.2
Definition: GUIDO2Midi.h:41
ARHandler
struct NodeAR * ARHandler
Definition: GUIDOEngine.h:36
Guido2MidiParams::fIntensity
float fIntensity
default intensity [0.0 ... 1.0] - default value: 0.8
Definition: GUIDO2Midi.h:39
GuidoAR2MIDIFile
GuidoErrCode GuidoAR2MIDIFile(const ARHandler ar, const char *filename, const Guido2MidiParams *params)
Export to a MIDI file.
Guido2MidiParams::fVChans
std::map< int, int > fVChans
a map between voice numbers and MIDI channels (all indexed from 1)
Definition: GUIDO2Midi.h:49
Guido2MidiParams::fAccentFactor
float fAccentFactor
accent intensity factor - default value: 1.1
Definition: GUIDO2Midi.h:40

Guido Project Copyright © 2019 Grame-CNCM