2012-04-09 09:59:35 -04:00
|
|
|
#ifndef __ardour_mackie_control_protocol_fader_h__
|
|
|
|
#define __ardour_mackie_control_protocol_fader_h__
|
|
|
|
|
|
|
|
#include "controls.h"
|
|
|
|
|
2015-04-15 20:37:20 -04:00
|
|
|
namespace ArdourSurface {
|
|
|
|
|
2012-04-09 09:59:35 -04:00
|
|
|
namespace Mackie {
|
|
|
|
|
|
|
|
class Fader : public Control
|
|
|
|
{
|
2012-04-10 10:27:44 -04:00
|
|
|
public:
|
2012-04-14 16:38:42 -04:00
|
|
|
|
2012-04-10 10:27:44 -04:00
|
|
|
Fader (int id, std::string name, Group & group)
|
|
|
|
: Control (id, name, group)
|
2012-04-11 09:03:41 -04:00
|
|
|
, position (0.0)
|
2012-04-09 09:59:35 -04:00
|
|
|
{
|
|
|
|
}
|
2012-04-11 09:03:41 -04:00
|
|
|
|
|
|
|
MidiByteArray set_position (float);
|
|
|
|
MidiByteArray zero() { return set_position (0.0); }
|
2012-04-09 09:59:35 -04:00
|
|
|
|
2012-04-11 09:03:41 -04:00
|
|
|
MidiByteArray update_message ();
|
2012-04-09 09:59:35 -04:00
|
|
|
|
2012-04-10 10:27:44 -04:00
|
|
|
static Control* factory (Surface&, int id, const char*, Group&);
|
2012-04-14 15:02:54 -04:00
|
|
|
|
2012-04-11 09:03:41 -04:00
|
|
|
private:
|
|
|
|
float position;
|
2012-04-09 09:59:35 -04:00
|
|
|
};
|
|
|
|
|
2015-04-15 20:37:20 -04:00
|
|
|
}
|
2012-04-09 09:59:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|