Begin rearranging.

This commit is contained in:
Jonathan Moore Liles 2008-03-19 22:12:21 -05:00
parent 3082d8ce03
commit c415fe9680
45 changed files with 110 additions and 18 deletions

View File

View File

98
Mixer/Mixer.C Normal file
View File

@ -0,0 +1,98 @@
/*******************************************************************************/
/* Copyright (C) 2008 Jonathan Moore Liles */
/* */
/* 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 2 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; see the file COPYING. If not,write to the Free Software */
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/*******************************************************************************/
#include <FL/Fl.H>
#include <FL/Fl_Single_Window.H>
#include <FL/Fl_Single_Window.H>
#include <FL/Fl_Scroll.H>
#include <FL/Fl_Pack.H>
#include "Mixer_Strip.H"
#include <stdlib.h>
#include <unistd.h>
#include "DPM.H"
Fl_Single_Window *main_window;
#include "Boxtypes.H"
int
main ( int argc, char **arv )
{
Fl::get_system_colors();
Fl::scheme( "plastic" );
init_boxtypes();
Fl_Pack * mixer_strips;
Fl_Single_Window *o = main_window = new Fl_Single_Window( 1024, 768 );
{
Fl_Scroll *o = new Fl_Scroll( 0, 0, main_window->w(), main_window->h() );
main_window->resizable( o );
{
Fl_Pack *o = mixer_strips = new Fl_Pack( 0, 0, 1, main_window->h() );
o->type( Fl_Pack::HORIZONTAL );
{
for ( int i = 16; i-- ; )
new Mixer_Strip( 0, 0, 120, main_window->h() + 150 );
}
o->end();
}
o->end();
}
o->end();
o->show();
while ( 1 )
{
for ( int i = mixer_strips->children(); i--; )
{
Meter_Pack *mp = (Meter_Pack*)((Mixer_Strip*) mixer_strips->child( i ))->meters_pack;
for ( int j = mp->channels(); j-- ; )
{
Meter *o = mp->channel( j );
float v = o->value();
float r = ((rand() / (float)RAND_MAX) - 0.5f) * 10.0f;
v += r;
if ( v > 4.0f ) v = 0.0f;
if ( v < -80.0f ) v = 0.0f;
o->value( v );
}
}
Fl::wait( 0.02f );
/* Fl::check(); */
/* usleep( 50000 ); */
}
// Fl::run();
}

View File

@ -21,7 +21,7 @@ decl {\#include "Fl_Arc_Dial.H"} {public global
} }
widget_class Mixer_Strip {open widget_class Mixer_Strip {open
xywh {1051 42 124 816} type Double box UP_FRAME color 32 selection_color 63 resizable xywh {1051 42 124 878} type Double box UP_FRAME color 32 selection_color 63 resizable
code0 {size( 120, h() );} visible code0 {size( 120, h() );} visible
} { } {
Fl_Box {} { Fl_Box {} {
@ -37,20 +37,20 @@ widget_class Mixer_Strip {open
} { } {
Fl_Button {} { Fl_Button {} {
label {@circle} label {@circle}
private xywh {7 143 35 25} type Toggle labelsize 10 private xywh {7 143 35 25} type Toggle box THIN_UP_BOX labelsize 10
} }
Fl_Button {} { Fl_Button {} {
label m label m
private xywh {46 143 32 25} type Toggle private xywh {46 143 32 25} type Toggle box THIN_UP_BOX
} }
Fl_Button {} { Fl_Button {} {
label s label s
private xywh {82 143 35 25} type Toggle private xywh {82 143 35 25} type Toggle box THIN_UP_BOX
} }
} }
Fl_Button {} { Fl_Button {} {
label {output/input} label {post/pre} selected
xywh {56 182 55 25} type Toggle box ROUNDED_BOX color 106 selection_color 65 align 64 xywh {61 183 45 22} type Toggle box ROUNDED_BOX color 106 selection_color 65 align 64
class Fl_Flip_Button class Fl_Flip_Button
} }
Fl_Group {} {open Fl_Group {} {open
@ -66,7 +66,7 @@ widget_class Mixer_Strip {open
xywh {56 208 55 471} type HORIZONTAL labeltype NO_LABEL align 0 xywh {56 208 55 471} type HORIZONTAL labeltype NO_LABEL align 0
class Fl_Scalepack class Fl_Scalepack
} { } {
Fl_Box meter { Fl_Box {} {
label DPM label DPM
xywh {56 208 24 459} box ROUNDED_BOX selection_color 88 xywh {56 208 24 459} box ROUNDED_BOX selection_color 88
class DPM class DPM
@ -76,16 +76,6 @@ widget_class Mixer_Strip {open
xywh {81 208 30 459} box ROUNDED_BOX selection_color 88 xywh {81 208 30 459} box ROUNDED_BOX selection_color 88
class DPM class DPM
} }
Fl_Box {} {
label DPM
xywh {91 208 20 461} box ROUNDED_BOX selection_color 88
class DPM
}
Fl_Box {} {
label DPM
xywh {101 208 10 471} box ROUNDED_BOX selection_color 88
class DPM
}
} }
} }
Fl_Box {} { Fl_Box {} {
@ -108,9 +98,13 @@ widget_class Mixer_Strip {open
code0 {o->box( FL_BURNISHED_OVAL_BOX );} code0 {o->box( FL_BURNISHED_OVAL_BOX );}
class Fl_Arc_Dial class Fl_Arc_Dial
} }
Fl_Dial {} {selected Fl_Dial {} {
xywh {73 80 41 39} box OVAL_FRAME color 52 selection_color 55 xywh {73 80 41 39} box OVAL_FRAME color 52 selection_color 55
code0 {o->box( FL_BURNISHED_OVAL_BOX );} code0 {o->box( FL_BURNISHED_OVAL_BOX );}
class Fl_Arc_Dial class Fl_Arc_Dial
} }
Fl_Counter intputs_counter {
label {Mix Ins}
xywh {60 788 58 20} type Simple align 4 minimum 1 maximum 4 step 1 value 1
}
} }