KORG microX utility.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

66 lines
1.4 KiB

/*
* asysex - A SysEx Utility
* Copyright (C) 2012 Damien Goutte-Gattat
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ICP20120401_MIDI_H
#define ICP20120401_MIDI_H
#include <stdlib.h>
typedef struct midi_io midi_io_t;
extern const char *midi_gm_patches[];
#ifdef __cpluscplus
extern "C" {
#endif
midi_io_t *
midi_open(const char *);
int
midi_close(midi_io_t *);
ssize_t
midi_write(midi_io_t *, unsigned char *, size_t);
ssize_t
midi_read(midi_io_t *, unsigned char *, size_t);
int
midi_next(midi_io_t *);
unsigned char
midi_status(midi_io_t *);
const char *
midi_error(midi_io_t *);
int
midi_change_program(midi_io_t *,
unsigned char,
unsigned short,
unsigned char);
char **
midi_get_ports(void);
#ifdef __cplusplus
}
#endif
#endif /* !ICP20120401_MIDI_H */