diff options
Diffstat (limited to 'src/gui/NodeView.cpp')
-rw-r--r-- | src/gui/NodeView.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/NodeView.cpp b/src/gui/NodeView.cpp index d388921..c1eeff0 100644 --- a/src/gui/NodeView.cpp +++ b/src/gui/NodeView.cpp @@ -78,7 +78,8 @@ NodeView::on_event(GdkEvent* event) canvas->app()->controller()->set_property( _node->id(), URIs::instance().machina_selector, - forge.make(!node_is(forge, URIs::instance().machina_selector))); + forge.make(!node_is(forge, + URIs::instance().machina_selector))); return true; } } else { @@ -93,7 +94,9 @@ NodeView::on_event(GdkEvent* event) static std::string midi_note_name(uint8_t num) { - static const char* notes[] = {"C","C#","D","D#","E","F","F#","G","G#","A","A#","B"}; + static const char* notes[] = { + "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B" + }; const uint8_t octave = num / 12; num -= octave * 12; @@ -107,7 +110,8 @@ void NodeView::show_label(bool show) { if (show && _enter_action) { - Raul::Atom note_number = _enter_action->get(URIs::instance().machina_note_number); + Raul::Atom note_number = _enter_action->get( + URIs::instance().machina_note_number); if (note_number.is_valid()) { set_label(midi_note_name(note_number.get_int32()).c_str()); return; @@ -148,7 +152,7 @@ NodeView::on_property(Machina::URIInt key, const Raul::Atom& value) } } else if (key == URIs::instance().machina_enter_action) { const uint64_t action_id = value.get_int32(); - MachinaCanvas* canvas = dynamic_cast<MachinaCanvas*>(this->canvas()); + MachinaCanvas* canvas = dynamic_cast<MachinaCanvas*>(this->canvas()); _enter_action_connection.disconnect(); _enter_action = canvas->app()->client_model()->find(action_id); if (_enter_action) { |