Changeset 53fbd58


Ignore:
Timestamp:
Mar 23, 2017, 2:57:14 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
Children:
6288806
Parents:
8e2f36a
Message:

python/lib/aubio/cmd.py: fix timefuncs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/aubio/cmd.py

    r8e2f36a r53fbd58  
    167167
    168168def samples2seconds(n_frames, samplerate):
    169     return "%f\t" % (n_frames / float(a_source.samplerate))
     169    return "%f\t" % (n_frames / float(samplerate))
    170170
    171171def samples2milliseconds(n_frames, samplerate):
    172     return "%f\t" % (1000. * n_frames / float(a_source.samplerate))
     172    return "%f\t" % (1000. * n_frames / float(samplerate))
    173173
    174174def samples2samples(n_frames, samplerate):
Note: See TracChangeset for help on using the changeset viewer.