BEAST/BSE - Better Audio System and Sound Engine  0.8.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
bstrecords.idl
Go to the documentation of this file.
00001  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
00002 
00003 namespace Bst {
00004 /*
00005 enum Test1 {
00006   FOO1,
00007   FOO2,
00008 };
00009 record Test2 {
00010   Test1 tval;
00011 };
00012 */
00013 using namespace Sfi;
00014 Const STORAGE = ":r:w:S:";
00015 Const STANDARD = STORAGE "G:";
00016 enum Direction {
00017   UP    = Enum (_("Up"), _("Move upwards")),
00018   LEFT  = Enum (_("Left"), _("Move to the left")),
00019   RIGHT = Enum (_("Right"), _("Move to the right")),
00020   DOWN  = Enum (_("Down"), _("Move downwards"))
00021 };
00022 enum FFTSize {
00023   FFT_SIZE_2     = Enum (_("2 Value FFT Window"), _("A 2 value FFT window corresponds to a spectrum with 2 frequency peaks")),
00024   FFT_SIZE_4     = Enum (_("4 Value FFT Window"), _("A 4 value FFT window corresponds to a spectrum with 3 frequency peaks")),
00025   FFT_SIZE_8     = Enum (_("8 Value FFT Window"), _("A 8 value FFT window corresponds to a spectrum with 5 frequency peaks")),
00026   FFT_SIZE_16    = Enum (_("16 Value FFT Window"), _("A 16 value FFT window corresponds to a spectrum with 9 frequency peaks")),
00027   FFT_SIZE_32    = Enum (_("32 Value FFT Window"), _("A 32 value FFT window corresponds to a spectrum with 17 frequency peaks")),
00028   FFT_SIZE_64    = Enum (_("64 Value FFT Window"), _("A 64 value FFT window corresponds to a spectrum with 33 frequency peaks")),
00029   FFT_SIZE_128   = Enum (_("128 Value FFT Window"), _("A 128 value FFT window corresponds to a spectrum with 65 frequency peaks")),
00030   FFT_SIZE_256   = Enum (_("256 Value FFT Window"), _("A 256 value FFT window corresponds to a spectrum with 129 frequency peaks")),
00031   FFT_SIZE_512   = Enum (_("512 Value FFT Window"), _("A 512 value FFT window corresponds to a spectrum with 257 frequency peaks")),
00032   FFT_SIZE_1024  = Enum (_("1024 Value FFT Window"), _("A 1024 value FFT window corresponds to a spectrum with 513 frequency peaks")),
00033   FFT_SIZE_2048  = Enum (_("2048 Value FFT Window"), _("A 2048 value FFT window corresponds to a spectrum with 1025 frequency peaks")),
00034   FFT_SIZE_4096  = Enum (_("4096 Value FFT Window"), _("A 4096 value FFT window corresponds to a spectrum with 2049 frequency peaks")),
00035   FFT_SIZE_8192  = Enum (_("8192 Value FFT Window"), _("A 8192 value FFT window corresponds to a spectrum with 4097 frequency peaks")),
00036   FFT_SIZE_16384 = Enum (_("16384 Value FFT Window"), _("A 16384 value FFT window corresponds to a spectrum with 8193 frequency peaks")),
00037   FFT_SIZE_32768 = Enum (_("32768 Value FFT Window"), _("A 32768 value FFT window corresponds to a spectrum with 16385 frequency peaks")),
00038   FFT_SIZE_65536 = Enum (_("65536 Value FFT Window"), _("A 65536 value FFT window corresponds to a spectrum with 32769 frequency peaks")),
00039 };
00040 enum NoteLength {
00041   NOTE_LENGTH_NONE      = Enum (0,          _("None"), _("Unspecified length")),
00042   NOTE_LENGTH_1         = Enum (_("1/1"),   _("Whole note")),
00043   NOTE_LENGTH_2         = Enum (_("1/2"),   _("Half note")),
00044   NOTE_LENGTH_4         = Enum (_("1/4"),   _("Quarter note")),
00045   NOTE_LENGTH_8         = Enum (_("1/8"),   _("Eighths note")),
00046   NOTE_LENGTH_16        = Enum (_("1/16"),  _("Sixteenth note")),
00047   NOTE_LENGTH_32        = Enum (_("1/32"),  _("Thirty-secondth note")),
00048   NOTE_LENGTH_64        = Enum (_("1/64"),  _("Sixty-fourth note")),
00049   NOTE_LENGTH_128       = Enum (_("1/128"), _("Hundred twenty-eighth note")),
00050   NOTE_LENGTH_1P        = Enum (_("1/1."),  _("Dotted whole note")),
00051   NOTE_LENGTH_2P        = Enum (_("1/2."),  _("Dotted half note")),
00052   NOTE_LENGTH_4P        = Enum (_("1/4."),  _("Dotted quarter note")),
00053   NOTE_LENGTH_8P        = Enum (_("1/8."),  _("Dotted eighths note")),
00054   NOTE_LENGTH_16P       = Enum (_("1/16."), _("Dotted sixteenth note")),
00055   NOTE_LENGTH_32P       = Enum (_("1/32."), _("Dotted thirty-secondth note")),
00056   NOTE_LENGTH_64P       = Enum (_("1/64."), _("Dotted sixty-fourth note")),
00057   NOTE_LENGTH_128P      = Enum (_("1/128."),_("Dotted hundred twenty-eighth note")),
00058   NOTE_LENGTH_1T        = Enum (_("1/1T"),  _("Triplet whole note")),
00059   NOTE_LENGTH_2T        = Enum (_("1/2T"),  _("Triplet half note")),
00060   NOTE_LENGTH_4T        = Enum (_("1/4T"),  _("Triplet quarter note")),
00061   NOTE_LENGTH_8T        = Enum (_("1/8T"),  _("Triplet eighths note")),
00062   NOTE_LENGTH_16T       = Enum (_("1/16T"), _("Triplet sixteenth note")),
00063   NOTE_LENGTH_32T       = Enum (_("1/32T"), _("Triplet thirty-secondth note")),
00064   NOTE_LENGTH_64T       = Enum (_("1/64T"), _("Triplet sixty-fourth note")),
00065   NOTE_LENGTH_128T      = Enum (_("1/128T"),_("Triplet hundred twenty-eighth note")),
00066 };
00067 enum RowShading {
00068   ROW_SHADING_NONE    = Enum (0,             _("None")),
00069   ROW_SHADING_2       = Enum (_("2"),        _("Every second row")),
00070   ROW_SHADING_4       = Enum (_("4"),        _("Every fourth row")),
00071   ROW_SHADING_8       = Enum (_("8"),        _("Every eighth row")),
00072   ROW_SHADING_16      = Enum (_("16"),       _("Every sixteenth row")),
00073   ROW_SHADING_2_4     = Enum (_("2 & 4"),    _("Every second and fourth row")),
00074   ROW_SHADING_4_8     = Enum (_("4 & 8"),    _("Every fourth and eighth row")),
00075   ROW_SHADING_4_12    = Enum (_("4 & 12"),   _("Every fourth and twelfth row")),
00076   ROW_SHADING_4_16    = Enum (_("4 & 16"),   _("Every fourth and sixteenth row")),
00077   ROW_SHADING_8_16    = Enum (_("8 & 16"),   _("Every eighth and sixteenth row")),
00078   ROW_SHADING_3       = Enum (_("3"),        _("Every third row")),
00079   ROW_SHADING_6       = Enum (_("6"),        _("Every sixth row")),
00080   ROW_SHADING_12      = Enum (_("12"),       _("Every twelfth row")),
00081   ROW_SHADING_3_6     = Enum (_("3 & 6"),    _("Every third and sixth row")),
00082   ROW_SHADING_3_12    = Enum (_("3 & 12"),   _("Every third and twelfth row")),
00083   ROW_SHADING_6_12    = Enum (_("6 & 12"),   _("Every sixth and twelfth row")),
00084 };
00085 
00086 /* BEAST Global Config */
00087 record GConfig {
00088   String rc_version                     = ("", _("Release counter"), "", STORAGE);
00089   group "Synthesis Networks" {
00090     Int         snet_font_size          = (_("Font Size"), _("Font size in pixels for labels displayed in synthesis networks"),
00091                                            10, 1, 48, 2, STANDARD);
00092     Bool        snet_anti_aliased       = (_("Anti-Alias"), _("Draw synthesis networks anti-aliased?"),
00093                                             TRUE, STANDARD);
00094     Bool        snet_edit_fallback      = (_("Single Edit"), _("Fallback into Edit mode after creating synthesis modules?"),
00095                                             TRUE, STANDARD);
00096     Bool        snet_swap_io_channels   = (_("Swap IO"), _("Swap input with output channels when displaying synthesis modules?"),
00097                                            FALSE, STANDARD);
00098   };
00099   group "Misc" {
00100     Bool        gui_enable_error_bell   = (_("Enable Error Bell"), _("Notify users via error bells if edits cannot be carried out"),
00101                                            TRUE, STANDARD);
00102     Bool        size_group_input_fields = (_("Homogeneous Input Fields"),
00103                                            _("Enable homogeneous sizes for most (numeric and text) input fields. "
00104                                              "For some fields, this will only take effect after a restart."),
00105                                            TRUE, STANDARD);
00106     Bool        slow_scopes             = (_("Slow scopes"),
00107                                            _("Aggresively slows down the periodic update frequency of scopes. "
00108                                              "Doing this may be desirable on particularly slow machines."),
00109                                            FALSE, STANDARD);
00110   };
00111 };
00112 
00113 /* skin config */
00114 record SkinConfig {
00115   String         skin_name   = (_("Skin Name"), _("Name for the current skin configuration (used for skin selections)."), "", STANDARD);
00116   group "Pattern Editor" {
00117     String   pattern_image   = (_("Background Image"), _("Background image used by the pattern editor."), "", STANDARD ":filename:image");
00118     Real     pattern_shade   = (_("Image shade"), _("Percentage of background image pixel to blend over background color."), 2.5, 0, 100, 5, STANDARD ":scale");
00119     Int      pattern_color   = (_("Background Color"),      "", 0xf5f3ed, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00120     Int      pattern_scolor1 = (_("Background Shade 1"),    "", 0xd3d1cb, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00121     Int      pattern_scolor2 = (_("Background Shade 2"),    "", 0xe0ded8, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00122     Int      pattern_text0   = (_("Empty Field Color"),     "", 0x303030, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00123     Int      pattern_text1   = (_("Text Color"),            "", 0x000000, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00124     Int      pattern_vbar1   = (_("Vertical Bar Color"),    "", 0x7f7f7f, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00125   };
00126   group "Piano Roll" {
00127     String       piano_image = (_("Background Image"), _("Background image used by the piano-roll editor."), "", STANDARD ":filename:image");
00128     Real         piano_shade = (_("Image shade"), _("Percentage of background image pixel to blend over background color."), 2.5, 0, 100, 5, STANDARD ":scale");
00129     Int          piano_color = (_("Background Color"),      "", 0xf5f3ed, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00130     Int          piano_hbar  = (_("Horizontal Bar Color"),  "", 0x7f7f7f, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00131     Int          piano_vbar  = (_("Vertical Bar Color"),    "", 0x7f7f7f, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00132     Int          piano_hgrid = (_("Horizontal Grid Color"), "", 0xbfbfbf, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00133     Int          piano_vgrid = (_("Vertical Grid Color"),   "", 0xbfbfbf, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00134     Int          piano_mbar  = (_("Middle Bar Color"),      "", 0xa0a0a0, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00135   };
00136   group "Control Events" {
00137     String controls_image    = (_("Background Image"), _("Background image used by the control events editor."), "", STANDARD ":filename:image");
00138     Real   controls_shade    = (_("Image shade"), _("Percentage of background image pixel to blend over background color."), 2.5, 0, 100, 5, STANDARD ":scale");
00139     Int    controls_color    = (_("Background Color"),      "", 0xf5f3ed, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00140     Int    controls_hbar     = (_("Horizontal Bar Color"),  "", 0x7f7f7f, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00141     Int    controls_mbar     = (_("Middle Bar Color"),      "", 0xa0a0a0, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00142     Int    controls_positive = (_("Positive Value Color"),  "", 0x0000ff, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00143     Int    controls_zero     = (_("Zero Value Color"),      "", 0xff0000, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00144     Int    controls_negative = (_("Negative Value Color"),  "", 0x0000ff, 0, 0xffffff, 0x010101, STANDARD ":rgb:hex");
00145   };
00146 };
00147 
00148 /* message filter */
00149 record MsgAbsorbString {
00150   String version;
00151   String cstring;
00152   Bool   enabled;
00153 };
00154 sequence MsgAbsorbStringSeq {
00155   MsgAbsorbString strings;
00156 };
00157 
00158 /* pattern editor key bindings */
00159 record KeyBindingItem {
00160   String key_name   = ("", "", "", STANDARD);
00161   String func_name  = ("", "", "", STANDARD);
00162   Real   func_param = ("", "", 0, -1e37, 1e30, 100, STANDARD ":scale");
00163 };
00164 sequence KeyBindingItemSeq {
00165   KeyBindingItem items;
00166 };
00167 
00168 };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines