Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/p/y/PyPursuit-1.1.0/examples/pymp_tutorial2.py   PyPursuit(Download)
 
snr, bitrate, quantized_app = mp_coder.simple_mdct_encoding(
    app, 8000, Q=14)
print (snr, bitrate)
 
print "With Q=5"
snr, bitrate, quantized_app = mp_coder.simple_mdct_encoding(
    app, 8000, Q=5)
 
snr, bitrate, quantized_app = mp_coder.simple_mdct_encoding(
    app, 2000, Q=14)
print (snr, bitrate)
 
lomp_dico = LODico(scales)
lomp_app, lomp_dec = mp.mp(
    signal, lomp_dico, 20, 2000, pad=False)
lomp_snr, lomp_bitrate, lomp_quantized_app = mp_coder.simple_mdct_encoding(
    lomp_app, 2000, Q=14, shift_penalty=True)
rsssmp_app, rssmp_dec = mp.mp(signal, rssmp_dico, 20, 2000, pad=False)
rssmp_snr, rssmp_bitrate, rssmp_quantized_app = mp_coder.simple_mdct_encoding(
    rsssmp_app, 2000, Q=14)
print (rssmp_snr, rssmp_bitrate)