From 7c308ef62cd1a2f019acaf31779f2cfb35e5a7ed Mon Sep 17 00:00:00 2001 From: allthatsounds Date: Thu, 2 Nov 2023 16:07:01 +0100 Subject: [PATCH] moved some files around --- auditory/{Contents.m => ignore_Contents.m} | 0 fourier/Contents.m | 70 ++++++---------------- gabor/Contents.m | 21 +++---- {operators => gabor}/gabmulappr.m | 0 {sigproc => gabor}/plottfjigsawsep.m | 0 {sigproc => gabor}/tfjigsawsep.m | 0 operators/Contents.m | 1 - periodic/Contents.m | 39 ++++++++++++ {gabor => periodic}/dsft.m | 0 {fourier => periodic}/expwave.m | 0 {fourier => periodic}/hermbasis.m | 0 {fourier => periodic}/involute.m | 0 {fourier => periodic}/isevenfunction.m | 0 {gabor => periodic}/izak.m | 0 {fourier => periodic}/lconv.m | 0 {fourier => periodic}/lxcorr.m | 0 {fourier => periodic}/middlepad.m | 0 {fourier => periodic}/pbspline.m | 0 {fourier => periodic}/pchirp.m | 0 {fourier => periodic}/pconv.m | 0 {fourier => periodic}/pebfun.m | 0 {fourier => periodic}/peven.m | 0 {fourier => periodic}/pgauss.m | 0 {fourier => periodic}/pheaviside.m | 0 {fourier => periodic}/pherm.m | 0 {fourier => periodic}/podd.m | 0 {fourier => periodic}/prect.m | 0 {fourier => periodic}/psech.m | 0 {fourier => periodic}/psinc.m | 0 {fourier => periodic}/ptpfun.m | 0 {fourier => periodic}/pxcorr.m | 0 {fourier => periodic}/shah.m | 0 {gabor => periodic}/tconv.m | 0 {gabor => periodic}/zak.m | 0 sigproc/Contents.m | 21 ++++++- 35 files changed, 85 insertions(+), 67 deletions(-) rename auditory/{Contents.m => ignore_Contents.m} (100%) rename {operators => gabor}/gabmulappr.m (100%) rename {sigproc => gabor}/plottfjigsawsep.m (100%) rename {sigproc => gabor}/tfjigsawsep.m (100%) create mode 100644 periodic/Contents.m rename {gabor => periodic}/dsft.m (100%) rename {fourier => periodic}/expwave.m (100%) rename {fourier => periodic}/hermbasis.m (100%) rename {fourier => periodic}/involute.m (100%) rename {fourier => periodic}/isevenfunction.m (100%) rename {gabor => periodic}/izak.m (100%) rename {fourier => periodic}/lconv.m (100%) rename {fourier => periodic}/lxcorr.m (100%) rename {fourier => periodic}/middlepad.m (100%) rename {fourier => periodic}/pbspline.m (100%) rename {fourier => periodic}/pchirp.m (100%) rename {fourier => periodic}/pconv.m (100%) rename {fourier => periodic}/pebfun.m (100%) rename {fourier => periodic}/peven.m (100%) rename {fourier => periodic}/pgauss.m (100%) rename {fourier => periodic}/pheaviside.m (100%) rename {fourier => periodic}/pherm.m (100%) rename {fourier => periodic}/podd.m (100%) rename {fourier => periodic}/prect.m (100%) rename {fourier => periodic}/psech.m (100%) rename {fourier => periodic}/psinc.m (100%) rename {fourier => periodic}/ptpfun.m (100%) rename {fourier => periodic}/pxcorr.m (100%) rename {fourier => periodic}/shah.m (100%) rename {gabor => periodic}/tconv.m (100%) rename {gabor => periodic}/zak.m (100%) diff --git a/auditory/Contents.m b/auditory/ignore_Contents.m similarity index 100% rename from auditory/Contents.m rename to auditory/ignore_Contents.m diff --git a/fourier/Contents.m b/fourier/Contents.m index 5e840823..1d209cb5 100644 --- a/fourier/Contents.m +++ b/fourier/Contents.m @@ -1,67 +1,20 @@ -% LTFAT - Basic Fourier and DCT analysis. +% LTFAT - Fourier and DCT analysis. % % Peter L. Søndergaard, 2008 - 2023. -% -% Support routines -% FFTINDEX - Index of positive and negative frequencies. -% MODCENT - Centered modulo operation. -% FLOOR23 - Previous number with only 2,3 factors -% FLOOR235 - Previous number with only 2,3,5 factors -% CEIL23 - Next number with only 2,3 factors -% CEIL235 - Next number with only 2,3,5 factors -% NEXTFASTFFT - Next efficient FFT size (2,3,5,7). % -% Basic Fourier analysis +% Fourier analysis % DFT - Unitary discrete Fourier transform. % IDFT - Inverse of |dft|. % FFTREAL - FFT for real valued signals. % IFFTREAL - Inverse of |fftreal|. +% DFRACFT - Discrete Fractional Fourier transform +% FFRACFT - Fast Fractional Fourier transform % GGA - Generalized Goertzel Algorithm. % CHIRPZT - Chirped Z-transform. % FFTGRAM - Plot energy of FFT. % PLOTFFT - Plot FFT coefficients. % PLOTFFTREAL - Plot |fftreal| coefficients. % -% Simple operations on periodic functions -% INVOLUTE - Involution. -% PEVEN - Even part of periodic function. -% PODD - Odd part of periodic function. -% PCONV - Periodic convolution. -% PXCORR - Periodic crosscorrelation. -% LCONV - Linear convolution. -% LXCORR - Linear crosscorrelation. -% ISEVENFUNCTION - Test if function is even. -% MIDDLEPAD - Cut or extend even function. -% -% Periodic functions -% EXPWAVE - Complex exponential wave. -% PCHIRP - Periodic chirp. -% PGAUSS - Periodic Gaussian. -% PSECH - Periodic SECH. -% PBSPLINE - Periodic B-splines. -% SHAH - Shah distribution. -% PHEAVISIDE - Periodic Heaviside function. -% PRECT - Periodic rectangle function. -% PSINC - Periodic sinc function. -% PTPFUN - Periodic totally positive function of finite type. -% PEBFUN - Periodic EB spline. -% -% Specialized dual windows -% PTPFUNDUAL - Dual window for |PTPFUN| -% PEBFUNDUAL - Dual window for |PEBFUN| -% -% Hermite functions and fractional Fourier transforms -% PHERM - Periodic Hermite functions. -% HERMBASIS - Orthonormal basis of Hermite functions. -% DFRACFT - Discrete Fractional Fourier transform -% FFRACFT - Fast Fractional Fourier transform -% -% Approximation of continuous functions -% FFTRESAMPLE - Fourier interpolation. -% DCTRESAMPLE - Cosine interpolation. -% PDERIV - Derivative of periodic function. -% FFTANALYTIC - Analytic representation of a function. -% % Cosine and Sine transforms. % DCTI - Discrete cosine transform type I % DCTII - Discrete cosine transform type II @@ -72,6 +25,21 @@ % DSTIII - Discrete sine transform type III % DSTIV - Discrete sine transform type IV % +% Support routines +% FFTINDEX - Index of positive and negative frequencies. +% MODCENT - Centered modulo operation. +% FLOOR23 - Previous number with only 2,3 factors +% FLOOR235 - Previous number with only 2,3,5 factors +% CEIL23 - Next number with only 2,3 factors +% CEIL235 - Next number with only 2,3,5 factors +% NEXTFASTFFT - Next efficient FFT size (2,3,5,7). +% +% Applications +% FFTRESAMPLE - Fourier interpolation. +% DCTRESAMPLE - Cosine interpolation. +% PDERIV - Derivative of periodic function. +% FFTANALYTIC - Analytic representation of a function. +% % For help, bug reports, suggestions etc. please visit % http://github.com/ltfat/ltfat/issues diff --git a/gabor/Contents.m b/gabor/Contents.m index 0d13fa63..30aee2c6 100644 --- a/gabor/Contents.m +++ b/gabor/Contents.m @@ -2,14 +2,6 @@ % % Peter L. Søndergaard, 2007 - 2023. % -% Basic Time/Frequency analysis -% TCONV - Twisted convolution -% DSFT - Discrete Symplectic Fourier Transform -% ZAK - Zak transform -% IZAK - Inverse Zak transform -% COL2DIAG - Move columns of a matrix to diagonals -% S0NORM - S0-norm -% % Gabor systems % DGT - Discrete Gabor transform % IDGT - Inverse discrete Gabor transform @@ -23,9 +15,6 @@ % PROJKERN - Projection of Gabor coefficients onto kernel space % DGTLENGTH - Length of Gabor system to expand a signal % -% Multi-Gabor systems -% MULTIDGTREALMP - Matching pursuit decomposition in Multi-Gabor system -% % Reconstructing windows % GABDUAL - Canonical dual window % GABTIGHT - Canonical tight window @@ -36,6 +25,8 @@ % GABCONVEXOPT - Optimized window % GABPROJDUAL - Dual window by projection % GABMIXDUAL - Dual window by mixing windows +% PTPFUNDUAL - Dual window for |PTPFUN| +% PEBFUNDUAL - Dual window for |PEBFUN| % % Conditions numbers % GABFRAMEBOUNDS - Frame bounds of Gabor system @@ -51,7 +42,7 @@ % GABREASSIGNREAL - Reassign positive distribution for real signals % GABREASSIGNADJUST - Adjustable t-f reassignment % -% Phase reconstruction +% Phase reconstruction (should go to PHASERET) % CONSTRUCTPHASE - Phase construction from abs. values of |dgt| % CONSTRUCTPHASEREAL - |constructphase| for |dgtreal| % @@ -68,6 +59,11 @@ % SHEARFIND - Shears to transform a general lattice to a separable % NOSHEARLENGTH - Next transform side not requiring a frequency side shear % +% Applications +% MULTIDGTREALMP - Matching pursuit decomposition in Multi-Gabor system +% tfjigsawsep - Tonal-transient-residual separation using the T-F jigsaw puzzle algorithm. +% GABMULAPPR - Best approximation by a Gabor multiplier +% % Plots % TFPLOT - Plot coefficients on the time-frequency plane % PLOTDGT - Plot |dgt| coefficients @@ -77,6 +73,7 @@ % RESGRAM - Reassigned spectrogram % INSTFREQPLOT - Plot of the instantaneous frequency % PHASEPLOT - Plot of STFT phase +% plottfjigsawsep - Plot the output of |tfjigsawsep| % % For help, bug reports, suggestions etc. please visit % http://github.com/ltfat/ltfat/issues diff --git a/operators/gabmulappr.m b/gabor/gabmulappr.m similarity index 100% rename from operators/gabmulappr.m rename to gabor/gabmulappr.m diff --git a/sigproc/plottfjigsawsep.m b/gabor/plottfjigsawsep.m similarity index 100% rename from sigproc/plottfjigsawsep.m rename to gabor/plottfjigsawsep.m diff --git a/sigproc/tfjigsawsep.m b/gabor/tfjigsawsep.m similarity index 100% rename from sigproc/tfjigsawsep.m rename to gabor/tfjigsawsep.m diff --git a/operators/Contents.m b/operators/Contents.m index 0cef89a4..68a947c8 100644 --- a/operators/Contents.m +++ b/operators/Contents.m @@ -17,7 +17,6 @@ % FRAMEMULADJ - Apply the adjoint of a frame multiplier % FRAMEMULAPPR - Best approx. by frame multiplier % FRAMEMULEIGS - Eigenpairs of a frame multiplier -% GABMULAPPR - Best approximation by a Gabor mult. % % Spreading operators % SPREADOP - Spreading operator diff --git a/periodic/Contents.m b/periodic/Contents.m new file mode 100644 index 00000000..29eb2a52 --- /dev/null +++ b/periodic/Contents.m @@ -0,0 +1,39 @@ +% LTFAT - Periodic functions and basic time-frequency analysis. +% +% Peter L. Søndergaard, 2008 - 2023. +% +% Periodic functions +% EXPWAVE - Complex exponential wave. +% PCHIRP - Periodic chirp. +% PGAUSS - Periodic Gaussian. +% PSECH - Periodic SECH. +% PBSPLINE - Periodic B-splines. +% SHAH - Shah distribution. +% PHEAVISIDE - Periodic Heaviside function. +% PRECT - Periodic rectangle function. +% PSINC - Periodic sinc function. +% PTPFUN - Periodic totally positive function of finite type. +% PEBFUN - Periodic EB spline. +% PHERM - Periodic Hermite functions. +% HERMBASIS - Orthonormal basis of Hermite functions. +% +% Simple operations on periodic functions +% INVOLUTE - Involution. +% PEVEN - Even part of periodic function. +% PODD - Odd part of periodic function. +% PCONV - Periodic convolution. +% PXCORR - Periodic crosscorrelation. +% LCONV - Linear convolution. +% LXCORR - Linear crosscorrelation. +% ISEVENFUNCTION - Test if function is even. +% MIDDLEPAD - Cut or extend even function. +% +% Basic Time/Frequency analysis +% TCONV - Twisted convolution +% DSFT - Discrete Symplectic Fourier Transform +% ZAK - Zak transform +% IZAK - Inverse Zak transform +% +% For help, bug reports, suggestions etc. please visit +% http://github.com/ltfat/ltfat/issues + diff --git a/gabor/dsft.m b/periodic/dsft.m similarity index 100% rename from gabor/dsft.m rename to periodic/dsft.m diff --git a/fourier/expwave.m b/periodic/expwave.m similarity index 100% rename from fourier/expwave.m rename to periodic/expwave.m diff --git a/fourier/hermbasis.m b/periodic/hermbasis.m similarity index 100% rename from fourier/hermbasis.m rename to periodic/hermbasis.m diff --git a/fourier/involute.m b/periodic/involute.m similarity index 100% rename from fourier/involute.m rename to periodic/involute.m diff --git a/fourier/isevenfunction.m b/periodic/isevenfunction.m similarity index 100% rename from fourier/isevenfunction.m rename to periodic/isevenfunction.m diff --git a/gabor/izak.m b/periodic/izak.m similarity index 100% rename from gabor/izak.m rename to periodic/izak.m diff --git a/fourier/lconv.m b/periodic/lconv.m similarity index 100% rename from fourier/lconv.m rename to periodic/lconv.m diff --git a/fourier/lxcorr.m b/periodic/lxcorr.m similarity index 100% rename from fourier/lxcorr.m rename to periodic/lxcorr.m diff --git a/fourier/middlepad.m b/periodic/middlepad.m similarity index 100% rename from fourier/middlepad.m rename to periodic/middlepad.m diff --git a/fourier/pbspline.m b/periodic/pbspline.m similarity index 100% rename from fourier/pbspline.m rename to periodic/pbspline.m diff --git a/fourier/pchirp.m b/periodic/pchirp.m similarity index 100% rename from fourier/pchirp.m rename to periodic/pchirp.m diff --git a/fourier/pconv.m b/periodic/pconv.m similarity index 100% rename from fourier/pconv.m rename to periodic/pconv.m diff --git a/fourier/pebfun.m b/periodic/pebfun.m similarity index 100% rename from fourier/pebfun.m rename to periodic/pebfun.m diff --git a/fourier/peven.m b/periodic/peven.m similarity index 100% rename from fourier/peven.m rename to periodic/peven.m diff --git a/fourier/pgauss.m b/periodic/pgauss.m similarity index 100% rename from fourier/pgauss.m rename to periodic/pgauss.m diff --git a/fourier/pheaviside.m b/periodic/pheaviside.m similarity index 100% rename from fourier/pheaviside.m rename to periodic/pheaviside.m diff --git a/fourier/pherm.m b/periodic/pherm.m similarity index 100% rename from fourier/pherm.m rename to periodic/pherm.m diff --git a/fourier/podd.m b/periodic/podd.m similarity index 100% rename from fourier/podd.m rename to periodic/podd.m diff --git a/fourier/prect.m b/periodic/prect.m similarity index 100% rename from fourier/prect.m rename to periodic/prect.m diff --git a/fourier/psech.m b/periodic/psech.m similarity index 100% rename from fourier/psech.m rename to periodic/psech.m diff --git a/fourier/psinc.m b/periodic/psinc.m similarity index 100% rename from fourier/psinc.m rename to periodic/psinc.m diff --git a/fourier/ptpfun.m b/periodic/ptpfun.m similarity index 100% rename from fourier/ptpfun.m rename to periodic/ptpfun.m diff --git a/fourier/pxcorr.m b/periodic/pxcorr.m similarity index 100% rename from fourier/pxcorr.m rename to periodic/pxcorr.m diff --git a/fourier/shah.m b/periodic/shah.m similarity index 100% rename from fourier/shah.m rename to periodic/shah.m diff --git a/gabor/tconv.m b/periodic/tconv.m similarity index 100% rename from gabor/tconv.m rename to periodic/tconv.m diff --git a/gabor/zak.m b/periodic/zak.m similarity index 100% rename from gabor/zak.m rename to periodic/zak.m diff --git a/sigproc/Contents.m b/sigproc/Contents.m index 56abf263..f18ddf2a 100644 --- a/sigproc/Contents.m +++ b/sigproc/Contents.m @@ -10,6 +10,8 @@ % LOWDISCREPANCY - Compute a low discrepancy sequence. % UQUANT - Simulate uniform quantization. % POSTPAD - Pad or truncate a vector. +% COL2DIAG - Move columns of a matrix to diagonals +% S0NORM - S0-norm % % Window functions % FIRWIN - FIR windows (Hanning,Hamming,Blackman,...). @@ -51,9 +53,22 @@ % QAM4 - Quadrature amplitude modulation, order 4 % IQAM4 - Inverse QAM of order 4 % -% Tonal-transient separation -% tfjigsawsep - Tonal-transient-residual separation using the T-F jigsaw puzzle algorithm. -% plottfjigsawsep - Plot the separated layers. +% Auditory processing +% AUDTOFREQ - Auditory unit to frequency conversion. +% FREQTOAUD - Frequency to auditory unit conversion. +% AUDSPACE - Auditory unit spaced vector +% AUDSPACEBW - Auditory unit spaced vector by equal bandwidth. +% ERBTOFREQ - Erb scale to frequency conversion. +% FREQTOERB - Frequency to erb scale conversion. +% ERBSPACE - Equidistant points on the erb scale. +% ERBSPACEBW - Equidistant points by equal bandwidth. +% AUDFILTBW - Bandwidth of audiory filters. +% GAMMATONEFIR - Gammatone FIR approximation. +% SEMIAUDPLOT - 2D plot on auditory scale. +% +% Range compression +% RANGECOMPRESS - Compress range of signal (mu-law etc). +% RANGEEXPAND - Expand range of signal. % % For help, bug reports, suggestions etc. please visit % http://github.com/ltfat/ltfat/issues