Re: Where to put user ly files on OSX?
Xavier Scheuer x.sche...@gmail.com wrote in message news:CADGqHRejv58mbS=0vewfg4ejoc-go3drmspfrtxvt3qchv5...@mail.gmail.com... On 7 December 2011 02:58, huzzam clari...@huzzam.com wrote: Hi-- I'm fairly new to lilypond, and am starting to write my own ly files to include. I want to put them somewhere that will be accessible easily from any score (user defaults). The only place I've so far been able to find to put them is inside the lilypond application package itself (/Applications/Lilypond.app/Contents/Resources/share/lilypond/current/ly). This obviously is annoying when I upgrade lilypond, as I have to dig in there and copy my files to the new one. Is there some place I can put them so that I can still just \include asdf.ly (without a path), but which is not inside the package itself? Something along the lines of ~/Library/lilypond or /usr/share/lilypond? There is not such features in LilyPond yet (but I'd love this too). Denis made a similar request on lilypond-devel a few days ago. http://lists.gnu.org/archive/html/lilypond-devel/2011-12/msg00073.html No developer replied at the moment; I hope one will say something about it. Then I suppose it could be added to the tracker (cc: to bug-lilypond) as a new feature request. Cheers, Xavier -- Xavier Scheuer x.sche...@gmail.com Added to the tracker. See other message in newsgroup about this for the issue number. -- Phil Holmes Bug Squad ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to put user ly files on OSX?
On 7 Dec 2011, at 02:58, huzzam wrote: I'm fairly new to lilypond, and am starting to write my own ly files to include. I want to put them somewhere that will be accessible easily from any score (user defaults). The only place I've so far been able to find to put them is inside the lilypond application package itself (/Applications/Lilypond.app/Contents/Resources/share/lilypond/current/ly). This obviously is annoying when I upgrade lilypond, as I have to dig in there and copy my files to the new one. Is there some place I can put them so that I can still just \include asdf.ly (without a path), but which is not inside the package itself? Something along the lines of ~/Library/lilypond or /usr/share/lilypond? Your personal files should always be in your home catalog. You can work from any directory, but if you so like make a directory where you want, for example: ~/LilyPond/ ~/Music/LilyPond ~/Documents/LilyPond/ Not in ~/Library/, because that is for application support, and is even hidden in OS X 10.7. As for running lilypond from Terminal (it was not clear that this is what you wanted), make a script named lilypond, and put it in ~/bin or /usr/local/bin/: exec /Applications/LilyPond.app/Contents/Resources/bin/lilypond $@ Hans ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to put user ly files on OSX?
Thanks Hans. You didn't quite understand my question, I think. I understand that I *can* put files practically anywhere. The problem is that I then have to use a really long include line like: \include /Users/peter/Documents/asdf.ly unlike the factory files, which only require: \include english.ly I'm wondering if there's another supported location to put files to include, such that Lilypond will AUTOMATICALLY find them, without requiring typing the full path. thanks for your response ~peter in oakland On Dec 7, 2011, at 1:02 AM, Hans Aberg wrote: On 7 Dec 2011, at 02:58, huzzam wrote: I'm fairly new to lilypond, and am starting to write my own ly files to include. I want to put them somewhere that will be accessible easily from any score (user defaults). The only place I've so far been able to find to put them is inside the lilypond application package itself (/Applications/Lilypond.app/Contents/Resources/share/lilypond/current/ly). This obviously is annoying when I upgrade lilypond, as I have to dig in there and copy my files to the new one. Is there some place I can put them so that I can still just \include asdf.ly (without a path), but which is not inside the package itself? Something along the lines of ~/Library/lilypond or /usr/share/lilypond? Your personal files should always be in your home catalog. You can work from any directory, but if you so like make a directory where you want, for example: ~/LilyPond/ ~/Music/LilyPond ~/Documents/LilyPond/ Not in ~/Library/, because that is for application support, and is even hidden in OS X 10.7. As for running lilypond from Terminal (it was not clear that this is what you wanted), make a script named lilypond, and put it in ~/bin or /usr/local/bin/: exec /Applications/LilyPond.app/Contents/Resources/bin/lilypond $@ Hans ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to put user ly files on OSX?
On 7 Dec 2011, at 10:22, Peter Jaques wrote: Thanks Hans. You didn't quite understand my question, I think. I understand that I *can* put files practically anywhere. The problem is that I then have to use a really long include line like: \include /Users/peter/Documents/asdf.ly unlike the factory files, which only require: \include english.ly I'm wondering if there's another supported location to put files to include, such that Lilypond will AUTOMATICALLY find them, without requiring typing the full path. I tried hen the file is in the same directory, and it worked. So possibly, you have your include files in some other custom directory. Then lilypond does not seem to search any other directories than the working directory and its own. So possibly a feature request there. Otherwise, it works fine with a relative path, like \include ../dir/file.ly. And you might try soft links 'ln -s'. Hans ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to put user ly files on OSX?
On Wed, Dec 7, 2011 at 7:07 AM, Hans Aberg haber...@telia.com wrote: On 7 Dec 2011, at 10:22, Peter Jaques wrote: Thanks Hans. You didn't quite understand my question, I think. I understand that I *can* put files practically anywhere. The problem is that I then have to use a really long include line like: \include /Users/peter/Documents/asdf.ly unlike the factory files, which only require: \include english.ly Why not use the -I (--include) command line option? You can alias lilypond or wrap it in a shell script and put your include files wherever you like, for example alias lilypond=path/to/lilypond --include=path/to/my/includes/ Cheers, Mike ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to put user ly files on OSX?
On 7 Dec 2011, at 15:49, Michael Ellis wrote: I understand that I *can* put files practically anywhere. The problem is that I then have to use a really long include line like: \include /Users/peter/Documents/asdf.ly unlike the factory files, which only require: \include english.ly Why not use the -I (--include) command line option? As can be seen from lilypond --help :-) Hans ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to put user ly files on OSX?
On Dec 7, 2011, at 3:22 AM, Peter Jaques wrote: Thanks Hans. You didn't quite understand my question, I think. I understand that I *can* put files practically anywhere. The problem is that I then have to use a really long include line like: \include /Users/peter/Documents/asdf.ly I would consider that a short line. My solution is to use templates for my .ly files; these have my layouts for lead sheets already set up, all I have to do is fill in the information unique to that file (the melody, harmony, identifying information, etc.). All the \include lines are already written in the template and can be commented out as needed. You can shorten \include /Users/peter/Documents/asdf.ly to ~/peter/Documents/asdf.ly if that helps. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to put user ly files on OSX?
On 7 December 2011 02:58, huzzam clari...@huzzam.com wrote: Hi-- I'm fairly new to lilypond, and am starting to write my own ly files to include. I want to put them somewhere that will be accessible easily from any score (user defaults). The only place I've so far been able to find to put them is inside the lilypond application package itself (/Applications/Lilypond.app/Contents/Resources/share/lilypond/current/ly). This obviously is annoying when I upgrade lilypond, as I have to dig in there and copy my files to the new one. Is there some place I can put them so that I can still just \include asdf.ly (without a path), but which is not inside the package itself? Something along the lines of ~/Library/lilypond or /usr/share/lilypond? There is not such features in LilyPond yet (but I'd love this too). Denis made a similar request on lilypond-devel a few days ago. http://lists.gnu.org/archive/html/lilypond-devel/2011-12/msg00073.html No developer replied at the moment; I hope one will say something about it. Then I suppose it could be added to the tracker (cc: to bug-lilypond) as a new feature request. Cheers, Xavier -- Xavier Scheuer x.sche...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to put user ly files on OSX?
On Dec 7, 2011, at 9:03 AM, Tim McNamara wrote: On Dec 7, 2011, at 3:22 AM, Peter Jaques wrote: Thanks Hans. You didn't quite understand my question, I think. I understand that I *can* put files practically anywhere. The problem is that I then have to use a really long include line like: \include /Users/peter/Documents/asdf.ly I would consider that a short line. My solution is to use templates for my .ly files; these have my layouts for lead sheets already set up, all I have to do is fill in the information unique to that file (the melody, harmony, identifying information, etc.). All the \include lines are already written in the template and can be commented out as needed. You can shorten \include /Users/peter/Documents/asdf.ly to ~/peter/Documents/asdf.ly if that helps. Oops: \include ~/peter/Documents/asdf.ly would be correct, of course... ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to put user ly files on OSX?
Thanks for the responses, everyone. I have been using the lilypond application (lilypond.app on Mac OSX), not the command line, so didn't know about any options. Does anyone know if there is a way to pass options to lilypond from lilypond.app? Otherwise I guess I'll have to dive all the way into getting a new editor set up and everything... Wow, I haven't used Vim since 1999! ;) thanks ~peter Peter Jaques, clarinetist trumpeter ~ huzzam.com director, Brass Menažeri :: brassmenazeri.com stellamara.com + janamband.com + facebook.com/OrkestarSali On Wed, Dec 7, 2011 at 6:59 AM, Hans Aberg haber...@telia.com wrote: On 7 Dec 2011, at 15:49, Michael Ellis wrote: I understand that I *can* put files practically anywhere. The problem is that I then have to use a really long include line like: \include /Users/peter/Documents/asdf.ly unlike the factory files, which only require: \include english.ly Why not use the -I (--include) command line option? As can be seen from lilypond --help :-) Hans ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to put user ly files on OSX?
On 8/12/2011, at 7:20 am, Peter Jaques wrote: Does anyone know if there is a way to pass options to lilypond from lilypond.app? Otherwise I guess I'll have to dive all the way into getting a new editor set up and everything... Wow, I haven't used Vim since 1999! ;) I've been using TeXShop as my lilypond editor for a while now. And yes, I edited the engine script to include '-I/Users/myUserName/Library/LilyPond/includes' as an option, so that a couple of my own files that I often use can be included from anywhere without long (and machine-specific) paths in the source files. (Replacing '/Users/myUserName' by '~' doesn't seem to work in this context; I'm not sure why.) It does seem odd that LilyPond currently has no standard paths for installation-specific includes: I would have expected at least one system-wide one (somewhere in /usr/local or /usr/share on a generic UNIX, somewhere in /Library on OS X) and one user-specific one (somewhere in ~/Library on OS X). Best wishes, Matthew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to put user ly files on OSX?
On 7 Dec 2011, at 19:20, Peter Jaques wrote: Thanks for the responses, everyone. I have been using the lilypond application (lilypond.app on Mac OSX), not the command line, so didn't know about any options. Does anyone know if there is a way to pass options to lilypond from lilypond.app? I could not see any way to do it with the application. You might change its lilypond binary, and replace it with a script, but then you will have to redo that for every update. Otherwise I guess I'll have to dive all the way into getting a new editor set up and everything... Wow, I haven't used Vim since 1999! ;) It is possible to combine: use whatever editor you like, and run it from Terminal. I just use the Xcode editor. There are other setups which understand LilyPond code better. Hans ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to put user ly files on OSX?
On 7 Dec 2011, at 20:38, Matthew Collett wrote: It does seem odd that LilyPond currently has no standard paths for installation-specific includes: I would have expected at least one system-wide one (somewhere in /usr/local or /usr/share on a generic UNIX, ... It should be in /usr/local/ -- the stuff in /usr/ without that belongs to the system installation, and should normally not be changed. OS X 10.7 knows the difference, so that /usr/local/ is copied over when importing files from a backup. And include/ is for system specific files, whereas share/ is for system independent files. So both might be used. Candidates /usr/local/include/lilypond/ /use/local/share/lilypond/ or something. somewhere in /Library on OS X) and one user-specific one (somewhere in ~/Library on OS X). I think of this as the application version of ~/.name files. In OS X 10.7, ~/Library is invisible in the GUI. Hans ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Where to put user ly files on OSX?
Hi-- I'm fairly new to lilypond, and am starting to write my own ly files to include. I want to put them somewhere that will be accessible easily from any score (user defaults). The only place I've so far been able to find to put them is inside the lilypond application package itself (/Applications/Lilypond.app/Contents/Resources/share/lilypond/current/ly). This obviously is annoying when I upgrade lilypond, as I have to dig in there and copy my files to the new one. Is there some place I can put them so that I can still just \include asdf.ly (without a path), but which is not inside the package itself? Something along the lines of ~/Library/lilypond or /usr/share/lilypond? Thanks! ~peter in oakland -- View this message in context: http://old.nabble.com/Where-to-put-user-ly-files-on-OSX--tp32925697p32925697.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to put user ly files on OSX?
On 07/12/11 12:58, huzzam wrote: Hi-- I'm fairly new to lilypond, and am starting to write my own ly files to include. I want to put them somewhere that will be accessible easily from any score (user defaults). The only place I've so far been able to find to put them is inside the lilypond application package itself (/Applications/Lilypond.app/Contents/Resources/share/lilypond/current/ly). This obviously is annoying when I upgrade lilypond, as I have to dig in there and copy my files to the new one. Is there some place I can put them so that I can still just \include asdf.ly (without a path), but which is not inside the package itself? Something along the lines of ~/Library/lilypond or /usr/share/lilypond? I have all my lilypond source files in one directory structure, with the include ly files at the top level, and for projects with source in lower level dirs, I create symbolic links pointing to the include files at the top level. There may be a neater way of doing it... Nick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user