Skip to content

Commit

Permalink
ZOUT(0)=0 to ClearUnitOutputs(unit, 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonoro1234 committed Nov 15, 2018
1 parent 3f463c6 commit dc2059a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/DWGUGens/dwglib/DWG.hpp
Expand Up @@ -72,7 +72,7 @@ void classname##_Dtor(classname* unit){unit->~classname();}
void classname##_next(classname *unit, int inNumSamples);\
void classname##_Dtor(classname *unit);\
}\
void classname##_Ctor(classname* unit){new(unit) classname(unit);SETCALC(classname##_next);ZOUT0(0) = 0.0;}\
void classname##_Ctor(classname* unit){new(unit) classname(unit);SETCALC(classname##_next);ClearUnitOutputs(unit, 1);}\
void classname##_Dtor(classname* unit){unit->~classname();}


Expand Down
6 changes: 3 additions & 3 deletions source/OteyPianoUGens/OteyPiano.cpp
Expand Up @@ -294,7 +294,7 @@ OteySoundBoard::OteySoundBoard(Unit *unit){
shaping3.setcoeffs(800.0,SAMPLERATE,1.0,Biquad::low);
soundboard.setcoeffs(c1b,c3b,-1.0/4.0,mix,SAMPLERATE);
SETCALC(OteySoundBoard_next);
ZOUT0(0) = 0.0;
ClearUnitOutputs(unit, 1);
}

void OteyPianoStrings_Ctor(OteyPianoStrings* unit) {
Expand Down Expand Up @@ -329,7 +329,7 @@ void OteyPianoStrings_Ctor(OteyPianoStrings* unit) {
new(unit) OteyPianoStrings(unit);
unit->piano.init(freq,SAMPLERATE,velocity*10,minr,maxr,amprl,amprr,rcore,minl,maxl,ampll,amplr,rho,young,zb,zh,mh,k,alpha,p,ph,loss,detune,hammer_type);
SETCALC(OteyPianoStrings_next);
ZOUT0(0) = 0.0;
ClearUnitOutputs(unit, 1);
}

void OteyPianoStrings_Dtor(OteyPianoStrings* unit) {
Expand Down Expand Up @@ -386,7 +386,7 @@ void OteyPiano_Ctor(OteyPiano* unit) {
unit->piano.init(freq,SAMPLERATE,velocity*10,minr,maxr,ampr,centerr,rcore,minl,maxl,ampl,centerl,rho,young,zb,zh,mh,k,alpha,p,ph,loss,detune,hammer_type);

SETCALC(OteyPiano_next);
ZOUT0(0) = 0.0;
ClearUnitOutputs(unit, 1);
}

void OteyPiano_Dtor(OteyPiano* unit) {
Expand Down

0 comments on commit dc2059a

Please sign in to comment.