2013-05-16 02:38:11 +02:00
|
|
|
|
|
|
|
#ifndef LUPPP_G_MASTER_TRACK_H
|
|
|
|
#define LUPPP_G_MASTER_TRACK_H
|
|
|
|
|
|
|
|
#include <iostream>
|
2013-07-27 17:37:54 +02:00
|
|
|
#include <sstream>
|
2013-05-16 02:38:11 +02:00
|
|
|
|
|
|
|
#include <FL/Fl.H>
|
|
|
|
#include <FL/Fl_Group.H>
|
|
|
|
#include <FL/Fl_Slider.H>
|
2013-07-25 02:16:29 +02:00
|
|
|
#include <FL/Fl_Progress.H>
|
2013-05-16 02:38:11 +02:00
|
|
|
|
2013-10-18 13:32:57 +02:00
|
|
|
#include "avtk/avtk_box.h"
|
2013-05-16 02:38:11 +02:00
|
|
|
#include "avtk/avtk_dial.h"
|
|
|
|
#include "avtk/avtk_button.h"
|
2013-07-28 15:37:38 +02:00
|
|
|
#include "avtk/avtk_reverb.h"
|
2013-05-16 02:38:11 +02:00
|
|
|
#include "avtk/avtk_background.h"
|
2013-07-25 02:47:19 +02:00
|
|
|
#include "avtk/avtk_light_button.h"
|
2013-08-04 01:26:43 +02:00
|
|
|
#include "avtk/avtk_sidechain_gain.h"
|
2013-05-16 02:38:11 +02:00
|
|
|
|
2013-09-08 15:24:27 +02:00
|
|
|
#include "avtk/volume.hxx"
|
2013-09-05 19:33:16 +02:00
|
|
|
#include "avtk/clipselector.hxx"
|
2013-05-16 02:38:11 +02:00
|
|
|
|
|
|
|
#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 );
|
2013-08-05 18:52:53 +02:00
|
|
|
|
2013-09-11 00:09:45 +02:00
|
|
|
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
|
|
|
|
2013-10-09 01:15:31 +02:00
|
|
|
void metronomeEnable( bool b );
|
|
|
|
|
2013-09-10 22:51:05 +02:00
|
|
|
Avtk::Volume* getInputVolume();
|
|
|
|
Avtk::Volume* getVolume();
|
|
|
|
Avtk::ClipSelector* getClipSelector();
|
2013-07-28 15:20:54 +02:00
|
|
|
|
2013-09-10 22:51:05 +02:00
|
|
|
~GMasterTrack();
|
2013-05-16 02:38:11 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
int ID;
|
2013-09-11 00:09:45 +02:00
|
|
|
char* title;
|
2013-05-16 02:38:11 +02:00
|
|
|
|
2013-07-27 18:16:37 +02:00
|
|
|
int bar;
|
2013-09-11 00:09:45 +02:00
|
|
|
int bpm;
|
2013-05-16 02:38:11 +02:00
|
|
|
|
|
|
|
Avtk::Background bg;
|
2013-05-16 18:45:46 +02:00
|
|
|
|
2013-07-22 13:40:05 +02:00
|
|
|
Avtk::ClipSelector clipSel;
|
|
|
|
|
2013-10-18 13:32:57 +02:00
|
|
|
Avtk::Box source;
|
|
|
|
Avtk::Box volBox;
|
2013-09-10 23:23:32 +02:00
|
|
|
|
2013-05-16 18:45:46 +02:00
|
|
|
Avtk::Button tapTempo;
|
2013-05-16 02:38:11 +02:00
|
|
|
Avtk::LightButton metronomeButton;
|
2013-09-10 23:23:32 +02:00
|
|
|
Avtk::Dial tempoDial;
|
2013-09-11 02:32:58 +02:00
|
|
|
|
|
|
|
Avtk::Dial returnVol;
|
2013-09-10 22:51:05 +02:00
|
|
|
|
2013-09-10 23:23:32 +02:00
|
|
|
Avtk::LightButton* beatLights[4];
|
2013-09-10 22:51:05 +02:00
|
|
|
|
2013-09-08 15:47:04 +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;
|
|
|
|
|
2013-09-11 02:32:58 +02:00
|
|
|
Avtk::LightButton inputToMix;
|
2013-09-18 10:53:15 +02:00
|
|
|
Avtk::Dial inputToMixVol;
|
2013-09-11 02:32:58 +02:00
|
|
|
|
2013-08-04 01:26:43 +02:00
|
|
|
Avtk::Volume volume;
|
2013-07-22 13:40:05 +02:00
|
|
|
|
2013-05-16 02:38:11 +02:00
|
|
|
static int privateID;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LUPPP_G_MASTER_TRACK_H
|
|
|
|
|