-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from nschloe/rename
rename to spectro
- Loading branch information
Showing
9 changed files
with
35 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# specky Code of Conduct | ||
# spectro Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
<p align="center"> | ||
<a href="https://github.com/nschloe/specky"><img alt="specky" src="https://nschloe.github.io/specky/specky-logo.svg" width="50%"></a> | ||
<a href="https://github.com/nschloe/spectro"><img alt="spectro" src="https://nschloe.github.io/spectro/spectro-logo.svg" width="50%"></a> | ||
<p align="center">Delicious audio file spectrograms.</p> | ||
</p> | ||
|
||
[![PyPi Version](https://img.shields.io/pypi/v/specky.svg?style=flat-square)](https://pypi.org/project/specky) | ||
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/specky.svg?style=flat-square)](https://pypi.org/pypi/specky/) | ||
[![GitHub stars](https://img.shields.io/github/stars/nschloe/specky.svg?style=flat-square&logo=github&label=Stars&logoColor=white)](https://github.com/nschloe/specky) | ||
[![PyPi downloads](https://img.shields.io/pypi/dm/specky.svg?style=flat-square)](https://pypistats.org/packages/specky) | ||
[![PyPi Version](https://img.shields.io/pypi/v/spectro.svg?style=flat-square)](https://pypi.org/project/spectro) | ||
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/spectro.svg?style=flat-square)](https://pypi.org/pypi/spectro/) | ||
[![GitHub stars](https://img.shields.io/github/stars/nschloe/spectro.svg?style=flat-square&logo=github&label=Stars&logoColor=white)](https://github.com/nschloe/spectro) | ||
[![PyPi downloads](https://img.shields.io/pypi/dm/spectro.svg?style=flat-square)](https://pypistats.org/packages/spectro) | ||
|
||
[![gh-actions](https://img.shields.io/github/workflow/status/nschloe/specky/ci?style=flat-square)](https://github.com/nschloe/specky/actions?query=workflow%3Aci) | ||
[![codecov](https://img.shields.io/codecov/c/github/nschloe/specky.svg?style=flat-square)](https://codecov.io/gh/nschloe/specky) | ||
[![gh-actions](https://img.shields.io/github/workflow/status/nschloe/spectro/ci?style=flat-square)](https://github.com/nschloe/spectro/actions?query=workflow%3Aci) | ||
[![codecov](https://img.shields.io/codecov/c/github/nschloe/spectro.svg?style=flat-square)](https://codecov.io/gh/nschloe/spectro) | ||
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/psf/black) | ||
|
||
specky is a collection of easy-to-use Python and command-line tools for analyzing audio | ||
files. Install from [PyPi](https://pypi.org/project/specky/) with | ||
spectro is a collection of easy-to-use Python and command-line tools for analyzing audio | ||
files. Install from [PyPi](https://pypi.org/project/spectro/) with | ||
``` | ||
pip install specky | ||
pip install spectro | ||
``` | ||
and use with | ||
```bash | ||
specky-show filename.mp3 # shows the wave spectrum of the audio file | ||
specky-check {dirname or filename.mp3} # checks if the audio file is worse than it pretends to be | ||
spectro-show filename.mp3 # shows the wave spectrum of the audio file | ||
spectro-check {dirname or filename.mp3} # checks if the audio file is worse than it pretends to be | ||
``` | ||
See `-h` for their respective command-line arguments. | ||
|
||
The quality of MP3 files is typically determined by their bitrate. For audio files, *128 | ||
kbps* (kilobit per second) is considered low quality, *320 kbps* is considered high | ||
quality. It is of course possible to re-encode a low-quality MP3 with a higher bitrate | ||
or even a WAV file. specky can help singling out those foul eggs. | ||
or even a WAV file. spectro can help singling out those foul eggs. | ||
|
||
Here is the `specky-show` output of a [sample | ||
file](https://nschloe.github.io/specky/Yamaha-V50-Ride-Pattern-120bpm.wav) (only first | ||
Here is the `spectro-show` output of a [sample | ||
file](https://nschloe.github.io/spectro/Yamaha-V50-Ride-Pattern-120bpm.wav) (only first | ||
channel shown): | ||
|
||
<img src="https://nschloe.github.io/specky/wav.png" width="100%"> | <img src="https://nschloe.github.io/specky/320.png" width="100%"> | <img src="https://nschloe.github.io/specky/256.png" width="100%"> | ||
<img src="https://nschloe.github.io/spectro/wav.png" width="100%"> | <img src="https://nschloe.github.io/spectro/320.png" width="100%"> | <img src="https://nschloe.github.io/spectro/256.png" width="100%"> | ||
:-------------------:|:------------------:|:--------------:| | ||
Full-quality WAV | 320 kbps MP3 | 256 kbps MP3 | | ||
<img src="https://nschloe.github.io/specky/192.png" width="100%"> | <img src="https://nschloe.github.io/specky/128.png" width="100%"> | <img src="https://nschloe.github.io/specky/96.png" width="100%"> | ||
<img src="https://nschloe.github.io/spectro/192.png" width="100%"> | <img src="https://nschloe.github.io/spectro/128.png" width="100%"> | <img src="https://nschloe.github.io/spectro/96.png" width="100%"> | ||
| 192 kbps MP3 | 128 kbps MP3 | 96 kbps MP3 | | ||
<img src="https://nschloe.github.io/specky/64.png" width="100%"> | <img src="https://nschloe.github.io/specky/32.png" width="100%"> | <img src="https://nschloe.github.io/specky/16.png" width="100%"> | ||
<img src="https://nschloe.github.io/spectro/64.png" width="100%"> | <img src="https://nschloe.github.io/spectro/32.png" width="100%"> | <img src="https://nschloe.github.io/spectro/16.png" width="100%"> | ||
| 64 kbps MP3 | 32 kbps MP3 | 16 kbps MP3 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import pathlib | ||
|
||
import specky | ||
import spectro | ||
|
||
this_dir = pathlib.Path(__file__).resolve().parent | ||
|
||
|
||
def test_cli_show(): | ||
input_file = this_dir / "samples" / "16.mp3" | ||
specky.cli.main(["show", str(input_file)]) | ||
spectro.cli.main(["show", str(input_file)]) | ||
|
||
|
||
def test_cli_check(): | ||
input_file = this_dir / "samples" / "16.mp3" | ||
specky.cli.main(["check", str(input_file)]) | ||
spectro.cli.main(["check", str(input_file)]) |