| The signal could cross zero during one buffer of sample frames, that
is, it could be both positive and negative during the same kperiod.
Regards,
Mike
On Sun, Jul 31, 2011 at 12:53 PM, Jacob Joaquin wrote:
> Hey everyone,
>
> Is there was an a-rate opcode that detects whether the current signal
> is above or below the zero-crossing. Not a big deal if there isn't, as
> I have a solution, just curious:
>
> ; 1 if positive, else 0
> a1 limit a1, 0, 1
> a1 = ceil(a1)
>
> I'm also open to a better solution if someone has one.
>
> Best,
> Jake
> --
> The Csound Blog - http://csoundblog.com/
> Slipmat - http://slipmat.noisepages.com/
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|