Python Forum
Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Music Notation
#1
Just curious if anyone used music notation (such as lilypond) software.
I have an application that takes any scale from around the world, categorized
by scale type (Pentatonic, Symetrical, Indian, European, Asian, Modal, jazz, etc.)
and creates graphical representations of each scale in every key, and chord.
It uses enharmonic notation for semitones if requested.

I never quite finished it, but if there is interest, I thought I might.
There are about 500 scales in the data that I have now.

It also creates .pdf, .png, Latek and keyboard layouts.
Here's a sample:
   
Reply
#2
i do. But it is usually just use it to print the music. I usually still prefer pencil and paper when writing music most of the time. Its awkward when sitting with a classical guitar in front of a computer desk/keyboard.
Recommended Tutorials:
Reply
#3
This application is strictly for informational use. there are some very obscure scales,
and I use Lilypond for creating the ledgers, but the chords and different keys are
purely music theory manipulations.

Here's a sample of the dictionary for one scale:
            'Suspended Pentatonic': {
                'category': 'Pentatonic Scales',
                'interval': ['2', '3', '2', '3', '2'],
                'scale': ['C', 'D', 'G', 'G', 'Bb'],
                'page': 77
I took a music theory course from Edinborough Scotland University,
and it inspired me to write the code. At some point, I got burned out
and stopped. But it was almost done, and I was looking for something to
keep my brain working. (It needs a lot of exercise these days).
Reply
#4
if this is taking some kind of music notation in a text form, i would be interested.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#5
The initial scales are generated from the intervals. Then the circle of fifths is used to get the different keys,
there's quite a bit (almost entirely) of music theory involved.

The actual music presentation is originally in LaTex, which is converted to a pdf file (containing the sheet music in graphic mode),
a .png file, and an on screen display.

There's a lot of work involved. The code is probably fairly crude as I wrote it several years ago when I was learning python.

Here's one of the pdf files:


.pdf   Scale2.pdf (Size: 74.02 KB / Downloads: 7)

and a chord example:


.pdf   chordExample.pdf (Size: 82.41 KB / Downloads: 5)

And the application:

   
Reply
#6
what is that image supposed to contain?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#7
The GUI contains the screenshot data that I posted in the file.

The screenshots that I included are from several years ago (except for the main gui)

I believe that I developed this in linux, and now run microsoft

It requires La-Tex and lilypond, neither of which I have installed on my system.

I had no intention of getting it all to work again unless there was some interest,
hopefully by more than one person, but if the only interest is from you, I'll at least get
it up and running again as well as it did when I put it in the closet!.

As stated in my first post, it was so close to being done.
I used to write, and getting constant returns from the editor became very tiring.
So much so, that when a document was almost done, I almost felt like giving up, but kept going.
This project wasn't so lucky.
It's actually good enough to be a first release, but will require a packaging because of all it's
dependencies, some of which (since they are run from sub-processes aren't very obvious)

Maybe I'll just post the code on github as is (with warnings)
Reply
#8
Ok,

That wasn't nearly as difficult as I thought it would be.
There is a problem with display of theoretical scales, but I remember I
had that problem to fix in the original application.

At any rate, here's a shot of the application Ghana Heptatonic scale done
just a few minutes ago. (You can see the theoretical scale problem)

   

Here's the dictionary entry that creates this scale:

            'Ghana Heptatonic': {
                'category': 'Major and Minor Scales',
                'interval': ['2', '2', '1', '2', '2', '2', '1'],
                'origin': 'Ghana',
                'scale': ['C', 'D', 'E', 'F', 'G', 'A', 'B'],
                'primary scale': 'Major',
                'page': 9
            },
I could post the code as is, and probably will upload to Github, but I want to
review and probably re-write it as my coding has improved dramatically since
this was first written (My mind was still locked in C++)
Reply
#9
@Larz It looks very nice, can't wait to see the code, if you plan to upload it.
Reply
#10
i guess this is not what i am looking for.  i am looking for a language (in an ASCII stream) to express music in a way suitable for programs that read it in and "perform" it (could output an audio file).
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Video Rendering math notation with ASCIIMath within Nodezator KennedyRichard 0 1,175 Sep-18-2023, 03:58 PM
Last Post: KennedyRichard

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020