Ignore:
Timestamp:
May 16, 2016, 3:16:00 AM (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, pitchshift, sampler, timestretch, yinfft+
Children:
dc654f8
Parents:
416ddd1
Message:

python/demos: python3 and double precision compatibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/demos/demo_pitch_sinusoid.py

    r416ddd1 r4120fbc  
    2323freqs = np.zeros(sin_length)
    2424
    25 partition = sin_length / 8
     25partition = sin_length // 8
    2626pointer = 0
    2727
     
    4545    p = aubio.pitch(method, buf_size, hop_size, samplerate)
    4646    cands[method] = run_pitch(p, a)
    47     print cands[method]
     47    print(method)
     48    print(cands[method])
    4849
    49 print "done computing"
     50print("done computing")
    5051
    5152if 1:
Note: See TracChangeset for help on using the changeset viewer.