Re: Template management for LilyPond

2019-04-25 Thread Sandro Santilli
On Wed, Apr 24, 2019 at 05:32:43PM -0400, markjulie.com wrote: > I am a new user to LilyPond 2.18.2 and Frescobaldi 2.20.0 having previously > used Finale on MacOS. I would like to save some of the templates from the > LilyPond documentation. I would like them to be available in the cloud > (Google

Re: Template management for LilyPond

2019-04-25 Thread Michael Hendry
> On 24 Apr 2019, at 22:32, markjulie.com wrote: > > I am a new user to LilyPond 2.18.2 and Frescobaldi 2.20.0 having previously > used Finale on MacOS. I would like to save some of the templates from the > LilyPond documentation. I would like them to be available in the cloud > (Google, Dropb

Re: Template management for LilyPond

2019-04-25 Thread Andrew Bernard
Hi Mark, In F. templates appear to be stored as snippets. This brings up the interesting question of where in the file system snippets are stored. Despite having used F, for years, I have no idea, and a search of my Linux filesystems reveals nothing obvious. Perhaps they are in a database format a

Re: Template management for LilyPond

2019-04-25 Thread J Martin Rushton
On 25/04/2019 12:07, Andrew Bernard wrote: > Hi Mark, > > In F. templates appear to be stored as snippets. This brings up the > interesting question of where in the file system snippets are stored. > Despite having used F, for years, I have no idea, and a search of my > Linux filesystems reveals n

Re: Template management for LilyPond

2019-04-25 Thread Sven Axelsson
On Thu, 25 Apr 2019 at 13:08, Andrew Bernard wrote: > Hi Mark, > > In F. templates appear to be stored as snippets. This brings up the > interesting question of where in the file system snippets are stored. > Despite having used F, for years, I have no idea, and a search of my Linux > filesystems

Re: Template management for LilyPond

2019-04-25 Thread Andrew Bernard
Hi Sven, That's terrible - storing potentially very large blocks of text in the Windows registry. Given that the OP's request is very reasonable, this sounds like the basis for a change request to Frescobaldi, to expose the templates and snippets in a more accessible way. That would be something I

Re: Template management for LilyPond

2019-04-25 Thread Urs Liska
Am 25. April 2019 14:00:04 MESZ schrieb Sven Axelsson : >On Thu, 25 Apr 2019 at 13:08, Andrew Bernard >wrote: > >> Hi Mark, >> >> In F. templates appear to be stored as snippets. This brings up the >> interesting question of where in the file system snippets are stored. >> Despite having used F

Re: Function for /score block

2019-04-25 Thread Aaron Hill
On 2019-04-24 10:01 pm, foxfanfare wrote: [ . . . ] The only thing that might change is the name of the piece (here it is "IA"). I wonder, is it possible, instead of copying each time the same instrumentation, to call this block in a function and replace each time the name of the piece by the

Re: Function for /score block

2019-04-25 Thread David Kastrup
Aaron Hill writes: > I found using ly:parser-include-string was helpful for this purpose. That's a sledgehammer. > Consider the following: > > > \version "2.19.82" > > Alice.Melody = \fixed f' { f4 g a bes c'1 } > Alice.Lyrics = \lyricmode { do re mi fa sol } > > Bob.Melody = \fixed f' { c

Re: Template management for LilyPond

2019-04-25 Thread Michael Hendry
> On 25 Apr 2019, at 13:00, Sven Axelsson wrote: > > ~/Library/Preferences/com.frescobaldi.frescobaldi.plist This file doesn’t exist on my iMac, although I’ve been using Frescobaldi for (? >5) years. I’d been in the habit of using my own template files directly from the working directory they

Re: Function for /score block

2019-04-25 Thread Aaron Hill
On 2019-04-25 7:37 am, David Kastrup wrote: With the same interface, I'd use \version "2.19.82" Alice.Melody = \fixed f' { f4 g a bes c'1 } Alice.Lyrics = \lyricmode { do re mi fa sol } Bob.Melody = \fixed f' { c'4 bes d' g a1 } Bob.Lyrics = \lyricmode { sol fa la re mi } Global = { \ke

Re: Function for /score block

2019-04-25 Thread David Kastrup
Aaron Hill writes: > But even with that constraint, I found the following works and avoids > the string concatenation: > > > \version "2.19.82" > > Alice.Lyrics.StanzaI = \lyricmode { a b c } > Alice.Lyrics.StanzaII = \lyricmode { d e f } > > Bob.Lyrics.StanzaI = \lyricmode { g h i } > Bob.L

Re: Template management for Frescobaldi (was: LilyPond)

2019-04-25 Thread Urs Liska
Hi Andrew, Am 25.04.19 um 14:18 schrieb Andrew Bernard: Hi Sven, That's terrible - storing potentially very large blocks of text in the Windows registry. I think storing it in a config file on Linux is only gradually less bad (it's less bad because that file is only relevant for a single

Re: Template management for LilyPond

2019-04-25 Thread Andrew Bernard
Hi Michael, But the OP was not requiring a multiuser development environment, but a multi-device one. For multiple users on one project surely you would use git nowadays, on github or your own server, pretty much the universal answer (because it works so well). The issue is about sharing _templat