[beast: 5/29] BSE: use Bse::MidiSignal::* instead of Bse::MIDI_SIGNAL_*
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 5/29] BSE: use Bse::MidiSignal::* instead of Bse::MIDI_SIGNAL_*
- Date: Mon, 21 Mar 2016 15:12:06 +0000 (UTC)
commit 2f8831ddd5e268a40e839f8a262fc504672aa940
Author: Tim Janik <timj gnu org>
Date: Thu Jan 28 14:03:26 2016 +0100
BSE: use Bse::MidiSignal::* instead of Bse::MIDI_SIGNAL_*
Signed-off-by: Tim Janik <timj gnu org>
bse/bseenums.hh | 344 +++++++++++++++++++++++-----------------------
bse/bsemidicontroller.cc | 16 +-
bse/bsemidievent.cc | 62 ++++----
bse/bsemidifile.cc | 8 +-
bse/bsemidireceiver.cc | 24 ++--
bse/bsepart.cc | 24 ++--
bse/bsepart.hh | 4 +-
bse/bsesource.cc | 8 +-
sfi/tests/testsfidl.cc | 2 +-
9 files changed, 246 insertions(+), 246 deletions(-)
---
diff --git a/bse/bseenums.hh b/bse/bseenums.hh
index b489498..abe8f57 100644
--- a/bse/bseenums.hh
+++ b/bse/bseenums.hh
@@ -126,178 +126,178 @@ typedef enum
} BseErrorType;
typedef enum
{
- BSE_MIDI_SIGNAL_PROGRAM = Bse::MIDI_SIGNAL_PROGRAM,
- BSE_MIDI_SIGNAL_PRESSURE = Bse::MIDI_SIGNAL_PRESSURE,
- BSE_MIDI_SIGNAL_PITCH_BEND = Bse::MIDI_SIGNAL_PITCH_BEND,
- BSE_MIDI_SIGNAL_VELOCITY = Bse::MIDI_SIGNAL_VELOCITY,
- BSE_MIDI_SIGNAL_FINE_TUNE = Bse::MIDI_SIGNAL_FINE_TUNE,
- BSE_MIDI_SIGNAL_CONTINUOUS_0 = Bse::MIDI_SIGNAL_CONTINUOUS_0,
- BSE_MIDI_SIGNAL_CONTINUOUS_1 = Bse::MIDI_SIGNAL_CONTINUOUS_1,
- BSE_MIDI_SIGNAL_CONTINUOUS_2 = Bse::MIDI_SIGNAL_CONTINUOUS_2,
- BSE_MIDI_SIGNAL_CONTINUOUS_3 = Bse::MIDI_SIGNAL_CONTINUOUS_3,
- BSE_MIDI_SIGNAL_CONTINUOUS_4 = Bse::MIDI_SIGNAL_CONTINUOUS_4,
- BSE_MIDI_SIGNAL_CONTINUOUS_5 = Bse::MIDI_SIGNAL_CONTINUOUS_5,
- BSE_MIDI_SIGNAL_CONTINUOUS_6 = Bse::MIDI_SIGNAL_CONTINUOUS_6,
- BSE_MIDI_SIGNAL_CONTINUOUS_7 = Bse::MIDI_SIGNAL_CONTINUOUS_7,
- BSE_MIDI_SIGNAL_CONTINUOUS_8 = Bse::MIDI_SIGNAL_CONTINUOUS_8,
- BSE_MIDI_SIGNAL_CONTINUOUS_9 = Bse::MIDI_SIGNAL_CONTINUOUS_9,
- BSE_MIDI_SIGNAL_CONTINUOUS_10 = Bse::MIDI_SIGNAL_CONTINUOUS_10,
- BSE_MIDI_SIGNAL_CONTINUOUS_11 = Bse::MIDI_SIGNAL_CONTINUOUS_11,
- BSE_MIDI_SIGNAL_CONTINUOUS_12 = Bse::MIDI_SIGNAL_CONTINUOUS_12,
- BSE_MIDI_SIGNAL_CONTINUOUS_13 = Bse::MIDI_SIGNAL_CONTINUOUS_13,
- BSE_MIDI_SIGNAL_CONTINUOUS_14 = Bse::MIDI_SIGNAL_CONTINUOUS_14,
- BSE_MIDI_SIGNAL_CONTINUOUS_15 = Bse::MIDI_SIGNAL_CONTINUOUS_15,
- BSE_MIDI_SIGNAL_CONTINUOUS_16 = Bse::MIDI_SIGNAL_CONTINUOUS_16,
- BSE_MIDI_SIGNAL_CONTINUOUS_17 = Bse::MIDI_SIGNAL_CONTINUOUS_17,
- BSE_MIDI_SIGNAL_CONTINUOUS_18 = Bse::MIDI_SIGNAL_CONTINUOUS_18,
- BSE_MIDI_SIGNAL_CONTINUOUS_19 = Bse::MIDI_SIGNAL_CONTINUOUS_19,
- BSE_MIDI_SIGNAL_CONTINUOUS_20 = Bse::MIDI_SIGNAL_CONTINUOUS_20,
- BSE_MIDI_SIGNAL_CONTINUOUS_21 = Bse::MIDI_SIGNAL_CONTINUOUS_21,
- BSE_MIDI_SIGNAL_CONTINUOUS_22 = Bse::MIDI_SIGNAL_CONTINUOUS_22,
- BSE_MIDI_SIGNAL_CONTINUOUS_23 = Bse::MIDI_SIGNAL_CONTINUOUS_23,
- BSE_MIDI_SIGNAL_CONTINUOUS_24 = Bse::MIDI_SIGNAL_CONTINUOUS_24,
- BSE_MIDI_SIGNAL_CONTINUOUS_25 = Bse::MIDI_SIGNAL_CONTINUOUS_25,
- BSE_MIDI_SIGNAL_CONTINUOUS_26 = Bse::MIDI_SIGNAL_CONTINUOUS_26,
- BSE_MIDI_SIGNAL_CONTINUOUS_27 = Bse::MIDI_SIGNAL_CONTINUOUS_27,
- BSE_MIDI_SIGNAL_CONTINUOUS_28 = Bse::MIDI_SIGNAL_CONTINUOUS_28,
- BSE_MIDI_SIGNAL_CONTINUOUS_29 = Bse::MIDI_SIGNAL_CONTINUOUS_29,
- BSE_MIDI_SIGNAL_CONTINUOUS_30 = Bse::MIDI_SIGNAL_CONTINUOUS_30,
- BSE_MIDI_SIGNAL_CONTINUOUS_31 = Bse::MIDI_SIGNAL_CONTINUOUS_31,
- BSE_MIDI_SIGNAL_CONSTANT_HIGH = Bse::MIDI_SIGNAL_CONSTANT_HIGH,
- BSE_MIDI_SIGNAL_CONSTANT_CENTER = Bse::MIDI_SIGNAL_CONSTANT_CENTER,
- BSE_MIDI_SIGNAL_CONSTANT_LOW = Bse::MIDI_SIGNAL_CONSTANT_LOW,
- BSE_MIDI_SIGNAL_CONSTANT_NEGATIVE_CENTER = Bse::MIDI_SIGNAL_CONSTANT_NEGATIVE_CENTER,
- BSE_MIDI_SIGNAL_CONSTANT_NEGATIVE_HIGH = Bse::MIDI_SIGNAL_CONSTANT_NEGATIVE_HIGH,
- BSE_MIDI_SIGNAL_PARAMETER = Bse::MIDI_SIGNAL_PARAMETER,
- BSE_MIDI_SIGNAL_NON_PARAMETER = Bse::MIDI_SIGNAL_NON_PARAMETER,
- BSE_MIDI_SIGNAL_CONTROL_0 = Bse::MIDI_SIGNAL_CONTROL_0,
- BSE_MIDI_SIGNAL_CONTROL_1 = Bse::MIDI_SIGNAL_CONTROL_1,
- BSE_MIDI_SIGNAL_CONTROL_2 = Bse::MIDI_SIGNAL_CONTROL_2,
- BSE_MIDI_SIGNAL_CONTROL_3 = Bse::MIDI_SIGNAL_CONTROL_3,
- BSE_MIDI_SIGNAL_CONTROL_4 = Bse::MIDI_SIGNAL_CONTROL_4,
- BSE_MIDI_SIGNAL_CONTROL_5 = Bse::MIDI_SIGNAL_CONTROL_5,
- BSE_MIDI_SIGNAL_CONTROL_6 = Bse::MIDI_SIGNAL_CONTROL_6,
- BSE_MIDI_SIGNAL_CONTROL_7 = Bse::MIDI_SIGNAL_CONTROL_7,
- BSE_MIDI_SIGNAL_CONTROL_8 = Bse::MIDI_SIGNAL_CONTROL_8,
- BSE_MIDI_SIGNAL_CONTROL_9 = Bse::MIDI_SIGNAL_CONTROL_9,
- BSE_MIDI_SIGNAL_CONTROL_10 = Bse::MIDI_SIGNAL_CONTROL_10,
- BSE_MIDI_SIGNAL_CONTROL_11 = Bse::MIDI_SIGNAL_CONTROL_11,
- BSE_MIDI_SIGNAL_CONTROL_12 = Bse::MIDI_SIGNAL_CONTROL_12,
- BSE_MIDI_SIGNAL_CONTROL_13 = Bse::MIDI_SIGNAL_CONTROL_13,
- BSE_MIDI_SIGNAL_CONTROL_14 = Bse::MIDI_SIGNAL_CONTROL_14,
- BSE_MIDI_SIGNAL_CONTROL_15 = Bse::MIDI_SIGNAL_CONTROL_15,
- BSE_MIDI_SIGNAL_CONTROL_16 = Bse::MIDI_SIGNAL_CONTROL_16,
- BSE_MIDI_SIGNAL_CONTROL_17 = Bse::MIDI_SIGNAL_CONTROL_17,
- BSE_MIDI_SIGNAL_CONTROL_18 = Bse::MIDI_SIGNAL_CONTROL_18,
- BSE_MIDI_SIGNAL_CONTROL_19 = Bse::MIDI_SIGNAL_CONTROL_19,
- BSE_MIDI_SIGNAL_CONTROL_20 = Bse::MIDI_SIGNAL_CONTROL_20,
- BSE_MIDI_SIGNAL_CONTROL_21 = Bse::MIDI_SIGNAL_CONTROL_21,
- BSE_MIDI_SIGNAL_CONTROL_22 = Bse::MIDI_SIGNAL_CONTROL_22,
- BSE_MIDI_SIGNAL_CONTROL_23 = Bse::MIDI_SIGNAL_CONTROL_23,
- BSE_MIDI_SIGNAL_CONTROL_24 = Bse::MIDI_SIGNAL_CONTROL_24,
- BSE_MIDI_SIGNAL_CONTROL_25 = Bse::MIDI_SIGNAL_CONTROL_25,
- BSE_MIDI_SIGNAL_CONTROL_26 = Bse::MIDI_SIGNAL_CONTROL_26,
- BSE_MIDI_SIGNAL_CONTROL_27 = Bse::MIDI_SIGNAL_CONTROL_27,
- BSE_MIDI_SIGNAL_CONTROL_28 = Bse::MIDI_SIGNAL_CONTROL_28,
- BSE_MIDI_SIGNAL_CONTROL_29 = Bse::MIDI_SIGNAL_CONTROL_29,
- BSE_MIDI_SIGNAL_CONTROL_30 = Bse::MIDI_SIGNAL_CONTROL_30,
- BSE_MIDI_SIGNAL_CONTROL_31 = Bse::MIDI_SIGNAL_CONTROL_31,
- BSE_MIDI_SIGNAL_CONTROL_32 = Bse::MIDI_SIGNAL_CONTROL_32,
- BSE_MIDI_SIGNAL_CONTROL_33 = Bse::MIDI_SIGNAL_CONTROL_33,
- BSE_MIDI_SIGNAL_CONTROL_34 = Bse::MIDI_SIGNAL_CONTROL_34,
- BSE_MIDI_SIGNAL_CONTROL_35 = Bse::MIDI_SIGNAL_CONTROL_35,
- BSE_MIDI_SIGNAL_CONTROL_36 = Bse::MIDI_SIGNAL_CONTROL_36,
- BSE_MIDI_SIGNAL_CONTROL_37 = Bse::MIDI_SIGNAL_CONTROL_37,
- BSE_MIDI_SIGNAL_CONTROL_38 = Bse::MIDI_SIGNAL_CONTROL_38,
- BSE_MIDI_SIGNAL_CONTROL_39 = Bse::MIDI_SIGNAL_CONTROL_39,
- BSE_MIDI_SIGNAL_CONTROL_40 = Bse::MIDI_SIGNAL_CONTROL_40,
- BSE_MIDI_SIGNAL_CONTROL_41 = Bse::MIDI_SIGNAL_CONTROL_41,
- BSE_MIDI_SIGNAL_CONTROL_42 = Bse::MIDI_SIGNAL_CONTROL_42,
- BSE_MIDI_SIGNAL_CONTROL_43 = Bse::MIDI_SIGNAL_CONTROL_43,
- BSE_MIDI_SIGNAL_CONTROL_44 = Bse::MIDI_SIGNAL_CONTROL_44,
- BSE_MIDI_SIGNAL_CONTROL_45 = Bse::MIDI_SIGNAL_CONTROL_45,
- BSE_MIDI_SIGNAL_CONTROL_46 = Bse::MIDI_SIGNAL_CONTROL_46,
- BSE_MIDI_SIGNAL_CONTROL_47 = Bse::MIDI_SIGNAL_CONTROL_47,
- BSE_MIDI_SIGNAL_CONTROL_48 = Bse::MIDI_SIGNAL_CONTROL_48,
- BSE_MIDI_SIGNAL_CONTROL_49 = Bse::MIDI_SIGNAL_CONTROL_49,
- BSE_MIDI_SIGNAL_CONTROL_50 = Bse::MIDI_SIGNAL_CONTROL_50,
- BSE_MIDI_SIGNAL_CONTROL_51 = Bse::MIDI_SIGNAL_CONTROL_51,
- BSE_MIDI_SIGNAL_CONTROL_52 = Bse::MIDI_SIGNAL_CONTROL_52,
- BSE_MIDI_SIGNAL_CONTROL_53 = Bse::MIDI_SIGNAL_CONTROL_53,
- BSE_MIDI_SIGNAL_CONTROL_54 = Bse::MIDI_SIGNAL_CONTROL_54,
- BSE_MIDI_SIGNAL_CONTROL_55 = Bse::MIDI_SIGNAL_CONTROL_55,
- BSE_MIDI_SIGNAL_CONTROL_56 = Bse::MIDI_SIGNAL_CONTROL_56,
- BSE_MIDI_SIGNAL_CONTROL_57 = Bse::MIDI_SIGNAL_CONTROL_57,
- BSE_MIDI_SIGNAL_CONTROL_58 = Bse::MIDI_SIGNAL_CONTROL_58,
- BSE_MIDI_SIGNAL_CONTROL_59 = Bse::MIDI_SIGNAL_CONTROL_59,
- BSE_MIDI_SIGNAL_CONTROL_60 = Bse::MIDI_SIGNAL_CONTROL_60,
- BSE_MIDI_SIGNAL_CONTROL_61 = Bse::MIDI_SIGNAL_CONTROL_61,
- BSE_MIDI_SIGNAL_CONTROL_62 = Bse::MIDI_SIGNAL_CONTROL_62,
- BSE_MIDI_SIGNAL_CONTROL_63 = Bse::MIDI_SIGNAL_CONTROL_63,
- BSE_MIDI_SIGNAL_CONTROL_64 = Bse::MIDI_SIGNAL_CONTROL_64,
- BSE_MIDI_SIGNAL_CONTROL_65 = Bse::MIDI_SIGNAL_CONTROL_65,
- BSE_MIDI_SIGNAL_CONTROL_66 = Bse::MIDI_SIGNAL_CONTROL_66,
- BSE_MIDI_SIGNAL_CONTROL_67 = Bse::MIDI_SIGNAL_CONTROL_67,
- BSE_MIDI_SIGNAL_CONTROL_68 = Bse::MIDI_SIGNAL_CONTROL_68,
- BSE_MIDI_SIGNAL_CONTROL_69 = Bse::MIDI_SIGNAL_CONTROL_69,
- BSE_MIDI_SIGNAL_CONTROL_70 = Bse::MIDI_SIGNAL_CONTROL_70,
- BSE_MIDI_SIGNAL_CONTROL_71 = Bse::MIDI_SIGNAL_CONTROL_71,
- BSE_MIDI_SIGNAL_CONTROL_72 = Bse::MIDI_SIGNAL_CONTROL_72,
- BSE_MIDI_SIGNAL_CONTROL_73 = Bse::MIDI_SIGNAL_CONTROL_73,
- BSE_MIDI_SIGNAL_CONTROL_74 = Bse::MIDI_SIGNAL_CONTROL_74,
- BSE_MIDI_SIGNAL_CONTROL_75 = Bse::MIDI_SIGNAL_CONTROL_75,
- BSE_MIDI_SIGNAL_CONTROL_76 = Bse::MIDI_SIGNAL_CONTROL_76,
- BSE_MIDI_SIGNAL_CONTROL_77 = Bse::MIDI_SIGNAL_CONTROL_77,
- BSE_MIDI_SIGNAL_CONTROL_78 = Bse::MIDI_SIGNAL_CONTROL_78,
- BSE_MIDI_SIGNAL_CONTROL_79 = Bse::MIDI_SIGNAL_CONTROL_79,
- BSE_MIDI_SIGNAL_CONTROL_80 = Bse::MIDI_SIGNAL_CONTROL_80,
- BSE_MIDI_SIGNAL_CONTROL_81 = Bse::MIDI_SIGNAL_CONTROL_81,
- BSE_MIDI_SIGNAL_CONTROL_82 = Bse::MIDI_SIGNAL_CONTROL_82,
- BSE_MIDI_SIGNAL_CONTROL_83 = Bse::MIDI_SIGNAL_CONTROL_83,
- BSE_MIDI_SIGNAL_CONTROL_84 = Bse::MIDI_SIGNAL_CONTROL_84,
- BSE_MIDI_SIGNAL_CONTROL_85 = Bse::MIDI_SIGNAL_CONTROL_85,
- BSE_MIDI_SIGNAL_CONTROL_86 = Bse::MIDI_SIGNAL_CONTROL_86,
- BSE_MIDI_SIGNAL_CONTROL_87 = Bse::MIDI_SIGNAL_CONTROL_87,
- BSE_MIDI_SIGNAL_CONTROL_88 = Bse::MIDI_SIGNAL_CONTROL_88,
- BSE_MIDI_SIGNAL_CONTROL_89 = Bse::MIDI_SIGNAL_CONTROL_89,
- BSE_MIDI_SIGNAL_CONTROL_90 = Bse::MIDI_SIGNAL_CONTROL_90,
- BSE_MIDI_SIGNAL_CONTROL_91 = Bse::MIDI_SIGNAL_CONTROL_91,
- BSE_MIDI_SIGNAL_CONTROL_92 = Bse::MIDI_SIGNAL_CONTROL_92,
- BSE_MIDI_SIGNAL_CONTROL_93 = Bse::MIDI_SIGNAL_CONTROL_93,
- BSE_MIDI_SIGNAL_CONTROL_94 = Bse::MIDI_SIGNAL_CONTROL_94,
- BSE_MIDI_SIGNAL_CONTROL_95 = Bse::MIDI_SIGNAL_CONTROL_95,
- BSE_MIDI_SIGNAL_CONTROL_96 = Bse::MIDI_SIGNAL_CONTROL_96,
- BSE_MIDI_SIGNAL_CONTROL_97 = Bse::MIDI_SIGNAL_CONTROL_97,
- BSE_MIDI_SIGNAL_CONTROL_98 = Bse::MIDI_SIGNAL_CONTROL_98,
- BSE_MIDI_SIGNAL_CONTROL_99 = Bse::MIDI_SIGNAL_CONTROL_99,
- BSE_MIDI_SIGNAL_CONTROL_100 = Bse::MIDI_SIGNAL_CONTROL_100,
- BSE_MIDI_SIGNAL_CONTROL_101 = Bse::MIDI_SIGNAL_CONTROL_101,
- BSE_MIDI_SIGNAL_CONTROL_102 = Bse::MIDI_SIGNAL_CONTROL_102,
- BSE_MIDI_SIGNAL_CONTROL_103 = Bse::MIDI_SIGNAL_CONTROL_103,
- BSE_MIDI_SIGNAL_CONTROL_104 = Bse::MIDI_SIGNAL_CONTROL_104,
- BSE_MIDI_SIGNAL_CONTROL_105 = Bse::MIDI_SIGNAL_CONTROL_105,
- BSE_MIDI_SIGNAL_CONTROL_106 = Bse::MIDI_SIGNAL_CONTROL_106,
- BSE_MIDI_SIGNAL_CONTROL_107 = Bse::MIDI_SIGNAL_CONTROL_107,
- BSE_MIDI_SIGNAL_CONTROL_108 = Bse::MIDI_SIGNAL_CONTROL_108,
- BSE_MIDI_SIGNAL_CONTROL_109 = Bse::MIDI_SIGNAL_CONTROL_109,
- BSE_MIDI_SIGNAL_CONTROL_110 = Bse::MIDI_SIGNAL_CONTROL_110,
- BSE_MIDI_SIGNAL_CONTROL_111 = Bse::MIDI_SIGNAL_CONTROL_111,
- BSE_MIDI_SIGNAL_CONTROL_112 = Bse::MIDI_SIGNAL_CONTROL_112,
- BSE_MIDI_SIGNAL_CONTROL_113 = Bse::MIDI_SIGNAL_CONTROL_113,
- BSE_MIDI_SIGNAL_CONTROL_114 = Bse::MIDI_SIGNAL_CONTROL_114,
- BSE_MIDI_SIGNAL_CONTROL_115 = Bse::MIDI_SIGNAL_CONTROL_115,
- BSE_MIDI_SIGNAL_CONTROL_116 = Bse::MIDI_SIGNAL_CONTROL_116,
- BSE_MIDI_SIGNAL_CONTROL_117 = Bse::MIDI_SIGNAL_CONTROL_117,
- BSE_MIDI_SIGNAL_CONTROL_118 = Bse::MIDI_SIGNAL_CONTROL_118,
- BSE_MIDI_SIGNAL_CONTROL_119 = Bse::MIDI_SIGNAL_CONTROL_119,
- BSE_MIDI_SIGNAL_CONTROL_120 = Bse::MIDI_SIGNAL_CONTROL_120,
- BSE_MIDI_SIGNAL_CONTROL_121 = Bse::MIDI_SIGNAL_CONTROL_121,
- BSE_MIDI_SIGNAL_CONTROL_122 = Bse::MIDI_SIGNAL_CONTROL_122,
- BSE_MIDI_SIGNAL_CONTROL_123 = Bse::MIDI_SIGNAL_CONTROL_123,
- BSE_MIDI_SIGNAL_CONTROL_124 = Bse::MIDI_SIGNAL_CONTROL_124,
- BSE_MIDI_SIGNAL_CONTROL_125 = Bse::MIDI_SIGNAL_CONTROL_125,
- BSE_MIDI_SIGNAL_CONTROL_126 = Bse::MIDI_SIGNAL_CONTROL_126,
- BSE_MIDI_SIGNAL_CONTROL_127 = Bse::MIDI_SIGNAL_CONTROL_127,
+ BSE_MIDI_SIGNAL_PROGRAM = Bse::MidiSignal::PROGRAM,
+ BSE_MIDI_SIGNAL_PRESSURE = Bse::MidiSignal::PRESSURE,
+ BSE_MIDI_SIGNAL_PITCH_BEND = Bse::MidiSignal::PITCH_BEND,
+ BSE_MIDI_SIGNAL_VELOCITY = Bse::MidiSignal::VELOCITY,
+ BSE_MIDI_SIGNAL_FINE_TUNE = Bse::MidiSignal::FINE_TUNE,
+ BSE_MIDI_SIGNAL_CONTINUOUS_0 = Bse::MidiSignal::CONTINUOUS_0,
+ BSE_MIDI_SIGNAL_CONTINUOUS_1 = Bse::MidiSignal::CONTINUOUS_1,
+ BSE_MIDI_SIGNAL_CONTINUOUS_2 = Bse::MidiSignal::CONTINUOUS_2,
+ BSE_MIDI_SIGNAL_CONTINUOUS_3 = Bse::MidiSignal::CONTINUOUS_3,
+ BSE_MIDI_SIGNAL_CONTINUOUS_4 = Bse::MidiSignal::CONTINUOUS_4,
+ BSE_MIDI_SIGNAL_CONTINUOUS_5 = Bse::MidiSignal::CONTINUOUS_5,
+ BSE_MIDI_SIGNAL_CONTINUOUS_6 = Bse::MidiSignal::CONTINUOUS_6,
+ BSE_MIDI_SIGNAL_CONTINUOUS_7 = Bse::MidiSignal::CONTINUOUS_7,
+ BSE_MIDI_SIGNAL_CONTINUOUS_8 = Bse::MidiSignal::CONTINUOUS_8,
+ BSE_MIDI_SIGNAL_CONTINUOUS_9 = Bse::MidiSignal::CONTINUOUS_9,
+ BSE_MIDI_SIGNAL_CONTINUOUS_10 = Bse::MidiSignal::CONTINUOUS_10,
+ BSE_MIDI_SIGNAL_CONTINUOUS_11 = Bse::MidiSignal::CONTINUOUS_11,
+ BSE_MIDI_SIGNAL_CONTINUOUS_12 = Bse::MidiSignal::CONTINUOUS_12,
+ BSE_MIDI_SIGNAL_CONTINUOUS_13 = Bse::MidiSignal::CONTINUOUS_13,
+ BSE_MIDI_SIGNAL_CONTINUOUS_14 = Bse::MidiSignal::CONTINUOUS_14,
+ BSE_MIDI_SIGNAL_CONTINUOUS_15 = Bse::MidiSignal::CONTINUOUS_15,
+ BSE_MIDI_SIGNAL_CONTINUOUS_16 = Bse::MidiSignal::CONTINUOUS_16,
+ BSE_MIDI_SIGNAL_CONTINUOUS_17 = Bse::MidiSignal::CONTINUOUS_17,
+ BSE_MIDI_SIGNAL_CONTINUOUS_18 = Bse::MidiSignal::CONTINUOUS_18,
+ BSE_MIDI_SIGNAL_CONTINUOUS_19 = Bse::MidiSignal::CONTINUOUS_19,
+ BSE_MIDI_SIGNAL_CONTINUOUS_20 = Bse::MidiSignal::CONTINUOUS_20,
+ BSE_MIDI_SIGNAL_CONTINUOUS_21 = Bse::MidiSignal::CONTINUOUS_21,
+ BSE_MIDI_SIGNAL_CONTINUOUS_22 = Bse::MidiSignal::CONTINUOUS_22,
+ BSE_MIDI_SIGNAL_CONTINUOUS_23 = Bse::MidiSignal::CONTINUOUS_23,
+ BSE_MIDI_SIGNAL_CONTINUOUS_24 = Bse::MidiSignal::CONTINUOUS_24,
+ BSE_MIDI_SIGNAL_CONTINUOUS_25 = Bse::MidiSignal::CONTINUOUS_25,
+ BSE_MIDI_SIGNAL_CONTINUOUS_26 = Bse::MidiSignal::CONTINUOUS_26,
+ BSE_MIDI_SIGNAL_CONTINUOUS_27 = Bse::MidiSignal::CONTINUOUS_27,
+ BSE_MIDI_SIGNAL_CONTINUOUS_28 = Bse::MidiSignal::CONTINUOUS_28,
+ BSE_MIDI_SIGNAL_CONTINUOUS_29 = Bse::MidiSignal::CONTINUOUS_29,
+ BSE_MIDI_SIGNAL_CONTINUOUS_30 = Bse::MidiSignal::CONTINUOUS_30,
+ BSE_MIDI_SIGNAL_CONTINUOUS_31 = Bse::MidiSignal::CONTINUOUS_31,
+ BSE_MIDI_SIGNAL_CONSTANT_HIGH = Bse::MidiSignal::CONSTANT_HIGH,
+ BSE_MIDI_SIGNAL_CONSTANT_CENTER = Bse::MidiSignal::CONSTANT_CENTER,
+ BSE_MIDI_SIGNAL_CONSTANT_LOW = Bse::MidiSignal::CONSTANT_LOW,
+ BSE_MIDI_SIGNAL_CONSTANT_NEGATIVE_CENTER = Bse::MidiSignal::CONSTANT_NEGATIVE_CENTER,
+ BSE_MIDI_SIGNAL_CONSTANT_NEGATIVE_HIGH = Bse::MidiSignal::CONSTANT_NEGATIVE_HIGH,
+ BSE_MIDI_SIGNAL_PARAMETER = Bse::MidiSignal::PARAMETER,
+ BSE_MIDI_SIGNAL_NON_PARAMETER = Bse::MidiSignal::NON_PARAMETER,
+ BSE_MIDI_SIGNAL_CONTROL_0 = Bse::MidiSignal::CONTROL_0,
+ BSE_MIDI_SIGNAL_CONTROL_1 = Bse::MidiSignal::CONTROL_1,
+ BSE_MIDI_SIGNAL_CONTROL_2 = Bse::MidiSignal::CONTROL_2,
+ BSE_MIDI_SIGNAL_CONTROL_3 = Bse::MidiSignal::CONTROL_3,
+ BSE_MIDI_SIGNAL_CONTROL_4 = Bse::MidiSignal::CONTROL_4,
+ BSE_MIDI_SIGNAL_CONTROL_5 = Bse::MidiSignal::CONTROL_5,
+ BSE_MIDI_SIGNAL_CONTROL_6 = Bse::MidiSignal::CONTROL_6,
+ BSE_MIDI_SIGNAL_CONTROL_7 = Bse::MidiSignal::CONTROL_7,
+ BSE_MIDI_SIGNAL_CONTROL_8 = Bse::MidiSignal::CONTROL_8,
+ BSE_MIDI_SIGNAL_CONTROL_9 = Bse::MidiSignal::CONTROL_9,
+ BSE_MIDI_SIGNAL_CONTROL_10 = Bse::MidiSignal::CONTROL_10,
+ BSE_MIDI_SIGNAL_CONTROL_11 = Bse::MidiSignal::CONTROL_11,
+ BSE_MIDI_SIGNAL_CONTROL_12 = Bse::MidiSignal::CONTROL_12,
+ BSE_MIDI_SIGNAL_CONTROL_13 = Bse::MidiSignal::CONTROL_13,
+ BSE_MIDI_SIGNAL_CONTROL_14 = Bse::MidiSignal::CONTROL_14,
+ BSE_MIDI_SIGNAL_CONTROL_15 = Bse::MidiSignal::CONTROL_15,
+ BSE_MIDI_SIGNAL_CONTROL_16 = Bse::MidiSignal::CONTROL_16,
+ BSE_MIDI_SIGNAL_CONTROL_17 = Bse::MidiSignal::CONTROL_17,
+ BSE_MIDI_SIGNAL_CONTROL_18 = Bse::MidiSignal::CONTROL_18,
+ BSE_MIDI_SIGNAL_CONTROL_19 = Bse::MidiSignal::CONTROL_19,
+ BSE_MIDI_SIGNAL_CONTROL_20 = Bse::MidiSignal::CONTROL_20,
+ BSE_MIDI_SIGNAL_CONTROL_21 = Bse::MidiSignal::CONTROL_21,
+ BSE_MIDI_SIGNAL_CONTROL_22 = Bse::MidiSignal::CONTROL_22,
+ BSE_MIDI_SIGNAL_CONTROL_23 = Bse::MidiSignal::CONTROL_23,
+ BSE_MIDI_SIGNAL_CONTROL_24 = Bse::MidiSignal::CONTROL_24,
+ BSE_MIDI_SIGNAL_CONTROL_25 = Bse::MidiSignal::CONTROL_25,
+ BSE_MIDI_SIGNAL_CONTROL_26 = Bse::MidiSignal::CONTROL_26,
+ BSE_MIDI_SIGNAL_CONTROL_27 = Bse::MidiSignal::CONTROL_27,
+ BSE_MIDI_SIGNAL_CONTROL_28 = Bse::MidiSignal::CONTROL_28,
+ BSE_MIDI_SIGNAL_CONTROL_29 = Bse::MidiSignal::CONTROL_29,
+ BSE_MIDI_SIGNAL_CONTROL_30 = Bse::MidiSignal::CONTROL_30,
+ BSE_MIDI_SIGNAL_CONTROL_31 = Bse::MidiSignal::CONTROL_31,
+ BSE_MIDI_SIGNAL_CONTROL_32 = Bse::MidiSignal::CONTROL_32,
+ BSE_MIDI_SIGNAL_CONTROL_33 = Bse::MidiSignal::CONTROL_33,
+ BSE_MIDI_SIGNAL_CONTROL_34 = Bse::MidiSignal::CONTROL_34,
+ BSE_MIDI_SIGNAL_CONTROL_35 = Bse::MidiSignal::CONTROL_35,
+ BSE_MIDI_SIGNAL_CONTROL_36 = Bse::MidiSignal::CONTROL_36,
+ BSE_MIDI_SIGNAL_CONTROL_37 = Bse::MidiSignal::CONTROL_37,
+ BSE_MIDI_SIGNAL_CONTROL_38 = Bse::MidiSignal::CONTROL_38,
+ BSE_MIDI_SIGNAL_CONTROL_39 = Bse::MidiSignal::CONTROL_39,
+ BSE_MIDI_SIGNAL_CONTROL_40 = Bse::MidiSignal::CONTROL_40,
+ BSE_MIDI_SIGNAL_CONTROL_41 = Bse::MidiSignal::CONTROL_41,
+ BSE_MIDI_SIGNAL_CONTROL_42 = Bse::MidiSignal::CONTROL_42,
+ BSE_MIDI_SIGNAL_CONTROL_43 = Bse::MidiSignal::CONTROL_43,
+ BSE_MIDI_SIGNAL_CONTROL_44 = Bse::MidiSignal::CONTROL_44,
+ BSE_MIDI_SIGNAL_CONTROL_45 = Bse::MidiSignal::CONTROL_45,
+ BSE_MIDI_SIGNAL_CONTROL_46 = Bse::MidiSignal::CONTROL_46,
+ BSE_MIDI_SIGNAL_CONTROL_47 = Bse::MidiSignal::CONTROL_47,
+ BSE_MIDI_SIGNAL_CONTROL_48 = Bse::MidiSignal::CONTROL_48,
+ BSE_MIDI_SIGNAL_CONTROL_49 = Bse::MidiSignal::CONTROL_49,
+ BSE_MIDI_SIGNAL_CONTROL_50 = Bse::MidiSignal::CONTROL_50,
+ BSE_MIDI_SIGNAL_CONTROL_51 = Bse::MidiSignal::CONTROL_51,
+ BSE_MIDI_SIGNAL_CONTROL_52 = Bse::MidiSignal::CONTROL_52,
+ BSE_MIDI_SIGNAL_CONTROL_53 = Bse::MidiSignal::CONTROL_53,
+ BSE_MIDI_SIGNAL_CONTROL_54 = Bse::MidiSignal::CONTROL_54,
+ BSE_MIDI_SIGNAL_CONTROL_55 = Bse::MidiSignal::CONTROL_55,
+ BSE_MIDI_SIGNAL_CONTROL_56 = Bse::MidiSignal::CONTROL_56,
+ BSE_MIDI_SIGNAL_CONTROL_57 = Bse::MidiSignal::CONTROL_57,
+ BSE_MIDI_SIGNAL_CONTROL_58 = Bse::MidiSignal::CONTROL_58,
+ BSE_MIDI_SIGNAL_CONTROL_59 = Bse::MidiSignal::CONTROL_59,
+ BSE_MIDI_SIGNAL_CONTROL_60 = Bse::MidiSignal::CONTROL_60,
+ BSE_MIDI_SIGNAL_CONTROL_61 = Bse::MidiSignal::CONTROL_61,
+ BSE_MIDI_SIGNAL_CONTROL_62 = Bse::MidiSignal::CONTROL_62,
+ BSE_MIDI_SIGNAL_CONTROL_63 = Bse::MidiSignal::CONTROL_63,
+ BSE_MIDI_SIGNAL_CONTROL_64 = Bse::MidiSignal::CONTROL_64,
+ BSE_MIDI_SIGNAL_CONTROL_65 = Bse::MidiSignal::CONTROL_65,
+ BSE_MIDI_SIGNAL_CONTROL_66 = Bse::MidiSignal::CONTROL_66,
+ BSE_MIDI_SIGNAL_CONTROL_67 = Bse::MidiSignal::CONTROL_67,
+ BSE_MIDI_SIGNAL_CONTROL_68 = Bse::MidiSignal::CONTROL_68,
+ BSE_MIDI_SIGNAL_CONTROL_69 = Bse::MidiSignal::CONTROL_69,
+ BSE_MIDI_SIGNAL_CONTROL_70 = Bse::MidiSignal::CONTROL_70,
+ BSE_MIDI_SIGNAL_CONTROL_71 = Bse::MidiSignal::CONTROL_71,
+ BSE_MIDI_SIGNAL_CONTROL_72 = Bse::MidiSignal::CONTROL_72,
+ BSE_MIDI_SIGNAL_CONTROL_73 = Bse::MidiSignal::CONTROL_73,
+ BSE_MIDI_SIGNAL_CONTROL_74 = Bse::MidiSignal::CONTROL_74,
+ BSE_MIDI_SIGNAL_CONTROL_75 = Bse::MidiSignal::CONTROL_75,
+ BSE_MIDI_SIGNAL_CONTROL_76 = Bse::MidiSignal::CONTROL_76,
+ BSE_MIDI_SIGNAL_CONTROL_77 = Bse::MidiSignal::CONTROL_77,
+ BSE_MIDI_SIGNAL_CONTROL_78 = Bse::MidiSignal::CONTROL_78,
+ BSE_MIDI_SIGNAL_CONTROL_79 = Bse::MidiSignal::CONTROL_79,
+ BSE_MIDI_SIGNAL_CONTROL_80 = Bse::MidiSignal::CONTROL_80,
+ BSE_MIDI_SIGNAL_CONTROL_81 = Bse::MidiSignal::CONTROL_81,
+ BSE_MIDI_SIGNAL_CONTROL_82 = Bse::MidiSignal::CONTROL_82,
+ BSE_MIDI_SIGNAL_CONTROL_83 = Bse::MidiSignal::CONTROL_83,
+ BSE_MIDI_SIGNAL_CONTROL_84 = Bse::MidiSignal::CONTROL_84,
+ BSE_MIDI_SIGNAL_CONTROL_85 = Bse::MidiSignal::CONTROL_85,
+ BSE_MIDI_SIGNAL_CONTROL_86 = Bse::MidiSignal::CONTROL_86,
+ BSE_MIDI_SIGNAL_CONTROL_87 = Bse::MidiSignal::CONTROL_87,
+ BSE_MIDI_SIGNAL_CONTROL_88 = Bse::MidiSignal::CONTROL_88,
+ BSE_MIDI_SIGNAL_CONTROL_89 = Bse::MidiSignal::CONTROL_89,
+ BSE_MIDI_SIGNAL_CONTROL_90 = Bse::MidiSignal::CONTROL_90,
+ BSE_MIDI_SIGNAL_CONTROL_91 = Bse::MidiSignal::CONTROL_91,
+ BSE_MIDI_SIGNAL_CONTROL_92 = Bse::MidiSignal::CONTROL_92,
+ BSE_MIDI_SIGNAL_CONTROL_93 = Bse::MidiSignal::CONTROL_93,
+ BSE_MIDI_SIGNAL_CONTROL_94 = Bse::MidiSignal::CONTROL_94,
+ BSE_MIDI_SIGNAL_CONTROL_95 = Bse::MidiSignal::CONTROL_95,
+ BSE_MIDI_SIGNAL_CONTROL_96 = Bse::MidiSignal::CONTROL_96,
+ BSE_MIDI_SIGNAL_CONTROL_97 = Bse::MidiSignal::CONTROL_97,
+ BSE_MIDI_SIGNAL_CONTROL_98 = Bse::MidiSignal::CONTROL_98,
+ BSE_MIDI_SIGNAL_CONTROL_99 = Bse::MidiSignal::CONTROL_99,
+ BSE_MIDI_SIGNAL_CONTROL_100 = Bse::MidiSignal::CONTROL_100,
+ BSE_MIDI_SIGNAL_CONTROL_101 = Bse::MidiSignal::CONTROL_101,
+ BSE_MIDI_SIGNAL_CONTROL_102 = Bse::MidiSignal::CONTROL_102,
+ BSE_MIDI_SIGNAL_CONTROL_103 = Bse::MidiSignal::CONTROL_103,
+ BSE_MIDI_SIGNAL_CONTROL_104 = Bse::MidiSignal::CONTROL_104,
+ BSE_MIDI_SIGNAL_CONTROL_105 = Bse::MidiSignal::CONTROL_105,
+ BSE_MIDI_SIGNAL_CONTROL_106 = Bse::MidiSignal::CONTROL_106,
+ BSE_MIDI_SIGNAL_CONTROL_107 = Bse::MidiSignal::CONTROL_107,
+ BSE_MIDI_SIGNAL_CONTROL_108 = Bse::MidiSignal::CONTROL_108,
+ BSE_MIDI_SIGNAL_CONTROL_109 = Bse::MidiSignal::CONTROL_109,
+ BSE_MIDI_SIGNAL_CONTROL_110 = Bse::MidiSignal::CONTROL_110,
+ BSE_MIDI_SIGNAL_CONTROL_111 = Bse::MidiSignal::CONTROL_111,
+ BSE_MIDI_SIGNAL_CONTROL_112 = Bse::MidiSignal::CONTROL_112,
+ BSE_MIDI_SIGNAL_CONTROL_113 = Bse::MidiSignal::CONTROL_113,
+ BSE_MIDI_SIGNAL_CONTROL_114 = Bse::MidiSignal::CONTROL_114,
+ BSE_MIDI_SIGNAL_CONTROL_115 = Bse::MidiSignal::CONTROL_115,
+ BSE_MIDI_SIGNAL_CONTROL_116 = Bse::MidiSignal::CONTROL_116,
+ BSE_MIDI_SIGNAL_CONTROL_117 = Bse::MidiSignal::CONTROL_117,
+ BSE_MIDI_SIGNAL_CONTROL_118 = Bse::MidiSignal::CONTROL_118,
+ BSE_MIDI_SIGNAL_CONTROL_119 = Bse::MidiSignal::CONTROL_119,
+ BSE_MIDI_SIGNAL_CONTROL_120 = Bse::MidiSignal::CONTROL_120,
+ BSE_MIDI_SIGNAL_CONTROL_121 = Bse::MidiSignal::CONTROL_121,
+ BSE_MIDI_SIGNAL_CONTROL_122 = Bse::MidiSignal::CONTROL_122,
+ BSE_MIDI_SIGNAL_CONTROL_123 = Bse::MidiSignal::CONTROL_123,
+ BSE_MIDI_SIGNAL_CONTROL_124 = Bse::MidiSignal::CONTROL_124,
+ BSE_MIDI_SIGNAL_CONTROL_125 = Bse::MidiSignal::CONTROL_125,
+ BSE_MIDI_SIGNAL_CONTROL_126 = Bse::MidiSignal::CONTROL_126,
+ BSE_MIDI_SIGNAL_CONTROL_127 = Bse::MidiSignal::CONTROL_127,
} BseMidiSignalType;
#endif // BSE_IDL_SURROGATES
diff --git a/bse/bsemidicontroller.cc b/bse/bsemidicontroller.cc
index 1f7a7ad..f1d3cac 100644
--- a/bse/bsemidicontroller.cc
+++ b/bse/bsemidicontroller.cc
@@ -98,25 +98,25 @@ bse_midi_controller_class_init (BseMidiControllerClass *klass)
PROP_CONTROL_1,
bse_param_spec_genum ("control_1", "Signal 1", NULL,
BSE_TYPE_MIDI_SIGNAL_TYPE,
- Bse::MIDI_SIGNAL_PITCH_BEND,
+ Bse::MidiSignal::PITCH_BEND,
SFI_PARAM_STANDARD));
bse_object_class_add_param (object_class, "MIDI Controls",
PROP_CONTROL_2,
bse_param_spec_genum ("control_2", "Signal 2", NULL,
BSE_TYPE_MIDI_SIGNAL_TYPE,
- Bse::MIDI_SIGNAL_CONTINUOUS_1,
+ Bse::MidiSignal::CONTINUOUS_1,
SFI_PARAM_STANDARD));
bse_object_class_add_param (object_class, "MIDI Controls",
PROP_CONTROL_3,
bse_param_spec_genum ("control_3", "Signal 3", NULL,
BSE_TYPE_MIDI_SIGNAL_TYPE,
- Bse::MIDI_SIGNAL_CONTINUOUS_7,
+ Bse::MidiSignal::CONTINUOUS_7,
SFI_PARAM_STANDARD));
bse_object_class_add_param (object_class, "MIDI Controls",
PROP_CONTROL_4,
bse_param_spec_genum ("control_4", "Signal 4", NULL,
BSE_TYPE_MIDI_SIGNAL_TYPE,
- Bse::MIDI_SIGNAL_PRESSURE,
+ Bse::MidiSignal::PRESSURE,
SFI_PARAM_STANDARD));
ochannel_id = bse_source_class_add_ochannel (source_class, "ctrl-out1", _("Ctrl Out1"), _("MIDI Signal
1"));
@@ -133,10 +133,10 @@ static void
bse_midi_controller_init (BseMidiController *self)
{
self->midi_channel = 0;
- self->controls[0] = Bse::MIDI_SIGNAL_PITCH_BEND;
- self->controls[1] = Bse::MIDI_SIGNAL_CONTINUOUS_1;
- self->controls[2] = Bse::MIDI_SIGNAL_CONTINUOUS_7;
- self->controls[3] = Bse::MIDI_SIGNAL_PRESSURE;
+ self->controls[0] = Bse::MidiSignal::PITCH_BEND;
+ self->controls[1] = Bse::MidiSignal::CONTINUOUS_1;
+ self->controls[2] = Bse::MidiSignal::CONTINUOUS_7;
+ self->controls[3] = Bse::MidiSignal::PRESSURE;
}
static void
diff --git a/bse/bsemidievent.cc b/bse/bsemidievent.cc
index 185708d..fb4dbc6 100644
--- a/bse/bsemidievent.cc
+++ b/bse/bsemidievent.cc
@@ -21,28 +21,28 @@ bse_midi_signal_default (Bse::MidiSignalType type)
{
switch (type)
{
- case Bse::MIDI_SIGNAL_PITCH_BEND: return 0.0;
- case Bse::MIDI_SIGNAL_CONTINUOUS_7: return 100.0 / 127.0; /* Volume */
- case Bse::MIDI_SIGNAL_CONTINUOUS_8: return 0.5; /* Balance */
- case Bse::MIDI_SIGNAL_CONTINUOUS_10: return 0.5; /* Panorama */
- case Bse::MIDI_SIGNAL_CONTINUOUS_11: return 0x3f80 / (float) 0x3fff; /* Expression */
- case Bse::MIDI_SIGNAL_CONTROL_7: return 100.0 / 127.0; /* Volume MSB */
- case Bse::MIDI_SIGNAL_CONTROL_8: return 0.5; /* Balance MSB */
- case Bse::MIDI_SIGNAL_CONTROL_10: return 0.5; /* Panorama MSB */
- case Bse::MIDI_SIGNAL_CONTROL_11: return 1.0; /* Expression MSB */
- case Bse::MIDI_SIGNAL_CONTROL_64:
+ case Bse::MidiSignal::PITCH_BEND: return 0.0;
+ case Bse::MidiSignal::CONTINUOUS_7: return 100.0 / 127.0; /* Volume */
+ case Bse::MidiSignal::CONTINUOUS_8: return 0.5; /* Balance */
+ case Bse::MidiSignal::CONTINUOUS_10: return 0.5; /* Panorama */
+ case Bse::MidiSignal::CONTINUOUS_11: return 0x3f80 / (float) 0x3fff; /* Expression */
+ case Bse::MidiSignal::CONTROL_7: return 100.0 / 127.0; /* Volume MSB */
+ case Bse::MidiSignal::CONTROL_8: return 0.5; /* Balance MSB */
+ case Bse::MidiSignal::CONTROL_10: return 0.5; /* Panorama MSB */
+ case Bse::MidiSignal::CONTROL_11: return 1.0; /* Expression MSB */
+ case Bse::MidiSignal::CONTROL_64:
return BSE_GCONFIG (invert_sustain) ? 1.0 : 0.0; /* Damper Pedal Switch */
- case Bse::MIDI_SIGNAL_CONTROL_120: return 1.0; /* All Sound Off ITrigger */
- case Bse::MIDI_SIGNAL_CONTROL_121: return 1.0; /* All Controllers Off ITrigger */
- case Bse::MIDI_SIGNAL_CONTROL_123: return 1.0; /* All Notes Off ITrigger */
- case Bse::MIDI_SIGNAL_CONTROL_124: return 1.0; /* Omni Mode Off ITrigger */
- case Bse::MIDI_SIGNAL_CONTROL_125: return 1.0; /* Omni Mode On ITrigger */
- case Bse::MIDI_SIGNAL_CONTROL_127: return 1.0; /* Polyphonic Mode On ITrigger */
- case Bse::MIDI_SIGNAL_CONSTANT_HIGH: return 1.0;
- case Bse::MIDI_SIGNAL_CONSTANT_CENTER: return 0.5;
- case Bse::MIDI_SIGNAL_CONSTANT_LOW: return 0.0;
- case Bse::MIDI_SIGNAL_CONSTANT_NEGATIVE_CENTER: return -0.5;
- case Bse::MIDI_SIGNAL_CONSTANT_NEGATIVE_HIGH: return -1.0;
+ case Bse::MidiSignal::CONTROL_120: return 1.0; /* All Sound Off ITrigger */
+ case Bse::MidiSignal::CONTROL_121: return 1.0; /* All Controllers Off ITrigger */
+ case Bse::MidiSignal::CONTROL_123: return 1.0; /* All Notes Off ITrigger */
+ case Bse::MidiSignal::CONTROL_124: return 1.0; /* Omni Mode Off ITrigger */
+ case Bse::MidiSignal::CONTROL_125: return 1.0; /* Omni Mode On ITrigger */
+ case Bse::MidiSignal::CONTROL_127: return 1.0; /* Polyphonic Mode On ITrigger */
+ case Bse::MidiSignal::CONSTANT_HIGH: return 1.0;
+ case Bse::MidiSignal::CONSTANT_CENTER: return 0.5;
+ case Bse::MidiSignal::CONSTANT_LOW: return 0.0;
+ case Bse::MidiSignal::CONSTANT_NEGATIVE_CENTER: return -0.5;
+ case Bse::MidiSignal::CONSTANT_NEGATIVE_HIGH: return -1.0;
default: return 0.0;
}
}
@@ -174,25 +174,25 @@ bse_midi_event_signal (uint midi_channel,
event = bse_midi_alloc_event ();
switch (signal_type)
{
- case Bse::MIDI_SIGNAL_PROGRAM:
+ case Bse::MidiSignal::PROGRAM:
event->status = BSE_MIDI_PROGRAM_CHANGE;
event->data.program = bse_ftoi (CLAMP (value, 0, 1) * 0x7f);
break;
- case Bse::MIDI_SIGNAL_PRESSURE:
+ case Bse::MidiSignal::PRESSURE:
event->status = BSE_MIDI_CHANNEL_PRESSURE;
event->data.intensity = MAX (value, 0);
break;
- case Bse::MIDI_SIGNAL_PITCH_BEND:
+ case Bse::MidiSignal::PITCH_BEND:
event->status = BSE_MIDI_PITCH_BEND;
event->data.pitch_bend = value;
break;
- case Bse::MIDI_SIGNAL_VELOCITY:
- case Bse::MIDI_SIGNAL_FINE_TUNE:
- case Bse::MIDI_SIGNAL_CONSTANT_HIGH:
- case Bse::MIDI_SIGNAL_CONSTANT_CENTER:
- case Bse::MIDI_SIGNAL_CONSTANT_LOW:
- case Bse::MIDI_SIGNAL_CONSTANT_NEGATIVE_CENTER:
- case Bse::MIDI_SIGNAL_CONSTANT_NEGATIVE_HIGH:
+ case Bse::MidiSignal::VELOCITY:
+ case Bse::MidiSignal::FINE_TUNE:
+ case Bse::MidiSignal::CONSTANT_HIGH:
+ case Bse::MidiSignal::CONSTANT_CENTER:
+ case Bse::MidiSignal::CONSTANT_LOW:
+ case Bse::MidiSignal::CONSTANT_NEGATIVE_CENTER:
+ case Bse::MidiSignal::CONSTANT_NEGATIVE_HIGH:
/* these are special signals that don't map to MIDI events */
sfi_delete_struct (BseMidiEvent, event);
return NULL;
diff --git a/bse/bsemidifile.cc b/bse/bsemidifile.cc
index adade17..2edf984 100644
--- a/bse/bsemidifile.cc
+++ b/bse/bsemidifile.cc
@@ -263,25 +263,25 @@ bse_midi_file_add_part_events (BseMidiFile *smf,
case BSE_MIDI_CONTROL_CHANGE:
if (!msignal)
{
- msignal = Bse::MidiSignalType (Bse::MIDI_SIGNAL_CONTROL_0 + event->data.control.control);
+ msignal = Bse::MidiSignalType (Bse::MidiSignal::CONTROL_0 + event->data.control.control);
fvalue = event->data.control.value;
}
case BSE_MIDI_PROGRAM_CHANGE:
if (!msignal)
{
- msignal = Bse::MIDI_SIGNAL_PROGRAM;
+ msignal = Bse::MidiSignal::PROGRAM;
fvalue = event->data.program * (1.0 / (double) 0x7F);
}
case BSE_MIDI_CHANNEL_PRESSURE:
if (!msignal)
{
- msignal = Bse::MIDI_SIGNAL_PRESSURE;
+ msignal = Bse::MidiSignal::PRESSURE;
fvalue = event->data.intensity;
}
case BSE_MIDI_PITCH_BEND:
if (!msignal)
{
- msignal = Bse::MIDI_SIGNAL_PITCH_BEND;
+ msignal = Bse::MidiSignal::PITCH_BEND;
fvalue = event->data.pitch_bend;
}
part->as<Bse::PartImpl*>()->insert_control (start * smf->tpqn_rate, msignal, fvalue);
diff --git a/bse/bsemidireceiver.cc b/bse/bsemidireceiver.cc
index ba1813b..9556e2c 100644
--- a/bse/bsemidireceiver.cc
+++ b/bse/bsemidireceiver.cc
@@ -1884,29 +1884,29 @@ process_midi_control_L (BseMidiReceiver *self,
break;
case 98: /* Non-Registered Parameter MSB */
update_midi_signal_continuous_msb_L (self, channel, tick_stamp,
- Bse::MIDI_SIGNAL_NON_PARAMETER, /* continuous signal */
+ Bse::MidiSignal::NON_PARAMETER, /* continuous signal */
value, /* MSB value */
- Bse::MIDI_SIGNAL_CONTROL_99, /* LSB signal */
+ Bse::MidiSignal::CONTROL_99, /* LSB signal */
trans);
break;
case 99: /* Non-Registered Parameter LSB */
update_midi_signal_continuous_lsb_L (self, channel, tick_stamp,
- Bse::MIDI_SIGNAL_NON_PARAMETER, /* continuous signal */
- Bse::MIDI_SIGNAL_CONTROL_98, /* MSB signal */
+ Bse::MidiSignal::NON_PARAMETER, /* continuous signal */
+ Bse::MidiSignal::CONTROL_98, /* MSB signal */
value, /* LSB value */
trans);
break;
case 100: /* Registered Parameter MSB */
update_midi_signal_continuous_msb_L (self, channel, tick_stamp,
- Bse::MIDI_SIGNAL_PARAMETER, /* continuous signal */
+ Bse::MidiSignal::PARAMETER, /* continuous signal */
value, /* MSB value */
- Bse::MIDI_SIGNAL_CONTROL_101, /* LSB signal */
+ Bse::MidiSignal::CONTROL_101, /* LSB signal */
trans);
break;
case 101: /* Registered Parameter LSB */
update_midi_signal_continuous_lsb_L (self, channel, tick_stamp,
- Bse::MIDI_SIGNAL_PARAMETER, /* continuous signal */
- Bse::MIDI_SIGNAL_CONTROL_100, /* MSB signal */
+ Bse::MidiSignal::PARAMETER, /* continuous signal */
+ Bse::MidiSignal::CONTROL_100, /* MSB signal */
value, /* LSB value */
trans);
break;
@@ -1964,7 +1964,7 @@ midi_receiver_process_event_L (BseMidiReceiver *self,
{
gboolean sustained_note = event->status == BSE_MIDI_NOTE_OFF &&
(BSE_GCONFIG (invert_sustain) ^
- (self->get_control (event->channel, Bse::MIDI_SIGNAL_CONTROL_64) >=
0.5));
+ (self->get_control (event->channel, Bse::MidiSignal::CONTROL_64) >=
0.5));
mchannel->adjust_note (event->delta_time,
event->data.note.frequency, event->status,
event->data.note.velocity, sustained_note, trans);
@@ -1990,21 +1990,21 @@ midi_receiver_process_event_L (BseMidiReceiver *self,
EDEBUG ("MidiChannel[%u]: Program %u (Value=%f) (stamp:%llu)", event->channel,
event->data.program, event->data.program / (gfloat) 0x7f, event->delta_time);
update_midi_signal_L (self, event->channel, event->delta_time,
- Bse::MIDI_SIGNAL_PROGRAM, event->data.program / (gfloat) 0x7f,
+ Bse::MidiSignal::PROGRAM, event->data.program / (gfloat) 0x7f,
trans);
break;
case BSE_MIDI_CHANNEL_PRESSURE:
EDEBUG ("MidiChannel[%u]: Channel Pressure Value=%f (stamp:%llu)", event->channel,
event->data.intensity, event->delta_time);
update_midi_signal_L (self, event->channel, event->delta_time,
- Bse::MIDI_SIGNAL_PRESSURE, event->data.intensity,
+ Bse::MidiSignal::PRESSURE, event->data.intensity,
trans);
break;
case BSE_MIDI_PITCH_BEND:
EDEBUG ("MidiChannel[%u]: Pitch Bend Value=%f (stamp:%llu)", event->channel,
event->data.pitch_bend, event->delta_time);
update_midi_signal_L (self, event->channel, event->delta_time,
- Bse::MIDI_SIGNAL_PITCH_BEND, event->data.pitch_bend,
+ Bse::MidiSignal::PITCH_BEND, event->data.pitch_bend,
trans);
break;
default:
diff --git a/bse/bsepart.cc b/bse/bsepart.cc
index 1b0c342..427f316 100644
--- a/bse/bsepart.cc
+++ b/bse/bsepart.cc
@@ -819,13 +819,13 @@ bse_part_insert_note (BsePart *self,
static gboolean
check_valid_control_type (Bse::MidiSignalType ctype)
{
- if (ctype >= Bse::MIDI_SIGNAL_PROGRAM && ctype <= Bse::MIDI_SIGNAL_FINE_TUNE)
+ if (ctype >= Bse::MidiSignal::PROGRAM && ctype <= Bse::MidiSignal::FINE_TUNE)
return TRUE;
- if (ctype >= Bse::MIDI_SIGNAL_CONTINUOUS_0 && ctype <= Bse::MIDI_SIGNAL_CONTINUOUS_31)
+ if (ctype >= Bse::MidiSignal::CONTINUOUS_0 && ctype <= Bse::MidiSignal::CONTINUOUS_31)
return TRUE;
- if (ctype >= Bse::MIDI_SIGNAL_PARAMETER && ctype <= Bse::MIDI_SIGNAL_NON_PARAMETER)
+ if (ctype >= Bse::MidiSignal::PARAMETER && ctype <= Bse::MidiSignal::NON_PARAMETER)
return TRUE;
- if (ctype >= Bse::MIDI_SIGNAL_CONTROL_0 && ctype <= Bse::MIDI_SIGNAL_CONTROL_127)
+ if (ctype >= Bse::MidiSignal::CONTROL_0 && ctype <= Bse::MidiSignal::CONTROL_127)
return TRUE;
return FALSE;
}
@@ -1022,10 +1022,10 @@ bse_part_change_control (BsePart *self,
gfloat velocity = note->velocity;
switch (ctype)
{
- case Bse::MIDI_SIGNAL_VELOCITY:
+ case Bse::MidiSignal::VELOCITY:
velocity = CLAMP (value, 0, +1);
break;
- case Bse::MIDI_SIGNAL_FINE_TUNE:
+ case Bse::MidiSignal::FINE_TUNE:
fine_tune = bse_ftoi (value * BSE_MAX_FINE_TUNE);
fine_tune = CLAMP (fine_tune, BSE_MIN_FINE_TUNE, BSE_MAX_FINE_TUNE);
break;
@@ -1044,9 +1044,9 @@ note_get_control_value (const BsePartEventNote *note, Bse::MidiSignalType ctype)
{
switch (ctype)
{
- case Bse::MIDI_SIGNAL_VELOCITY:
+ case Bse::MidiSignal::VELOCITY:
return note->velocity;
- case Bse::MIDI_SIGNAL_FINE_TUNE:
+ case Bse::MidiSignal::FINE_TUNE:
return note->fine_tune * (1.0 / BSE_MAX_FINE_TUNE);
default:
return 0;
@@ -1111,8 +1111,8 @@ bse_part_query_event (BsePart *self,
equery->note = note->note;
equery->fine_tune = note->fine_tune;
equery->velocity = note->velocity;
- equery->fine_tune_value = note_get_control_value (note, Bse::MIDI_SIGNAL_FINE_TUNE);
- equery->velocity_value = note_get_control_value (note, Bse::MIDI_SIGNAL_VELOCITY);
+ equery->fine_tune_value = note_get_control_value (note, Bse::MidiSignal::FINE_TUNE);
+ equery->velocity_value = note_get_control_value (note, Bse::MidiSignal::VELOCITY);
equery->control_type = Bse::MidiSignalType (0);
equery->control_value = 0;
}
@@ -2207,10 +2207,10 @@ PartImpl::change_control (int id, int tick, MidiSignalType control_type, double
equery.velocity_value != xquery.velocity_value))
switch (control_type)
{
- case MIDI_SIGNAL_VELOCITY:
+ case MidiSignal::VELOCITY:
push_undo ("Change Velocity", *this, &PartImpl::change_control, id, equery.tick, control_type,
equery.velocity_value);
break;
- case MIDI_SIGNAL_FINE_TUNE:
+ case MidiSignal::FINE_TUNE:
push_undo ("Change Fine-Tune", *this, &PartImpl::change_control, id, equery.tick, control_type,
equery.fine_tune_value);
break;
default: ;
diff --git a/bse/bsepart.hh b/bse/bsepart.hh
index 9a482da..472fc22 100644
--- a/bse/bsepart.hh
+++ b/bse/bsepart.hh
@@ -169,8 +169,8 @@ BsePartEventType bse_part_query_event (BsePart *self,
#define BSE_PART_MAX_CHANNELS (0x1024)
#define BSE_PART_MAX_TICK (0x7fffffff)
#define BSE_PART_INVAL_TICK_FLAG (0x80000000)
-#define BSE_PART_NOTE_CONTROL(ctype) ((ctype) == Bse::MIDI_SIGNAL_VELOCITY || \
- (ctype) == Bse::MIDI_SIGNAL_FINE_TUNE)
+#define BSE_PART_NOTE_CONTROL(ctype) ((ctype) == Bse::MidiSignal::VELOCITY || \
+ (ctype) == Bse::MidiSignal::FINE_TUNE)
/* --- BsePartControlChannel --- */
struct BsePartEventControl;
diff --git a/bse/bsesource.cc b/bse/bsesource.cc
index f1dd9f6..15d4d65 100644
--- a/bse/bsesource.cc
+++ b/bse/bsesource.cc
@@ -470,10 +470,10 @@ bse_source_set_automation_property (BseSource *source,
Bse::MidiSignalType signal_type)
{
assert (BSE_MIDI_CONTROL_NONE == BseMidiControlType (0) &&
- BSE_MIDI_CONTROL_CONTINUOUS_0 == BseMidiControlType (Bse::MIDI_SIGNAL_CONTINUOUS_0) &&
- BSE_MIDI_CONTROL_CONTINUOUS_31 == BseMidiControlType (Bse::MIDI_SIGNAL_CONTINUOUS_31) &&
- BSE_MIDI_CONTROL_0 == BseMidiControlType (Bse::MIDI_SIGNAL_CONTROL_0) &&
- BSE_MIDI_CONTROL_127 == BseMidiControlType (Bse::MIDI_SIGNAL_CONTROL_127));
+ BSE_MIDI_CONTROL_CONTINUOUS_0 == BseMidiControlType (Bse::MidiSignal::CONTINUOUS_0) &&
+ BSE_MIDI_CONTROL_CONTINUOUS_31 == BseMidiControlType (Bse::MidiSignal::CONTINUOUS_31) &&
+ BSE_MIDI_CONTROL_0 == BseMidiControlType (Bse::MidiSignal::CONTROL_0) &&
+ BSE_MIDI_CONTROL_127 == BseMidiControlType (Bse::MidiSignal::CONTROL_127));
assert_return (BSE_IS_SOURCE (source), Bse::Error::INTERNAL);
assert_return (prop_name != NULL, Bse::Error::INTERNAL);
if (BSE_SOURCE_PREPARED (source))
diff --git a/sfi/tests/testsfidl.cc b/sfi/tests/testsfidl.cc
index 0b792f9..4e815db 100644
--- a/sfi/tests/testsfidl.cc
+++ b/sfi/tests/testsfidl.cc
@@ -74,7 +74,7 @@ public:
ASSERT_EQ (rename (ABSOLUTE, "XWindows::WMHints", UPPER, "_",
empty, UPPER, "_"),
"XWINDOWS_WM_HINTS");
- ASSERT_EQ (rename (ABSOLUTE, "Bse::MIDI_SIGNAL_PROGRAM", UPPER, "_",
+ ASSERT_EQ (rename (ABSOLUTE, "Bse::MidiSignal::PROGRAM", UPPER, "_",
empty, UPPER, "_"),
"BSE_MIDI_SIGNAL_PROGRAM");
TDONE();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]