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