2013-12-08 22:44:43 +01:00
|
|
|
/*
|
|
|
|
* Author: Harry van Haaren 2013
|
|
|
|
* harryhaaren@gmail.com
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
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-11-21 15:11:06 +01:00
|
|
|
void setReturnVol(float f);
|
2013-11-09 22:50:21 +01:00
|
|
|
void setInputVol(float f);
|
|
|
|
void setInputTo(int to, float f);
|
|
|
|
void setInputToActive(int to, bool f);
|
|
|
|
|
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
|
|
|
|
|