lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Locating X/Y positions of staves and bars in PNG output


From: David Hinkle
Subject: Locating X/Y positions of staves and bars in PNG output
Date: Sun, 20 Apr 2014 17:17:34 -0500

I'm working on a new GPL web application designed to help new people learn to sing using the new FFT capabilities of HTML5.  (Git hub links below if you're interested).

I'd like to use Lilypond to generate scores for display in the app.  In order to show the user the feedback about where they're singing I'd like to superimpose that feedback on the score, but I need to know the X/Y positions of the bars and staves.

I'm willing to go so far as to modify Lilypond to export this information when it generates an PNG but I'd like to ask the list first if they have any other ideas, and if not, maybe they could point me to the best place to start tinkering with Lilypond source to get the information exported.

My Proof of concept:
https://github.com/drachs/singingPractice

A live example of precisely identifying the frequency of a tone and displaying it on a staff.  Blue line is the precise frequency based on a curve fit of the FFT, red bars are fft output.   White lines are bass and treble clef staff lines.  (Staff lines are spread further out as the frequency gets higher

https://rawgit.com/drachs/singingPractice/2d53330f77122a435063b57dd5322418851510a4/notedisplay.html


--

Next thing you know lunatics will be demanding kilowatt level radio frequency magnetrons in every kitchen and powering lawn trimming machines using refined ultra low flashpoint hydrocarbons. Oh the humanity think of the children.  ~~vim(slashdot)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]