receiver

RECEIVER

A companion receiver mod for Norns broadcasts on https://broadcast.norns.online/
See thread on @infinitedigits broadcast here.
It receives streams (live or archived) from Norns users and plays them back through the Norns input.

receiver_first

Stems from the idea of playing web radio through the Norns input. See the (still WIP) Tending the Waves script here (note: this script and Tending the Waves can not run simultaneously!)

It’s lots of fun to play over/sample other people who are or have been recording! :slight_smile:

Requirements

norns, internet connection, MPV installed, a running script (it will update what’s available on the broadcast website upon loading a new script)

Documentation

When this mod is installed, plus MPV player (instructions), it will look for MP3s up on broadcast.norns.online and will list them in the PARAMS menu when a script is loaded (not under the mod, but in the PARAMS menu!)

There you can select a stream, either live or archived.
WARNING! You CAN run the broadcast mod and the receiver mod at the same time, and even listen to your own stream, you will however get feedback :slight_smile:

Lots of room for improvement, such as:

  • A menu item to quickly reload what’s online instead of running a new script
  • Actually testing live streams (only tested with archived recordings)
  • Including installation of MPV on install (help!)
  • Moving the channel selection to the mod menu… yes/no?
  • A better way of parsing- I mean, any change to the site and my script will stop working :expressionless:

Changelog

220122 - Fixed live streams not properly playing, would only take archived streams
100422 - Updated to be compliant with new website (still scraping… this should change some time)

Download

;install https://github.com/markijzerman/receiver

35 Likes

so cool!! do you need an endpoint that lists the current live streams being advertised? that’s easy to add

3 Likes

Thanks! I think that, and an endpoint of the archived streams would be wonderful, instead of my hacky, web-scraping ways :wink:

1 Like

Updated to fix live streams- it would only play archived recordings before, now live streams also work.

Edit: Also, feedback is totally possible, doing it now- so funny to use this ‘internet-looper/delay’ :slight_smile: it’s about three second delay round trip for me.

5 Likes

I have had an exciting morning following your thread with this around Lines, really appreciate your work. I was able to stream aporee to the input from the command line, then got your mod for it working, then installed Receiver and it too is working well. I then tried to Broadcast and Receiver at the same time and Broadcast shows as online and public in the mod menu but it doesn’t show up on the broadcast.norns.online page and doesn’t show as a selection in Receiver. I then thought to disable the Tending the Waves mod and restarted a couple times but can’t get Broadcast back. any ideas?

Hey! Thanks! And how strange- did you do a full sleep/power down & back on cycle, maybe uninstalling Tending… in the process? Might help.
I think the first step should be getting Broadcast to work and your stream showing up!

When you run it, does Matron show anything?

with several restarts and full power cycles interspersed I first tried to just uninstall TtW, no change, uninstalled Receiver, no change. I then tried to uninstall and reinstall Broadcast but that also didn’t change anything. I could then create an archived file on the broadcast page if I go online with the archive on, but it is a null file ultimately and I don’t show as online while making it. then I decided to go full nuclear and uninstall MPV and even that didn’t change it. I will check out maiden and see if I get anything. thanks for your help.

So strange!
I am wondering though, how to debug mods? Do they show up in Matron if something is wrong- I’m not sure. Have to figure it out myself.
But by all means, please first reinstall Broadcast and when you restart Norns, let us (or @infinitedigits ) know what comes up in Matron.

Hello! So I ran into this similar issue. I had receiver working wonderfully, but after updating it wasn’t appearing under the params. Broadcast is working perfectly fine. Uninstalled, receiver then reinstalled. It shows under params now. But I can’t turn it on and it’s stuck in the off position. I’ve attached a few screenshots from the terminal. I have no clue what I should be looking for. But if there’s absolutely anything I can do to help fix it, I’m more than willing to. Absolutely loved this when it was working and really can’t say enough how much id like to get it working again.


It says the audio system Jack isn’t running¹. Would restarting norns help @PedalsandChill ?

Receiver works for me, on updated norns. Currently in Westminster Abbey :slight_smile:

¹ I :heart: error messages

2 Likes

Tried that one. Still no luck. Tried restart and sleep then powering back on. :confused:

Alrighty, I’ve been messing with this some more. before, i wasn’t getting anything in maiden, but after uninstalling and reinstalling receiver a few times, then selecting a few different scripts. I got

this
Engine.register_commands; count: 7
___ engine commands ___
crossover	 	i
distAmount	 	i
highbias	 	f
hissAmount	 	f
lowbias	 	f
sdepth	 	f
srate	 	i
___ polls ___
amp_in_l
amp_in_r
amp_out_l
amp_out_r
cpu_avg
cpu_peak
pitch_in_l
pitch_in_r
# script init
ERROR: paramset cannot nest GROUPs
Cannot lock down 82287136 byte memory area (Cannot allocate memory)
cannot connect client, already connected?
Cannot lock down 82287136 byte memory area (Cannot allocate memory)
cannot connect client, already connected?
Cannot lock down 82287136 byte memory area (Cannot allocate memory)
Cannot lock down 82287136 byte memory area (Cannot allocate memory)
debounced
mpv: no process found
metro_stop(): pthread_cancel() failed; error: 
specified thread does not exist
# script clear
cleanup
Cannot lock down 82287136 byte memory area (Cannot allocate memory)
Cannot lock down 82287136 byte memory area (Cannot allocate memory)
Cannot lock down 82287136 byte memory area (Cannot allocate memory)
cannot connect client, already connected?
Cannot lock down 82287136 byte memory area (Cannot allocate memory)
cannot connect client, already connected?
# script load: /home/we/dust/code/cranes/cranes.lua
calling: my init hacks
RECEIVER mod up and running
# script run
>> reading PMAP /home/we/dust/data/cranes/cranes.pmap
m.read: /home/we/dust/data/cranes/cranes.pmap not read.
lua: /home/we/norns/lua/core/clock.lua:59: bad argument #1 to 'resume' (thread expected)
stack traceback:
	[C]: in function 'coroutine.resume'
	/home/we/norns/lua/core/clock.lua:59: in function 'core/clock.resume'
