Skip to content

Commit

Permalink
prepared for release
Browse files Browse the repository at this point in the history
  • Loading branch information
fracpete committed Nov 22, 2022
1 parent fa5c5c1 commit 2fbd0f9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Changelog
=========

1.0.2 (????-??-??)
1.0.2 (2022-11-23)
------------------

- Added `--cmap` (colormap) option to `mel-spectrogram`, `mfcc-spectrogram` and `stft-spectrogram`
Expand Down
31 changes: 22 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,16 @@ Generates a plot from a Mel spectrogram.

#### Options:
```
usage: mel-spectrogram [--center] [--dpi DPI] [--hop-length HOP_LENGTH] [--num-fft NUM_FFT]
[--pad-mode PAD_MODE] [--power POWER] [--win-length WIN_LENGTH]
[--window WINDOW]
usage: mel-spectrogram [--center] [--cmap CMAP] [--dpi DPI] [--hop-length HOP_LENGTH]
[--num-fft NUM_FFT] [--pad-mode PAD_MODE] [--power POWER]
[--win-length WIN_LENGTH] [--window WINDOW]
optional arguments:
--center for centering the signal. (default: False)
--cmap CMAP the Matplotlib colormap to use (append _r for reverse), automatically infers
map if not provided; use 'gray_r' for grayscale; for available maps see:
https://matplotlib.org/stable/gallery/color/colormap_reference.html
(default: None)
--dpi DPI the dots per inch (default: 100)
--hop-length HOP_LENGTH
number of audio samples between adjacent STFT columns. (default: 512)
Expand All @@ -114,13 +118,17 @@ Generates a plot from Mel-frequency cepstral coefficients.

#### Options:
```
usage: mfcc-spectrogram [--center] [--dct-type DCT_TYPE] [--dpi DPI] [--hop-length HOP_LENGTH]
[--lifter LIFTER] [--norm NORM] [--num-fft NUM_FFT] [--num-mfcc NUM_MFCC]
[--pad-mode PAD_MODE] [--power POWER] [--win-length WIN_LENGTH]
[--window WINDOW]
usage: mfcc-spectrogram [--center] [--cmap CMAP] [--dct-type DCT_TYPE] [--dpi DPI]
[--hop-length HOP_LENGTH] [--lifter LIFTER] [--norm NORM]
[--num-fft NUM_FFT] [--num-mfcc NUM_MFCC] [--pad-mode PAD_MODE]
[--power POWER] [--win-length WIN_LENGTH] [--window WINDOW]
optional arguments:
--center for centering the signal. (default: False)
--cmap CMAP the Matplotlib colormap to use (append _r for reverse), automatically infers
map if not provided; use 'gray_r' for grayscale; for available maps see:
https://matplotlib.org/stable/gallery/color/colormap_reference.html
(default: None)
--dct-type DCT_TYPE the Discrete cosine transform (DCT) type (1|2|3). By default, DCT type-2 is
used. (default: 2)
--dpi DPI the dots per inch (default: 100)
Expand Down Expand Up @@ -220,11 +228,16 @@ Generates a plot from a short time fourier transform (STFT) spectrogram.

#### Options:
```
usage: stft-spectrogram [--center] [--dpi DPI] [--hop-length HOP_LENGTH] [--num-fft NUM_FFT]
[--pad-mode PAD_MODE] [--win-length WIN_LENGTH] [--window WINDOW]
usage: stft-spectrogram [--center] [--cmap CMAP] [--dpi DPI] [--hop-length HOP_LENGTH]
[--num-fft NUM_FFT] [--pad-mode PAD_MODE] [--win-length WIN_LENGTH]
[--window WINDOW]
optional arguments:
--center for centering the signal. (default: False)
--cmap CMAP the Matplotlib colormap to use (append _r for reverse), automatically infers
map if not provided; use 'gray_r' for grayscale; for available maps see:
https://matplotlib.org/stable/gallery/color/colormap_reference.html
(default: None)
--dpi DPI the dots per inch (default: 100)
--hop-length HOP_LENGTH
number of audio samples between adjacent STFT columns. defaults to
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _read(filename: str) -> str:
"wai",
"wai.annotations"
],
version="1.0.1",
version="1.0.2",
author='Peter Reutemann',
author_email='[email protected]',
install_requires=[
Expand Down

0 comments on commit 2fbd0f9

Please sign in to comment.