BEAST/BSE - Better Audio System and Sound Engine  0.8.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
bsemidiinput.hh
Go to the documentation of this file.
00001  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
00002 #ifndef __BSE_MIDI_INPUT_H__
00003 #define __BSE_MIDI_INPUT_H__
00004 
00005 #include <bse/bsesource.hh>
00006 #include <bse/bsemidievent.hh>
00007 
00008 
00009 G_BEGIN_DECLS
00010 
00011 /* --- object type macros --- */
00012 #define BSE_TYPE_MIDI_INPUT              (BSE_TYPE_ID (BseMidiInput))
00013 #define BSE_MIDI_INPUT(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), BSE_TYPE_MIDI_INPUT, BseMidiInput))
00014 #define BSE_MIDI_INPUT_CLASS(class)      (G_TYPE_CHECK_CLASS_CAST ((class), BSE_TYPE_MIDI_INPUT, BseMidiInputClass))
00015 #define BSE_IS_INPUT(object)             (G_TYPE_CHECK_INSTANCE_TYPE ((object), BSE_TYPE_MIDI_INPUT))
00016 #define BSE_IS_INPUT_CLASS(class)        (G_TYPE_CHECK_CLASS_TYPE ((class), BSE_TYPE_MIDI_INPUT))
00017 #define BSE_MIDI_INPUT_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BSE_TYPE_MIDI_INPUT, BseMidiInputClassOut))
00018 
00019 struct BseMidiInput : BseSource {
00020   guint              midi_channel;
00021 };
00022 struct BseMidiInputClass : BseSourceClass
00023 {};
00024 
00025 enum
00026 {
00027   BSE_MIDI_INPUT_OCHANNEL_FREQUENCY,
00028   BSE_MIDI_INPUT_OCHANNEL_GATE,
00029   BSE_MIDI_INPUT_OCHANNEL_VELOCITY,
00030   BSE_MIDI_INPUT_OCHANNEL_AFTERTOUCH,
00031   BSE_MIDI_INPUT_N_OCHANNELS
00032 };
00033 
00034 
00035 G_END_DECLS
00036 
00037 #endif /* __BSE_MIDI_INPUT_H__ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines