Skip to content

Feature Request: Text Output View (Without List) #29

@jgarte

Description

@jgarte

Instead of

$ twelve-tone
['G', 'F', 'B', 'C# / Db', 'F# / Gb', 'D', 'D# / Eb', 'A', 'A# / Bb', 'E', 'G# / Ab', 'C']

I think it would be nice to have large text outside of a list data structure in a representation like this instead:

$ twelve-tone
G F B C# F# D D# A A# E G# C

Or

$ twelve-tone
G F B Db Gb D Eb A Bb E Ab C

Or in integer notation:

$ twelve-tone
7 5 11 1 6 2 3 9 10 4 8 0

Or using A and B instead of 10 and 11, respectively:

$ twelve-tone
7 5 B 1 6 2 3 9 A 4 8 0

Or maybe even lilypond output:

$ twelve-tone --lilypond

{ g f b cs fs d ds a as e gs c }

So, that the composer can send it to a file, compile it, and view it:

$ twelve-tone --lilypond > reihe.ly && lilypond reihe.ly && zathura reihe.pdf

The above examples show different twelve-tone views/outputs which I realize are separate feature requests altogether.

Maybe there is a python library we can use to prettify the printed text even further.

Maybe something like rich?

I'll try to get around to submitting a pull request when my time frees up.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions