Skip to content

Commit

Permalink
fix Latch first sample output bug: if trigger > 0 initially, latch sh…
Browse files Browse the repository at this point in the history
…ould not output 0

git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@10143 a380766d-ff14-0410-b294-a243070f3f08
  • Loading branch information
jamshark70 authored and timblechmann committed Dec 17, 2010
1 parent abd96a4 commit ae0c789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/Source/plugins/TriggerUGens.cpp
Expand Up @@ -1076,7 +1076,7 @@ void Latch_Ctor(Latch *unit)
unit->m_prevtrig = 0.f;
unit->mLevel = 0.f;

ZOUT0(0) = 0.f;
ZOUT0(0) = ZIN0(1) > 0.f ? ZIN0(0) : 0.f;
}


Expand Down

0 comments on commit ae0c789

Please sign in to comment.