Calculate spacing in lilypond
Hello everyone, I have been using lilypond for 2 years now in a project called "psautiers" (psalm in french) to create database of music : you can see examples at my website www.psautiers.org. Yet I used the scripts musicxml2ly and lilypond to create a jpeg from a musicxml file. Now that everything works fine, I would like to implement a way of changing colors in a few notes (for example to color the first notes of my score, or to color the predominant note in a melody), but to do this I have two solutions : -reexecuting lilypond and musicxml2ly to color a few notes which is very costy in time and in CPU because I use a system command. -or finding how you implemented the spacing in lilypond and directly coloring the corresponding notes in the jpeg file. I tried to look at the source using apt-get source lilypond and I then went to the lily directory. However I did not find what I searched for. Is the algorithm difficult to grasp? You may provide me a better way to underline of color a few notes. Thanks very much Dang Nguyen Bac ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel
Converting ly to musicxml
Hi, I have been using lilypond for 3 years in my projects: http://www.psautiers.org (this is the website on which I am currently working on), and http://www.score-catcher.org (the sister site) in which I convert musicxml to lilypond and then I put the score online. The thing is that the musicxml format is not the one most people use, so I can't put on many scores online... However I think it would be easier to convert ly to musicxml (in fact i want to convert like this : midi -> ly -> musicxml). Converting from midi to ly is possible, but ly to musicxml has never been done... So my plan is to program it myself I think I would do it in python as musicxml2ly is also written in python. Do you have anything to say about it ? Will I face some problems I have not thaught of? Have I missed anything that would really make this task easier? If I manage to do it , will it be possible to add it in the source tree ? And a last request , can you link my website (psautiers.org or score-catcher.org or both) from your website? Thanks really much for your help Dang Nguyen Bac ___ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel
Re: Converting ly to musicxml
Le 10/07/2011 11:14, m...@apollinemike.com a écrit : > On Jul 10, 2011, at 10:56 AM, cab wrote: > >> Hi, >> >> >> I have been using lilypond for 3 years in my projects: >> http://www.psautiers.org (this is the website on which I am currently >> working on), and http://www.score-catcher.org (the sister site) in which >> I convert musicxml to lilypond and then I put the score online. >> >> The thing is that the musicxml format is not the one most people use, >> so I can't put on many scores online... >> >> However I think it would be easier to convert ly to musicxml >> >> (in fact i want to convert like this : midi -> ly -> musicxml). >> Converting from midi to ly is possible, but ly to musicxml has never >> been done... So my plan is to program it myself >> I think I would do it in python as musicxml2ly is also written in python. >> >> Do you have anything to say about it ? >> Will I face some problems I have not thaught of? >> Have I missed anything that would really make this task easier? >> >> If I manage to do it , will it be possible to add it in the source tree ? >> >> And a last request , can you link my website (psautiers.org or >> score-catcher.org or both) from your website? >> >> >> Thanks really much for your help >> >> Dang Nguyen Bac > > Dear Dang Nguyen, > > This is something I proposed to the French users list earlier this year and > it got a lukewarm response from the community (save several well-thought-out > responses from Scheme and/or musicxml and/or accessibility enthusiasts). I > have started some sketches for this type of code, and it is certainly > possible, especially if you do not include position information. Contact me > if you'd like to talk more about this and I'll dig up the sketches I've > already done in Scheme. > > Cheers, > MS > Dear Mike, Actually, I am really interested, but I am wondering why you used scheme , is it because you are doing this recursively ? Is it because it is easier to parse ly files with scheme (I don't know this language yet ) ? Thanks really much Dang Nguyen Bac ___ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel
Re: Converting ly to musicxml
Le 10/07/2011 11:23, Jan Nieuwenhuizen a écrit : > cab writes: > >> However I think it would be easier to convert ly to musicxml > > This starts to be a faq. Have a look at scm/to-xml.scm > >> (in fact i want to convert like this : midi -> ly -> musicxml). > > This puzzles me, doesn't google show you several midi2xml > converters? > > Jan. > Sorry , in fact , one guy has already done it : http://www.phpclasses.org/browse/file/5121.html http://dasdeck.de/staff/valentin/midi/ Yeah , i really missed the thing , really sorry Thanks very much for your help, Everything will go smoothly then... Dang Nguyen Bac ___ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel
Re: Converting ly to musicxml
Le 10/07/2011 12:26, Valentin Villenave a écrit : > On Sun, Jul 10, 2011 at 11:46 AM, Martin Tarenskeen > wrote: >> I guess the idea was to make it possible to export MusicXML directly from >> Lilypond (just like midi, png, pdf, and postscript), re-using Lilypond >> parsing-code that is available anyway? And Scheme is the language that >> integrates perfectly with Lilypond? That would be better/easier to develop >> than a separate python tool? > > Some early discussions were even more ambitious, and involved > outputting not only music elements, but LilyPond's formatting > information as well, by creating a whole xml backend: > http://code.google.com/p/lilypond/issues/detail?id=665 > > That being said, Jan's work seems to have already gone a long way, and > it may be worth sending a reminder to everybody (myself included) who > once offered a bounty for this feature: by my count, we're already > looking at a €600 fee, which is starting to look at least halfway > decent! > > Cheers, > Valentin. > > In fact, the php class provided here : staff.dasdeck.de/valentin/midi/mid2xml.php does not convert in musicxml I think I found a way , just by using finale ,or noteedit, or whatever ___ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel
Re: Converting ly to musicxml
Le 10/07/2011 23:27, Jan Warchoł a écrit : > 2011/7/10 cab : >> Converting from midi to ly is possible, but ly to musicxml has never >> been done... So my plan is to program it myself >> I think I would do it in python as musicxml2ly is also written in python. >> >> If I manage to do it , will it be possible to add it in the source tree ? > > If done nicely (i mean, not as an ugly hack) it will be most welcome! > If you have any difficulties with setting up your development > environment (installing and running Lilydev, handling git) i'll gladly > help. > >> And a last request , can you link my website (psautiers.org or >> score-catcher.org or both) from your website? > > Well, i cannot say anything about it because i don't read French so i > don't know what is it about :) > Besides, i don't recall any "links" section on our website. > > cheers, > Janek > > About the website, I programmed an engine to search for melodies in scores, and then I use lilypond to display the score and to hear the music as for the ly-> xml converter, I have been thinking of reusing the to-xml.scm (yeah i think I just grasped how lilypond was built) I would just remove the *->strings part, replacing them with (define-method (display [])) like in font.scm. But I don't know yet how I would build the xmldoc tree (once everything is programmed), What do you think about it ? Am i wrong doing so,(it would my first time contributing to the open-source community). Thanks Dang Nguyen Bac ___ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel
MUSICXML2LY
Hi I would like to know whether we will be able to import some lyrics in the musicxml files to lilypond Thanks a lot for your help Cab ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel