From 70960a5a0055019b576e32acc1acf2094f4e4141 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 10 Nov 2014 21:17:39 -0500 Subject: add color property to MIDISceneChange --- libs/ardour/midi_scene_change.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libs/ardour/midi_scene_change.cc') diff --git a/libs/ardour/midi_scene_change.cc b/libs/ardour/midi_scene_change.cc index edcc8a658d..db7e826384 100644 --- a/libs/ardour/midi_scene_change.cc +++ b/libs/ardour/midi_scene_change.cc @@ -32,6 +32,7 @@ MIDISceneChange::MIDISceneChange (int c, int b, int p) : _bank (b) , _program (p) , _channel (c & 0xf) + , _color (0x00000000) /* note: zero alpha means invisible, which acts as out-of-bound signal */ { if (_bank > 16384) { _bank = -1; @@ -148,3 +149,16 @@ MIDISceneChange::operator==(const MIDISceneChange& other) const _bank == other._bank && _channel == other._channel; } + +void +MIDISceneChange::set_color (uint32_t c) +{ + _color = c; + ColorChanged (); /* EMIT SIGNAL */ +} + +uint32_t +MIDISceneChange::color() const +{ + return _color; +} -- cgit v1.2.3