nice-tapes (a norns mod for customised tape names)

nice-tapes

A norns mod for more descriptive tape names.

nice-tapes

This project was born from the frustration of forgetting what’s on my tapes but being too lazy to label them before recording.
When the mods feature got released I immediately wanted to try and hack the tape naming functionality but was lacking the chops to inject modified core scripts. I recently went through the wonderful norns studies and norns-example-mod and decided it was time to tackle this project.

I’m always amazed by all the ridiculously great tools/music/art/knowledge people kindly share on llllllll. This is my modest way to give back to this loving and caring community :rainbow:

The code is probably quite bad as it’s my first script and it was rather empirically built.
Feel free to give me feedback if you think some bits need refactoring/redesigning.
While I haven’t encountered anything problematic, I consider this a beta release until it has been used more thoroughly.

Requirements

norns

installation

;install https://github.com/MentalSandal/nice-tapes

nice-tapes will also be available from maiden’s catalog soon.

More info about mods in general can be found in the docs.

setup

Head to SYSTEM > MODS then select nice-tapes and turn E2 until you
see a + sign.
Restart your norns and you’re ready to configure your naming convention.

configuration

Access the menu by going back to the mods page, selecting nice-tapes and
pressing K3.

You can choose different descriptors that will be added to your tape file names,
next time you save a tape.

The different options are:

  • date (an internet connection is required to get an accurate date)
  • tempo (based on your current clock bpm)
  • script name (will be left blank if no script is running)
  • prefix a user-defined name/tag. ie. norns, shield, sketch, etc…

If a prefix isn’t required, setting it to an empty string will disable it.
You can recreate the standard naming convention by setting all the options to no and
the prefix to an empty string. This will result in ####.wav.

The preview field at the bottom will update automatically as you change options.
If the name is too long to fit on the display, select the preview and use K3 to scroll.

saving

Setting a prefix or simply validating an existing one by pressing ok in the text entry
menu will save all the options into a txt file in dust/data/nice-tapes so that options
are recalled after a reboot.

to do / features ideas

  • Add a way to shorten long script names based on a table lookup:
    my_cool_script_2 would be written out as mcs2 (or any user-defined acronym)
  • Add a prefix length limit? Right now you can use really long prefixes if need be.
    I don’t really want to limit this, but it will overlap some UI elements.

acknowledgements

I want to thank all the folks who are involved with the docs, studies, and norns development in general. :heart:

69 Likes

I love this! Thank you!

3 Likes

Fantastic! How are you polling date info?

2 Likes

what a great idea!!

adding script name used for the recording is so clever
never thought of it but seems super helpful

4 Likes

Thank you very much! Very clever mod and a supreme utility.

2 Likes

super useful and neat – thanks !

1 Like

20 chars of what a fantastic idea!

1 Like

looks to be grabbing the output from the unix date command (see here). not sure if the norns has ntp enabled by default but it should be accurate as long as the system date/time is.

super cool, thank you for making this !

1 Like

Super useful! Great Idea, thanks!!!

1 Like

Correct, I’m just using the default unix date. I read that RPis don’t have a real-time clock since they are missing a battery module to keep track of time when powered-off. Hence the comment about needing an internet connection to get an accurate date.

1 Like

I’ve wanted this feature for a while; thank you!

This was the case previously, but as of the 220306 release the tape-naming logic was updated and should now fit your needs. I imagine that you want to support people who haven’t yet updated their firmware, though, so I’m not sure that there’s much for you to do with that info.

This is true, and also the Pi won’t know your time zone unless you tell it. This can be done as part of the sudo raspi-config GUI.

1 Like

That’s good knowledge, and it made me realise I made a mistake! I’m swapping the default tape.lua with a modified version included with the mod, except that I didn’t use your latest update. My shield was on an older release, whoops! I basically took a step back and implemented a function that you already added. Sorry about that!
I have now started over from your latest commit and the result is much cleaner :slight_smile: Only 3 lines had to be modified to get the expected result.
I will push an update sometime during the week, but in theory no one should see any difference.
Thanks for flagging!

2 Likes

What a fantastic idea, major kudos for acknowledging an inconvenience that many users share and jumping right in to creating a solution. Thank you. (Written as I am transferring 2gb worth of numerically named tapes)

1 Like

Think I bumped into a bug.
On a fresh install the tape directory doesn’t exist; the mod causes creating a new tape to silently fail (ls: cannot access '/home/we/dust/audio/tape/' : No such file or directory).
Without the mod, the tape directory appears to be automagically created.

1 Like

Good catch, thank you! I just pushed the update I mentioned above. This should fix it :slight_smile:

1 Like