Loopp/src/gmastertrack.hxx

86 lines
1.7 KiB
C++
Raw Normal View History

#ifndef LUPPP_G_MASTER_TRACK_H
#define LUPPP_G_MASTER_TRACK_H
#include <iostream>
2013-07-27 17:37:54 +02:00
#include <sstream>
#include <FL/Fl.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Slider.H>
#include <FL/Fl_Progress.H>
#include "avtk/avtk_dial.h"
#include "avtk/avtk_button.h"
#include "avtk/avtk_reverb.h"
#include "avtk/avtk_background.h"
#include "avtk/avtk_light_button.h"
#include "avtk/avtk_sidechain_gain.h"
2013-09-08 15:24:27 +02:00
#include "avtk/volume.hxx"
#include "avtk/clipselector.hxx"
#include "eventhandler.hxx"
using namespace std;
class GMasterTrack : public Fl_Group
{
public:
2013-09-10 22:51:05 +02:00
GMasterTrack(int x, int y, int w, int h, const char* l = 0 );
int getBpm();
void setBpm( int bpm );
2013-09-10 22:51:05 +02:00
void setTapTempo( bool b );
void setBarBeat(int b, int beat);
2013-07-27 17:37:54 +02:00
void metronomeEnable( bool b );
2013-09-10 22:51:05 +02:00
Avtk::Volume* getInputVolume();
Avtk::Volume* getVolume();
Avtk::ClipSelector* getClipSelector();
2013-09-10 22:51:05 +02:00
~GMasterTrack();
private:
int ID;
char* title;
2013-07-27 18:16:37 +02:00
int bar;
int bpm;
Avtk::Background bg;
Avtk::ClipSelector clipSel;
Fl_Progress source;
Fl_Progress volBox;
Avtk::Button tapTempo;
Avtk::LightButton metronomeButton;
Avtk::Dial tempoDial;
Avtk::Dial returnVol;
2013-09-10 22:51:05 +02:00
Avtk::LightButton* beatLights[4];
2013-09-10 22:51:05 +02:00
Avtk::Volume inputVolume;
2013-09-20 12:23:59 +02:00
2013-09-20 12:30:19 +02:00
Avtk::LightButton inputToSend;
Avtk::Dial inputToSendVol;
2013-09-20 12:23:59 +02:00
Avtk::LightButton inputToSidechainKey;
Avtk::Dial inputToSidechainSignalVol;
Avtk::LightButton inputToMix;
2013-09-18 10:53:15 +02:00
Avtk::Dial inputToMixVol;
Avtk::Volume volume;
static int privateID;
};
#endif // LUPPP_G_MASTER_TRACK_H