Virtual_FM_Band icon indicating copy to clipboard operation
Virtual_FM_Band copied to clipboard

Add static noise between stations

Open raphaelyancey opened this issue 5 years ago • 8 comments

raphaelyancey avatar Jul 05 '19 09:07 raphaelyancey

...Ohhh... You working on this project again? Cool! I got as far as buying an 18's Sharpe radio cassette and some retro GTA stickers. Going to do a ViceCity version eventually!

chunkysteveo avatar Jul 05 '19 09:07 chunkysteveo

@chunkysteveo Yes I've been fixing bugs lately (check out the commits) and been thinking on how to implement the noise :) I'd like it to be dynamic, so we can hear other stations mixed with synthesized noise.

raphaelyancey avatar Jul 05 '19 09:07 raphaelyancey

That would be cool, some randomly generated white noise pattern or similar.

chunkysteveo avatar Jul 05 '19 09:07 chunkysteveo

I implemented a static noise feature in the ftr_noise branch. Works by increasing noise tracks volume when any station volume is below a threshold. Will merge into master when I'll get the chance to test it on a Pi very soon.

Noise tracks are not included, but I recorded some on my synthesizer you can use! They must be placed in the NOISE_PATH.

raphaelyancey avatar Jul 20 '19 14:07 raphaelyancey

I only hear the noise when I'm at the end of my virtual band (not between my stations)

SebDominguez avatar Sep 03 '19 20:09 SebDominguez

@SebDominguez That's most likely because the script thinks the noise files are regular stations.

  • Are you on the good branch (ftr_noise)?
  • Are your noise files in $HOME/audio/noise? (see this line — you can set NOISE_PATH in your .env file to override this)

raphaelyancey avatar Sep 11 '19 16:09 raphaelyancey

I think this is due to a bad installation on my part. When I run the install script, it was stuck on the scipy install for more than 1 hour. I tried to install scipy after expanding my swap but still it seems that this. package won't compile on my Pi (or is just taking forever)

SebDominguez avatar Dec 19 '19 00:12 SebDominguez

it seems that this. package won't compile on my Pi (or is just taking forever)

It is taking forever, because scipy is a very big package and doesn't come precompiled for ARM as far as I know. On a Pi 3B+ it can take between half an hour and an hour.

The funny side is that the script is using only one fonction from scipy so it definitely can be optimized by rewriting this function and getting rid of scipy.

If you still experience the issue, please double-check that you are on ftr_noise. If not you should execute cd /home/app && git checkout ftr_noise & reboot or relaunch the script manually. That's because the default installation will install from master and this branch doesn't handle noise files yet.

raphaelyancey avatar Dec 19 '19 09:12 raphaelyancey