Vuo
2.4.4
Loading...
Searching...
No Matches
node
vuo.midi
VuoMidiNote.h
Go to the documentation of this file.
1
10
#pragma once
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
27
typedef
struct
28
{
29
unsigned
char
channel
;
30
bool
isNoteOn
;
31
unsigned
char
velocity
;
32
unsigned
char
noteNumber
;
33
}
VuoMidiNote
;
34
35
#define VuoMidiNote_SUPPORTS_COMPARISON
36
37
VuoMidiNote
VuoMidiNote_makeFromJson
(
struct
json_object * js);
38
struct
json_object *
VuoMidiNote_getJson
(
const
VuoMidiNote
value);
39
char
*
VuoMidiNote_getSummary
(
const
VuoMidiNote
value);
40
41
bool
VuoMidiNote_areEqual
(
const
VuoMidiNote
value1,
const
VuoMidiNote
value2);
42
bool
VuoMidiNote_isLessThan
(
const
VuoMidiNote
a,
const
VuoMidiNote
b);
43
47
static
inline
VuoMidiNote
VuoMidiNote_make
(
unsigned
char
channel,
bool
isNoteOn,
unsigned
char
velocity,
unsigned
char
noteNumber) __attribute__((
const
));
48
static
inline
VuoMidiNote
VuoMidiNote_make
(
unsigned
char
channel,
bool
isNoteOn,
unsigned
char
velocity,
unsigned
char
noteNumber)
49
{
50
VuoMidiNote
mn;
51
mn.
channel
= channel;
52
mn.
isNoteOn
= isNoteOn;
53
mn.
velocity
= velocity;
54
mn.
noteNumber
= noteNumber;
55
return
mn;
56
}
57
59
62
char
*
VuoMidiNote_getString
(
const
VuoMidiNote
value);
63
void
VuoMidiNote_retain
(
VuoMidiNote
value);
64
void
VuoMidiNote_release
(
VuoMidiNote
value);
66
71
#ifdef __cplusplus
72
}
73
#endif
Generated on Thu Nov 9 2023 16:59:30 for Vuo by
1.9.8