[beast/devel: 2/17] BSE: add AuxTypes.py - aidacc module to support Bse type initializers
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast/devel: 2/17] BSE: add AuxTypes.py - aidacc module to support Bse type initializers
- Date: Wed, 1 May 2013 12:30:07 +0000 (UTC)
commit 404a1d32975584d08a43fb47cefa0d72e59a6c61
Author: Tim Janik <timj gnu org>
Date: Mon Mar 25 23:43:23 2013 +0000
BSE: add AuxTypes.py - aidacc module to support Bse type initializers
bse/AuxTypes.py | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/bse/AuxTypes.py b/bse/AuxTypes.py
new file mode 100644
index 0000000..a6eefef
--- /dev/null
+++ b/bse/AuxTypes.py
@@ -0,0 +1,31 @@
+# Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
+"""AuxTypes.py - BSE Auxillary Type Initializers
+
+More details at http://beast.testbit.org/
+"""
+import Decls # Aida.Decls
+
+auxillary_initializers = {
+ # Domain specific types
+ (Decls.BOOL, 'Trigger') : ('nick', 'blurb', 'hints'),
+ (Decls.INT32, 'Note') : ('nick', 'blurb', 'default', 'hints'),
+ (Decls.INT32, 'Octave') : ('nick', 'blurb', 'default', 'hints'),
+ (Decls.INT32, 'FineTune') : ('nick', 'blurb', 'hints'),
+ (Decls.FLOAT64, 'Freq') : ('nick', 'blurb', 'default', 'hints'),
+ (Decls.FLOAT64, 'Balance') : ('nick', 'blurb', 'default', 'hints'),
+ (Decls.FLOAT64, 'Perc') : ('nick', 'blurb', 'default', 'hints'),
+ (Decls.FLOAT64, 'Gain') : ('nick', 'blurb', 'default', 'min', 'max', 'step', 'hints'),
+ (Decls.FLOAT64, 'DBVolume') : ('nick', 'blurb', 'defaultdb', 'mindb', 'maxdb', 'hints'),
+ # Deprecated compatibility definitions
+ (Decls.BOOL, 'SfiBool') : ('nick', 'blurb', 'default', 'hints'),
+ (Decls.INT32, 'SfiInt') : ('nick', 'blurb', 'default', 'min', 'max', 'step', 'hints'),
+ (Decls.INT64, 'SfiNum') : ('nick', 'blurb', 'default', 'min', 'max', 'step', 'hints'),
+ (Decls.INT32, 'SfiUInt') : ('nick', 'blurb', 'default', 'hints'),
+ (Decls.FLOAT64, 'SfiReal') : ('nick', 'blurb', 'default', 'min', 'max', 'step', 'hints'),
+ (Decls.ENUM, 'SfiEnum') : ('nick', 'blurb', 'default', 'hints'),
+ (Decls.SEQUENCE, 'SfiSeq') : ('nick', 'blurb', 'hints'),
+ (Decls.STRING, 'SfiString') : ('nick', 'blurb', 'hints', 'default'),
+}
+
+# register extension hooks
+__Aida__.add_auxillary_initializers (auxillary_initializers)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]