lua: /home/we/norns/lua/core/clock.lua:59: bad argument #1 to 'resume' (thread expected)
stack traceback:
	[C]: in function 'coroutine.resume'
	/home/we/norns/lua/core/clock.lua:59: in function 'core/clock.resume'
lua: /home/we/norns/lua/core/clock.lua:59: bad argument #1 to 'resume' (thread expected)
stack traceback:
	[C]: in function 'coroutine.resume'
	/home/we/norns/lua/core/clock.lua:59: in function 'core/clock.resume'
Engine.register_commands; count: 0
___ engine commands ___
___ polls ___
amp_in_l
amp_in_r
amp_out_l
amp_out_r
cpu_avg
cpu_peak
pitch_in_l
pitch_in_r
# script init
warning: didn't find SoftCut voice method: post_filter_fc_mod
warning: didn't find SoftCut voice method: post_filter_fc_mod
warning: didn't find SoftCut voice method: post_filter_fc_mod
warning: didn't find SoftCut voice method: post_filter_fc_mod
warning: didn't find SoftCut voice method: post_filter_fc_mod
warning: didn't find SoftCut voice method: post_filter_fc_mod
debounced
mpv: no process found
metro_stop(): pthread_cancel() failed; error: 
specified thread does not exist
>> saving PMAP /home/we/dust/data/cranes/cranes.pmap in maiden after loading cranes.

after loading cranes.

Testing with other scripts. Tried with oooooo, and got this

;calling: my init hacks
RECEIVER mod up and running

I guess it’s up and running, but the E3 can’t turn it on?
But further down in maiden is this.

;mpv: no process found

::Update::
Finally got this working again. After uninstalling, deactivating all other mods. Installing Tending Waves, then reinstalling Receiver it started right up. No clue why. Still more than willing to help any way I can to iron this out.

i’m guessing the key was missing mpv. (did you install it manually? does one of these scripts attempt to install it on launch if not found? etc)

(one thing about the new image is that it will for sure wipe away any attempts to add or upgrade (!!!) other programs or OS components.)

1 Like

None of my scripts tries to install any external package- you always have to install mpv by hand.
Sorry for not reacting- life’s busy. Very happy you got it working. Seems that installing mpv was the fix :slight_smile: Great to hear you’re enjoying it!
Haven’t tried it myself on the newest image as I have some performances lined up, will not update anytime soon…

Hi all, because of a change in broadcast.norns.online the Receiver script is currently not working… working on it! :slight_smile:

EDIT: Updated and working again! Copy the script code or reinstall from:

1 Like

After quite a bit of futzing about, it seems to be working, though here is an example of some matron output when it does work:

# script load: /home/we/dust/code/oooooo/oooooo.lua
including /home/we/dust/code/oooooo/lib/grido.lua
including /home/we/dust/code/oooooo/lib/json.lua
including /home/we/dust/code/oooooo/lib/glyphs.lua
including /home/we/dust/code/oooooo/lib/json.lua
including /home/we/dust/code/oooooo/lib/monosong.lua
including /home/we/dust/code/oooooo/lib/table_addons.lua
including /home/we/dust/code/oooooo/lib/lattice.lua
calling: my init hacks
RECEIVER mod up and running
# script run
loading engine: SimpleDelay
>> reading PMAP /home/we/dust/data/oooooo/oooooo.pmap
m.read: /home/we/dust/data/oooooo/oooooo.pmap not read.
Engine.register_commands; count: 1
___ engine commands ___
threshold	 	f
___ polls ___
amp_in_l
amp_in_r
amp_out_l
amp_out_r
cpu_avg
cpu_peak
pitch_in_l
pitch_in_r
# script init
including /home/we/dust/code/norns.online/lib/share.lua
including /home/we/dust/code/norns.online/lib/json.lua
not registered
uploader failed, no username?
DATA_DIR /home/we/dust/data/oooooo/
name_folder: /home/we/dust/data/oooooo/names/
ls: cannot access '/home/we/dust/data/oooooo/names/'
: No such file or directory
connected to virtual
initializing  1
initializing  2
initializing  3
initializing  4
initializing  5
initializing  6
initializing  7
grid columns: 16
grid width: 16
pset >> write: /home/we/dust/data/oooooo/oooooo.pset
pset >> write: /home/we/dust/data/oooooo/oooooo.pset
debounced
mpv: no process found
debounced
loading station https://streammyaudio.com/archived/202203232020/distropolis_m8_wingie2.mp3?r=973149416
mpv: no process found
Cannot lock down 107350048 byte memory area (Cannot allocate memory)
Cannot use real-time scheduling (RR/90) (1: Operation not permitted)
JackClient::AcquireSelfRealTime error

Not sure if there is any cause for alarm here, but thought I’d run it by the community

there is no specific cause for alarm here, we’re seeing reports of these warnings when new processes are launched and connections made by scripts, and will look into it.

3 Likes

Hello again! Just got my Norns updated on the latest firmware, jumped straight over here to install the mod. Got mpv, tending waves, broadcast, Norns.online, but for some reason I’m not seeing radio under the parameters menu. Any ideas on what step I might be missing?

I haven’t used my Norns or Receiver much in the last few weeks, but is there anything Maiden says in regards to Receiver on startup?