I'm modifying fm_tx4 so that I can use wav files instead of dat files as a source, and output a file instead of sound.
I'm having issues with sample rate. I've attached the code, but here is the modified pipeline code, which is used to create the FM modulated signal from the wavfile
This code works if I set mult to <= 9 (meaning in fmtx =
blks2.nbfm_tx (audio_rate, if_rate, max_dev=5e3, tau=75e-6) that the
if_rate has to be an integer multiple of 44.1KHz less than 9*44.1KHz).
This is really vexing! If the multiple is 10 or higher, I get the error below.
I need the sample rate to be higher that way I can have lots of disparate signals. It's confusing because if audio_rate is 32KHz, then if_rate can be set arbitrarily large. I can't do that, though, because the sample rate of a wav file is 44.1KHz.
Your help is appreciated
class pipeline(gr.hier_block2): def __init__(self, filename, lo_freq, mult):