Skip to main content

Command line Tuner

Project description

TunEd

Description

TunEd is a command-line tuning tool.

Dependencies

  • Python >= 3.12
  • sounddevice >= 0.4.6
  • numpy >= 1.26.4
  • scypy >= 1.16.1
  • librosa >= 0.11.0
  • aubio >= 0.4.9

TunEd use sounddevice library to stream audio from your computer's microphone.

sounddevice need install of PortAudio.

  • For Debian / Ubuntu Linux:
~$ apt-get install portaudio19-dev python-all-dev

Installation

Using pip:

~ $ pip install tuned

With source:

~ $ git clone https://framagit.org/drd/tuned.git

Install requirements:

~ $ pip install -r requirements_dev.txt

To create a python package, go to inside tuned directory:

~ $ cd tuned

Build the package in an isolated environment, generating a source-distribution and wheel in the directory dist/ (https://build.pypa.io/en/stable/):

~$ python -m build

To install it:

~ $ pip install ./dist/tuned-0.3.0-py3-none-any.whl

Usage

Launch TunEd with standard tuning frequency (@440㎐):

~$ tuned

Global Parameters

  • --frequency <int> / -f <int>: Sets the reference frequency for A4 (e.g., 442). Default: 440.
  • --mod <mode> / -m <mode>: Chooses the detection mode.
  • --verbose / -v: Increases the amount of information displayed.

Detection Modes

Note detection (default)

Detects a single note and displays its tuning accuracy.

~$ tuned -m note
  • --monitoring: Activates audio monitoring (routes the input sound to the output).

Chord detection

Identifies the played chord and details its component notes.

~$ tuned -m chord
  • --monitoring: Activates audio monitoring (routes the input sound to the output).
  • --no-harmonics-identification / -nohi: Disables the identification of harmonics in chord analysis. This can improve performance but may reduce accuracy for complex chords.

Metronome

A visual metronome that displays the beat.

~$ tuned -m metronome
  • --bpm <int>: Sets the beats per minute. Default: 60.
  • --time-signature <n/d> / -ts <n/d>: Sets the time signature (e.g., '4/4', '3/8'). Default: 4/4.

Verbosity Levels (-v)

You can stack the -v flag to display more information.

  • (no flag): Basic display for the selected mode.
  • -v: Precision: Shows the tuning offset in cents.
  • -vv: Frequency: Adds the frequency of the detected note(s) in Hz.
  • -vvv: Signal Level: Adds the signal strength in dB.
  • -vvvv: Execution Time: Adds the processing time for each analysis loop.

Authors

License

TunEd is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

TunEd is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tuned-0.5.0.tar.gz (39.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tuned-0.5.0-py3-none-any.whl (50.4 kB view details)

Uploaded Python 3

File details

Details for the file tuned-0.5.0.tar.gz.

File metadata

  • Download URL: tuned-0.5.0.tar.gz
  • Upload date:
  • Size: 39.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tuned-0.5.0.tar.gz
Algorithm Hash digest
SHA256 1ae9e6957b0071cc76d9dce8906bcfdef93d53fb01479012c3d10e72bf6a30b7
MD5 5ce44e154670088f3b8144b8e1759824
BLAKE2b-256 54498228f86804619386a8b7293260ab9a8139abc6c4f38393a97a0a8367b749

See more details on using hashes here.

File details

Details for the file tuned-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: tuned-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 50.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tuned-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a28fa2c77acaf1aaa6e546219211e42dc59f90b58c15dc70ed5ef61a0799170
MD5 59d0c04e1f1c30482aa2fc859b76ad5e
BLAKE2b-256 d9be4c30519659b41de2dd95a9ebfece0ca002ac07ba5424f106d0697e3df18e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page