BEAST/BSE - Better Audio System and Sound Engine  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bsesimpleadsr.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_SIMPLE_ADSR_H__
3 #define __BSE_SIMPLE_ADSR_H__
4 
5 #include <bse/bseplugin.hh>
6 #include <bse/bsesource.hh>
7 
8 G_BEGIN_DECLS
9 
10 /* --- object type macros --- */
11 #define BSE_TYPE_SIMPLE_ADSR (bse_simple_adsr_get_type())
12 #define BSE_SIMPLE_ADSR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BSE_TYPE_SIMPLE_ADSR, BseSimpleADSR))
13 #define BSE_SIMPLE_ADSR_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), BSE_TYPE_SIMPLE_ADSR, BseSimpleADSRClass))
14 #define BSE_IS_SIMPLE_ADSR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BSE_TYPE_SIMPLE_ADSR))
15 #define BSE_IS_SIMPLE_ADSR_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), BSE_TYPE_SIMPLE_ADSR))
16 #define BSE_SIMPLE_ADSR_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BSE_TYPE_SIMPLE_ADSR, BseSimpleADSRClass))
17 
19  float attack_level;
20  float attack_inc;
21  float decay_dec;
22  float sustain_level;
23  float release_dec;
24 };
26  float attack_time;
27  float decay_time;
28  float sustain_level;
29  float release_time;
30  BseTimeRangeType time_range;
31 };
33 {};
34 
35 enum
36 {
37  BSE_SIMPLE_ADSR_ICHANNEL_GATE,
38  BSE_SIMPLE_ADSR_ICHANNEL_RETRIGGER,
39  BSE_SIMPLE_ADSR_N_ICHANNELS
40 };
41 enum
42 {
43  BSE_SIMPLE_ADSR_OCHANNEL_OUT,
44  BSE_SIMPLE_ADSR_OCHANNEL_DONE,
45  BSE_SIMPLE_ADSR_N_OCHANNELS
46 };
47 
48 G_END_DECLS
49 
50 #endif /* __BSE_SIMPLE_ADSR_H__ */
Definition: bsesimpleadsr.hh:32
Definition: bsesimpleadsr.hh:18
Definition: bsesimpleadsr.hh:25
Definition: bsesource.hh:84
Definition: bsesource.hh:92