[beast: 40/49] BSE: add note, octave, etc constants to bseapi.idl



commit 58f181ad06fd8080d8255768bc4baf0a3100b362
Author: Tim Janik <timj gnu org>
Date:   Thu Jun 25 00:39:15 2015 +0200

    BSE: add note, octave, etc constants to bseapi.idl

 bse/bseapi.idl |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/bse/bseapi.idl b/bse/bseapi.idl
index 4162e0a..d7b85c6 100644
--- a/bse/bseapi.idl
+++ b/bse/bseapi.idl
@@ -6,11 +6,13 @@
 
 namespace Bse {
 
+// == Type Constants ==
 Const MAXINT32   = +4294967295;
 Const MAXINT31   = +2147483647;
 Const MININT31   = -2147483648;
 Const MAXFLOAT64 = 1.7976931348623157e+308;
 
+// == Enums ==
 enum ErrorType {
   ERROR_NONE = Enum (0, "OK"),
   ERROR_INTERNAL = Enum (1, "Internal error (please report)"),
@@ -271,6 +273,21 @@ enum MidiSignalType {
   MIDI_SIGNAL_CONTROL_127               = Enum (255, _("Control 127 Polyphonic Mode On ITrigger")),
 };
 
+// == Bse Constants ==
+Const MIN_NOTE = 0;
+Const MAX_NOTE = 131;           // 123
+Const NOTE_VOID = MAX_NOTE + 1; /// Value represents unparsable/unknown notes
+Const KAMMER_NOTE = 69;         /// Kammer note, representing the kammer frequency's MIDI note value for A' 
or A4
+Const KAMMER_FREQ = 440.0;      /// Pitch Standard, see also: 
https://en.wikipedia.org/wiki/A440_(pitch_standard)
+Const KAMMER_OCTAVE = +1;       /// Octave number for MIDI A'
+Const MIN_OCTAVE = -4;          /// Octave of MIN_NOTE
+Const MAX_OCTAVE = +6;          /// Octave of MAX_NOTE
+Const MIN_FINE_TUNE = -100;
+Const MAX_FINE_TUNE = 100;
+Const NOTEHINTS = "r:w:S:G:note";
+Const FINETUNEHINTS = "r:w:S:G:finetune";
+Const VELOCITYHINTS = "r:w:S:G:velocity";
+
 /// Object to carry out IDL, API, signal, etc tests.
 interface TestObject {
   int32         echo_test       (String msg);   ///< Echo custom message to stdout.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]