Greetings,

The fir function is written as follows using pattern matching:

fir((b0,bv)) = _ <: *(b0), R(1,bv) :> _ with {
R(n,(bn,bv)) = (@(n):*(bn)), R(n+1,bv);
R(n, bn)     = (@(n):*(bn));              };
fir(b0) = *(b0);

While very elegant, it requires a compiler evaluation for each
coefficient.  I suggest placing all of your coefficients into a large
parallel signal bank:

coeffs = (b0, b1, b2, ..., b511); // FIR filter coefficients for length 512

and then use par() etc.


On Sun, Mar 18, 2018 at 3:06 PM, CrocoDuck o'Ducks <
crocoduck.odu...@gmail.com> wrote:

> Hi there!
>
> I currently have some Julia code producing 512 taps for an FIR filter.
>
> The Julia code also takes care of generating Faust code which uses ir.fir
> to implement the FIR. I then try to build the Faust FIR with
> faust2jackconsole.
>
> Sometimes it seems to compile and work seemingly fine but often this
> happens instead when I issue faust2jackconsole:
>
> /usr/bin/faust2jackconsole: line 73:  3687 Alarm clock             faust
> -i -a "$FAUSTLIB/jack-console.cpp" $OPTIONS "$f" -o "$f.cpp"
>
> So, I was wondering what that means. I got the impression that fi.fir is
> best suited for low order FIRs, and seems to me that 512 is a pretty large
> number of taps for a real world FIR. Is there a better Faust function for
> long FIR implementation? I couldn't quite locate some overlap-add convolver
> or something similar in the library.
>
> By the way, I am running this Faust version on Arch Linux:
>
> FAUST : DSP to C, C++, FIR, Interpreter, Java, JavaScript, LLVM IR, old
> C++, Rust, asm.js, WebAssembly (wast/wasm) compiler, Version 2.5.17
> Copyright (C) 2002-2017, GRAME - Centre National de Creation Musicale. All
> rights reserved.
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Faudiostream-users mailing list
> Faudiostream-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users
>



-- 

Julius O. Smith III <j...@ccrma.stanford.edu>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/ <http://ccrma.stanford.edu/>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to