Browse Source

Begin rearranging.

tags/non-daw-v1.1.0
Jonathan Moore Liles 15 years ago
parent
commit
c415fe9680
45 changed files with 110 additions and 18 deletions
  1. +0
    -0
      Engine/Audio_File.C
  2. +0
    -0
      Engine/Audio_File.H
  3. +0
    -0
      Engine/Audio_File_SF.C
  4. +0
    -0
      Engine/Audio_File_SF.H
  5. +0
    -0
      Engine/Loggable.C
  6. +0
    -0
      Engine/Loggable.H
  7. +0
    -0
      Engine/Peaks.C
  8. +0
    -0
      Engine/Peaks.H
  9. +0
    -0
      Engine/const.h
  10. +0
    -0
      FL/Boxtypes.C
  11. +0
    -0
      FL/Boxtypes.H
  12. +0
    -0
      FL/Fl_Arc_Dial.H
  13. +0
    -0
      FL/Fl_Flip_Button.H
  14. +0
    -0
      FL/Fl_Scalepack.C
  15. +0
    -0
      FL/Fl_Scalepack.H
  16. +0
    -0
      Mixer/DPM.C
  17. +0
    -0
      Mixer/DPM.H
  18. +0
    -0
      Mixer/Meter.H
  19. +98
    -0
      Mixer/Mixer.C
  20. +12
    -18
      Mixer/Mixer_Strip.fl
  21. +0
    -0
      Mixer/Panner.C
  22. +0
    -0
      Mixer/Panner.H
  23. +0
    -0
      Timeline/Audio_Track.C
  24. +0
    -0
      Timeline/Audio_Track.H
  25. +0
    -0
      Timeline/Control_Point.H
  26. +0
    -0
      Timeline/Control_Track.H
  27. +0
    -0
      Timeline/Region.C
  28. +0
    -0
      Timeline/Region.H
  29. +0
    -0
      Timeline/Scalebar.H
  30. +0
    -0
      Timeline/Tempo_Point.H
  31. +0
    -0
      Timeline/Tempo_Track.H
  32. +0
    -0
      Timeline/Time_Point.H
  33. +0
    -0
      Timeline/Time_Track.H
  34. +0
    -0
      Timeline/Timeline.C
  35. +0
    -0
      Timeline/Timeline.H
  36. +0
    -0
      Timeline/Track.C
  37. +0
    -0
      Timeline/Track.H
  38. +0
    -0
      Timeline/Track_Header.C
  39. +0
    -0
      Timeline/Track_Header.H
  40. +0
    -0
      Timeline/Track_Point.H
  41. +0
    -0
      Timeline/Track_Widget.C
  42. +0
    -0
      Timeline/Track_Widget.H
  43. +0
    -0
      Timeline/Waveform.C
  44. +0
    -0
      Timeline/Waveform.H
  45. +0
    -0
      Timeline/main.C

Audio_File.C → Engine/Audio_File.C View File


Audio_File.H → Engine/Audio_File.H View File


Audio_File_SF.C → Engine/Audio_File_SF.C View File


Audio_File_SF.H → Engine/Audio_File_SF.H View File


Loggable.C → Engine/Loggable.C View File


Loggable.H → Engine/Loggable.H View File


Peaks.C → Engine/Peaks.C View File


Peaks.H → Engine/Peaks.H View File


const.h → Engine/const.h View File


Boxtypes.C → FL/Boxtypes.C View File


Boxtypes.H → FL/Boxtypes.H View File


Fl_Arc_Dial.H → FL/Fl_Arc_Dial.H View File


Fl_Flip_Button.H → FL/Fl_Flip_Button.H View File


Fl_Scalepack.C → FL/Fl_Scalepack.C View File


Fl_Scalepack.H → FL/Fl_Scalepack.H View File


DPM.C → Mixer/DPM.C View File


DPM.H → Mixer/DPM.H View File


Meter.H → Mixer/Meter.H View File


+ 98
- 0
Mixer/Mixer.C 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();
}

Mixer_Strip.fl → Mixer/Mixer_Strip.fl View File

@@ -21,7 +21,7 @@ decl {\#include "Fl_Arc_Dial.H"} {public global
}

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
} {
Fl_Box {} {
@@ -37,20 +37,20 @@ widget_class Mixer_Strip {open
} {
Fl_Button {} {
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 {} {
label m
private xywh {46 143 32 25} type Toggle
private xywh {46 143 32 25} type Toggle box THIN_UP_BOX
}
Fl_Button {} {
label s
private xywh {82 143 35 25} type Toggle
private xywh {82 143 35 25} type Toggle box THIN_UP_BOX
}
}
Fl_Button {} {
label {output/input}
xywh {56 182 55 25} type Toggle box ROUNDED_BOX color 106 selection_color 65 align 64
label {post/pre} selected
xywh {61 183 45 22} type Toggle box ROUNDED_BOX color 106 selection_color 65 align 64
class Fl_Flip_Button
}
Fl_Group {} {open
@@ -66,7 +66,7 @@ widget_class Mixer_Strip {open
xywh {56 208 55 471} type HORIZONTAL labeltype NO_LABEL align 0
class Fl_Scalepack
} {
Fl_Box meter {
Fl_Box {} {
label DPM
xywh {56 208 24 459} box ROUNDED_BOX selection_color 88
class DPM
@@ -76,16 +76,6 @@ widget_class Mixer_Strip {open
xywh {81 208 30 459} box ROUNDED_BOX selection_color 88
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 {} {
@@ -108,9 +98,13 @@ widget_class Mixer_Strip {open
code0 {o->box( FL_BURNISHED_OVAL_BOX );}
class Fl_Arc_Dial
}
Fl_Dial {} {selected
Fl_Dial {} {
xywh {73 80 41 39} box OVAL_FRAME color 52 selection_color 55
code0 {o->box( FL_BURNISHED_OVAL_BOX );}
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
}
}

Panner.C → Mixer/Panner.C View File


Panner.H → Mixer/Panner.H View File


Audio_Track.C → Timeline/Audio_Track.C View File


Audio_Track.H → Timeline/Audio_Track.H View File


Control_Point.H → Timeline/Control_Point.H View File


Control_Track.H → Timeline/Control_Track.H View File


Region.C → Timeline/Region.C View File


Region.H → Timeline/Region.H View File


Scalebar.H → Timeline/Scalebar.H View File


Tempo_Point.H → Timeline/Tempo_Point.H View File


Tempo_Track.H → Timeline/Tempo_Track.H View File


Time_Point.H → Timeline/Time_Point.H View File


Time_Track.H → Timeline/Time_Track.H View File


Timeline.C → Timeline/Timeline.C View File


Timeline.H → Timeline/Timeline.H View File


Track.C → Timeline/Track.C View File


Track.H → Timeline/Track.H View File


Track_Header.C → Timeline/Track_Header.C View File


Track_Header.H → Timeline/Track_Header.H View File


Track_Point.H → Timeline/Track_Point.H View File


Track_Widget.C → Timeline/Track_Widget.C View File


Track_Widget.H → Timeline/Track_Widget.H View File


Waveform.C → Timeline/Waveform.C View File


Waveform.H → Timeline/Waveform.H View File


main.C → Timeline/main.C View File


Loading…
Cancel
Save