Re: [LAU] logical AND in Faust

From: Arnold Krille <arnold@email-addr-hidden>
Date: Mon Nov 30 2009 - 22:20:33 EET

Disclaimer: I don't (yet) know faust

On Monday 30 November 2009 20:38:12 Bjoern Lindig wrote:
> I have a problem understanding this piece of faust-code:
> index( n ) = &( n - 1 ) ~ + ( 1 );
> It is from the faust-soft-computing.pdf. I do understand that it works like
> a counter and I think it should jump back to 0 when it reaches n - 1. But
> what exactly is the logical AND operator doing?

I think its not a logical AND for expressions but a bitwise AND. Which means
that only the bits that are set in both arguments pass. Which would make sense
to have the counter wrap...

Maybe that helps,

Arnold

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

Received on Tue Dec 1 00:15:02 2009

This archive was generated by hypermail 2.1.8 : Tue Dec 01 2009 - 00:15:02 EET