Loopp/src/gmastertrack.hxx

86 lines
1.7 KiB
C++

#ifndef LUPPP_G_MASTER_TRACK_H
#define LUPPP_G_MASTER_TRACK_H
#include <iostream>
#include <sstream>
#include <FL/Fl.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Slider.H>
#include <FL/Fl_Progress.H>
#include "avtk/avtk_box.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"
#include "avtk/volume.hxx"
#include "avtk/clipselector.hxx"
#include "eventhandler.hxx"
using namespace std;
class GMasterTrack : public Fl_Group
{
public:
GMasterTrack(int x, int y, int w, int h, const char* l = 0 );
int getBpm();
void setBpm( int bpm );
void setTapTempo( bool b );
void setBarBeat(int b, int beat);
void metronomeEnable( bool b );
Avtk::Volume* getInputVolume();
Avtk::Volume* getVolume();
Avtk::ClipSelector* getClipSelector();
~GMasterTrack();
private:
int ID;
char* title;
int bar;
int bpm;
Avtk::Background bg;
Avtk::ClipSelector clipSel;
Avtk::Box source;
Avtk::Box volBox;
Avtk::Button tapTempo;
Avtk::LightButton metronomeButton;
Avtk::Dial tempoDial;
Avtk::Dial returnVol;
Avtk::LightButton* beatLights[4];
Avtk::Volume inputVolume;
Avtk::LightButton inputToSend;
Avtk::Dial inputToSendVol;
Avtk::LightButton inputToSidechainKey;
Avtk::Dial inputToSidechainSignalVol;
Avtk::LightButton inputToMix;
Avtk::Dial inputToMixVol;
Avtk::Volume volume;
static int privateID;
};
#endif // LUPPP_G_MASTER_TRACK_H