BEAST - Free Software Audio Synthesizer and Tracker  0.9.2
bsesubsynth.hh
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 #ifndef __BSE_SUB_SYNTH_H__
3 #define __BSE_SUB_SYNTH_H__
4 #include <bse/bsesource.hh>
5 G_BEGIN_DECLS
6 
7 #define BSE_TYPE_SUB_SYNTH (BSE_TYPE_ID (BseSubSynth))
8 #define BSE_SUB_SYNTH(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BSE_TYPE_SUB_SYNTH, BseSubSynth))
9 #define BSE_SUB_SYNTH_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), BSE_TYPE_SUB_SYNTH, BseSubSynthClass))
10 #define BSE_IS_SUB_SYNTH(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BSE_TYPE_SUB_SYNTH))
11 #define BSE_IS_SUB_SYNTH_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), BSE_TYPE_SUB_SYNTH))
12 #define BSE_SUB_SYNTH_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BSE_TYPE_SUB_SYNTH, BseSubSynthClass))
13 
15  BseSNet *snet;
16  gchar **input_ports;
17  gchar **output_ports;
18  guint midi_channel;
19  guint null_shortcut : 1;
20 };
22 {};
23 
25 void bse_sub_synth_set_null_shortcut (BseSubSynth *self, bool enabled);
27 void bse_sub_synth_set_midi_channel (BseSubSynth *self, uint midi_channel);
28 
29 G_END_DECLS
30 
31 namespace Bse {
32 
33 class SubSynthImpl : public SourceImpl, public virtual SubSynthIface {
34 protected:
35  virtual ~SubSynthImpl ();
36 public:
37  explicit SubSynthImpl (BseObject*);
38 };
39 
40 } // Bse
41 
42 #endif /* __BSE_SUB_SYNTH_H__ */
See also the corresponding IDL class SubSynth.
Definition: bseserverapi.hh:860
void bse_sub_synth_set_null_shortcut(BseSubSynth *self, bool enabled)
Set whether to pass inputs through to outputs if SNet is unset.
Definition: bsesubsynth.cc:301
The Bse namespace contains all functions of the synthesis engine.
Definition: bstbseutils.cc:67
Definition: bsesnet.hh:36
Definition: bsesubsynth.hh:21
Definition: bseobject.hh:60
Definition: bsesubsynth.hh:33
void bse_sub_synth_set_midi_channel(BseSubSynth *self, uint midi_channel)
Override the midi_channel for the SNet (unset override with midi_channel=0).
Definition: bsesubsynth.cc:293
Definition: bsesource.hh:84
Definition: bsesource.hh:92
Definition: bsesubsynth.hh:14
Definition: bsesource.hh:278