Ignore:
Timestamp:
Mar 23, 2017, 2:57:14 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, 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.