-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lack of usage examples #131
Comments
But you *did* see the documentation at https://python-ly.readthedocs.io/en/latest/ ?
--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
|
Yes. :)
…On Sat., 13 Oct. 2018, 8:01 am Urs Liska, ***@***.***> wrote:
But you *did* see the documentation at
https://python-ly.readthedocs.io/en/latest/ ?
--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOWi-NqAysXJICRPMu0mZMutk-1i0hTks5ukXOMgaJpZM4XaUHW>
.
|
Ok, just to be clear: you want to import |
Yeah, that is correct. |
I hope I am not mistaken in that this repo lets you parse lilypond and manipulate with the syntax trees? |
I too would be very grateful for some sample code/a basic tutorial on using the library in Python scripts. Please see request for specific guidance opened as new issue--after several hours I can create a Document object but still can't figure out how to use it in a practical way. Even some uncommented excerpts from whatever projects you all have already done would be very informative, I bet. Thanks. |
I'm not 100% sure but IIRC |
For what it's worth, my project doesn't require writing documents, just reading/parsing Lilypond code. Somehow I was able to get python-ly to report back duration information to my program from Document objects I create from in-memory strings. I think I was just lucky. No such luck with the pitch module. |
Perhaps this should be a separate issue but I would also like guidance on what lilypond features can or cannot be parsed. I'm trying to convert a book's worth of music ultimately into a bespoke braille notation. ParseSource.parse_text is failing on one of the supplied examples (hopefully attached). Here is the code fragment I'm using: In [2]: from ly.musicxml.lymus2musxml import ParseSource In [3]: parser=ParseSource() In [4]: xml=parser.parse_text(open('Tinwood.ly','r').read()) \header {
\paper {
\layout { PartPOneVoiceOne = \relative bes' { PartPOneVoiceOneLyricsOne = \lyricmode { PartPTwoVoiceOne = \relative d' {
PartPTwoVoiceOneLyricsOne = \lyricmode { PartPTwoVoiceOneLyricsTwo = \lyricmode { PartPTwoVoiceOneLyricsThree = \lyricmode {
PartPThreeVoiceOneLyricsOne = \lyricmode { Come all ye "wear-y" \skip4 PartPFourVoiceOne = \relative bes, { PartPFourVoiceOneLyricsOne = \lyricmode { Come all ye "wear-y" \skip4 % The score definition
} |
Hi,
I'd like to transform some lilypond source code and cut and move all the variable definitions.
I found an example in the docs on how to get a list of tokens from a file, but I couldn't figure out how to get a parse tree. There are any examples of this or maybe I've missed them. There are also no tests from which to gain insight.
The text was updated successfully, but these errors were encountered: