A command-line ear training tool for practicing musical intervals. It plays ascending, descending, or harmonic intervals and quizzes you based on lesson presets.
- Supports different interval types (consonance, dissonance, etc.)
- Customizable playback formats: harmonic, melodic ascending/descending, mixed
- Spoken interval names using
espeak - Lesson selection via command-line
- Runs offline using a virtual environment
- Python 3.7+
espeak(for speech output, automatically installed in setup.sh script)fluidsynth(for audio output, may not be necessary, automatically installed in setup.sh script)- Linux (Debian-based recommended) or WSL on Windows
Install espeak on Debian/Ubuntu (or let the setup.sh script install it for you):
sudo apt install espeak-
Clone or download this repository.
-
Allow execution permission for setup.sh and run.sh (
sudo chmod +x setup.sh run.sh). -
Run the setup script (installs dependencies):
./setup.sh
This will create a virtual environment and install required Python packages.
-
Start a lesson. For example, run:
./run.sh 1
To show all available lessons, run:
./run.sh -lTo start lesson x (replace x with a number), run:
./run.sh xTo change the instrument to e.g. violin, run :
./run.sh 1 -i violinTo show all available options, run:
./run.sh --help
If you want to use the raw python script instead of running run.sh, do the same with main.py:
python3 main.py <lesson_number> [-i INSTRUMENT]<lesson_number>: Choose a lesson (1–4)-i, --instrument: SCAMP instrument to use (default:piano)-l, --list: List available lessons-p, --loop: Loop the lesson to infinity, gotta practice more
MIT License
Copyright (c) 2025 michal-gora
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.