Timecode¶
Absolute-clock helpers: parse recording start times from filenames.
The regexes are byte-identical to ambiscape's (ambiscape/io.py), so a
folder of phone/recorder/360-camera files resolves to the same wall-clock
timeline in both toolboxes.
filename_datetime ¶
filename_datetime(path)
Parse a YYYYMMDD_HHMMSS / YYMMDD_HHMMSS filename stamp.
Source code in musicalgestures/_timecode.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | |
media_start_datetime ¶
media_start_datetime(path)
Start time of a recording: filename stamp, else file mtime.
Source code in musicalgestures/_timecode.py
37 38 39 40 41 42 43 44 45 | |