Re: [LAU] logical AND in Faust

From: hermann <brummer-@web.de>
Date: Thu Dec 03 2009 - 06:59:55 EET

Am Mittwoch, den 02.12.2009, 12:57 -0800 schrieb Ken Restivo:
> On Mon, Nov 30, 2009 at 10:21:13PM +0100, Bjoern Lindig wrote:
> > Ok, I was thinking about that, too. But I cannot figure out how it works.
> >
> > Ok, I got it: for n = 3 and x = 4 (fourth round): 100 & 011 = 000. I must have
> > had a brain stoppage, when I tried this last time ...
> >
> > Thank you very much. Now I feel ashamed that I try to work with faust, but
> > don't even know how bitwise operation is done. Anyway, you should check out
> > faust. It's realy awesome.
> >
>
> The name of Faust is quite apt. Looking at (and trying to make sense out of) the C code that Faust has generated, makes me feel as though I have sold my soul to the devil.
>
> -ken

I can't confirm that, Faust could be a key to open the door to DSP
programming. The generated C++ Source is logical and easy to understand.
Also, with Faust you could generate your (math) Ideas fast to a binary
form.
Only, if you don't like math and C++, it isn't your tool.

hermann

> -----------------
> > On Monday 30 November 2009 21:20:33 Arnold Krille wrote:
> > > 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 Thu Dec 3 08:15:01 2009

This archive was generated by hypermail 2.1.8 : Thu Dec 03 2009 - 08:15:02 EET