norns: ideas

That’s amazing! Just wondering if it’s able to also be called from lua, so I could roll it into a norns script :wink: Will experiment a bit soon when I’m back with my norns!

edit: or even better, a mod!

6 Likes

Totally, e.g. via os.execute.

6 Likes

I’ve been thinking about midi interfacing some - does something exists that would take a midi controller and randomize the interaction between the interface and the norns script parameters. It would be interesting to be able to do this but lock certain knob/sliders/buttons so that once an interesting mapping was found between a given knob/slider/button it could be kept around. I imagine the algorithm might look like:

  • for each unlocked knob/button/slider
    – pick a number C between 1 and some reasonable K
    – randomly pick C norns script parameters to map to
    – random assign polarity, log/lin/exp to each parameter mapping
1 Like

@Justmat @infinitedigits wow thank you! I just got this working - so many ideas with radio stuff. It opens up Norns even more.

Also Larc works great with this when mapped to a controller

14 Likes

I’m very interested by this !

How can I do that ? (Radio into otis)

You need to install mpv player onto Norns.

I used this link for reference

open the terminal window :
ssh we@norns.local
Pw : sleep
sudo apt install mpv

start OTIS on Norns

In the terminal window now type :

3 Likes

Do you need to type this in windows each time or the first is enough ?

I don’t know if it’s easier to use that than use my op1 as an input (with radio) into my norns

Each time, because this was a first test to see if it was possible for radio to work. From the info above this can be done in Lua and added to any script - it’s just that nobody has done that yet.

@mlogger @Ben_F I’m trying it. Right now it blocks all other activity on Norns when I call it from a script. New to lua and the way it works (and multithreading), but if I get it to work I will share!

There needs to be a way to start it in the background, and quit MPV when it’s finished. Will keep you updated.

Edit: running
io.popen([[mpv --no-video --jack-port="crone:input_(1|2)" http://radio.aporee.org:8000/aporee_high.m3u]]) does not stall further Norns operation. Will try to roll this into a mod…

2 Likes

i found that when running it from a script or the maiden repl it was necessary to add the --no-terminal option and to detatch the process from the terminal by throwing a & at the end. so:

mpv --no-video --no-terminal --jack-port="crone:input_(1|2)" http://radio.aporee.org:8000/aporee_high.m3u &

to stop the process from a script or maiden repl i’ve been using killall -15 mpv. not sure if that’s the way, but it works :smiley:

4 Likes

Allright @mlogger @Ben_F

After MPV has been installed once, like mentioned in @mloggers post, you can install this mod:

Read more about what to do with MODS here.

It has to be activated, you have to restart Norns once and will then show up under SYSTEM > MODS > TENDING-THE-WAVES. With E3 you can turn the 0 to 1, and it will start playing radio! When turned back to 0, it will kill the MPV process.

This was my first (very very small) real Norns coding attempt and man, this is amazing! :slight_smile:

I will be expanding on this with other radio stations and/or proper GUI, sometime.

EDIT: for those in the future, I’ve also turned this into RECEIVER- a mod that receives Norns broadcasts that are being broadcast or archived through @infinitedigits broadcast mod.

18 Likes

i like that you specify radio aporee in the mod menu! i can picture that menu having a list of stations to tune into to :smiling_face_with_three_hearts:

edit: @maaark i found a little bug in the mod menu ui. turning encoder 2 left can scroll beyond zero into negative numbers. you might want to use util.clamp() to keep things in range.

5 Likes

Haha thanks @Justmat! This was very quickly whipped up, first time dealing with menus and all, will be studying how to properly do this over christmas I think :slight_smile: Will fix this small bug for now.

Edit: fixed the selection bug- it also doesn’t go zero, one, zero, one anymore :slight_smile: Also moved to encoder 3 for more consistency with rest of norns.

2 Likes

Just throwing it out there that youtube-dl can stream from Youtube, vimeo, etc. into mpv using a normal shell pipe. I don’t remember the exact incantation off-hand, though, you need to tell mpv to read from stdin somehow.

6 Likes

I think about a mod of the norns online from @infinitedigits

Something amazing could be that when your norns is on, it streams your music online on a specific cloud/server, on a specific IP adress or something

And you could “listen” the norns all over the world that are connected on this “norns united in the cloud radio”

So, you could record and remix in real time something that is streamed from an other user at the opposite side of the world, just because your two norns are both powered on at the same time.

3 Likes

I believe this is very close to what Norns.online is trying to achieve

1 Like

sounds a bit like pirate radio too

1 Like

I tried youtube-dl on norns was it yesterday, and it gives a HTTP 410 Gone from YouTube and suggest installing a newest version. I didn’t investigate, but the version I got on norns is from 2017, and might require compilation (or upgrading norns wow idea badness=10 don’t do it). I tried just some normal YouTube URLs, rather than digging deeper into some URL resolver player thing in the web UI or something.

@Justmat yeap also to give credit and point people to the source (of goodness) that they are listening to. Aporee is quite a precious thing.

it’s truly one of the coolest places on the web (imo)

13 Likes

Oh yeah, youtube-dl needs to be updated every two weeks or so. But I think you can get it to just overwrite itself from the Github releases. I don’t know if the Debian package does this, though.