Csound Csound-dev Csound-tekno Search About

[Csnd] OT: tool for displaying total duration of audio tracks

Date2011-03-19 03:18
FromJustin Glenn Smith
Subject[Csnd] OT: tool for displaying total duration of audio tracks
As I have been working on my latest album, I have put this shell script together to keep track of my progress, I figured others here may find it useful:

#!/bin/sh
# duration usage: ./duration [FILES]
# for example in a directory containing multiple ardour projects, to total all export files:
# ./duration "*/export/*"
TRACKS=${*}
{
    for track in $TRACKS
    do sfinfo "$track" | grep Duration
    done
} |
awk '{ c+=$2 }END{ print c/60 " minutes" }'



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"