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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
"""
|
| 4 |
+
Core IO and DSP
|
| 5 |
+
===============
|
| 6 |
+
|
| 7 |
+
Audio loading
|
| 8 |
+
-------------
|
| 9 |
+
.. autosummary::
|
| 10 |
+
:toctree: generated/
|
| 11 |
+
|
| 12 |
+
load
|
| 13 |
+
stream
|
| 14 |
+
to_mono
|
| 15 |
+
resample
|
| 16 |
+
get_duration
|
| 17 |
+
get_samplerate
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
Time-domain processing
|
| 21 |
+
----------------------
|
| 22 |
+
.. autosummary::
|
| 23 |
+
:toctree: generated/
|
| 24 |
+
|
| 25 |
+
autocorrelate
|
| 26 |
+
lpc
|
| 27 |
+
zero_crossings
|
| 28 |
+
mu_compress
|
| 29 |
+
mu_expand
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
Signal generation
|
| 33 |
+
-----------------
|
| 34 |
+
.. autosummary::
|
| 35 |
+
:toctree: generated/
|
| 36 |
+
|
| 37 |
+
clicks
|
| 38 |
+
tone
|
| 39 |
+
chirp
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
Spectral representations
|
| 43 |
+
------------------------
|
| 44 |
+
.. autosummary::
|
| 45 |
+
:toctree: generated/
|
| 46 |
+
|
| 47 |
+
stft
|
| 48 |
+
istft
|
| 49 |
+
reassigned_spectrogram
|
| 50 |
+
|
| 51 |
+
cqt
|
| 52 |
+
icqt
|
| 53 |
+
hybrid_cqt
|
| 54 |
+
pseudo_cqt
|
| 55 |
+
|
| 56 |
+
vqt
|
| 57 |
+
|
| 58 |
+
iirt
|
| 59 |
+
|
| 60 |
+
fmt
|
| 61 |
+
|
| 62 |
+
magphase
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
Phase recovery
|
| 66 |
+
--------------
|
| 67 |
+
.. autosummary::
|
| 68 |
+
:toctree: generated/
|
| 69 |
+
|
| 70 |
+
griffinlim
|
| 71 |
+
griffinlim_cqt
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
Harmonics
|
| 75 |
+
---------
|
| 76 |
+
.. autosummary::
|
| 77 |
+
:toctree: generated/
|
| 78 |
+
|
| 79 |
+
interp_harmonics
|
| 80 |
+
salience
|
| 81 |
+
f0_harmonics
|
| 82 |
+
|
| 83 |
+
phase_vocoder
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
Magnitude scaling
|
| 87 |
+
-----------------
|
| 88 |
+
.. autosummary::
|
| 89 |
+
:toctree: generated/
|
| 90 |
+
|
| 91 |
+
amplitude_to_db
|
| 92 |
+
db_to_amplitude
|
| 93 |
+
power_to_db
|
| 94 |
+
db_to_power
|
| 95 |
+
|
| 96 |
+
perceptual_weighting
|
| 97 |
+
frequency_weighting
|
| 98 |
+
multi_frequency_weighting
|
| 99 |
+
A_weighting
|
| 100 |
+
B_weighting
|
| 101 |
+
C_weighting
|
| 102 |
+
D_weighting
|
| 103 |
+
|
| 104 |
+
pcen
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
Time unit conversion
|
| 108 |
+
--------------------
|
| 109 |
+
.. autosummary::
|
| 110 |
+
:toctree: generated/
|
| 111 |
+
|
| 112 |
+
frames_to_samples
|
| 113 |
+
frames_to_time
|
| 114 |
+
samples_to_frames
|
| 115 |
+
samples_to_time
|
| 116 |
+
time_to_frames
|
| 117 |
+
time_to_samples
|
| 118 |
+
|
| 119 |
+
blocks_to_frames
|
| 120 |
+
blocks_to_samples
|
| 121 |
+
blocks_to_time
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
Frequency unit conversion
|
| 125 |
+
-------------------------
|
| 126 |
+
.. autosummary::
|
| 127 |
+
:toctree: generated/
|
| 128 |
+
|
| 129 |
+
hz_to_note
|
| 130 |
+
hz_to_midi
|
| 131 |
+
hz_to_svara_h
|
| 132 |
+
hz_to_svara_c
|
| 133 |
+
hz_to_fjs
|
| 134 |
+
midi_to_hz
|
| 135 |
+
midi_to_note
|
| 136 |
+
midi_to_svara_h
|
| 137 |
+
midi_to_svara_c
|
| 138 |
+
note_to_hz
|
| 139 |
+
note_to_midi
|
| 140 |
+
note_to_svara_h
|
| 141 |
+
note_to_svara_c
|
| 142 |
+
|
| 143 |
+
hz_to_mel
|
| 144 |
+
hz_to_octs
|
| 145 |
+
mel_to_hz
|
| 146 |
+
octs_to_hz
|
| 147 |
+
|
| 148 |
+
A4_to_tuning
|
| 149 |
+
tuning_to_A4
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
Music notation
|
| 153 |
+
--------------
|
| 154 |
+
.. autosummary::
|
| 155 |
+
:toctree: generated/
|
| 156 |
+
|
| 157 |
+
key_to_notes
|
| 158 |
+
key_to_degrees
|
| 159 |
+
|
| 160 |
+
mela_to_svara
|
| 161 |
+
mela_to_degrees
|
| 162 |
+
|
| 163 |
+
thaat_to_degrees
|
| 164 |
+
|
| 165 |
+
list_mela
|
| 166 |
+
list_thaat
|
| 167 |
+
|
| 168 |
+
fifths_to_note
|
| 169 |
+
interval_to_fjs
|
| 170 |
+
interval_frequencies
|
| 171 |
+
pythagorean_intervals
|
| 172 |
+
plimit_intervals
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
Frequency range generation
|
| 176 |
+
--------------------------
|
| 177 |
+
.. autosummary::
|
| 178 |
+
:toctree: generated/
|
| 179 |
+
|
| 180 |
+
fft_frequencies
|
| 181 |
+
cqt_frequencies
|
| 182 |
+
mel_frequencies
|
| 183 |
+
tempo_frequencies
|
| 184 |
+
fourier_tempo_frequencies
|
| 185 |
+
|
| 186 |
+
|
| 187 |
+
Pitch and tuning
|
| 188 |
+
----------------
|
| 189 |
+
.. autosummary::
|
| 190 |
+
:toctree: generated/
|
| 191 |
+
|
| 192 |
+
pyin
|
| 193 |
+
yin
|
| 194 |
+
|
| 195 |
+
estimate_tuning
|
| 196 |
+
pitch_tuning
|
| 197 |
+
piptrack
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
Miscellaneous
|
| 201 |
+
-------------
|
| 202 |
+
.. autosummary::
|
| 203 |
+
:toctree: generated/
|
| 204 |
+
|
| 205 |
+
samples_like
|
| 206 |
+
times_like
|
| 207 |
+
|
| 208 |
+
get_fftlib
|
| 209 |
+
set_fftlib
|
| 210 |
+
"""
|
| 211 |
+
|
| 212 |
+
import lazy_loader as lazy
|
| 213 |
+
from .version import version as __version__
|
| 214 |
+
|
| 215 |
+
__getattr__, __dir__, __all__ = lazy.attach_stub(__name__, __file__)
|