commit 4ef2a0f58d21a5e1cc454fc3b21533ffb0b091e0
parent 740d972d557f323226c950827aa197e28f21a6d2
Author: paulnasca <paulnasca>
Date: Tue, 31 Oct 2006 18:25:44 +0000
*** empty log message ***
Diffstat:
3 files changed, 2 insertions(+), 26 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -807,5 +807,7 @@
14 Sep 2006 - Se afiseaza spectrul la nota cu frecventa de 440 Hz la Oscil si pentru parametru Adaptive Harmonics
30 Oct 2006 - Adaugat un patch "standalone zombie fix stripped from Lars"
- Adaugat un patch "Extended mono" si "font resizing stuff" de Gerald Folcher
+31 Oct 2006 - Adaugat un patch "Extended mono v.3" de Gerald Folcher
+
diff --git a/src/Synth/ADnote.C b/src/Synth/ADnote.C
@@ -205,15 +205,6 @@ void ADnote::ADlegatonote(ADnoteParameters *pars, Controller *ctl_, REALTYPE fre
pars->GlobalPar.PFilterVelocityScale/127.0*6.0* //velocity sensing
(VelF(velocity,pars->GlobalPar.PFilterVelocityScaleFunction)-1);
- if (pars->GlobalPar.PPunchStrength!=0) {
- NoteGlobalPar.Punch.Enabled=1;
- NoteGlobalPar.Punch.t=1.0;//start from 1.0 and to 0.0
- NoteGlobalPar.Punch.initialvalue=( (pow(10,1.5*pars->GlobalPar.PPunchStrength/127.0)-1.0)
- *VelF(velocity,pars->GlobalPar.PPunchVelocitySensing) );
- REALTYPE time=pow(10,3.0*pars->GlobalPar.PPunchTime/127.0)/10000.0;//0.1 .. 100 ms
- REALTYPE stretch=pow(440.0/freq,pars->GlobalPar.PPunchStretch/64.0);
- NoteGlobalPar.Punch.dt=1.0/(time*SAMPLE_RATE*stretch);
- } else NoteGlobalPar.Punch.Enabled=0;
for (int nvoice=0;nvoice<NUM_VOICES;nvoice++){
if (pars->VoicePar[nvoice].Enabled==0) {
@@ -255,8 +246,6 @@ void ADnote::ADlegatonote(ADnoteParameters *pars, Controller *ctl_, REALTYPE fre
//I store the first elments to the last position for speedups
for (int i=0;i<OSCIL_SMP_EXTRA_SAMPLES;i++) NoteVoicePar[nvoice].OscilSmp[OSCIL_SIZE+i]=NoteVoicePar[nvoice].OscilSmp[i];
- ///oscposhi[nvoice]+=(int)((pars->VoicePar[nvoice].Poscilphase-64.0)/128.0*OSCIL_SIZE+OSCIL_SIZE*4);
- ///oscposhi[nvoice]%=OSCIL_SIZE;
NoteVoicePar[nvoice].FilterCenterPitch=pars->VoicePar[nvoice].VoiceFilter->getfreq();
NoteVoicePar[nvoice].filterbypass=pars->VoicePar[nvoice].Pfilterbypass;
diff --git a/src/Synth/PADnote.C b/src/Synth/PADnote.C
@@ -170,11 +170,6 @@ void PADnote::PADlegatonote(PADnoteParameters *parameters, Controller *ctl_, REA
int size=pars->sample[nsample].size;
if (size==0) size=1;
- ///poshi_l=(int)(RND*(size-1));
- ///if (pars->PStereo!=0) poshi_r=(poshi_l+size/2)%size;
- ///else poshi_r=poshi_l;
- ///poslo=0.0;
-
if (pars->PPanning==0) NoteGlobalPar.Panning=RND;
else NoteGlobalPar.Panning=pars->PPanning/128.0;
@@ -182,16 +177,6 @@ void PADnote::PADlegatonote(PADnoteParameters *parameters, Controller *ctl_, REA
pars->PFilterVelocityScale/127.0*6.0* //velocity sensing
(VelF(velocity,pars->PFilterVelocityScaleFunction)-1);
- if (pars->PPunchStrength!=0) {
- NoteGlobalPar.Punch.Enabled=1;
- NoteGlobalPar.Punch.t=1.0;//start from 1.0 and to 0.0
- NoteGlobalPar.Punch.initialvalue=( (pow(10,1.5*pars->PPunchStrength/127.0)-1.0)
- *VelF(velocity,pars->PPunchVelocitySensing) );
- REALTYPE time=pow(10,3.0*pars->PPunchTime/127.0)/10000.0;//0.1 .. 100 ms
- REALTYPE stretch=pow(440.0/freq,pars->PPunchStretch/64.0);
- NoteGlobalPar.Punch.dt=1.0/(time*SAMPLE_RATE*stretch);
- } else NoteGlobalPar.Punch.Enabled=0;
-
NoteGlobalPar.Volume=4.0*pow(0.1,3.0*(1.0-pars->PVolume/96.0))//-60 dB .. 0 dB
*VelF(velocity,pars->PAmpVelocityScaleFunction);//velocity sensing