source: ext/midi/midi_driver.h @ e03f74d

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since e03f74d was b60dd4ae, checked in by Paul Brossier <piem@altern.org>, 20 years ago

moved midi functions to ext/

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*
2 * This library is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Library General Public License
4 * as published by the Free Software Foundation; either version 2 of
5 * the License, or (at your option) any later version.
6 *
7 * This library is distributed in the hope that it will be useful, but
8 * WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10 * Library General Public License for more details.
11 * 
12 * You should have received a copy of the GNU Library General Public
13 * License along with this library; if not, write to the Free
14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
15 * 02111-1307, USA
16 */
17
18/* this file orginally taken from :
19 * FluidSynth - A Software Synthesizer
20 * Copyright (C) 2003  Peter Hanappe and others.
21 */
22
23
24/** \file
25 * generic midi driver
26 */
27
28#ifndef _AUBIO_MDRIVER_H
29#define _AUBIO_MDRIVER_H
30
31typedef void aubio_settings_t;
32
33typedef int (*handle_midi_event_func_t)(void* data, aubio_midi_event_t* event);
34
35/** aubio_midi_driver_t */
36typedef struct _aubio_midi_driver_t aubio_midi_driver_t;
37
38struct _aubio_midi_driver_t
39{
40  char* name;
41  handle_midi_event_func_t handler;
42  void* data;
43};
44
45//aubio_midi_driver_t* new_aubio_midi_driver(aubio_settings_t* settings,
46aubio_midi_driver_t* new_aubio_midi_driver(char * name, 
47    handle_midi_event_func_t handler, 
48    void* event_handler_data);
49void del_aubio_midi_driver(aubio_midi_driver_t* driver);
50void aubio_midi_driver_settings(aubio_settings_t* settings);
51
52#include "config.h"
53#if JACK_SUPPORT
54void aubio_midi_direct_output(aubio_midi_driver_t * dev, aubio_midi_event_t * event); 
55#endif
56
57#endif  /* _AUBIO_AUDRIVER_H */
Note: See TracBrowser for help on using the repository browser.