Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/libs/fluidsynth/src/synth/fluid_event.h
4396 views
1
/* FluidSynth - A Software Synthesizer
2
*
3
* Copyright (C) 2003 Peter Hanappe and others.
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public License
7
* as published by the Free Software Foundation; either version 2.1 of
8
* the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful, but
11
* WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free
17
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18
* 02110-1301, USA
19
*/
20
21
22
#ifndef _FLUID_EVENT_PRIV_H
23
#define _FLUID_EVENT_PRIV_H
24
25
#include "fluidsynth.h"
26
27
#ifdef __cplusplus
28
extern "C" {
29
#endif
30
31
typedef int fluid_note_id_t;
32
33
/* Private data for event */
34
/* ?? should be optimized in size, using unions */
35
struct _fluid_event_t
36
{
37
unsigned int time;
38
int type;
39
fluid_seq_id_t src;
40
fluid_seq_id_t dest;
41
int channel;
42
short key;
43
short vel;
44
short control;
45
int value;
46
fluid_note_id_t id;
47
int pitch;
48
unsigned int duration;
49
double scale;
50
void *data;
51
};
52
53
unsigned int fluid_event_get_time(fluid_event_t *evt);
54
void fluid_event_set_time(fluid_event_t *evt, unsigned int time);
55
56
fluid_note_id_t fluid_event_get_id(fluid_event_t *evt);
57
void fluid_event_set_id(fluid_event_t *evt, fluid_note_id_t id);
58
59
void fluid_event_clear(fluid_event_t *evt);
60
61
#ifdef __cplusplus
62
}
63
#endif
64
65
#endif /* _FLUID_EVENT_PRIV_H */
66
67