[beast: 6/29] BEAST: use Bse::MidiSignal::* instead of Bse::MIDI_SIGNAL_*
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 6/29] BEAST: use Bse::MidiSignal::* instead of Bse::MIDI_SIGNAL_*
- Date: Mon, 21 Mar 2016 15:12:13 +0000 (UTC)
commit 5dcaae86b92ee2755a523c7677237e4ae344ada4
Author: Tim Janik <timj gnu org>
Date: Thu Jan 28 14:03:36 2016 +0100
BEAST: use Bse::MidiSignal::* instead of Bse::MIDI_SIGNAL_*
Signed-off-by: Tim Janik <timj gnu org>
beast-gtk/bsteventroll.cc | 2 +-
beast-gtk/bstpartdialog.cc | 4 ++--
beast-gtk/bstpatterncolumns.cc | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/beast-gtk/bsteventroll.cc b/beast-gtk/bsteventroll.cc
index 1673f91..e8bf276 100644
--- a/beast-gtk/bsteventroll.cc
+++ b/beast-gtk/bsteventroll.cc
@@ -84,7 +84,7 @@ bst_event_roll_init (BstEventRoll *self)
GTK_WIDGET_SET_FLAGS (self, GTK_CAN_FOCUS);
gtk_widget_set_double_buffered (widget, FALSE);
- self->control_type = Bse::MIDI_SIGNAL_CONTINUOUS_7; /* volume */
+ self->control_type = Bse::MidiSignal::CONTINUOUS_7; /* volume */
self->ppqn = 384; /* default Parts (clock ticks) Per Quarter Note */
self->qnpt = 1;
self->max_ticks = 1;
diff --git a/beast-gtk/bstpartdialog.cc b/beast-gtk/bstpartdialog.cc
index 86b6c88..d9c0e46 100644
--- a/beast-gtk/bstpartdialog.cc
+++ b/beast-gtk/bstpartdialog.cc
@@ -201,7 +201,7 @@ bst_part_dialog_init (BstPartDialog *self)
// event roll control type
static GParamSpec *control_type_pspec =
- g_param_spec_ref (sfi_pspec_choice ("control_type", NULL, NULL, "MIDI_SIGNAL_PITCH_BEND",
+ g_param_spec_ref (sfi_pspec_choice ("control_type", NULL, NULL, "MidiSignal::PITCH_BEND",
Bse::choice_values_from_enum<Bse::MidiSignalType>(),
":r:w:S:G:"));
if (control_type_pspec)
@@ -210,7 +210,7 @@ bst_part_dialog_init (BstPartDialog *self)
GtkWidget *rwidget = gxk_param_create_editor (param, "choice-button");
gxk_radget_add (radget, "event-roll-control-area", rwidget);
g_object_connect (radget, "swapped_signal::destroy", gxk_param_destroy, param, NULL);
- sfi_value_set_choice (¶m->value, Rapicorn::Aida::enum_value_to_string<Bse::MidiSignalType>
(Bse::MIDI_SIGNAL_VELOCITY).c_str());
+ sfi_value_set_choice (¶m->value, Rapicorn::Aida::enum_value_to_string<Bse::MidiSignalType>
(Bse::MidiSignal::VELOCITY).c_str());
gxk_param_apply_value (param); /* update model, auto updates GUI */
}
diff --git a/beast-gtk/bstpatterncolumns.cc b/beast-gtk/bstpatterncolumns.cc
index 9f423e5..abe5ab1 100644
--- a/beast-gtk/bstpatterncolumns.cc
+++ b/beast-gtk/bstpatterncolumns.cc
@@ -378,12 +378,12 @@ pattern_column_control_type (BstPatternColumn *column, bool *isnote_p)
Bse::MidiSignalType control_type;
bool isnote = true;
if (column->ltype == BST_PATTERN_LTYPE_VELOCITY)
- control_type = Bse::MIDI_SIGNAL_VELOCITY;
+ control_type = Bse::MidiSignal::VELOCITY;
else if (column->ltype == BST_PATTERN_LTYPE_FINE_TUNE)
- control_type = Bse::MIDI_SIGNAL_FINE_TUNE;
+ control_type = Bse::MidiSignal::FINE_TUNE;
else
{
- control_type = Bse::MidiSignalType (Bse::MIDI_SIGNAL_CONTINUOUS_0 + column->num);
+ control_type = Bse::MidiSignalType (Bse::MidiSignal::CONTINUOUS_0 + column->num);
isnote = false;
}
if (isnote_p)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]