You’ve got the right spirit of the concept here. You won’t be able to
arbitrarily set the number of taps with a slider, but that’s not what
you’re doing here, anyways.
Looking at your GRC file, the only problem is with your ‘a1 + a2j’ in
Python, ‘j’ by itself isn’t recognized, you need to give it a
coefficient, so instead use 'a1 + a21j’ and that should work. You can
also use ‘complex(a1, a2)’.
To have a list of taps, you can say:
[a1 + a21j, b1 + b21j, c1 + c2*1j]
The list of complex numbers is translated through SWIG into a
std::vector<gr_complex>.
Tom
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.