midi_events.h   midi_events.h 
/* Definitions to ease working with raw MIDI. /* Definitions to ease working with raw MIDI.
* Copyright (C) 2005-2011 David Robillard <http://drobilla.net>
* *
* Adapted from ALSA's asounddef.h * Adapted from ALSA's asounddef.h
* Copyright (C) 1998-2001 Jaroslav Kysela <perex@perex.cz>
* Abramo Bagnara <abramo@alsa-project.org>
* Takashi Iwai <tiwai@suse.de>
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as * it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of * published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version. * the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU Lesser General Public License for more details.
 End of changes. 2 change blocks. 
0 lines changed or deleted 4 lines changed or added


 midi_names.h   midi_names.h 
skipping to change at line 23 skipping to change at line 23
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
#ifndef RAUL_MIDI_NAMES_H #ifndef RAUL_MIDI_NAMES_H
#define RAUL_MIDI_NAMES_H #define RAUL_MIDI_NAMES_H
#include "midi_events.h" #include "raul/midi_events.h"
#ifdef __cplusplus #ifdef __cplusplus
namespace Raul { namespace Raul {
extern "C" { extern "C" {
#endif #endif
/** \group midi
*/
/** Pass this a symbol defined in midi_events.h (e.g. MIDI_CTL_PAN) to get the /** Pass this a symbol defined in midi_events.h (e.g. MIDI_CTL_PAN) to get the
* short name of a MIDI event/controller according to General MIDI. * short name of a MIDI event/controller according to General MIDI.
* \ingroup midi
*/ */
inline static const char* midi_name(uint8_t status) inline static const char* midi_name(uint8_t status)
{ {
switch (status) { switch (status) {
case MIDI_CMD_NOTE_OFF: case MIDI_CMD_NOTE_OFF:
return "Note Off"; break; return "Note Off"; break;
case MIDI_CMD_NOTE_ON: case MIDI_CMD_NOTE_ON:
return "Note On"; break; return "Note On"; break;
case MIDI_CMD_NOTE_PRESSURE: case MIDI_CMD_NOTE_PRESSURE:
 End of changes. 3 change blocks. 
4 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/