Musical Notes is a CLI tool to assist in the formation of scales, chords, and harmonic fields.
The entire application is based on a command called "musical-notes". This command has a subcommand related to each action that the application can perform, such as scales, chords, and harmonic fields.
To install the project's CLI, we recommend using pipx for this installation:
pipx install musical-notesAlthough this is only a recommendation! You can also install the project with your preferred package manager, such as pip:
pip install musical-notesYou can call the scales via the command line. For example:
musical-notes scaleReturning the degrees and notes corresponding to this scale:
โโโโโณโโโโโณโโโโโโณโโโโโณโโโโณโโโโโณโโโโโโ
โ I โ II โ III โ IV โ V โ VI โ VII โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ C โ D โ E โ F โ G โ A โ B โ
โโโโโดโโโโโดโโโโโโดโโโโโดโโโโดโโโโโดโโโโโโ
The first parameter of the CLI is the tonic of the scale you wish to display. This way, you can change the returned scale. For example, the F# scale:"
musical-notes scale F#Result in:
โโโโโโณโโโโโณโโโโโโณโโโโโณโโโโโณโโโโโณโโโโโโ
โ I โ II โ III โ IV โ V โ VI โ VII โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ F# โ G# โ A# โ B โ C# โ D# โ F โ
โโโโโโดโโโโโดโโโโโโดโโโโโดโโโโโดโโโโโดโโโโโโ
You can also change the key (PT-BR=tonalidade) of the scale! This is the second parameter of the command line. For example, the scale of D# major:"
musical-notes scale D# major
โโโโโโณโโโโโณโโโโโโณโโโโโณโโโโโณโโโโโณโโโโโโ
โ I โ II โ III โ IV โ V โ VI โ VII โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ D# โ F โ G โ G# โ A# โ C โ D โ
โโโโโโดโโโโโดโโโโโโดโโโโโดโโโโโดโโโโโดโโโโโโBasic use:
musical-notes chord
โโโโโณโโโโโโณโโโโ
โ I โ III โ V โ
โกโโโโโโโโโโโโโโฉ
โ C โ E โ G โ
โโโโโดโโโโโโดโโโโmusical-notes chord C+
โโโโโณโโโโโโณโโโโโ
โ I โ III โ V+ โ
โกโโโโโโโโโโโโโโโฉ
โ C โ E โ G# โ
โโโโโดโโโโโโดโโโโโYou can call the Harmonic Fields via the subcommand harmonic-field. For example:
musical-notes harmonic-field
โโโโโณโโโโโณโโโโโโณโโโโโณโโโโณโโโโโณโโโโโโโ
โ I โ ii โ iii โ IV โ V โ vi โ viiยฐ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ C โ Dm โ Em โ F โ G โ Am โ Bยฐ โ
โโโโโดโโโโโดโโโโโโดโโโโโดโโโโดโโโโโดโโโโโโโNOTE:
By default, the parameters used are the tonic of C and the major harmonic field.
You can change the parameters of the tonic note and key (tonality).
musical-notes harmonic-field [TONIC] [KEY]An example with the harmonic field of E:
musical-notes harmonic-field E
โโโโโณโโโโโโณโโโโโโณโโโโโณโโโโณโโโโโโณโโโโโโโ
โ I โ ii โ iii โ IV โ V โ vi โ viiยฐ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ E โ F#m โ G#m โ A โ B โ C#m โ D#ยฐ โ
โโโโโดโโโโโโดโโโโโโดโโโโโดโโโโดโโโโโโดโโโโโโโAn example using the harmonic field of E in the minor tonality:
musical-notes harmonic-field E minor
โโโโโโณโโโโโโณโโโโโโณโโโโโณโโโโโณโโโโโณโโโโโโ
โ i โ iiยฐ โ III โ iv โ v โ VI โ VII โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Em โ F#ยฐ โ G โ Am โ Bm โ C โ D โ
โโโโโโดโโโโโโดโโโโโโดโโโโโดโโโโโดโโโโโดโโโโโโTo discover other options, you can use the --help flag:
musical-notes --help
Usage: musical-notes [OPTIONS] COMMAND [ARGS]...
โญโ Options โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ --install-completion [bash|zsh|fish|powershell|pwsh] Install completion for the specified shell. [default: None] โ
โ --show-completion [bash|zsh|fish|powershell|pwsh] Show completion for the specified shell, to copy it or customize the installation. โ
โ [default: None] โ
โ --help Show this message and exit. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโ Commands โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ chord โ
โ harmonic-field โ
โ scale โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏInformation about subcommands can be accessed by using the --help flag after the parameter name. An example of using help on the harmonic fields:
musical-notes harmonic-field --help
Usage: musical-notes harmonic-field [OPTIONS] [TONIC] [KEY]
โญโ Arguments โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ tonic [TONIC] Harmonic field tonic note [default: c] โ
โ key [KEY] Harmonic field key (PT-BR=tonalidade) [default: major] โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโ Options โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ --help Show this message and exit. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏNOTE:
You can also use the main documentation to learn more about the project.
- Programming Languages:
- CLI:
- Test:
- Linters:
- Project management:
- Documentation:
The project credits are to Eduardo Mendes Youtube channel. I followed the "Construindo um pacote Python do zero #CodaComigo" playlist to develop this project. However, I translated all the project to English.
Rodrigo Leite da Silva
