Vuo
2.4.0
node
vuo.midi
VuoMidiNote.h
Go to the documentation of this file.
1
10
#pragma once
11
23
typedef
struct
24
{
25
unsigned
char
channel
;
26
bool
isNoteOn
;
27
unsigned
char
velocity
;
28
unsigned
char
noteNumber
;
29
}
VuoMidiNote
;
30
31
VuoMidiNote
VuoMidiNote_makeFromJson
(
struct
json_object
* js);
32
struct
json_object
*
VuoMidiNote_getJson
(
const
VuoMidiNote
value);
33
char
*
VuoMidiNote_getSummary
(
const
VuoMidiNote
value);
34
35
#define VuoMidiNote_SUPPORTS_COMPARISON
36
bool
VuoMidiNote_areEqual
(
const
VuoMidiNote
value1,
const
VuoMidiNote
value2);
37
bool
VuoMidiNote_isLessThan
(
const
VuoMidiNote
a,
const
VuoMidiNote
b);
38
42
static
inline
VuoMidiNote
VuoMidiNote_make
(
unsigned
char
channel,
bool
isNoteOn,
unsigned
char
velocity,
unsigned
char
noteNumber) __attribute__((
const
));
43
static
inline
VuoMidiNote
VuoMidiNote_make
(
unsigned
char
channel,
bool
isNoteOn,
unsigned
char
velocity,
unsigned
char
noteNumber)
44
{
45
VuoMidiNote
mn;
46
mn.
channel
= channel;
47
mn.
isNoteOn
= isNoteOn;
48
mn.
velocity
= velocity;
49
mn.
noteNumber
= noteNumber;
50
return
mn;
51
}
52
54
57
VuoMidiNote
VuoMidiNote_makeFromString
(
const
char
*str);
58
char
*
VuoMidiNote_getString
(
const
VuoMidiNote
value);
59
void
VuoMidiNote_retain
(
VuoMidiNote
value);
60
void
VuoMidiNote_release
(
VuoMidiNote
value);
62
Generated on Wed Nov 24 2021 15:28:16 for Vuo by
1.9.2