Vuo 2.4.4
Loading...
Searching...
No Matches
VuoMidiNote.h
Go to the documentation of this file.
1
10#pragma once
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
27typedef struct
28{
29 unsigned char channel;
30 bool isNoteOn;
31 unsigned char velocity;
32 unsigned char noteNumber;
34
35#define VuoMidiNote_SUPPORTS_COMPARISON
36
37VuoMidiNote VuoMidiNote_makeFromJson(struct json_object * js);
38struct json_object * VuoMidiNote_getJson(const VuoMidiNote value);
39char * VuoMidiNote_getSummary(const VuoMidiNote value);
40
41bool VuoMidiNote_areEqual(const VuoMidiNote value1, const VuoMidiNote value2);
43
47static inline VuoMidiNote VuoMidiNote_make(unsigned char channel, bool isNoteOn, unsigned char velocity, unsigned char noteNumber) __attribute__((const));
48static 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
66
71#ifdef __cplusplus
72}
73#endif