monome / norns

norns is many sound instruments.
http://monome.org
GNU General Public License v3.0
633 stars 147 forks source link

Name tape recordings with periodical numbers instead of date/time #373

Closed artfwo closed 5 years ago

artfwo commented 6 years ago

With norns system date/time being highly inaccurate due to absence of hwclock, it makes sense to name recorded files with numbers (foo00001.aif), does it?

tehn commented 6 years ago

agreed.

should we keep a "counter" in system.lua?

artfwo commented 6 years ago

no, that's dangerous ("uncounted" recordings can be rewritten). better create new filenames based on existing files in the tape directory.

tehn commented 6 years ago

but won't tape files be frequently removed from the norns to clear space?

ie, i record 10 tapes, then use SYNC to transfer them to a computer and then delete them. i'd hope the tape name count wouldn't just restart from 0, but maybe that's fine?

antonhornquist commented 6 years ago

time i understand but you mean even date will be inaccurate?

artfwo commented 6 years ago

in some cases - yes, because when norns is switched off, the clock is stopped too and date/time will be loaded from disk next time it powers on.

so if you don't turn on wifi regularly, the time will lag away for hours and hours each time the system is powered off. and even network syncing requires that you first configure the timezone with raspi-config, so chances that recordings will be named accurately are very low.

restarting the counter from 0 is fine with me.

antonhornquist commented 6 years ago

oh, yeah then i agree it should be counter rather than date/time-based

dansimco commented 6 years ago

+1 for keeping a global tape count, rather than current state of the directory. Much easier to keep track of recordings when archived, avoiding tape1 2.aif, tape 1 3.aif, which I often end up with from OP-1 tapes.

tehn commented 5 years ago

fixed by https://github.com/monome/norns/pull/651