Skip to content

Trying to make an SDR radio, How to multiply, mix ect. #224

Answered by pschatzmann
stojanmar asked this question in Q&A
Discussion options

You must be logged in to vote

I am not sure what the best option would be.
My first thought would be to implement this logic in Faust and use my framework just for the input and output. If I got you right the logic would be something as follows:

import("stdfaust.lib");

gain = hslider("gain",1,0,1,0.01);
oscgain = hslider("oscgain",1,0,1,0.01);
bv = .2,.2,.2,.2,.2;
fir1 = fi.fir(bv);
fir2 = fi.fir(bv);
bcoeffs = (.2,.2,.2,.2,.2); 
acoeffs = (.2,.2,.2,.2,.2); 
osc = os.osc(5000)*oscgain;
iir1 = fi.iir(bcoeffs,acoeffs);

process = _,_ : fir1 * osc + fir2  * osc : iir1 * gain  <:  _,_ ;

With the help of the online ide you can generate a c++ class
What to you think ?

ps. This was the first time I was writing something i…

Replies: 17 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@sletz
Comment options

Answer selected by pschatzmann
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants