Custos and rest

2015-01-21 Thread Jayaratna
Dear lilypondians, Lilypond doesn't engrave the custos at the end of a line if the next line begins with a rest. Can I change this behaviour? Is it a setting of break-visibility? Thank you, Andrea \score{ { \new MensuralStaff { \relative c'{ a b c d e f g a g a a g a a

Re: How to extract the current time signature

2015-01-21 Thread Thomas Morley
2015-01-22 2:09 GMT+01:00 tisimst : > I'd like to extract the current numerator and denominator of the time > signature at any point in time. How can I do this in scheme? A robust > solution (i.e., one that can handle compound time signatures) is always > preferred, but I can settle for "normal" ti

How to extract the current time signature

2015-01-21 Thread tisimst
I'd like to extract the current numerator and denominator of the time signature at any point in time. How can I do this in scheme? A robust solution (i.e., one that can handle compound time signatures) is always preferred, but I can settle for "normal" time signatures with a single numerator and de

Re: horizontal control

2015-01-21 Thread bobr...@centrum.is
Thanks for the help on the stem lengths. Still not getting any joy with the measure widths. I suspect that something else is conflicting and will have to investigate further. Thanks again! -David - Original Message - From: "Thomas Morley" To: bobr...@centrum.is Cc: "Lillypond Users

Re: horizontal control

2015-01-21 Thread Thomas Morley
2015-01-21 20:51 GMT+01:00 Kevin Barry : > > On Wed, Jan 21, 2015 at 7:31 PM, bobr...@centrum.is > wrote: >> >> Actually, making a couple other measures wider would likely also do the >> trick. In trying to create a small file which demonstrates the problem I am >> mystified as when I excerpt the

Re: horizontal control

2015-01-21 Thread Thomas Morley
2015-01-21 17:54 GMT+01:00 bobr...@centrum.is : > I want to compress a specific measure horizontally. It contains a full > measure rest and nothing else. I have tried various searches but have not > found how to do this. Can someone point me to the place in the docs where > this is explained?

Re: horizontal control

2015-01-21 Thread Kevin Barry
On Wed, Jan 21, 2015 at 7:31 PM, bobr...@centrum.is wrote: > Actually, making a couple other measures wider would likely also do the > trick. In trying to create a small file which demonstrates the problem I > am mystified as when I excerpt the section I want to change the excerpt > doesn't disp

Re: horizontal control

2015-01-21 Thread bobr...@centrum.is
Actually, making a couple other measures wider would likely also do the trick. In trying to create a small file which demonstrates the problem I am mystified as when I excerpt the section I want to change the excerpt doesn't display the problem. I'll have to try to see why. Another thing I wa

Re: Derive the correct print function of a grob

2015-01-21 Thread tisimst
Perfect. Thanks, Harm! - Abraham Sent from my iPhone > On Jan 20, 2015, at 3:01 PM, Thomas Morley-2 [via Lilypond] > wrote: > > 2015-01-20 22:49 GMT+01:00 Thomas Morley <[hidden email]>: > > > 2015-01-20 22:30 GMT+01:00 tisimst <[hidden email]>: > >> Is it possible to derive the correct def

Re: Proposed changes to LSR Snippet 906

2015-01-21 Thread Pierre Perol-Schneider
Ok, thanks Abraham. BTW during the last LSR update I've tried to add links when snippets were primary discussed (simply because I think that historical discussion - including authors - can sometimes give a better description than the LSR one). All of these are on the top of the code. Cheers, Pierr

Re: horizontal control

2015-01-21 Thread Kevin Barry
Hi David, In general it is very difficult to make lilypond alter the width of a single bar (to quote the manual: `There is no convenient mechanism to manually override spacing'). There are some ad hoc solutions for specific cases (that mostly make a bar /wider/) but your question doesn't give enou

Re: Multiple replacements in one regular expression?

2015-01-21 Thread Johan Vromans
On Wed, 21 Jan 2015 15:13:48 +0100 Urs Liska wrote: > (regexp-substitute/global #f escape-regexp str > 'pre (lambda (m) > (assoc-ref escape-pairs (match:substring m))) > 'post)) Exactly what I had in mind, great that it worked out well! -- Johan ___

Re: Matching backslash in Scheme string (escaping characters for LaTeX)

2015-01-21 Thread David Nalesnik
On Wed, Jan 21, 2015 at 1:43 AM, Urs Liska wrote: > > Am 21.01.2015 um 08:41 schrieb Johan Vromans: > >> On Wed, 21 Jan 2015 08:31:53 +0100 >> Urs Liska wrote: >> >> So what's the way to match a backslash in a LilyPond string? >>> >> My guess is four backslashes. >> >> To match a backslash you

Re: Proposed changes to LSR Snippet 906

2015-01-21 Thread tisimst
Pierre, Schneidy wrote > Abraham did you check the original topic? > Actually the aim of this snippet was to get a fully different shape of > brace, see > http://lists.gnu.org/archive/html/lilypond-user/2013-03/pngrx9qwtvweO.png > Kieren, you also added a very nice output there, see > http://list

horizontal control

2015-01-21 Thread bobr...@centrum.is
I want to compress a specific measure horizontally. It contains a full measure rest and nothing else. I have tried various searches but have not found how to do this. Can someone point me to the place in the docs where this is explained? Thanks, David ___

Re: space between systems

2015-01-21 Thread Pierre Perol-Schneider
Oups, forget to tell that it also works for v2.18 ; See : http://lilypond.org/doc/v2.18/Documentation/source/Documentation/notation/changing-spacing.html Pierre 2015-01-21 16:53 GMT+01:00 Pierre Perol-Schneider < pierre.schneider.pa...@gmail.com>: > Hi Luca, > > system-system-spacing.basic-dista

Re: space between systems

2015-01-21 Thread Pierre Perol-Schneider
Hi Luca, system-system-spacing.basic-distance will do the job. See: \version "2.19.15" \paper { system-system-spacing.basic-distance = #30 } \repeat unfold 3 { s1 \break } Cheers, Pierre 2015-01-21 16:38 GMT+01:00 Luca Danieli : > Hello all, > > I am sorry for the question, but I have tri

Re: Typesetting chord symbols

2015-01-21 Thread Carl Sorensen
On 1/19/15 8:15 PM, "Kieren MacMillan" wrote: >Hi all, > >What¹s happening with this issue? As far as I know, nothing is happening with this issue except a discussion of possible architecture for a scheme chord representation, and for decoupling presentation from representation. I don't have

space between systems

2015-01-21 Thread Luca Danieli
Hello all, I am sorry for the question, but I have tried to solve this enigma by myself for almost 2 hours and now I give up. The problem is that I would like to higher the space between systems and the various codes in the web reference didn't work.Is there any good soul to explain me what code

Get string number from TabStaff note

2015-01-21 Thread and...@andis59.se
Is it possible to know which string a note is placed on in a TabStaff. E.g. %% Start \version "2.19.15" melody = { c'4 } \score { << \new Staff { \melody } \new TabStaff { \melody } >> } %% End Here the note c'4 is placed on the second string of the TabStaff. Since I want to do di

Looking for a "nothingBut" function

2015-01-21 Thread Pierre Perol-Schneider
Hi LPonders, I'm thinking about - looking for - a function that could print only a choosen grob list where, for example, this: \version "2.19.15" \new Staff \with { \omit StaffSymbol \omit Clef \omit TimeSignature \omit BarLine \omit Beam \omit Stem %\omit etc.

Re: Multiple replacements in one regular expression?

2015-01-21 Thread Urs Liska
Am 21.01.2015 um 14:52 schrieb Urs Liska: Am 21.01.2015 um 14:45 schrieb Sven Axelsson: On 21 January 2015 at 14:01, Urs Liska wrote:> Hm, it's not as easy as that because the escaping can be quite different, e.g. "&" -> "\&" "\" -> "\textbackslash" "[" -> "{[}" etc. So what I really nee

Re: Multiple replacements in one regular expression?

2015-01-21 Thread Urs Liska
Am 21.01.2015 um 14:45 schrieb Sven Axelsson: On 21 January 2015 at 14:01, Urs Liska wrote:> Hm, it's not as easy as that because the escaping can be quite different, e.g. "&" -> "\&" "\" -> "\textbackslash" "[" -> "{[}" etc. So what I really need is: match (&)(\)([) and replace that with (

Re: Multiple replacements in one regular expression?

2015-01-21 Thread Sven Axelsson
On 21 January 2015 at 14:01, Urs Liska wrote:> > Hm, it's not as easy as that because the escaping can be quite different, > e.g. > > "&" -> "\&" > "\" -> "\textbackslash " > "[" -> "{[}" > > etc. > > So what I really need is: > match (&)(\)([) > and replace that with > (\&)(\textbackslash )({}) >

Re: Multiple replacements in one regular expression?

2015-01-21 Thread Johan Vromans
On Wed, 21 Jan 2015 14:01:35 +0100 Urs Liska wrote: > So what I really need is: > match (&)(\)([) > and replace that with > (\&)(\textbackslash )({}) I know how to do this in Perl, but my knowledge of scheme regex matching is insufficient to translate the Perl cleverness into scheme. Maybe you

Re: Multiple replacements in one regular expression?

2015-01-21 Thread Urs Liska
Am 21.01.2015 um 13:53 schrieb Johan Vromans: On Wed, 21 Jan 2015 11:23:40 +0100 Urs Liska wrote: #(set! str (regexp-substitute/global #f "&" str 'pre "\\&" 'post)) However, this approach will get quite cumbersome (and expensive) when there are numerous characters to be es

Re: Multiple replacements in one regular expression?

2015-01-21 Thread Johan Vromans
On Wed, 21 Jan 2015 11:23:40 +0100 Urs Liska wrote: > #(set! str > (regexp-substitute/global #f "&" str > 'pre "\\&" 'post)) > > However, this approach will get quite cumbersome (and expensive) when > there are numerous characters to be escaped. Therefore I'd like to know > i

Multiple replacements in one regular expression?

2015-01-21 Thread Urs Liska
Hi again, as a follow-up to my previous regex question I have another one: Can I use regular expressions to apply multiple substitutions in one go? The following code works and gives the desired result: \version "2.19.16" #(use-modules (ice-9 regex)) str = "This should be \partcombine & matc

Re: Proposed changes to LSR Snippet 906

2015-01-21 Thread Pierre Perol-Schneider
Hi All, Abraham did you check the original topic? Actually the aim of this snippet was to get a fully different shape of brace, see http://lists.gnu.org/archive/html/lilypond-user/2013-03/pngrx9qwtvweO.png Kieren, you also added a very nice output there, see http://lists.gnu.org/archive/html/lilyp

Re: Vertical alignment of text added to notes.

2015-01-21 Thread Pierre Perol-Schneider
And how about: \version "2.18.2" \paper { indent = 0 } %% Note names choice: myNNames = #`(("ces" . ,(markup #:concat(#:hspace -1 #:simple "C" #:hspace 0.1 #:raise 0.4 (#:tiny (#:flat)) #:hspace 0.5))) ("c" . "C ") ("cis" . ,(markup #:concat(#:hspace -1 #:simple "C" #:hspace 0.1 #:raise