Re: Problem with Codas

2017-09-18 Thread Joel C. Salomon
On 2017-09-17 2:50 AM, David Kastrup wrote:
> Carl Sorensen  writes:
>> On 9/16/17 8:09 AM, "Shamus Hammons"  wrote:
>>
>>> I have a dream, that one day Lilypond will make codas first class
>>> citizens instead of having to exist as a series of ugly hacks. In that
>>> day, I could simply write \coda (with maybe some options) and Lilypond
>>> would automagically do the right thing. Alas, that day is not today. :-(
>>
>> What do you consider the "right thing" to be with a coda?
> 
> \repeat coda 2 { %{ segno appears here %} common part }
>  \alternative { { %{ coda sign here %} first part }
> { %{ actual coda formatted here %} coda } }

(Second try, dealing with the same Thunderbird issue others have mentioned.)

Omitting the coda alternative, this would be the natural way to input
repeats of the form “D.S. al Fine”.  I would suggest “\repeat ds” (and
“\repeat dc”, unless you want to add magic that recognizes the start of
a piece) as the syntax.

––Joel C. Salomon

-- 
––Joel C. Salomon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with Codas

2017-09-18 Thread Caagr98

On 09/18/17 19:46, Joel C. Salomon wrote:

Omitting the coda alternative, this would be the natural way to input
repeats of the form “D.S. al Fine”.  I would suggest “\repeat ds” (and
“\repeat dc”, unless you want to add magic that recognizes the start of
a piece) as the syntax.


There is already magic that recognizes the start of the piece in volta 
repeat (no start repeat barline), so I don't see how that would be a 
problem.



––Joel C. Salomon

___
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: Text Spanner Leading Directly Into Another Text Spanner

2017-09-18 Thread Malte Meyn



Am 18.09.2017 um 19:03 schrieb Robert Murdoch:

Hi,

Is there a way to create a text spanner that leads directly into another 
text spanner, for example an accelerando into a ritardando? I've tried 
using \stopTextSpan and \startTextSpan on the same note, but the second 
text spanner is above the end of the first one which is not what I want.


Adjust the padding on the right side of the first spanner:

\version "2.19.65"

\relative {
  \override TextSpanner.bound-details.left.text = "accel."
  \override TextSpanner.bound-details.right.padding = 1
  c'\startTextSpan c c c
  \override TextSpanner.bound-details.left.text = "rit."
  c\stopTextSpan\startTextSpan c c c
  c1\stopTextSpan
}

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Text Spanner Leading Directly Into Another Text Spanner

2017-09-18 Thread David Nalesnik
Hi Robert,

On Mon, Sep 18, 2017 at 12:03 PM, Robert Murdoch  wrote:
> Hi,
>
> Is there a way to create a text spanner that leads directly into another
> text spanner, for example an accelerando into a ritardando? I've tried using
> \stopTextSpan and \startTextSpan on the same note, but the second text
> spanner is above the end of the first one which is not what I want.
>

You can connect two text spanners by fiddling with values in
bound-details.  Something like this:

{
  c1~ -\tweak bound-details.left.text "ritardando"
  -\tweak bound-details.right.padding #0
  \startTextSpan
  c1
  c1\stopTextSpan
  -\tweak bound-details.left.padding #1.5
  -\tweak bound-details.left.text "accelerando"
  \startTextSpan
  c1\stopTextSpan
}

If you're looking to create a single text spanner with "inner texts"
(instead of fiddling two separate spanners together), you might try
https://github.com/davidnalesnik/lilypond-text-spanner-inner-texts
though this might be overkill!

Hope this helps--

David

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Seeking LilyPond Engravers for Paid Work

2017-09-18 Thread eBooks

>> We would need the LilyPond engraving done if a client wanted an eBook 
>> produced from a PDF or paper score instead of LilyPond source, so the type 
>> of work could be anything.
>> 
>> We would pay an engraver their hourly rate and then charge it back to our 
>> client. We want the LilyPond as input to our workflow that produces eBooks.
>> 
>> Let me know if you have other questions.
> 
> One thing that isn't clear from what you wrote so far is what type of results 
> you need: music entry or polished engraving. And if it's about "input for 
> workflows": do you expect the input code to adhere to certain conventions and 
> standards?
> 
> Urs

Urs,

We have been working with an excellent engraver for several years. Over that 
time, he has developed an understanding of our requirements. It has become 
clear that we need to codify our requirements for engravers interested in 
working for us. I am in the process of completing that document and will be 
sending a copy to anyone contacting us privately with their rates. I will also 
be sending a copy to those who have already contacted us.

Thank you for the opportunity to get this information on the list.

Chris___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Fwd: Seeking LilyPond Engravers for Paid Work

2017-09-18 Thread eBooks
> 
> 
>>> We would need the LilyPond engraving done if a client wanted an eBook 
>>> produced from a PDF or paper score instead of LilyPond source, so the type 
>>> of work could be anything.
>>> 
>>> We would pay an engraver their hourly rate and then charge it back to our 
>>> client. We want the LilyPond as input to our workflow that produces eBooks.
>>> 
>>> Let me know if you have other questions.
>> 
>> One thing that isn't clear from what you wrote so far is what type of 
>> results you need: music entry or polished engraving. And if it's about 
>> "input for workflows": do you expect the input code to adhere to certain 
>> conventions and standards?
>> 
>> Urs
> 
> Urs,
> 
> We have been working with an excellent engraver for several years. Over that 
> time, he has developed an understanding of our requirements. It has become 
> clear that we need to codify our requirements for engravers interested in 
> working for us. I am in the process of completing that document and will be 
> sending a copy to anyone contacting us privately with their rates. I will 
> also be sending a copy to those who have already contacted us.
> 
> Thank you for the opportunity to get this information on the list.
> 
> Chris

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with Codas

2017-09-18 Thread Joel C. Salomon
On 2017-09-17 2:50 AM, David Kastrup wrote:
> Carl Sorensen  writes:
>> On 9/16/17 8:09 AM, "Shamus Hammons"  wrote:
>>
>>> I have a dream, that one day Lilypond will make codas first class
>>> citizens instead of having to exist as a series of ugly hacks. In that
>>> day, I could simply write \coda (with maybe some options) and Lilypond
>>> would automagically do the right thing. Alas, that day is not today. :-(
>>
>> What do you consider the "right thing" to be with a coda?
> 
> \repeat coda 2 { %{ segno appears here %} common part }
>  \alternative { { %{ coda sign here %} first part }
> { %{ actual coda formatted here %} coda } }

Omitting the coda alternative, this would be the natural way to input
repeats of the form “D.S. al Fine”.  I would suggest “\repeat ds” (and
“\repeat dc”, unless you want to add magic that recognizes the start of
a piece) as the syntax.

––Joel C. Salomon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Seeking LilyPond Engravers for Paid Work

2017-09-18 Thread Mason Hock
Sounds good, Chris. You might still consider "paying it forward" with a
license that respects your software's users' freedom
 as Lilypond respects
yours. If not for your EULA I'd happily engrave for your business and
recommend your product to performers and composers, but I won't press
you further on the issue.

Best wishes and happy engraving.

Mason

On Sun, 2017-09-17 at 12:00 -0700, Chris Crossen wrote:
> > 
> > Do you engrave the Lilypond scores with several different page
> > dimensions in advance and upload them to your app as images, or does
> > your software use Lilypond to render them dynamically? Depending on the
> > extent to which Lilypond is a component of your software, you might want
> > to make sure that your EULA  doesn't
> > violate GPLv3.
> 
> Mason,
> 
> We do not render scores dynamically with LilyPond in our app. LilyPond is not 
> a part of our app. LilyPond is one of the tools we use to generate image data 
> that is processed into the format our app uses. 
> 
> We also use Finale and Sibelius if that is the source provided by our 
> clients. We prefer LilyPond for scores we engrave from scratch for quality 
> reasons.
> 
> Chris
> 



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Text Spanner Leading Directly Into Another Text Spanner

2017-09-18 Thread Ben

Hi,

Is there a way to create a text spanner that leads directly into another
text spanner, for example an accelerando into a ritardando? I've tried
using \stopTextSpan and \startTextSpan on the same note, but the second
text spanner is above the end of the first one which is not what I want.



Hello,

This is a basic way to get them in a line, is this what you mean? (see
attached)

\version "2.19.65"

{
\override TextSpanner.bound-details.left.text = #"SpanOne"
\override TextSpanner.bound-details.right.text = #"SpanTwo"
\relative { c'4^\startTextSpan c c c \stopTextSpan c d e f }
}



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Fretboard diagram for custom tuned lute

2017-09-18 Thread Scaramoucherz
Thank you for your help. Incorporating your suggestion was the solution. I
now have a file with my lute tunings, which displays correctly on the staff,
tab and fingerboard.

Thank you again!



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \mark and slur

2017-09-18 Thread David Kastrup
Thomas Morley  writes:

> 2017-09-16 22:21 GMT+02:00 David Kastrup :
>> Thomas Morley  writes:
>>
>>> 2017-09-16 21:49 GMT+02:00 David Kastrup :
>>>
 And, uh, it is lacking regtests and documentation.  Because someone for
 some reason finds it less challenging to implement functionality than
 inventing examples using it...
>>>
>>> Absolutely no idea which person you may have in mind ...
>>>
 If you are testing things out anyway, at least regtests should not be
 too far away...
>>>
>>> Will do, at least for regtests and as soon as I find some time.
>>
>> Thanks.  Sorry for my mental laziness.
>
> You? Lazy? Rubbish!

What else to call someone only doing things he enjoys?  I just wish it
felt like more of a choice...

> Here my suggestion for a regtest.

Once the beans are there, I usually enjoy counting them...

> Not sure if we discuss/demonstrate problems in regtests, though.

Well, it's not as much a "problem" as a "limitation".

> Ofcourse the title would be removed (only done for demonstration here)

It's a bit obtrusive as it is now.

> and surpressing the warning probably needs to be adjusted, depending
> how 5194 will be done finally.

Sure.

> \version "2.21.0"
>
> \header {
>   texidoc = "Lone post-events are integrated into surrounding expressions.  
> Making it possible to attach them to expressions stored in variables.
> If no preceding expression is suitable they are attached to an empty chord 
> and a
> warning is printed.
> Though, as a consequence post-events may not be detected correctly, if not 
> inside of sequential music.
> "
> title = 
> \markup \rounded-box \smaller \medium \wordwrap-string \texidoc
> }

The problem is that it's unclear what the regtest display should be like
in order to be self-explanatory.  We have a lot of regtests not exactly
shining in that department...

> #(ly:expect-warning "Adding <>")
>
> nEv = c'4
^"from variable"
> seqM = { d'4 e' }

> addStaccato =
> #(define-music-function (mus)(ly:music?)
> ;; Adds staccato to every note-event
>   (music-map
> (lambda (m) (if (music-is-of-type? m 'note-event) #{ $m -. #} m))
> mus))

Problem with \addStaccato is that it's nice we can define it that way,
but once it is defined, it works independently of what you throw at it.
So it's more useful as an example rather than a test: once the
definition is done, the interpretion of the test results is not really
much related to the feature.

When I looked at the results, I did see it working on several notes in
sequential music inside of sequential music and was wondering how that
corresponded to my code when it was actually the music-map doing the
main work.

> addMarkup =
> #(define-music-function (mus)(ly:music?)
> ;; add TextScript, relying on DynamicText
>   (music-map
> (lambda (m)
>   (if (music-is-of-type? m 'note-event)
>   (let* ((arts (ly:music-property m 'articulations '()))
>  (dyn-present?
>(any
>  (lambda (a) (music-is-of-type? a 
> 'absolute-dynamic-event))

>  arts)))
> (if dyn-present?
> #{ $m _"Dynamic present " #}
Looks weird when the dynamic is _always_ printed.  More like
  #{ $m _\markup { "\\addMarkup" sees \dynamic f }
> #{ $m _"Dynamic not present " #}))
  #{ $m _\markup { "\\addMarkup" doesn't see \dynamic f }
>   m))
> mus))
>
> { 
>   %% tenuto is added to <>, a warning is issues (surpressed here)
>   %% a Slur starts at \nEv
>   -- \nEv ( 
>   %% a Slur-ending is applied to the last element of sequential music.
>   \seqM ) 
>   %% every note gets a staccato
>   \addStaccato { \nEv \seqM }
>   \textLengthOn 
>   %% presence of an absolute-dynamic-event is detected wrongly
>   \addMarkup \nEv \f ^"Selected wrongly"

More like ^"attached late", possibly just ^{"\\addMarkup" "\\nEv" "\\f"}.

>   %% works within sequential music
>   \addMarkup  { \nEv \f } 
>   %% for reference
>   \addMarkup c'\f 
> }

I think I can take it from there, more or less, though tomorrow.  I'll
probably try getting along without music-map in order not to mask too
much what the test is doing/showing.

Thanks for that push!

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \mark and slur

2017-09-18 Thread Thomas Morley
2017-09-16 22:21 GMT+02:00 David Kastrup :
> Thomas Morley  writes:
>
>> 2017-09-16 21:49 GMT+02:00 David Kastrup :
>>
>>> And, uh, it is lacking regtests and documentation.  Because someone for
>>> some reason finds it less challenging to implement functionality than
>>> inventing examples using it...
>>
>> Absolutely no idea which person you may have in mind ...
>>
>>> If you are testing things out anyway, at least regtests should not be
>>> too far away...
>>
>> Will do, at least for regtests and as soon as I find some time.
>
> Thanks.  Sorry for my mental laziness.

You? Lazy? Rubbish!

Here my suggestion for a regtest. Not sure if we discuss/demonstrate
problems in regtests, though.
Ofcourse the title would be removed (only done for demonstration here)
and surpressing the warning probably needs to be adjusted, depending
how 5194 will be done finally.

Cheers,
  Harm
\version "2.21.0"

\header {
  texidoc = "Lone post-events are integrated into surrounding expressions.  
Making it possible to attach them to expressions stored in variables.
If no preceding expression is suitable they are attached to an empty chord and a
warning is printed.
Though, as a consequence post-events may not be detected correctly, if not 
inside of sequential music.
"
title = 
\markup \rounded-box \smaller \medium \wordwrap-string \texidoc
}

#(ly:expect-warning "Adding <>")

nEv = c'4
seqM = { d'4 e' }

addStaccato =
#(define-music-function (mus)(ly:music?)
;; Adds staccato to every note-event
  (music-map
(lambda (m) (if (music-is-of-type? m 'note-event) #{ $m -. #} m))
mus))

addMarkup =
#(define-music-function (mus)(ly:music?)
;; add TextScript, relying on DynamicText
  (music-map
(lambda (m)
  (if (music-is-of-type? m 'note-event)
  (let* ((arts (ly:music-property m 'articulations '()))
 (dyn-present?
   (any
 (lambda (a) (music-is-of-type? a 'absolute-dynamic-event))
 arts)))
(if dyn-present?
#{ $m _"Dynamic present " #} 
#{ $m _"Dynamic not present " #}))
  m))
mus))

{ 
  %% tenuto is added to <>, a warning is issues (surpressed here)
  %% a Slur starts at \nEv
  -- \nEv ( 
  %% a Slur-ending is applied to the last element of sequential music.
  \seqM ) 
  %% every note gets a staccato
  \addStaccato { \nEv \seqM }
  \textLengthOn 
  %% presence of an absolute-dynamic-event is detected wrongly
  \addMarkup \nEv \f ^"Selected wrongly"
  %% works within sequential music
  \addMarkup  { \nEv \f } 
  %% for reference
  \addMarkup c'\f 
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Text Spanner Leading Directly Into Another Text Spanner

2017-09-18 Thread Robert Murdoch

Hi,

Is there a way to create a text spanner that leads directly into another 
text spanner, for example an accelerando into a ritardando? I've tried 
using \stopTextSpan and \startTextSpan on the same note, but the second 
text spanner is above the end of the first one which is not what I want.



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Fretboard diagram for custom tuned lute

2017-09-18 Thread Phil Holmes
- Original Message - 
From: "Scaramoucherz" 

To: 
Sent: Monday, September 18, 2017 3:32 PM
Subject: Re: Fretboard diagram for custom tuned lute



Sorry I should have been more specific.

You may have been correct about an improper quote sign before, so I 
decided
to start again. I'm running Lilypond v2.18.2. I copied the example from 
the

manual accessed directly through Lilypond - it was a web manual.

This is the code that I used:

\version "2.18.2"

\header {
title = "Test"
}

lilypond


This is not in the manuals for that example.  The inclusion of the line with 
"lilypond" on it is an error.  When I delete that, the version you sent 
compiles fine with my system on 2.18.2.



--
Phil Holmes 



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Fretboard diagram for custom tuned lute

2017-09-18 Thread Michael Gerdau
Put a comment in front of the word "lilypond" in line 7 of your code and it 
will work, in other words: you copied and pasted stuff that does not belong 
there.


> 
> Sorry I should have been more specific.
> 
> You may have been correct about an improper quote sign before, so I 
> decided
> to start again. I'm running Lilypond v2.18.2. I copied the example from 
> the
> manual accessed directly through Lilypond - it was a web manual.
> 

The proper reference would be e.g. the Notation reference, 2.4.1 or a URL like 
http://lilypond.org/doc/v2.19/Documentation/notation/common-notation-for-fretted-strings.en.html

> This is the code that I used:
> 
> \version "2.18.2"
> 
> \header {
> title = "Test"
> }
> 
> lilypond
> 
> 

The above line should be removed or commented.

Kind regards,
Michael
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Seeking LilyPond Engravers for Paid Work

2017-09-18 Thread Urs Liska



Am 17.09.2017 um 00:08 schrieb Chris Crossen:

But, if a client wants an eBook produced from a PDF or paper score, we engrave 
it with LilyPond. We outsource the LilyPond engraving and the person we 
normally use doesn’t have the time to handle all our work.

If you are interested in doing some engraving for us, email me privately at 
ebo...@scoremaestro.com with your rates.


Hello Chris,

Can you give us a little more info on the type of projects you have and more 
about what you're looking for:
full time/part time, contract, scope, etc?

Thanks!

Hey Ben,

We would need the LilyPond engraving done if a client wanted an eBook produced 
from a PDF or paper score instead of LilyPond source, so the type of work could 
be anything.

We would pay an engraver their hourly rate and then charge it back to our 
client. We want the LilyPond as input to our workflow that produces eBooks.

Let me know if you have other questions.


One thing that isn't clear from what you wrote so far is what type of 
results you need: music entry or polished engraving. And if it's about 
"input for workflows": do you expect the input code to adhere to certain 
conventions and standards?


Urs


Chris



___
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: frescobaldi print

2017-09-18 Thread Knute Snortum
There is also a printer icon on the toolbar that does the same thing as
File > Print Music.  (Ctrl-P worked for me on Windows 10.)


---
Knute Snortum
(via Gmail)

On Sat, Sep 16, 2017 at 3:41 PM, Ben  wrote:

> On 9/16/2017 10:40 AM, Gianmaria Lari wrote:
>
> I forgot to mention I'm using Windows 10.
>
> No, Ctrl-P or file/print music does not work and I don't get any error.
> g.
>
>
> On 14 September 2017 at 17:42, Malte Meyn  wrote:
>
>>
>>
>> Am 14.09.2017 um 12:49 schrieb Gianmaria Lari:
>>
>>> Sorry to ask this that probably is a very trivial question, but I have
>>> not
>>> able to find a solution online.
>>>
>>> Is there any way to print the pdf file generated by lilypond directly
>>> from
>>> Frescobaldi?
>>>
>>
>> File → Print music … or Ctrl+P as in most applications.
>>
>>
> Hi G,
>
> PRINT is found in the File menu, where you can print the source / music,
> as you choose.
> Printing is usually quite easy from Frescobaldi.
>
> 1) What printer are you using, a "PDF" printer, network, etc?
>
> --- I have a Windows 10 machine here to help you test. ---
>
> 2) When you hit File / Print, you should at the very least get a pop up
> dialog box showing available printers, do you? (see attached)
>
> If not, that's another issue...with Windows...
>
>
>
>
> ___
> 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: Fretboard diagram for custom tuned lute

2017-09-18 Thread David Kastrup
Scaramoucherz <a2ddf...@opayq.com> writes:

> Sorry I should have been more specific.
>
> You may have been correct about an improper quote sign before, so I decided
> to start again. I'm running Lilypond v2.18.2. I copied the example from the
> manual accessed directly through Lilypond - it was a web manual.

Sigh.  LilyPond does not access a manual in any manner.  It is a
program.  How about saying just what link you used?

> This is the code that I used:
>
> \version "2.18.2"
>
> \header {
> title = "Test"
> }
>
> lilypond

Now the line "lilypond" is not likely to make LilyPond happy.  On
2.19.65, this is the only line LilyPond complains about and compiles
fine otherwise.

Removing it works on both 2.19 and 2.18.  The interesting question is
just what happens with 2.18 here?

It turns out that

lilypond cuatroTuning = ...

sets the value of the variable "lilypond" without voicing any complaint
about cuatroTuning being undefined.  Looking at the grammar of 2.18, we
see that this is equivalent to lilypond.cuatroTuning = ... and looking
at the called set_identifier routine, we find that for a previously
undefined variable lilypond, setting lilypond.cuatroTuning sets lilypond
instead.  Another problem later cured, but setting lilypond.cuatroTuning
would not actually have helped.

So a curious syntax (which was impossible in 2.16 and has been
invalidated in 2.19 since it could lead to problems like the one you
experienced) absorbed the spurious "lilypond" you put in your file,
leading to a lot of followup errors.

> % add FretBoards for the Cuatro
> %   Note: This section could be put into a separate file
> %  predefined-cuatro-fretboards.ly
> %  and \included into each of your compositions
>
> cuatroTuning = #`(,(ly:make-pitch 0 6 0)
>   ,(ly:make-pitch 1 3 SHARP)
> ,(ly:make-pitch 1 1 0)
> ,(ly:make-pitch 0 5 0))
>
> dSix = { <a\4 b\1 d\3 fis\2> }
> dMajor = { <a\4 d\1 d\3 fis \2> }
> aMajSeven = { <a\4 cis\1 e\3 g\2> }
> dMajSeven = { <a\4 c\1 d\3 fis\2> }
> gMajor = { <b\4 b\1 d\3 g\2> }
>
> \storePredefinedDiagram #default-fret-table \dSix
> #cuatroTuning
> #"o;o;o;o;"
> \storePredefinedDiagram #default-fret-table \dMajor
> #cuatroTuning
> #"o;o;o;3-3;"
> \storePredefinedDiagram #default-fret-table \aMajSeven
> #cuatroTuning
> #"o;2-2;1-1;2-3;"
> \storePredefinedDiagram #default-fret-table \dMajSeven
> #cuatroTuning
> #"o;o;o;1-1;"
> \storePredefinedDiagram #default-fret-table \gMajor
> #cuatroTuning
> #"2-2;o;1-1;o;"
>
> % end of potential include file /predefined-cuatro-fretboards.ly
>
>
> #(set-global-staff-size 16)
>
> primerosNames = \chordmode {
>   d:6 d a:maj7 d:maj7
>   g
> }
> primeros = {
>   \dSix \dMajor \aMajSeven \dMajSeven
>   \gMajor
> }
>
> \score {
>   <<
> \new ChordNames {
>   \set chordChanges = ##t
>   \primerosNames
> }
>
> \new Staff {
>   \new Voice \with {
> \remove "New_fingering_engraver"
>   }
>   \relative c'' {
> \primeros
>   }
> }
>
> \new FretBoards {
>   \set Staff.stringTunings = #cuatroTuning
> %  \override FretBoard
> %#'(fret-diagram-details string-count) = #'4
>   \override FretBoard.fret-diagram-details.finger-code = #'in-dot
>   \primeros
> }
>
> \new TabStaff \relative c'' {
>   \set TabStaff.stringTunings = #cuatroTuning
>   \primeros
> }
>
>   >>
>
>   \layout {
> \context {
>   \Score
>   \override SpacingSpanner.base-shortest-duration = #(ly:make-moment
> 1/16)
> }
>   }
>   \midi { }
> }
>
>
> When I ran it, I got this error log:
>
>  Processing `/Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly'
> Parsing...
> /Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly:26:26: error:
> GUILE signaled an error for the expression beginning here
> #
>  cuatroTuning
> /Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly:26:25: error:
> wrong type for argument 3.  Expecting pair, found #
> 
> #cuatroTuning
> /Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly:29:26: error:
> GUILE signaled an error for the expression beginning here
&

Re: Fretboard diagram for custom tuned lute

2017-09-18 Thread Scaramoucherz
Sorry I should have been more specific.

You may have been correct about an improper quote sign before, so I decided
to start again. I'm running Lilypond v2.18.2. I copied the example from the
manual accessed directly through Lilypond - it was a web manual. 

This is the code that I used:

\version "2.18.2"

\header {
title = "Test"
}

lilypond

% add FretBoards for the Cuatro
%   Note: This section could be put into a separate file
%  predefined-cuatro-fretboards.ly
%  and \included into each of your compositions

cuatroTuning = #`(,(ly:make-pitch 0 6 0)
  ,(ly:make-pitch 1 3 SHARP)
  ,(ly:make-pitch 1 1 0)
  ,(ly:make-pitch 0 5 0))

dSix = { <a\4 b\1 d\3 fis\2> }
dMajor = { <a\4 d\1 d\3 fis \2> }
aMajSeven = { <a\4 cis\1 e\3 g\2> }
dMajSeven = { <a\4 c\1 d\3 fis\2> }
gMajor = { <b\4 b\1 d\3 g\2> }

\storePredefinedDiagram #default-fret-table \dSix
#cuatroTuning
#"o;o;o;o;"
\storePredefinedDiagram #default-fret-table \dMajor
#cuatroTuning
#"o;o;o;3-3;"
\storePredefinedDiagram #default-fret-table \aMajSeven
#cuatroTuning
#"o;2-2;1-1;2-3;"
\storePredefinedDiagram #default-fret-table \dMajSeven
#cuatroTuning
#"o;o;o;1-1;"
\storePredefinedDiagram #default-fret-table \gMajor
#cuatroTuning
#"2-2;o;1-1;o;"

% end of potential include file /predefined-cuatro-fretboards.ly


#(set-global-staff-size 16)

primerosNames = \chordmode {
  d:6 d a:maj7 d:maj7
  g
}
primeros = {
  \dSix \dMajor \aMajSeven \dMajSeven
  \gMajor
}

\score {
  <<
\new ChordNames {
  \set chordChanges = ##t
  \primerosNames
}

\new Staff {
  \new Voice \with {
\remove "New_fingering_engraver"
  }
  \relative c'' {
\primeros
  }
}

\new FretBoards {
  \set Staff.stringTunings = #cuatroTuning
%  \override FretBoard
%#'(fret-diagram-details string-count) = #'4
  \override FretBoard.fret-diagram-details.finger-code = #'in-dot
  \primeros
}

\new TabStaff \relative c'' {
  \set TabStaff.stringTunings = #cuatroTuning
  \primeros
}

  >>

  \layout {
\context {
  \Score
  \override SpacingSpanner.base-shortest-duration = #(ly:make-moment
1/16)
}
  }
  \midi { }
}


When I ran it, I got this error log:

 Processing `/Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly'
Parsing...
/Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly:26:26: error:
GUILE signaled an error for the expression beginning here
#
 cuatroTuning
/Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly:26:25: error:
wrong type for argument 3.  Expecting pair, found #

#cuatroTuning
/Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly:29:26: error:
GUILE signaled an error for the expression beginning here
#
 cuatroTuning
/Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly:29:25: error:
wrong type for argument 3.  Expecting pair, found #

#cuatroTuning
/Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly:32:26: error:
GUILE signaled an error for the expression beginning here
#
 cuatroTuning
/Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly:32:25: error:
wrong type for argument 3.  Expecting pair, found #

#cuatroTuning
/Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly:35:26: error:
GUILE signaled an error for the expression beginning here
#
 cuatroTuning
/Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly:35:25: error:
wrong type for argument 3.  Expecting pair, found #

#cuatroTuning
/Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly:38:26: error:
GUILE signaled an error for the expression beginning here
#
 cuatroTuning
/Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly:38:25: error:
wrong type for argument 3.  Expecting pair, found #

#cuatroTuning
/Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly:72:35: error:
GUILE signaled an error for the expression beginning here
  \set Staff.stringTunings = #
  cuatroTuning
/Users/XXX/Documents/LilyPond/20170918 Fretboard test 1.ly:80:38: error:
GUILE signaled an error for the expression beginning here
  \

Re: default midi output tempo

2017-09-18 Thread SoundsFromSound
Thomas Morley-2 wrote
> 2017-09-17 21:58 GMT+02:00 Larry 

> larry7303@

> :
>> Hi everyone!
>>
>> I'm new and I'm learning as I go. I've got the Fescobaldi installed and
>> my
>> inputs are slow. I know the tempo command can speed this up but I could
>> not
>> find what the default tempo is or how it is determined. Thanks for your
>> help.
>>
>> Larry
> 
> 
> The relevant context-property for it is tempoWholesPerMinute (which
> can be set with \tempo ... )
> 
> The default is in performer-init.ly:
>   %% quarter = 60
>   tempoWholesPerMinute = #(ly:make-moment 15/1)
> 
> or you can read it out:
> 
> \score {
>   { c'1 }
>   \midi {
> \context Score
> \applyContext
>   #(lambda (ctx) (display (ly:context-property ctx
> 'tempoWholesPerMinute)))
>   }
> }
> --> #
> 
> 
> Cheers,
>   Harm
> 
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user


Ah, yes of course - sorry. I misunderstood the question, I must have
overlooked the word *midi* in the subject only - 

Thanks Harm! That is very helpful :) 



-
composer | sound designer | asmr artist 
--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: instrumentName circle

2017-09-18 Thread Gianmaria Lari
Thank you Thomas!

On 18 September 2017 at 10:45, Thomas Morley 
wrote:

> 2017-09-18 10:38 GMT+02:00 Gianmaria Lari :
> > Great, thank you Thomas!!
> >
> > But why I should prefer "with" version
> >
> > \version "2.19.65"
> > \score {
> >   \new Staff \with {midiInstrument = #"cello" instrumentName = \markup
> \box
> > \circle "1." }
> >   {a b c' d'}
> > }
> >
> > versus "set" version
> >
> > \version "2.19.65"
> > \score {
> >   \new Staff {
> > \set Staff.midiInstrument = #"glockenspiel"
> > \set Staff.instrumentName = \markup \box \circle "1. "
> > a b c' d'
> >   }
> > }
> >
> > Thank you, g.
>
>
>
> Because it'll fail for several instances, one failing syntax-example
> below. There are several others, mostly with grace-synchronisation.
>
> \new Staff
>   <<
> \set Staff.instrumentName = \markup \box \circle "1."
> { \grace g4 a b c' d' }
>   >>
>
> Cheers,
>   Harm
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: instrumentName circle

2017-09-18 Thread Thomas Morley
2017-09-18 10:38 GMT+02:00 Gianmaria Lari :
> Great, thank you Thomas!!
>
> But why I should prefer "with" version
>
> \version "2.19.65"
> \score {
>   \new Staff \with {midiInstrument = #"cello" instrumentName = \markup \box
> \circle "1." }
>   {a b c' d'}
> }
>
> versus "set" version
>
> \version "2.19.65"
> \score {
>   \new Staff {
> \set Staff.midiInstrument = #"glockenspiel"
> \set Staff.instrumentName = \markup \box \circle "1. "
> a b c' d'
>   }
> }
>
> Thank you, g.



Because it'll fail for several instances, one failing syntax-example
below. There are several others, mostly with grace-synchronisation.

\new Staff
  <<
\set Staff.instrumentName = \markup \box \circle "1."
{ \grace g4 a b c' d' }
  >>

Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: instrumentName circle

2017-09-18 Thread Gianmaria Lari
Great, thank you Thomas!!

But why I should prefer "with" version

\version "2.19.65"
\score {
  \new Staff \with {midiInstrument = #"cello" instrumentName = \markup \box
\circle "1." }
  {a b c' d'}
}

versus "set" version

\version "2.19.65"
\score {
  \new Staff {
\set Staff.midiInstrument = #"glockenspiel"
\set Staff.instrumentName = \markup \box \circle "1. "
a b c' d'
  }
}

Thank you, g.

On 18 September 2017 at 10:24, Thomas Morley 
wrote:

> 2017-09-18 10:16 GMT+02:00 Gianmaria Lari :
> > How can I draw a box or a circle around the exercise number "1."
> >
> > \version "2.19.65"
> > \score{
> >   \new Staff {
> > \set Staff.instrumentName=#"1."
> > c' d' e' f'
> >   }
> > }
> >
> > Thank you, g.
>
>
> Use the relevant markup-commands.
> Also, always put it in a with-Block:
>
> \new Staff \with { instrumentName = \markup \box \circle "1." }
>
>
> Cheers,
>   Harm
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: default midi output tempo

2017-09-18 Thread Thomas Morley
2017-09-17 21:58 GMT+02:00 Larry :
> Hi everyone!
>
> I'm new and I'm learning as I go. I've got the Fescobaldi installed and my
> inputs are slow. I know the tempo command can speed this up but I could not
> find what the default tempo is or how it is determined. Thanks for your
> help.
>
> Larry


The relevant context-property for it is tempoWholesPerMinute (which
can be set with \tempo ... )

The default is in performer-init.ly:
  %% quarter = 60
  tempoWholesPerMinute = #(ly:make-moment 15/1)

or you can read it out:

\score {
  { c'1 }
  \midi {
\context Score
\applyContext
  #(lambda (ctx) (display (ly:context-property ctx 'tempoWholesPerMinute)))
  }
}
--> #


Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: instrumentName circle

2017-09-18 Thread Thomas Morley
2017-09-18 10:16 GMT+02:00 Gianmaria Lari :
> How can I draw a box or a circle around the exercise number "1."
>
> \version "2.19.65"
> \score{
>   \new Staff {
> \set Staff.instrumentName=#"1."
> c' d' e' f'
>   }
> }
>
> Thank you, g.


Use the relevant markup-commands.
Also, always put it in a with-Block:

\new Staff \with { instrumentName = \markup \box \circle "1." }


Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: What is a score?

2017-09-18 Thread Thomas Morley
2017-09-18 4:19 GMT+02:00 David F. :
> If I have a score,
>
> myScore = \score { … }
>
> and I try to pass it into a function that expects music (ly:music?), I get an 
> error:
>
> error: wrong type for argument 2.  Expecting music, found #
>
> So if a score is not a music, what it is it?  Where can I find that object 
> described in Lilypond’s documentation?  If I wanted to pass a score into a 
> function, how would I specify its type?
>
> And ditto to all of the above for book and bookpart.



A score contains a music-expression, but maybe also layout, midi and header.
ly:score? is the correct predicate, see IR scheme-functions.

LM 3.1.1 f may be a good starting point.

Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


instrumentName circle

2017-09-18 Thread Gianmaria Lari
How can I draw a box or a circle around the exercise number "1."

\version "2.19.65"
\score{
  \new Staff {
\set Staff.instrumentName=#"1."
c' d' e' f'
  }
}

Thank you, g.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user