Previous topic

segment module

Next topic

tuning module

This Page

psychoacoustics module

bregman.psychoacoustics.amp_to_dB(amp)
Convert amplitude to decibels
bregman.psychoacoustics.bark_to_critical_bandwidth(bark)
Return critical bandwidth for given Bark band
bregman.psychoacoustics.dB_to_amp(dB)
Convert decibels to amplitude
bregman.psychoacoustics.dissonance_fun(freqs, amps=None, params=None)
Compute dissonance between partials with center frequencies in freqs,
and amplitudes in amps. Based on William Sethares after Plomp and Levelt:

default params = (-3.51, -5.75, 0.0207, 19.96, 5, -5, 0.24)
default amps, use 1 as amplitude for all partials.
bregman.psychoacoustics.hertz_to_bark(cf)
Convert frequency in Hz to Bark band 
bregman.psychoacoustics.hertz_to_critical_bandwidth(cf)
Convert frequency in Hertz to critical bandwidth
bregman.psychoacoustics.power_to_dB(pwr)
Convert power to decibels