/usr/include/bse/bsemidireceiver.hh is in libbse-dev 0.7.8-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
#ifndef __BSE_MIDI_RECEIVER_H__
#define __BSE_MIDI_RECEIVER_H__
#include <bse/bseobject.hh>
#include <bse/bsemidievent.hh>
G_BEGIN_DECLS
/* --- API --- */
#define BSE_MIDI_CONTROL_MODULE_N_CHANNELS (4)
#define BSE_MIDI_VOICE_MODULE_N_CHANNELS (4)
#define BSE_MIDI_VOICE_N_CHANNELS (3)
typedef void (*BseMidiControlHandler) (gpointer handler_data,
guint64 tick_stamp,
BseMidiSignalType signal_type,
gfloat control_value,
guint n_modules,
BseModule *const *modules,
gpointer user_data,
BseTrans *trans);
BseMidiReceiver* bse_midi_receiver_new (const gchar *receiver_name);
BseMidiReceiver* bse_midi_receiver_ref (BseMidiReceiver *self);
void bse_midi_receiver_unref (BseMidiReceiver *self);
void bse_midi_receiver_push_event (BseMidiReceiver *self,
BseMidiEvent *event);
void bse_midi_receiver_process_events (BseMidiReceiver *self,
guint64 max_tick_stamp);
BseModule* bse_midi_receiver_retrieve_control_module (BseMidiReceiver *self,
guint midi_channel,
BseMidiSignalType signals[BSE_MIDI_CONTROL_MODULE_N_CHANNELS],
BseTrans *trans);
void bse_midi_receiver_discard_control_module (BseMidiReceiver *self,
BseModule *cmodule,
BseTrans *trans);
gboolean bse_midi_receiver_add_control_handler (BseMidiReceiver *self,
guint midi_channel,
BseMidiSignalType signal_type,
BseMidiControlHandler handler_func,
gpointer handler_data,
BseModule *module);
void bse_midi_receiver_set_control_handler_data(BseMidiReceiver *self,
guint midi_channel,
BseMidiSignalType signal_type,
BseMidiControlHandler handler_func,
gpointer handler_data,
gpointer extra_data,
BseFreeFunc extra_free); /* UserThread */
void bse_midi_receiver_remove_control_handler (BseMidiReceiver *self,
guint midi_channel,
BseMidiSignalType signal_type,
BseMidiControlHandler handler_func,
gpointer handler_data,
BseModule *module);
BseModule* bse_midi_receiver_retrieve_mono_voice (BseMidiReceiver *self,
guint midi_channel,
BseTrans *trans);
void bse_midi_receiver_discard_mono_voice (BseMidiReceiver *self,
guint midi_channel,
BseModule *fmodule,
BseTrans *trans);
void bse_midi_receiver_channel_enable_poly (BseMidiReceiver *self,
guint midi_channel);
void bse_midi_receiver_channel_disable_poly (BseMidiReceiver *self,
guint midi_channel);
guint bse_midi_receiver_create_poly_voice (BseMidiReceiver *self,
guint midi_channel,
BseTrans *trans);
void bse_midi_receiver_discard_poly_voice (BseMidiReceiver *self,
guint midi_channel,
guint voice_id,
BseTrans *trans);
BseModule* bse_midi_receiver_get_poly_voice_input (BseMidiReceiver *self,
guint midi_channel,
guint voice_id);
BseModule* bse_midi_receiver_get_poly_voice_output (BseMidiReceiver *self,
guint midi_channel,
guint voice_id);
BseModule* bse_midi_receiver_create_sub_voice (BseMidiReceiver *self,
guint midi_channel,
guint voice_id,
BseTrans *trans);
void bse_midi_receiver_discard_sub_voice (BseMidiReceiver *self,
guint midi_channel,
guint voice_id,
BseModule *fmodule,
BseTrans *trans);
void bse_midi_receiver_set_notifier (BseMidiReceiver *self,
BseMidiNotifier *notifier);
gboolean bse_midi_receiver_has_notify_events (BseMidiReceiver *self);
SfiRing* bse_midi_receiver_fetch_notify_events (BseMidiReceiver *self);
gboolean bse_midi_receiver_voices_pending (BseMidiReceiver *self,
guint midi_channel);
void bse_midi_receiver_enter_farm (BseMidiReceiver *self);
void bse_midi_receiver_farm_distribute_event (BseMidiEvent *event);
void bse_midi_receiver_farm_process_events (guint64 max_tick_stamp);
void bse_midi_receiver_leave_farm (BseMidiReceiver *self);
/* --- internal --- */
void _bse_midi_init (void);
G_END_DECLS
#endif /* __BSE_MIDI_RECEIVER_H__ */
|