BEAST/BSE - Better Audio System and Sound Engine  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bstrecords.idl
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 
3 namespace Bst {
4 /*
5 enum Test1 {
6  FOO1,
7  FOO2,
8 };
9 record Test2 {
10  Test1 tval;
11 };
12 */
13 using namespace Sfi;
14 Const STORAGE = ":r:w:S:";
15 Const STANDARD = STORAGE "G:";
16 enum Direction {
17  UP = Enum (_("Up"), _("Move upwards")),
18  LEFT = Enum (_("Left"), _("Move to the left")),
19  RIGHT = Enum (_("Right"), _("Move to the right")),
20  DOWN = Enum (_("Down"), _("Move downwards"))
21 };
22 enum FFTSize {
23  FFT_SIZE_2 = Enum (_("2 Value FFT Window"), _("A 2 value FFT window corresponds to a spectrum with 2 frequency peaks")),
24  FFT_SIZE_4 = Enum (_("4 Value FFT Window"), _("A 4 value FFT window corresponds to a spectrum with 3 frequency peaks")),
25  FFT_SIZE_8 = Enum (_("8 Value FFT Window"), _("A 8 value FFT window corresponds to a spectrum with 5 frequency peaks")),
26  FFT_SIZE_16 = Enum (_("16 Value FFT Window"), _("A 16 value FFT window corresponds to a spectrum with 9 frequency peaks")),
27  FFT_SIZE_32 = Enum (_("32 Value FFT Window"), _("A 32 value FFT window corresponds to a spectrum with 17 frequency peaks")),
28  FFT_SIZE_64 = Enum (_("64 Value FFT Window"), _("A 64 value FFT window corresponds to a spectrum with 33 frequency peaks")),
29  FFT_SIZE_128 = Enum (_("128 Value FFT Window"), _("A 128 value FFT window corresponds to a spectrum with 65 frequency peaks")),
30  FFT_SIZE_256 = Enum (_("256 Value FFT Window"), _("A 256 value FFT window corresponds to a spectrum with 129 frequency peaks")),
31  FFT_SIZE_512 = Enum (_("512 Value FFT Window"), _("A 512 value FFT window corresponds to a spectrum with 257 frequency peaks")),
32  FFT_SIZE_1024 = Enum (_("1024 Value FFT Window"), _("A 1024 value FFT window corresponds to a spectrum with 513 frequency peaks")),
33  FFT_SIZE_2048 = Enum (_("2048 Value FFT Window"), _("A 2048 value FFT window corresponds to a spectrum with 1025 frequency peaks")),
34  FFT_SIZE_4096 = Enum (_("4096 Value FFT Window"), _("A 4096 value FFT window corresponds to a spectrum with 2049 frequency peaks")),
35  FFT_SIZE_8192 = Enum (_("8192 Value FFT Window"), _("A 8192 value FFT window corresponds to a spectrum with 4097 frequency peaks")),
36  FFT_SIZE_16384 = Enum (_("16384 Value FFT Window"), _("A 16384 value FFT window corresponds to a spectrum with 8193 frequency peaks")),
37  FFT_SIZE_32768 = Enum (_("32768 Value FFT Window"), _("A 32768 value FFT window corresponds to a spectrum with 16385 frequency peaks")),
38  FFT_SIZE_65536 = Enum (_("65536 Value FFT Window"), _("A 65536 value FFT window corresponds to a spectrum with 32769 frequency peaks")),
39 };
40 enum NoteLength {
41  NOTE_LENGTH_NONE = Enum (0, _("None"), _("Unspecified length")),
42  NOTE_LENGTH_1 = Enum (_("1/1"), _("Whole note")),
43  NOTE_LENGTH_2 = Enum (_("1/2"), _("Half note")),
44  NOTE_LENGTH_4 = Enum (_("1/4"), _("Quarter note")),
45  NOTE_LENGTH_8 = Enum (_("1/8"), _("Eighths note")),
46  NOTE_LENGTH_16 = Enum (_("1/16"), _("Sixteenth note")),
47  NOTE_LENGTH_32 = Enum (_("1/32"), _("Thirty-secondth note")),
48  NOTE_LENGTH_64 = Enum (_("1/64"), _("Sixty-fourth note")),
49  NOTE_LENGTH_128 = Enum (_("1/128"), _("Hundred twenty-eighth note")),
50  NOTE_LENGTH_1P = Enum (_("1/1."), _("Dotted whole note")),
51  NOTE_LENGTH_2P = Enum (_("1/2."), _("Dotted half note")),
52  NOTE_LENGTH_4P = Enum (_("1/4."), _("Dotted quarter note")),
53  NOTE_LENGTH_8P = Enum (_("1/8."), _("Dotted eighths note")),
54  NOTE_LENGTH_16P = Enum (_("1/16."), _("Dotted sixteenth note")),
55  NOTE_LENGTH_32P = Enum (_("1/32."), _("Dotted thirty-secondth note")),
56  NOTE_LENGTH_64P = Enum (_("1/64."), _("Dotted sixty-fourth note")),
57  NOTE_LENGTH_128P = Enum (_("1/128."),_("Dotted hundred twenty-eighth note")),
58  NOTE_LENGTH_1T = Enum (_("1/1T"), _("Triplet whole note")),
59  NOTE_LENGTH_2T = Enum (_("1/2T"), _("Triplet half note")),
60  NOTE_LENGTH_4T = Enum (_("1/4T"), _("Triplet quarter note")),
61  NOTE_LENGTH_8T = Enum (_("1/8T"), _("Triplet eighths note")),
62  NOTE_LENGTH_16T = Enum (_("1/16T"), _("Triplet sixteenth note")),
63  NOTE_LENGTH_32T = Enum (_("1/32T"), _("Triplet thirty-secondth note")),
64  NOTE_LENGTH_64T = Enum (_("1/64T"), _("Triplet sixty-fourth note")),
65  NOTE_LENGTH_128T = Enum (_("1/128T"),_("Triplet hundred twenty-eighth note")),
66 };
67 enum RowShading {
68  ROW_SHADING_NONE = Enum (0, _("None")),
69  ROW_SHADING_2 = Enum (_("2"), _("Every second row")),
70  ROW_SHADING_4 = Enum (_("4"), _("Every fourth row")),
71  ROW_SHADING_8 = Enum (_("8"), _("Every eighth row")),
72  ROW_SHADING_16 = Enum (_("16"), _("Every sixteenth row")),
73  ROW_SHADING_2_4 = Enum (_("2 & 4"), _("Every second and fourth row")),
74  ROW_SHADING_4_8 = Enum (_("4 & 8"), _("Every fourth and eighth row")),
75  ROW_SHADING_4_12 = Enum (_("4 & 12"), _("Every fourth and twelfth row")),
76  ROW_SHADING_4_16 = Enum (_("4 & 16"), _("Every fourth and sixteenth row")),
77  ROW_SHADING_8_16 = Enum (_("8 & 16"), _("Every eighth and sixteenth row")),
78  ROW_SHADING_3 = Enum (_("3"), _("Every third row")),
79  ROW_SHADING_6 = Enum (_("6"), _("Every sixth row")),
80  ROW_SHADING_12 = Enum (_("12"), _("Every twelfth row")),
81  ROW_SHADING_3_6 = Enum (_("3 & 6"), _("Every third and sixth row")),
82  ROW_SHADING_3_12 = Enum (_("3 & 12"), _("Every third and twelfth row")),
83  ROW_SHADING_6_12 = Enum (_("6 & 12"), _("Every sixth and twelfth row")),
84 };
85 
86 /* BEAST Global Config */
87 record GConfig {
88  String rc_version = ("", _("Release counter"), "", STORAGE);
89  group "Synthesis Networks" {
90  Int snet_font_size = (_("Font Size"), _("Font size in pixels for labels displayed in synthesis networks"),
91  10, 1, 48, 2, STANDARD);
92  Bool snet_anti_aliased = (_("Anti-Alias"), _("Draw synthesis networks anti-aliased?"),
93  TRUE, STANDARD);
94  Bool snet_edit_fallback = (_("Single Edit"), _("Fallback into Edit mode after creating synthesis modules?"),
95  TRUE, STANDARD);
96  Bool snet_swap_io_channels = (_("Swap IO"), _("Swap input with output channels when displaying synthesis modules?"),
97  FALSE, STANDARD);
98  };
99  group "Misc" {
100  Bool gui_enable_error_bell = (_("Enable Error Bell"), _("Notify users via error bells if edits cannot be carried out"),
101  TRUE, STANDARD);
102  Bool size_group_input_fields = (_("Homogeneous Input Fields"),
103  _("Enable homogeneous sizes for most (numeric and text) input fields. "
104  "For some fields, this will only take effect after a restart."),
105  TRUE, STANDARD);
106  Bool slow_scopes = (_("Slow scopes"),
107  _("Aggresively slows down the periodic update frequency of scopes. "
108  "Doing this may be desirable on particularly slow machines."),
109  FALSE, STANDARD);
110  };
111 };
112 
113 /* skin config */
114 record SkinConfig {
115  String skin_name = (_("Skin Name"), _("Name for the current skin configuration (used for skin selections)."), "", STANDARD);
116  group "Pattern Editor" {
117  String pattern_image = (_("Background Image"), _("Background image used by the pattern editor."), "", STANDARD ":filename:image");
118  Real pattern_shade = (_("Image shade"), _("Percentage of background image pixel to blend over background color."), 2.5, 0, 100, 5, STANDARD ":scale");
119  Int pattern_color = (_("Background Color"), "", 0xf5f3ed, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
120  Int pattern_scolor1 = (_("Background Shade 1"), "", 0xd3d1cb, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
121  Int pattern_scolor2 = (_("Background Shade 2"), "", 0xe0ded8, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
122  Int pattern_text0 = (_("Empty Field Color"), "", 0x303030, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
123  Int pattern_text1 = (_("Text Color"), "", 0x000000, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
124  Int pattern_vbar1 = (_("Vertical Bar Color"), "", 0x7f7f7f, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
125  };
126  group "Piano Roll" {
127  String piano_image = (_("Background Image"), _("Background image used by the piano-roll editor."), "", STANDARD ":filename:image");
128  Real piano_shade = (_("Image shade"), _("Percentage of background image pixel to blend over background color."), 2.5, 0, 100, 5, STANDARD ":scale");
129  Int piano_color = (_("Background Color"), "", 0xf5f3ed, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
130  Int piano_hbar = (_("Horizontal Bar Color"), "", 0x7f7f7f, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
131  Int piano_vbar = (_("Vertical Bar Color"), "", 0x7f7f7f, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
132  Int piano_hgrid = (_("Horizontal Grid Color"), "", 0xbfbfbf, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
133  Int piano_vgrid = (_("Vertical Grid Color"), "", 0xbfbfbf, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
134  Int piano_mbar = (_("Middle Bar Color"), "", 0xa0a0a0, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
135  };
136  group "Control Events" {
137  String controls_image = (_("Background Image"), _("Background image used by the control events editor."), "", STANDARD ":filename:image");
138  Real controls_shade = (_("Image shade"), _("Percentage of background image pixel to blend over background color."), 2.5, 0, 100, 5, STANDARD ":scale");
139  Int controls_color = (_("Background Color"), "", 0xf5f3ed, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
140  Int controls_hbar = (_("Horizontal Bar Color"), "", 0x7f7f7f, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
141  Int controls_mbar = (_("Middle Bar Color"), "", 0xa0a0a0, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
142  Int controls_positive = (_("Positive Value Color"), "", 0x0000ff, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
143  Int controls_zero = (_("Zero Value Color"), "", 0xff0000, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
144  Int controls_negative = (_("Negative Value Color"), "", 0x0000ff, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
145  };
146 };
147 
148 /* message filter */
150  String version;
151  String cstring;
152  Bool enabled;
153 };
155  MsgAbsorbString strings;
156 };
157 
158 /* pattern editor key bindings */
160  String key_name = ("", "", "", STANDARD);
161  String func_name = ("", "", "", STANDARD);
162  Real func_param = ("", "", 0, -1e37, 1e30, 100, STANDARD ":scale");
163 };
165  KeyBindingItem items;
166 };
167 
168 };
Definition: bstrecords.idl:149
Definition: bstrecords.idl:154
Definition: sficxx.hh:15
Definition: bstrecords.idl:114
Definition: bstrecords.idl:164
Definition: bstrecords.idl:159
Definition: bstrecords.idl:87