zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 3b6ece03220d7b04f04d5a8bed7d1b248ed5edd7
parent 36781bd32c26e999f2e0dda98b235408f79e8f88
Author: paulnasca <paulnasca>
Date:   Wed, 23 Jun 2004 19:08:15 +0000

*** empty log message ***

Diffstat:
MChangeLog | 4++--
Msrc/UI/OscilGenUI.fl | 35++++++++++++++++++-----------------
2 files changed, 20 insertions(+), 19 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -592,6 +592,6 @@ 22 Iun 2004 - Continuat conversia in sinus si facut teste pentru posibilitatea de "draw" cu sliderele 23 Iun 2004 - Modificat modul in care parametrii se afiseaza la OscilGen (este o functie refresh() care face asta) - Adaugata posibilitatea de draw la armonicele OscilGen daca se apasa tasta Shift - - + - Corectata o mica eroare care facea imposibila modificarea amplitudinii armonicelor cu tastatura + diff --git a/src/UI/OscilGenUI.fl b/src/UI/OscilGenUI.fl @@ -239,8 +239,8 @@ class Oscilharmonic {: {public Fl_Group} } { Fl_Slider mag { callback {int x=64; -if (Fl::event_button1()) x=127-(int)o->value(); - else o->value(x); +if (Fl::event_button3()) o->value(x); + else x=127-(int)o->value(); if (x==64) o->selection_color(0); else o->selection_color(222); @@ -262,8 +262,8 @@ oldosc->redraw();} } Fl_Slider phase { callback {int x=64; -if (Fl::event_button1()) x=(int)o->value(); - else o->value(x); +if (Fl::event_button3()) o->value(x); + else x=(int)o->value(); pthread_mutex_lock(&master->mutex); oscil->Phphase[n]=x; @@ -309,14 +309,13 @@ make_window(); end(); harmonic->show();} {} } - Function {refresh()} {} { + Function {refresh()} {open + } { code {mag->value(127-oscil->Phmag[n]); phase->value(oscil->Phphase[n]); if (oscil->Phmag[n]==64) mag->selection_color(0); - else mag->selection_color(222); -if (oscil->Phphase[n]==64) phase->selection_color(0); - else phase->selection_color(222);} {} + else mag->selection_color(222);} {} } Function {~Oscilharmonic()} {} { code {harmonic->hide(); @@ -329,13 +328,11 @@ delete(harmonic);} {} decl {Master *master;} {} } -class OscilEditor {open -} { - Function {make_window()} {open - } { +class OscilEditor {} { + Function {make_window()} {} { Fl_Window osceditUI { label {ADsynth Oscillator Editor} - xywh {4 91 745 590} type Double visible + xywh {4 91 745 590} type Double hide } { Fl_Group oscildisplaygroup { xywh {15 5 360 300} box ENGRAVED_FRAME @@ -1003,6 +1000,8 @@ refresh();} oldosc=oldosc_; master=master_; make_window(); + +refresh(); osceditUI->show();} {} } Function {~OscilEditor()} {} { @@ -1010,8 +1009,7 @@ osceditUI->show();} {} for (int i=0;i<MAX_AD_HARMONICS;i++) delete (h[i]); delete (osceditUI);} {} } - Function {refresh()} {open - } { + Function {refresh()} {} { code {magtype->value(oscil->Phmagtype); rndslider->value(oscil->Prand-64); @@ -1052,8 +1050,11 @@ adhrtype->value(oscil->Padaptiveharmonics); adhrbf->value(oscil->Padaptiveharmonicsbasefreq); adhrpow->value(oscil->Padaptiveharmonicspower); -for (int i=0;i<MAX_AD_HARMONICS;i++) h[i]->refresh();} {selected - } +for (int i=0;i<MAX_AD_HARMONICS;i++) h[i]->refresh(); + +basefuncdisplaygroup->redraw(); +oscildisplaygroup->redraw(); +oldosc->redraw();} {} } decl {OscilGen *oscil;} {} decl {Fl_Widget *oldosc;} {}