2013-12-08 22:44:43 +01:00
|
|
|
/*
|
|
|
|
* Author: Harry van Haaren 2013
|
|
|
|
* harryhaaren@gmail.com
|
2016-12-27 13:47:19 +01:00
|
|
|
*
|
2013-12-08 22:44:43 +01:00
|
|
|
* 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.
|
2016-12-27 13:47:19 +01:00
|
|
|
*
|
2013-12-08 22:44:43 +01:00
|
|
|
* 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.
|
2016-12-27 13:47:19 +01:00
|
|
|
*
|
2013-12-08 22:44:43 +01:00
|
|
|
* 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
|
|
|
|
2019-06-09 10:41:19 +02:00
|
|
|
#ifndef LOOPP_G_MASTER_TRACK_H
|
|
|
|
#define LOOPP_G_MASTER_TRACK_H
|
2013-05-16 02:38:11 +02:00
|
|
|
|
|
|
|
#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
|
|
|
|
{
|
2016-12-27 13:47:19 +01:00
|
|
|
public:
|
|
|
|
GMasterTrack(int x, int y, int w, int h, const char* l = 0 );
|
|
|
|
|
2019-05-31 21:52:57 +02:00
|
|
|
float getBpm();
|
|
|
|
void setBpm( float bpm );
|
2016-12-27 13:47:19 +01:00
|
|
|
void setTapTempo( bool b );
|
|
|
|
void setBarBeat(int b, int beat);
|
|
|
|
|
|
|
|
void setReturnVol(float f);
|
|
|
|
void setInputVol(float f);
|
|
|
|
void setInputTo(int to, float f);
|
|
|
|
void setInputToActive(int to, bool f);
|
|
|
|
|
|
|
|
void metronomeEnable( bool b );
|
2019-06-06 14:54:44 +02:00
|
|
|
void metronomeActivate(bool b);
|
2019-05-31 20:59:48 +02:00
|
|
|
void
|
|
|
|
setClipLength(int l);
|
2019-06-06 10:31:01 +02:00
|
|
|
void setFreeRecMode(bool e);
|
2019-06-06 15:02:26 +02:00
|
|
|
void tapEnable(bool b);
|
2019-06-06 15:10:06 +02:00
|
|
|
void beatLightEnable(bool b);
|
2019-06-06 15:18:20 +02:00
|
|
|
void tempoDialEnable(bool b);
|
2019-06-15 10:24:13 +02:00
|
|
|
void enableFreeRecMode ( bool e );
|
2019-06-18 12:34:26 +02:00
|
|
|
void enableTempoDial ( bool e );
|
2016-12-27 13:47:19 +01:00
|
|
|
|
2019-06-06 15:10:06 +02:00
|
|
|
Avtk::Volume *getInputVolume();
|
2016-12-27 13:47:19 +01:00
|
|
|
Avtk::Volume* getVolume();
|
|
|
|
Avtk::ClipSelector* getClipSelector();
|
|
|
|
|
|
|
|
Avtk::LightButton* getInputToSend();
|
|
|
|
Avtk::LightButton* getInputToSidechainKey();
|
|
|
|
Avtk::LightButton* getInputToMix();
|
|
|
|
|
|
|
|
Avtk::Dial* getInputToSendVol();
|
|
|
|
Avtk::Dial* getInputToXSide();
|
|
|
|
Avtk::Dial* getInputToMixVol();
|
|
|
|
|
|
|
|
~GMasterTrack();
|
|
|
|
|
|
|
|
private:
|
|
|
|
int ID;
|
|
|
|
char* title;
|
|
|
|
|
|
|
|
int bar;
|
2019-05-31 21:52:57 +02:00
|
|
|
float bpm;
|
2016-12-27 13:47:19 +01:00
|
|
|
|
|
|
|
Avtk::Background bg;
|
|
|
|
|
|
|
|
Avtk::ClipSelector clipSel;
|
|
|
|
|
|
|
|
Avtk::Box source;
|
|
|
|
Avtk::Box volBox;
|
|
|
|
|
2019-06-05 14:09:03 +02:00
|
|
|
Avtk::LightButton freeRec;
|
2016-12-27 13:47:19 +01:00
|
|
|
Avtk::Button transport;
|
|
|
|
Avtk::Button tapTempo;
|
|
|
|
Avtk::LightButton metronomeButton;
|
2019-05-31 20:59:48 +02:00
|
|
|
Avtk::LightButton autoStopRecButton;
|
|
|
|
Avtk::Dial tempoDial;
|
2016-12-27 13:47:19 +01:00
|
|
|
|
|
|
|
Avtk::Dial returnVol;
|
|
|
|
|
2019-06-05 13:01:33 +02:00
|
|
|
Avtk::LightButton beatLight;
|
2016-12-27 13:47:19 +01:00
|
|
|
|
|
|
|
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;
|
2013-05-16 02:38:11 +02:00
|
|
|
};
|
|
|
|
|
2019-06-09 10:41:19 +02:00
|
|
|
#endif // LOOPP_G_MASTER_TRACK_H
|
2013-05-16 02:38:11 +02:00
|
|
|
|