Vuo  1.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
VuoMidiNote

Description

A music note event sent via MIDI.

Classes

struct  VuoMidiNote
 A music note event sent via MIDI. More...
 

Functions

VuoMidiNote VuoMidiNote_makeFromJson (json_object *js)
 Decodes the JSON object js to create a new value.
 
json_objectVuoMidiNote_getJson (const VuoMidiNote mn)
 Encodes value as a JSON object.
 
char * VuoMidiNote_getSummary (const VuoMidiNote mn)
 Returns a compact string representation of value (comma-separated coordinates).
 
bool VuoMidiNote_areEqual (const VuoMidiNote value1, const VuoMidiNote value2)
 Returns true if the channel, note status (on/off), velocity, and note number all match.
 
static VuoMidiNote VuoMidiNote_make (unsigned char channel, bool isNoteOn, unsigned char velocity, unsigned char noteNumber) __attribute__((const ))
 Returns a note event with the specified values.
 
VuoMidiNote VuoMidiNote_makeFromString (const char *str)
 Automatically generated function.
 
char * VuoMidiNote_getString (const VuoMidiNote value)
 Automatically generated function.
 
void VuoMidiNote_retain (VuoMidiNote value)
 Automatically generated function.
 
void VuoMidiNote_release (VuoMidiNote value)
 Automatically generated function.
 

Class Documentation

struct VuoMidiNote
Class Members
char blah[42]
Todo:
https://b33p.net/kosada/node/4124
unsigned char channel Permitted values: 1 through 16.
bool isNoteOn Is this a Note On or Note Off event?
unsigned char noteNumber Permitted values: 0 through 127.
unsigned char velocity Permitted values: 0 through 127.

Function Documentation

bool VuoMidiNote_areEqual ( const VuoMidiNote  value1,
const VuoMidiNote  value2 
)

Returns true if the channel, note status (on/off), velocity, and note number all match.

struct json_object * VuoMidiNote_getJson ( const VuoMidiNote  mn)
read

Encodes value as a JSON object.

char* VuoMidiNote_getString ( const VuoMidiNote  value)

Automatically generated function.

char * VuoMidiNote_getSummary ( const VuoMidiNote  mn)

Returns a compact string representation of value (comma-separated coordinates).

Includes the note name with the ASA 1939 octave designator (e.g., noteNumber 60, middle C, is "C4"). Journal of the Acoustical Society of America, Volume 11, Issue 1, pp. 134-139 (1939).

static VuoMidiNote VuoMidiNote_make ( unsigned char  channel,
bool  isNoteOn,
unsigned char  velocity,
unsigned char  noteNumber 
) const
inlinestatic

Returns a note event with the specified values.

VuoMidiNote VuoMidiNote_makeFromJson ( json_object js)

Decodes the JSON object js to create a new value.

Example:
{
"channel" : 1,
"isNoteOn" : true,
"velocity" : 127,
"noteNumber" : 60
}
VuoMidiNote VuoMidiNote_makeFromString ( const char *  str)

Automatically generated function.

void VuoMidiNote_release ( VuoMidiNote  value)

Automatically generated function.

void VuoMidiNote_retain ( VuoMidiNote  value)

Automatically generated function.