Ignore:
Timestamp:
Apr 19, 2016, 1:40:39 AM (9 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, pitchshift, sampler, timestretch, yinfft+
Children:
5652a8c
Parents:
81ad577 (diff), e89310a0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'develop' of github.com:aubio/aubio into develop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_source.py

    r81ad577 rf50dea4  
    3939            total_frames += read
    4040            if read < f.hop_size: break
    41         print ("read", "%.2fs" % (total_frames / float(f.samplerate) ) ),
    42         print ("(", total_frames, "frames", "in" ),
    43         print (total_frames / f.hop_size, "blocks", "at", "%dHz" % f.samplerate, ")" ),
    44         print ("from", f.uri)
     41        result_str = "read {:.2f}s ({:d} frames in {:d} blocks at {:d}Hz) from {:s}"
     42        params = total_frames / float(f.samplerate), total_frames, int(total_frames/f.hop_size), f.samplerate, f.uri
     43        print (result_str.format(*params))
    4544        return total_frames
    4645
     
    109108            total_frames += read
    110109            if read < f.hop_size: break
    111         print ("read", "%.2fs" % (total_frames / float(f.samplerate) ) ),
    112         print ("(", total_frames, "frames", "in" ),
    113         print (f.channels, "channels and" ),
    114         print (total_frames / f.hop_size, "blocks", "at", "%dHz" % f.samplerate, ")" ),
    115         print ("from", f.uri)
     110        result_str = "read {:.2f}s ({:d} frames in {:d} channels and {:d} blocks at {:d}Hz) from {:s}"
     111        params = total_frames / float(f.samplerate), total_frames, f.channels, int(total_frames/f.hop_size), f.samplerate, f.uri
     112        print (result_str.format(*params))
    116113        return total_frames
    117114
Note: See TracChangeset for help on using the changeset viewer.