Code Monkey home page Code Monkey logo

sc_dsp_filters's People

Contributors

henkmuller avatar jontaylorxmos avatar larry-xmos avatar lilltroll77 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sc_dsp_filters's Issues

Overflow

ok, I havn't tested the code myself yet, but B should typically be calculated before A to prevent overflow, since B includes the attenuation that compensates for the gain in the recursive part A. The opposite makes the filter unnecessary sensitive to overflow. Eg. Y x 0.01x100 will not overflow, but Y x 100x0.01 might overflow.

Thus I would recommend the Transposed-Direct-Form-II implementation
https://ccrma.stanford.edu/~jos/fp/img1144.png

DBS=1

It seems like the cascaded biquad doesn't work in the trivial case when DBS is set to 1. This is useful for filters where the centre frequency changes with constant amplitude. Those are implemented by pregenerating coefficients or generating them on the fly. The cascaded biquad then operates with constant amplitude.

Add jar file

Add jar file for parameter generation so that anybody can run Makefiles.

Coding Conventions

From the community docs "Follow the Coding Conventions"

What is the convention in this module ?

Pure XC or ASM only !? , eg. not using inline asm in XC or XC mixed with C and stuff like that ?

What is the convention for sharing the coef. array with other threads (as updating the filters on the fly or using adaptive filters) avoiding the XC par. usage rule.

Distributed FIR

Hi

There was an request on the xcore about running 3000 taps @ 96 kHz on XMOS.
Since that could fit into an XMOS G4 with 90%burden + overhead i had to test a little.

Depending on how it is written 1 sec of data takes 913-928 ms to calc. on 16 threads.
I know it was written on a todolist somewhere with distributed FIR.
An example with distributed FIR on 1 core and another example with several cores would be great.
Since people are afraid of the distribution programming. (You need some ASM or C).

Is it interesting to fit it in this dsp_filters or another?
This one "must" run with channels for the data, but I use unified memory on each core for the taps and old data states.

I can test it on L1 and G4, but I haven't any L2 ... yet.

Nstackwords !?

In row 3-5 in the biquadAsm.S, it is written nntack... as

.globl biquadAsm.nntackwords
.linkset biquadAsm.nntackwords,NWORDS

It should be nstack or !?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.