Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
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 #define BSE_TYPE_SUB_SYNTH (BSE_TYPE_ID (BseSubSynth))
6 #define BSE_SUB_SYNTH(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BSE_TYPE_SUB_SYNTH, BseSubSynth))
7 #define BSE_SUB_SYNTH_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), BSE_TYPE_SUB_SYNTH, BseSubSynthClass))
8 #define BSE_IS_SUB_SYNTH(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BSE_TYPE_SUB_SYNTH))
9 #define BSE_IS_SUB_SYNTH_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), BSE_TYPE_SUB_SYNTH))
10 #define BSE_SUB_SYNTH_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BSE_TYPE_SUB_SYNTH, BseSubSynthClass))
11 
13  BseSNet *snet;
14  gchar **input_ports;
15  gchar **output_ports;
16  guint midi_channel;
17  guint null_shortcut : 1;
18 };
20 {};
21 
23 void bse_sub_synth_set_null_shortcut (BseSubSynth *self, bool enabled);
25 void bse_sub_synth_set_midi_channel (BseSubSynth *self, uint midi_channel);
26 
27 namespace Bse {
28 
29 class SubSynthImpl : public SourceImpl, public virtual SubSynthIface {
30 protected:
31  virtual ~SubSynthImpl ();
32 public:
33  explicit SubSynthImpl (BseObject*);
34 };
35 
36 } // Bse
37 
38 #endif /* __BSE_SUB_SYNTH_H__ */
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:91
Definition: bsesnet.hh:34
Definition: bsesubsynth.hh:19
Definition: bseobject.hh:57
Definition: bsesubsynth.hh:29
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:82
Definition: bsesource.hh:90
Definition: bsesubsynth.hh:12
Definition: bsesource.hh:274