Fixing master output section

Looks better than before, but still not ideal. Perhaps adding
a global (master) FX send to JACK could fill the space?
Or else re-layout the items (labels under dials?) to fill void.
This commit is contained in:
Harry van Haaren 2016-11-24 23:29:37 +00:00
parent 7ff4d83bb3
commit f8d5ccf34d
2 changed files with 10 additions and 23 deletions

View file

@ -194,6 +194,7 @@ static void gmastertrack_button_callback(Fl_Widget *w, void *data)
} }
} }
#define OFST 33
GMasterTrack::GMasterTrack(int x, int y, int w, int h, const char* l ) : GMasterTrack::GMasterTrack(int x, int y, int w, int h, const char* l ) :
Fl_Group(x, y, w, h), Fl_Group(x, y, w, h),
title( strdup(l) ), title( strdup(l) ),
@ -203,14 +204,14 @@ GMasterTrack::GMasterTrack(int x, int y, int w, int h, const char* l ) :
clipSel(x + 5, y + 26 + 102, 140, 294,"", true), clipSel(x + 5, y + 26 + 102, 140, 294,"", true),
source(x+5, y+26, 140, 100, ""), source(x+5, y+26, 140, 100, ""),
volBox(x+5, y+422, 140, 172, ""), volBox(x+5, y+422, 140, 232, ""),
transport ( x + w * 2/4.f - 18, y + 426 + 26 * 0, 44,24, "Stop" ), transport ( x + w * 2/4.f - 18, y + 436 + OFST * 0, 44,28, "Stop" ),
tapTempo ( x + w * 2/4.f - 18, y + 426 + 26 * 1, 44,24, "Tap" ), tapTempo ( x + w * 2/4.f - 18, y + 436 + OFST * 1, 44,28, "Tap" ),
metronomeButton( x + w * 2/4.f - 18, y + 426 + 26 * 2, 44,24,"Metro"), metronomeButton( x + w * 2/4.f - 18, y + 436 + OFST * 2, 44,28,"Metro"),
tempoDial ( x + w * 2/4.f - 18, y + 426 + 41 * 2, 45, 36,"BPM"), tempoDial ( x + w * 2/4.f - 18, y + 436 + OFST * 3.5, 45, 38,"BPM"),
returnVol ( x + w * 2/4.f - 18, y + 426 + 41 * 3, 45, 36,"Return"), returnVol ( x + w * 2/4.f - 18, y + 436 + OFST * 5, 45, 38,"Return"),
inputVolume(x + 9,y + 26 + 4, w - 18, 30,""), inputVolume(x + 9,y + 26 + 4, w - 18, 30,""),
@ -223,7 +224,7 @@ GMasterTrack::GMasterTrack(int x, int y, int w, int h, const char* l ) :
inputToMix (x + w*0.8-20,y + 28 + 68, 40, 26,"Mix"), inputToMix (x + w*0.8-20,y + 28 + 68, 40, 26,"Mix"),
inputToMixVol(x + w*0.8-15,y + 28 + 36, 30, 30,""), inputToMixVol(x + w*0.8-15,y + 28 + 36, 30, 30,""),
volume(x+106, y +425, 36, 166, "") volume(x+106, y +425, 36, 216, "")
{ {
ID = privateID++; ID = privateID++;
@ -254,8 +255,6 @@ GMasterTrack::GMasterTrack(int x, int y, int w, int h, const char* l ) :
inputToMix.callback ( gmastertrack_mixButton_callback, 0 ); inputToMix.callback ( gmastertrack_mixButton_callback, 0 );
inputToMixVol.callback ( gmastertrack_mixVol_callback, 0 ); inputToMixVol.callback ( gmastertrack_mixVol_callback, 0 );
tempoDial.align( FL_ALIGN_CENTER ); tempoDial.align( FL_ALIGN_CENTER );
returnVol.value( 1.f ); returnVol.value( 1.f );
@ -264,7 +263,7 @@ GMasterTrack::GMasterTrack(int x, int y, int w, int h, const char* l ) :
for(int i = 0; i < 4; i++) for(int i = 0; i < 4; i++)
{ {
beatLights[i] = new Avtk::LightButton( x + 11, y + 427 + 41 * i, 38, 38, "" ); beatLights[i] = new Avtk::LightButton( x + 10, y + 437 + 54 * i, 40, 42, "" );
} }
beatLights[0]->setColor( 1.0, 0.0 , 0.0 ); beatLights[0]->setColor( 1.0, 0.0 , 0.0 );
beatLights[1]->setColor( 1.0, 0.48, 0.0 ); beatLights[1]->setColor( 1.0, 0.48, 0.0 );

View file

@ -443,26 +443,14 @@ Gui::Gui(const char* argZero) :
// create a new "Group" with all Luppp GUI contents, for resizing // create a new "Group" with all Luppp GUI contents, for resizing
lupppGroup = new Fl_Group( 0, 0, 1110, 650, "Luppp"); lupppGroup = new Fl_Group( 0, 0, 1110, 650, "Luppp");
{ {
// everything in here will have resize() called when main window is resized
/*
Fl_Bitmap* headImg = new Fl_Bitmap( (unsigned char*)header.pixel_data, 1110, 36 );
Fl_Box* pic_box = new Fl_Box(0,0,1110,36);
pic_box->image( headImg );
pic_box->redraw();
*/
int i = 0; int i = 0;
for (; i < NTRACKS; i++ ) for (; i < NTRACKS; i++ )
{ {
stringstream s; stringstream s;
s << "Track " << i+1; s << "Track " << i+1;
//printf("track name %s\n", s.str().c_str() );
tracks.push_back( new GTrack(8 + i * 118, 40, 110, 650, s.str().c_str() ) ); tracks.push_back( new GTrack(8 + i * 118, 40, 110, 650, s.str().c_str() ) );
} }
master = new GMasterTrack(8 + i * 118, 40, 150, 650, "Master");
master = new GMasterTrack(8 + i * 118, 40, 150, 600, "Master");
} }
lupppGroup->end(); lupppGroup->end();