Re: LSR search not working?

2016-02-05 Thread Thomas Morley
2016-02-05 7:30 GMT+01:00 Pierre Perol-Schneider
:
> Done.
> Cheers,
> Pierre
>
> 2016-02-04 23:45 GMT+01:00 Pierre Perol-Schneider
> :
>>
>> OK I'll take a look at it tomorrow.
>> Cheers,
>> Pierre
>>
>> 2016-02-04 23:12 GMT+01:00 Thomas Morley :
>>>
>>> 2016-02-04 13:43 GMT+01:00 Pierre Perol-Schneider
>>> :
>>> > Hi Nick,
>>> >
>>> > This snippet has not been approved yet. Therefor, it is not taken into
>>> > account is the searching algorithm.
>>> > Cheers,
>>> > Pierre
>>> >
>>> > 2016-02-04 12:16 GMT+01:00 Nick Payne :
>>> >>
>>> >> There is an LSR snippet for Baroque lute tablature at
>>> >> http://lsr.di.unimi.it/LSR/Item?id=920, which contains the phrase
>>> >> "baroque
>>> >> lute tablature" in both the title and text. However, it isn't found if
>>> >> I
>>> >> search using any or all of those terms...
>>> >>
>>> >> Nick Payne
>>>
>>>
>>> Sorry, I'm very lazy testing/approving new snippets.
>>>
>>> Though, while we're on it, I had a look now.
>>>
>>> The snippet compiles with several instances of
>>> warning: barcheck failed at: ...
>>>
>>> Can this be fixed?
>>>
>>> Cheers,
>>>   Harm
>>
>>
>
Hi Pierre,

thanks.

- I inserted a remark about use of newer devel-versions with it, at a
single detail.
- Doc-tag is removed. The way the bass-signs, "///a" etc, are done
feels more like a workaround.
  Not sure about it, though. Phil cc-ed, a second opinion would be nice.
- How about replacing every occurance of spacers by rests for the
inner voices? Would make the commented GrandStaff in the "worksheet"
much more readable.


Nevertheless, approved as

Baroque lute tablature
http://lsr.di.unimi.it/LSR/Item?id=920

Cheers,
  Harm

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


TabStaff arpeggio problem when first thing on line

2016-02-05 Thread banjo bits
When an arpeggio is the first thing on a line, it doesn't push over and
overwrites the first bar line. When the same arpeggio is in the middle of
the page it does push over and formats correctly.

Is this a bug or am I doing something wrong here? Is there a work around?

Thanks for your help.


\version "2.19.22"

\header { title = "Arpeggio Test" }


MUSIC = {
  \arpeggioArrowUp 2\arpeggio  \arpeggioArrowUp 2\arpeggio
|
  \arpeggioArrowUp 2\arpeggio  \arpeggioArrowUp 2\arpeggio
|
  \arpeggioArrowUp 2\arpeggio  \arpeggioArrowUp 2\arpeggio
|
  \arpeggioArrowUp 2\arpeggio  \arpeggioArrowUp 2\arpeggio
|
  \arpeggioArrowUp 2\arpeggio  \arpeggioArrowUp 2\arpeggio
|
}

\score
{
  \new TabStaff \with { \omit StringNumber }
  {
\tabFullNotation
\numericTimeSignature
\set TabStaff.tablatureFormat = #fret-number-tablature-format-banjo
\set TabStaff.stringTunings = #banjo-open-g-tuning

\set Score.proportionalNotationDuration = #(ly:make-moment 1/16)
\override Score.SystemStartBar.collapse-height = #4
  \override TabStaff.Clef #'stencil = ##f
\numericTimeSignature

\new TabVoice
{
  \voiceOne
  \stemDown
   \MUSIC
}
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: TabStaff arpeggio problem when first thing on line

2016-02-05 Thread Federico Bruni
Il giorno ven 5 feb 2016 alle 14:08, banjo bits  
ha scritto:
When an arpeggio is the first thing on a line, it doesn't push over 
and overwrites the first bar line. When the same arpeggio is in the 
middle of the page it does push over and formats correctly.


Is this a bug or am I doing something wrong here? Is there a work 
around?


This happens because you removed the stencil of the clef.
As a workaround, you may make the clef transparent in all TabStaff and 
force the stencil removal at the beginning:


\version "2.19.22"

\header { title = "Arpeggio Test" }


MUSIC = {
 \once\override TabStaff.Clef #'stencil = ##f
 \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp d'>2\arpeggio |
 \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp d'>2\arpeggio |
 \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp d'>2\arpeggio |
 \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp d'>2\arpeggio |
 \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp d'>2\arpeggio |

}

\score
{
 <<
 %\new Staff \MUSIC
 \new TabStaff \with { \omit StringNumber }
 {
   \tabFullNotation
   \numericTimeSignature
   \set TabStaff.tablatureFormat = #fret-number-tablature-format-banjo
   \set TabStaff.stringTunings = #banjo-open-g-tuning

   \set Score.proportionalNotationDuration = #(ly:make-moment 1/16)
   \override Score.SystemStartBar.collapse-height = #4
   %\override TabStaff.Clef #'stencil = ##f
   \override TabStaff.Clef #'transparent = ##t
   \numericTimeSignature

   \new TabVoice
   {
 \voiceOne
 \stemDown
 \MUSIC
   }
 }
 >>
}




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


Re: TabStaff arpeggio problem when first thing on line

2016-02-05 Thread Federico Bruni

Please include the mailing list in your replies.

Il giorno ven 5 feb 2016 alle 15:37, banjo bits  
ha scritto:

Thank you for the quick response! It works well.

Is there an easy way to set the width of the transparent clef? It 
would be great if I could thin it down a bit.


On Fri, Feb 5, 2016 at 8:43 AM, Federico Bruni  
wrote:
Il giorno ven 5 feb 2016 alle 14:08, banjo bits 
 ha scritto:
When an arpeggio is the first thing on a line, it doesn't push over 
and overwrites the first bar line. When the same arpeggio is in the 
middle of the page it does push over and formats correctly.


Is this a bug or am I doing something wrong here? Is there a work 
around?


This happens because you removed the stencil of the clef.
As a workaround, you may make the clef transparent in all TabStaff 
and force the stencil removal at the beginning:


\version "2.19.22"

\header { title = "Arpeggio Test" }


MUSIC = {
 \once\override TabStaff.Clef #'stencil = ##f
 \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp d'>2\arpeggio |
 \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp d'>2\arpeggio |
 \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp d'>2\arpeggio |
 \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp d'>2\arpeggio |
 \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp d'>2\arpeggio |

}

\score
{
 <<
 %\new Staff \MUSIC
 \new TabStaff \with { \omit StringNumber }
 {
   \tabFullNotation
   \numericTimeSignature
   \set TabStaff.tablatureFormat = 
#fret-number-tablature-format-banjo

   \set TabStaff.stringTunings = #banjo-open-g-tuning

   \set Score.proportionalNotationDuration = #(ly:make-moment 1/16)
   \override Score.SystemStartBar.collapse-height = #4
   %\override TabStaff.Clef #'stencil = ##f
   \override TabStaff.Clef #'transparent = ##t

   \numericTimeSignature

   \new TabVoice
   {
 \voiceOne
 \stemDown
 \MUSIC
   }
 }
 >>
}








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


Re: TabStaff arpeggio problem when first thing on line

2016-02-05 Thread banjo bits
Thank you. That worked however the transparent clef is a little too wide.
Is there an easy way to make the transparent clef a little thinner?



On Fri, Feb 5, 2016 at 8:43 AM, Federico Bruni  wrote:

> Il giorno ven 5 feb 2016 alle 14:08, banjo bits  ha
> scritto:
>
>> When an arpeggio is the first thing on a line, it doesn't push over and
>> overwrites the first bar line. When the same arpeggio is in the middle of
>> the page it does push over and formats correctly.
>>
>> Is this a bug or am I doing something wrong here? Is there a work around?
>>
>
> This happens because you removed the stencil of the clef.
> As a workaround, you may make the clef transparent in all TabStaff and
> force the stencil removal at the beginning:
>
> \version "2.19.22"
>
> \header { title = "Arpeggio Test" }
>
>
> MUSIC = {
>  \once\override TabStaff.Clef #'stencil = ##f
>  \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp 2\arpeggio |
>  \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp 2\arpeggio |
>  \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp 2\arpeggio |
>  \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp 2\arpeggio |
>  \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp 2\arpeggio |
> }
>
> \score
> {
>  <<
>  %\new Staff \MUSIC
>  \new TabStaff \with { \omit StringNumber }
>  {
>\tabFullNotation
>\numericTimeSignature
>\set TabStaff.tablatureFormat = #fret-number-tablature-format-banjo
>\set TabStaff.stringTunings = #banjo-open-g-tuning
>
>\set Score.proportionalNotationDuration = #(ly:make-moment 1/16)
>\override Score.SystemStartBar.collapse-height = #4
>%\override TabStaff.Clef #'stencil = ##f
>\override TabStaff.Clef #'transparent = ##t
>
>\numericTimeSignature
>
>\new TabVoice
>{
>  \voiceOne
>  \stemDown
>  \MUSIC
>}
>  }
>  >>
> }
>
>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Meaning of X-extent and Y-extent

2016-02-05 Thread Noeck
Hi,

I tried to help in the thread "TabStaff arpeggio problem when first
thing on line" but I realized that I do not understand X- and Y-extends.

Is there more to find than this
http://lilypond.org/doc/v2.18/Documentation/notation/aligning-objects
and
http://lilypond.1069038.n5.nabble.com/accidental-spacing-multiple-signs-X-extent-and-ly-accidental-interface-width-td50448.html
?

How are numbers of the "wrong" sign treated?
X-extent = #'(2 . -2) % instead of (-2 . 2) for instance
Is the object width then -4 staff spaces or 0 or sth. else?
I see some unpredictable behaviour. For instance,
(0 . -0.0001) is different from (0 . 0) but not from (0 . -10). (0 . 0)
leaves some space for the object, the negative values seem to collapse
it completely. How does that happen?

Are these distances like rectangles around the reference point?
And no such rectangles may overlap?

Is there a way to print them (like "show control points" in Frescobaldi
or "annotate-spacing" in the paper block)?

Cheers,
Joram

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


Re: Multi-Measure Rest Collision

2016-02-05 Thread tisimst
Carl,

On Fri, Feb 5, 2016 at 10:41 AM, carltesta [via Lilypond] <
ml-node+s1069038n186873...@n5.nabble.com> wrote:

> Hello Everyone,
>
> I'm having a problem with the following code.
>
> \version "2.18.2"
>
> music = {
>
> \override MultiMeasureRest.expand-limit = #1
> Screen_Shot_2016-02-05_at_12.png
> 
>\time 3/4
>\repeat volta 2 {
>  \cadenzaOn
>  \override NoteHead.style = #'cross
>  d'4^\markup { \left-column { \circle 1 } } s2
>  d'4^\markup { \left-column { \circle 2  } } s2
>  d'4^\markup { \left-column { \circle 3  } } s2
>  d'4^\markup { \left-column { \circle 4  } } s2
>  d'4^\markup { \left-column { \circle 5  } } s2
>  d'4^\markup { \left-column { \circle 6  } } s2
>  \cadenzaOff
>}
>
>  \set Score.skipBars = ##t
>  R2.*26
>  R2.*13 \bar "|."
>
> }
>
>  \score {
>\music
>\layout {}
>\midi {}
>  }
>

That does indeed look like a nasty bug, but here's a workaround to keep you
going:

{
  \override MultiMeasureRest.expand-limit = #1
  \time 3/4
  \repeat volta 2 {
\override NoteHead.style = #'cross
  \newSpacingSection
\override Score.SpacingSpanner.spacing-increment = #6
\scaleDurations 1/2 {
  d'4^\markup { \left-column { \circle 1 } }
d'4^\markup { \left-column { \circle 2 } }
d'4^\markup { \left-column { \circle 3 } }
d'4^\markup { \left-column { \circle 4 } }
d'4^\markup { \left-column { \circle 5 } }
d'4^\markup { \left-column { \circle 6 } }
  }
  }
  \newSpacingSection
  \revert Score.SpacingSpanner.spacing-increment
  \compressFullBarRests
  R2.*26
  R2.*13 \bar "|."
}

HTH,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Multi-Measure-Rest-Collision-tp186873p186874.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Superscript in \markup environment

2016-02-05 Thread Robert Blackstone
Dear list

The LilyPond-project that I'm presently working on deals with some 40 songs, 
voice and a keyboard instrument, with comments and explanations underneath each 
score, some with small musical examples.
In these comments I would like interval names like 5ths and 8ves to be written 
with "ths" and "ves" as superscript, but up till now none of superscript 
possibilities I found in the LilyPond Notation Reference worked in the 
\markup -part of the file. They sometimes even made the whole comment disappear.

 See the MWE below. (not so minimal, my apologies). What can I do to get these 
superscripts?
(Both the music and the comment are fictional. Just found some snippets that 
could serve my purpose here.)

%%
\version "2.18.2"

\relative c' 
{ 
\new Staff { \omit Staff.TimeSignature \clef treble \time 3/2
<<  
{\stemUp cis'2 \once \hideNotes  b4 \once \hideNotes b b2 }\bar "||" 
\new Voice {\voiceTwo \stemDown  a2 \set fontSize = #-4 \single \hide Stem gis4 
\single \hide Stem fis4^- \unset fontSize e2 |} 
>>
<<  
{\stemUp fis2 \once \hideNotes r4 \once \hideNotes r4 e2 } \bar "||" 
\new Voice {\voiceTwo \stemDown d2 \set fontSize = #-4 \single  \hide Stem cis4 
 \single \hide Stem b4^-  \unset fontSize a2 |} 
>>
}\bar "||"

}
}
}

 \markup {
\fill-line {" "
{
\column {
\left-align {
"Sometimes hidden parallel 5ths can be tolerated but these could have been 
avoided by contrary movement." "The same goes for parallel 8ves."

} %end left-align
} %end Column
}
} % end fill-line
} %end markup
%%%


Thanks in advance for any advice.

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


Re: Multi-Measure Rest Collision

2016-02-05 Thread Thomas Morley
2016-02-05 19:26 GMT+01:00 tisimst :
> Carl,
>
> On Fri, Feb 5, 2016 at 10:41 AM, carltesta [via Lilypond] <[hidden email]>
> wrote:
>>
>> Hello Everyone,
>>
>> I'm having a problem with the following code.
>>
>> \version "2.18.2"
>>
>> music = {
>>
>> \override MultiMeasureRest.expand-limit = #1
>> Screen_Shot_2016-02-05_at_12.png
>>\time 3/4
>>\repeat volta 2 {
>>  \cadenzaOn
>>  \override NoteHead.style = #'cross
>>  d'4^\markup { \left-column { \circle 1 } } s2
>>  d'4^\markup { \left-column { \circle 2  } } s2
>>  d'4^\markup { \left-column { \circle 3  } } s2
>>  d'4^\markup { \left-column { \circle 4  } } s2
>>  d'4^\markup { \left-column { \circle 5  } } s2
>>  d'4^\markup { \left-column { \circle 6  } } s2
>>  \cadenzaOff
>>}

%% inserting
\bar ":|."
%% should do the trick

>>
>>  \set Score.skipBars = ##t
>>  R2.*26
>>  R2.*13 \bar "|."
>>
>> }
>>
>>  \score {
>>\music
>>\layout {}
>>\midi {}
>>  }
>
>
> That does indeed look like a nasty bug, but here's a workaround to keep you
> going:
>
> {
>   \override MultiMeasureRest.expand-limit = #1
>   \time 3/4
>   \repeat volta 2 {
> \override NoteHead.style = #'cross
>   \newSpacingSection
> \override Score.SpacingSpanner.spacing-increment = #6
> \scaleDurations 1/2 {
>   d'4^\markup { \left-column { \circle 1 } }
> d'4^\markup { \left-column { \circle 2 } }
> d'4^\markup { \left-column { \circle 3 } }
> d'4^\markup { \left-column { \circle 4 } }
> d'4^\markup { \left-column { \circle 5 } }
> d'4^\markup { \left-column { \circle 6 } }
>   }
>   }
>   \newSpacingSection
>   \revert Score.SpacingSpanner.spacing-increment
>   \compressFullBarRests
>   R2.*26
>   R2.*13 \bar "|."
> }
>
> HTH,
> Abraham
>
> 
> View this message in context: Re: Multi-Measure Rest Collision
> Sent from the User mailing list archive at Nabble.com.
>
> ___
> 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: Superscript in \markup environment

2016-02-05 Thread Abraham Lee
Robert,

On Fri, Feb 5, 2016 at 11:53 AM, Robert Blackstone <
blackstone.rob...@gmail.com> wrote:

> Dear list
>
> The LilyPond-project that I'm presently working on deals with some 40
> songs, voice and a keyboard instrument, with comments and explanations
> underneath each score, some with small musical examples.
> In these comments I would like interval names like 5ths and 8ves to be
> written with "ths" and "ves" as superscript, but up till now none of super
> scrip t possibilities I found   in the LilyPond Notation Reference worked
> in the \markup -part of the file. They sometimes even made the whole
> comment disappear.
>
>  See the MWE below. (not so minimal, my apologies). What can I do to get
> these superscripts?
> (Both the music and the comment are fictional. Just found some snippets
> that could serve my purpose here.)
>
> %%
> \version "2.18.2"
>
> \relative c'
> {
> \new Staff { \omit Staff.TimeSignature \clef treble \time 3/2
> <<
> {\stemUp cis'2 \once \hideNotes  b4 \once \hideNotes b b2 }\bar "||"
> \new Voice {\voiceTwo \stemDown  a2 \set fontSize = #-4 \single \hide Stem
> gis4 \single \hide Stem fis4^- \unset fontSize e2 |}
> >>
> <<
> {\stemUp fis2 \once \hideNotes r4 \once \hideNotes r4 e2 } \bar "||"
> \new Voice {\voiceTwo \stemDown d2 \set fontSize = #-4 \single  \hide Stem
> cis4  \single \hide Stem b4^-  \unset fontSize a2 |}
> >>
> }\bar "||"
>
> }
> }
> }
>
>  \markup {
> \fill-line {" "
> {
> \column {
> \left-align {
> "Sometimes hidden parallel 5ths can be tolerated but these could have been
> avoided by contrary movement." "The same goes for parallel 8ves."
>
> } %end left-align
> } %end Column
> }
> } % end fill-line
> } %end markup
> %%%
>
>
> Thanks in advance for any advice.
>

There's a markup command called \concat which can stitch together other
markups/strings. So here's how I'd reformat your text:

\left-align {
  \concat { "Sometimes hidden parallel 5" \super "ths" " can be tolerated
but these could have been avoided by contrary movement." }
  \concat { "The same goes for parallel 8" \super "ves" "." }
} %end left-align

Notice my usage of the \super command as well. So, I've split up each
string into three chunks: the characters preceding the superscript, the
superscript itself, and all the characters following the superscript
(including the initial space).

There are other things you can do to get different vertical alignment (like
with \raise), but this also requires you to shrink the font size as well:

\concat { "... parallel 5" { \raise #0.5 \tiny "ths" } " can be tolerated
..." }

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


Re: Superscript in \markup environment

2016-02-05 Thread Noeck
Dear Robert,

your example could be much more minimal without the music and just with
a markup command. What you are looking for is \super but you also need
\concat to avoid space between the '5' and the 'ths' or a full stop. So
this could help you:

\markup \line {
  "Sometimes hidden parallel"
  \concat { "5" \super "ths" }
  "can be tolerated. The same goes for parallel"
  \concat { "8" \raise #-0.7 \super "ves" "." }
}

For my eyes, the vertical position is too high, so I lowered the 'ves'
by 0.7 units, you can also use that for the 'ths'.

Cheers,
Joram


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


Re: Superscript in \markup environment

2016-02-05 Thread Thomas Morley
2016-02-05 19:53 GMT+01:00 Robert Blackstone :
> Dear list
>
> The LilyPond-project that I'm presently working on deals with some 40 songs, 
> voice and a keyboard instrument, with comments and explanations underneath 
> each score, some with small musical examples.
> In these comments I would like interval names like 5ths and 8ves to be 
> written with "ths" and "ves" as superscript, but up till now none of super 
> scrip t possibilities I found   in the LilyPond Notation Reference worked in 
> the \markup -part of the file. They sometimes even made the whole comment 
> disappear.

You could have added what exactly you tried already.

>
>  See the MWE below. (not so minimal, my apologies).

Why adding music, when you ask about toplevel markup?

> What can I do to get these superscripts?

Some possibilities:

\version "2.18.2"

\markup
  \column {
\line {
  "text before" \concat { "5" \super "ths"} "text after"
}

\line {
  "text before" \concat { "5" \fontsize #-4 \raise #0.6 "ths" } "text after"
}
  }


Cheers,
  Harm

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


More ponderings on Chordmode

2016-02-05 Thread Peter Gentry
I cannot discover a means to have the chords sound as a guitar in this example 
everything I try ends up as a piano.

Is it possible to assign a midiInstrument to the chordNotes?



\version "2.19.25"
\include "predefined-ukulele-fretboards.ly"
\storePredefinedDiagram #default-fret-table \chordmode {c:dim7}
#ukulele-tuning 
   "5-3;3-2;2-1;o;"

myChordsTransposed = \chordmode {
  e1:7 |
  s1 |
  a2 g |
  c2:dim7 a:7 |
  d1 |
  s1 |
  s2 s4 g |
}
\score {
<<
  \new ChordNames {
   \myChordsTransposed
  }

  \new FretBoards {
\set Staff.stringTunings = #ukulele-tuning
\myChordsTransposed
  }

  \relative c'' 
  \new Staff {
\set Staff.midiInstrument = "acoustic guitar (nylon)"
   \transpose c b {
  \key ees\major
  r1 |
  r1 |
  r2 r2 |
  r2 r2 |
  g4^\markup{\musicglyph #"scripts.segno"} g8. f16 ees8. bes16 ees8. f16 |
  g4 g ees2 |
  g4 g bes aes8. aes16 |
  g4 f f2 |
   }
}
>>
\layout {}
\midi {}
}


regards
Peter Gentry 



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


Re: More ponderings on Chordmode

2016-02-05 Thread Christopher R. Maden

On 02/05/2016 02:31 PM, Peter Gentry wrote:

I cannot discover a means to have the chords sound as a guitar in
this example everything I try ends up as a piano.

Is it possible to assign a midiInstrument to the chordNotes?


\chords {
  \set ChordNames.midiInstrument = #"acoustic guitar (steel)"
  \myChordsTransposed
}

~Chris
--
Chris Maden, text nerd  http://crism.maden.org/ >
“If you’ve been a man o’ action, though you’re lying there in traction,
 You will gain some satisfaction thinkin’, ‘Jesus, at least I tried.’”
  — Andy M. Stewart (1952–2015), “Ramblin’ Rover”

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


Re: TabStaff arpeggio problem when first thing on line

2016-02-05 Thread Thomas Morley
2016-02-05 17:00 GMT+01:00 banjo bits :
> Thank you. That worked however the transparent clef is a little too wide. Is
> there an easy way to make the transparent clef a little thinner?
>
>
>
> On Fri, Feb 5, 2016 at 8:43 AM, Federico Bruni  wrote:
>>
>> Il giorno ven 5 feb 2016 alle 14:08, banjo bits  ha
>> scritto:
>>>
>>> When an arpeggio is the first thing on a line, it doesn't push over and
>>> overwrites the first bar line. When the same arpeggio is in the middle of
>>> the page it does push over and formats correctly.
>>>
>>> Is this a bug or am I doing something wrong here? Is there a work around?
>>
>>
>> This happens because you removed the stencil of the clef.
>> As a workaround, you may make the clef transparent in all TabStaff and
>> force the stencil removal at the beginning:
>>
>> \version "2.19.22"
>>
>> \header { title = "Arpeggio Test" }
>>
>>
>> MUSIC = {
>>  \once\override TabStaff.Clef #'stencil = ##f
>>  \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp 2\arpeggio |
>>  \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp 2\arpeggio |
>>  \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp 2\arpeggio |
>>  \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp 2\arpeggio |
>>  \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp 2\arpeggio |
>> }
>>
>> \score
>> {
>>  <<
>>  %\new Staff \MUSIC
>>  \new TabStaff \with { \omit StringNumber }
>>  {
>>\tabFullNotation
>>\numericTimeSignature
>>\set TabStaff.tablatureFormat = #fret-number-tablature-format-banjo
>>\set TabStaff.stringTunings = #banjo-open-g-tuning
>>
>>\set Score.proportionalNotationDuration = #(ly:make-moment 1/16)
>>\override Score.SystemStartBar.collapse-height = #4
>>%\override TabStaff.Clef #'stencil = ##f
>>\override TabStaff.Clef #'transparent = ##t
>>
>>\numericTimeSignature
>>
>>\new TabVoice
>>{
>>  \voiceOne
>>  \stemDown
>>  \MUSIC
>>}
>>  }
>>  >>
>> }


How about:

\version "2.18.2"

myLayout =
  \layout {
\context {
  \TabStaff
  \tabFullNotation
  \numericTimeSignature
  tablatureFormat = #fret-number-tablature-format-banjo
  stringTunings = #banjo-open-g-tuning
  \override Clef.stencil = #point-stencil
}
\context {
  \Score
  proportionalNotationDuration = #(ly:make-moment 1/16)
  \override SystemStartBar.collapse-height = #4
  \override Clef.space-alist.time-signature = #'(minimum-space . 0)
  \override Clef.space-alist.first-note = #'(minimum-space . 3.0)
  \override LeftEdge.space-alist.clef = #'(minimum-space . 0.5)
}
  }

MUSIC = \repeat unfold 10 { \arpeggioArrowUp 2\arpeggio }

\score {
  \new TabVoice { \stemDown \MUSIC }
  \layout { \myLayout }
}

Cheers,
  Harm

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


Re: Direction of tie from Completion_heads_engraver

2016-02-05 Thread Thomas Morley
2016-02-04 23:57 GMT+01:00 Simon Albrecht :
> Hello,
>
> is there any possibility to tweak direction of a tie generated via the
> Completion_heads_engraver? The following tweaks both don’t work:
>
> %%%
> \version "2.19.36"
> \layout {
>   \context {
> \Voice
> \remove "Note_heads_engraver"
> \consists "Completion_heads_engraver"
>   }
> }
> {
>   \once\override NoteHead.direction = 1
>   \once\override Tie.direction = 1
>   a'\breve
> }
> %%
>
> Best, Simon


Hi Simon,

see below, comment inline.

\version "2.19.36"

%% Set TieUp for certain condition(s) in layout.
%% Written as a wrapper for default-direction, i.e `ly:tie::calc-direction'
%% This is only an example, demonstrating the method.
%% Find your own set of conditions.
%% Directly setting Tie.direction in { a'\breve } while using
%% "Completion_heads_engraver" does not work, because there is no Tie to
%% tweak, before the engraver did his work
#(define (my-tie-up grob)
  (let* ((parent (ly:grob-parent grob X))
 (staff-pos (ly:grob-property parent 'staff-position))
 (dur-log (ly:grob-property parent 'duration-log))
 (stem (ly:grob-object parent 'stem))
 (stem-dir (ly:grob-property stem 'direction)))
(ly:grob-set-property! grob 'direction
  (if (and (= staff-pos -1)
   (= dur-log 0)
   (= stem-dir 1))
   UP
   (ly:tie::calc-direction grob)

\layout {
  \context {
\Voice
\remove "Note_heads_engraver"
\consists "Completion_heads_engraver"
\override Tie.after-line-breaking = #my-tie-up
  }
}

{
  a'\breve
}


HTH,
  Harm

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


Multi-Measure Rest Collision

2016-02-05 Thread carltesta
Hello Everyone,

I'm having a problem with the following code.

\version "2.18.2"

music = {
  
\override MultiMeasureRest.expand-limit = #1
Screen_Shot_2016-02-05_at_12.png

  
   \time 3/4
   \repeat volta 2 {
 \cadenzaOn
 \override NoteHead.style = #'cross
 d'4^\markup { \left-column { \circle 1 } } s2 
 d'4^\markup { \left-column { \circle 2  } } s2 
 d'4^\markup { \left-column { \circle 3  } } s2 
 d'4^\markup { \left-column { \circle 4  } } s2 
 d'4^\markup { \left-column { \circle 5  } } s2 
 d'4^\markup { \left-column { \circle 6  } } s2
 \cadenzaOff
   }
   
 \set Score.skipBars = ##t
 R2.*26
 R2.*13 \bar "|."
 
}

 \score {
   \music
   \layout {}
   \midi {}
 }
 

 
It is producing the attached result. How can I fix this collision that is
happening between the 26 measures of rest and the cadenza section? I want
the multi-measure rests as written and I also don't want to change the
\cadenzaOn section, unless there is a way to get the same look while fixing
the problem via a workaround.

Thanks!
Carl



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Multi-Measure-Rest-Collision-tp186873.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Multi-Measure Rest Collision

2016-02-05 Thread carltesta
Abraham and Thomas,

Both of those solutions work! Thank you very much. How strange that adding
the barline fixes it. Even adding \bar "|" works as well.

Sincerely,
Carl

On Fri, Feb 5, 2016 at 2:05 PM Thomas Morley-2 [via Lilypond] <
ml-node+s1069038n186876...@n5.nabble.com> wrote:

> 2016-02-05 19:26 GMT+01:00 tisimst <[hidden email]
> >:
>
> > Carl,
> >
> > On Fri, Feb 5, 2016 at 10:41 AM, carltesta [via Lilypond] <[hidden
> email]>
> > wrote:
> >>
> >> Hello Everyone,
> >>
> >> I'm having a problem with the following code.
> >>
> >> \version "2.18.2"
> >>
> >> music = {
> >>
> >> \override MultiMeasureRest.expand-limit = #1
> >> Screen_Shot_2016-02-05_at_12.png
> >>\time 3/4
> >>\repeat volta 2 {
> >>  \cadenzaOn
> >>  \override NoteHead.style = #'cross
> >>  d'4^\markup { \left-column { \circle 1 } } s2
> >>  d'4^\markup { \left-column { \circle 2  } } s2
> >>  d'4^\markup { \left-column { \circle 3  } } s2
> >>  d'4^\markup { \left-column { \circle 4  } } s2
> >>  d'4^\markup { \left-column { \circle 5  } } s2
> >>  d'4^\markup { \left-column { \circle 6  } } s2
> >>  \cadenzaOff
> >>}
>
> %% inserting
> \bar ":|."
> %% should do the trick
>
> >>
> >>  \set Score.skipBars = ##t
> >>  R2.*26
> >>  R2.*13 \bar "|."
> >>
> >> }
> >>
> >>  \score {
> >>\music
> >>\layout {}
> >>\midi {}
> >>  }
> >
> >
> > That does indeed look like a nasty bug, but here's a workaround to keep
> you
> > going:
> >
> > {
> >   \override MultiMeasureRest.expand-limit = #1
> >   \time 3/4
> >   \repeat volta 2 {
> > \override NoteHead.style = #'cross
> >   \newSpacingSection
> > \override Score.SpacingSpanner.spacing-increment = #6
> > \scaleDurations 1/2 {
> >   d'4^\markup { \left-column { \circle 1 } }
> > d'4^\markup { \left-column { \circle 2 } }
> > d'4^\markup { \left-column { \circle 3 } }
> > d'4^\markup { \left-column { \circle 4 } }
> > d'4^\markup { \left-column { \circle 5 } }
> > d'4^\markup { \left-column { \circle 6 } }
> >   }
> >   }
> >   \newSpacingSection
> >   \revert Score.SpacingSpanner.spacing-increment
> >   \compressFullBarRests
> >   R2.*26
> >   R2.*13 \bar "|."
> > }
> >
> > HTH,
> > Abraham
> >
> > 
> > View this message in context: Re: Multi-Measure Rest Collision
> > Sent from the User mailing list archive at Nabble.com.
> >
> > ___
> > lilypond-user mailing list
> > [hidden email] 
> > https://lists.gnu.org/mailman/listinfo/lilypond-user
> >
>
> ___
> lilypond-user mailing list
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://lilypond.1069038.n5.nabble.com/Multi-Measure-Rest-Collision-tp186873p186876.html
> To unsubscribe from Multi-Measure Rest Collision, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Multi-Measure-Rest-Collision-tp186873p186877.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Direction of tie from Completion_heads_engraver

2016-02-05 Thread Noeck
Hi Harm,

probably Simon understands your function better, but what do you gain
with it? I tried to use it with \once and it seems like it does not work
like this. And a general upward flip of the ties can be achieved more
easily with \tieUp

\layout {
  \context {
\Voice
\remove "Note_heads_engraver"
\consists "Completion_heads_engraver"

  }
}

{
  \tieUp
  a'\breve
}

Cheers,
Joram

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


Re: Direction of tie from Completion_heads_engraver

2016-02-05 Thread Simon Albrecht

On 05.02.2016 23:25, Noeck wrote:

a general upward flip of the ties can be achieved more
easily with \tieUp


(slaps hand to forehead)
I see, the problem is not the \override, but the \once, or rather the 
moment at which the override is valid. An \override without \once works, 
and even the following works:



\version "2.19.36"

\layout {
  \context {
\Voice
\remove "Note_heads_engraver"
\consists "Completion_heads_engraver"
  }
}

\new Voice <<
  { s1 \once\override Tie.direction = 1 s }
  { a'\breve }
>>


Thanks for this pointer :-)
Simon

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


Re: Direction of tie from Completion_heads_engraver

2016-02-05 Thread Simon Albrecht

On 05.02.2016 22:44, Thomas Morley wrote:

2016-02-04 23:57 GMT+01:00 Simon Albrecht :

Hello,

is there any possibility to tweak direction of a tie generated via the
Completion_heads_engraver? The following tweaks both don’t work:

%%%
\version "2.19.36"
\layout {
   \context {
 \Voice
 \remove "Note_heads_engraver"
 \consists "Completion_heads_engraver"
   }
}
{
   \once\override NoteHead.direction = 1
   \once\override Tie.direction = 1
   a'\breve
}
%%

Best, Simon


Hi Simon,

see below, comment inline.

\version "2.19.36"

%% Set TieUp for certain condition(s) in layout.
%% Written as a wrapper for default-direction, i.e `ly:tie::calc-direction'
%% This is only an example, demonstrating the method.
%% Find your own set of conditions.
%% Directly setting Tie.direction in { a'\breve } while using
%% "Completion_heads_engraver" does not work, because there is no Tie to
%% tweak, before the engraver did his work
#(define (my-tie-up grob)
   (let* ((parent (ly:grob-parent grob X))
  (staff-pos (ly:grob-property parent 'staff-position))
  (dur-log (ly:grob-property parent 'duration-log))
  (stem (ly:grob-object parent 'stem))
  (stem-dir (ly:grob-property stem 'direction)))
 (ly:grob-set-property! grob 'direction
   (if (and (= staff-pos -1)
(= dur-log 0)
(= stem-dir 1))
UP
(ly:tie::calc-direction grob)

\layout {
   \context {
 \Voice
 \remove "Note_heads_engraver"
 \consists "Completion_heads_engraver"
 \override Tie.after-line-breaking = #my-tie-up
   }
}

{
   a'\breve
}


Thanks Harm, that’s an intelligent solution for a global setting. 
Indeed, I only wanted to change it for some particular instances, where 
tie and slur go in opposite directions (see my other post of yesterday), 
so an \override actually suffices, or a \once\override at the right 
‘moment’…


Yours, Simon

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


Re: Direction of tie from Completion_heads_engraver

2016-02-05 Thread Simon Albrecht

On 05.02.2016 23:37, Simon Albrecht wrote:
Thanks Harm, that’s an intelligent solution for a global setting. 
Indeed, I only wanted to change it for some particular instances, 
where tie and slur go in opposite directions (see my other post of 
yesterday)


Which shows that it would have been wise to give a little more context 
to not mislead you… sorry!


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


Re: Direction of tie from Completion_heads_engraver

2016-02-05 Thread David Kastrup
Simon Albrecht  writes:

> Thanks Harm, that’s an intelligent solution for a global
> setting. Indeed, I only wanted to change it for some particular
> instances, where tie and slur go in opposite directions (see my other
> post of yesterday), so an \override actually suffices, or a
> \once\override at the right ‘moment’…

Actually, I looked at the problem and the C code and decided that it was
not doable (I'm no Morley it would appear).  I figured out that a \once
\override "at the right moment" would have worked, but since the whole
point of the Completion_heads_engraver is to _not_ figure out the bar
beginnings (for example, because of writing a canon with non-whole-bar
offset) I thought proposing that would be no help at all.

-- 
David Kastrup

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


Re: Direction of tie from Completion_heads_engraver

2016-02-05 Thread Simon Albrecht

On 05.02.2016 23:45, David Kastrup wrote:

Actually, I looked at the problem and the C code and decided that it was
not doable (I'm no Morley it would appear).  I figured out that a \once
\override "at the right moment" would have worked, but since the whole
point of the Completion_heads_engraver is to_not_  figure out the bar
beginnings (for example, because of writing a canon with non-whole-bar
offset) I thought proposing that would be no help at all.


What works as well is \override and \revert, or \tieUp and \tieNeutral, 
and this is indeed an option. My usecase for the 
Completion_heads_engraver is Renaissance music with the score fitted 
into barlines (and long notes split with ties, an authentical practice 
of the time), while the parts may be notated without barlines. So the 
part would not be bothered by any \tieUp and \tieNeutral overrides.

Still, it _would_ be good to have a more intuitive solution. But it’s OK.

Best, Simon

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


Re: TabStaff arpeggio problem when first thing on line

2016-02-05 Thread banjo bits
Thank you. Works great!

On Fri, Feb 5, 2016 at 3:53 PM, Thomas Morley 
wrote:

> 2016-02-05 17:00 GMT+01:00 banjo bits :
> > Thank you. That worked however the transparent clef is a little too
> wide. Is
> > there an easy way to make the transparent clef a little thinner?
> >
> >
> >
> > On Fri, Feb 5, 2016 at 8:43 AM, Federico Bruni 
> wrote:
> >>
> >> Il giorno ven 5 feb 2016 alle 14:08, banjo bits 
> ha
> >> scritto:
> >>>
> >>> When an arpeggio is the first thing on a line, it doesn't push over and
> >>> overwrites the first bar line. When the same arpeggio is in the middle
> of
> >>> the page it does push over and formats correctly.
> >>>
> >>> Is this a bug or am I doing something wrong here? Is there a work
> around?
> >>
> >>
> >> This happens because you removed the stencil of the clef.
> >> As a workaround, you may make the clef transparent in all TabStaff and
> >> force the stencil removal at the beginning:
> >>
> >> \version "2.19.22"
> >>
> >> \header { title = "Arpeggio Test" }
> >>
> >>
> >> MUSIC = {
> >>  \once\override TabStaff.Clef #'stencil = ##f
> >>  \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp  d'>2\arpeggio |
> >>  \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp  d'>2\arpeggio |
> >>  \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp  d'>2\arpeggio |
> >>  \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp  d'>2\arpeggio |
> >>  \arpeggioArrowUp 2\arpeggio \arpeggioArrowUp  d'>2\arpeggio |
> >> }
> >>
> >> \score
> >> {
> >>  <<
> >>  %\new Staff \MUSIC
> >>  \new TabStaff \with { \omit StringNumber }
> >>  {
> >>\tabFullNotation
> >>\numericTimeSignature
> >>\set TabStaff.tablatureFormat = #fret-number-tablature-format-banjo
> >>\set TabStaff.stringTunings = #banjo-open-g-tuning
> >>
> >>\set Score.proportionalNotationDuration = #(ly:make-moment 1/16)
> >>\override Score.SystemStartBar.collapse-height = #4
> >>%\override TabStaff.Clef #'stencil = ##f
> >>\override TabStaff.Clef #'transparent = ##t
> >>
> >>\numericTimeSignature
> >>
> >>\new TabVoice
> >>{
> >>  \voiceOne
> >>  \stemDown
> >>  \MUSIC
> >>}
> >>  }
> >>  >>
> >> }
>
>
> How about:
>
> \version "2.18.2"
>
> myLayout =
>   \layout {
> \context {
>   \TabStaff
>   \tabFullNotation
>   \numericTimeSignature
>   tablatureFormat = #fret-number-tablature-format-banjo
>   stringTunings = #banjo-open-g-tuning
>   \override Clef.stencil = #point-stencil
> }
> \context {
>   \Score
>   proportionalNotationDuration = #(ly:make-moment 1/16)
>   \override SystemStartBar.collapse-height = #4
>   \override Clef.space-alist.time-signature = #'(minimum-space . 0)
>   \override Clef.space-alist.first-note = #'(minimum-space . 3.0)
>   \override LeftEdge.space-alist.clef = #'(minimum-space . 0.5)
> }
>   }
>
> MUSIC = \repeat unfold 10 { \arpeggioArrowUp 2\arpeggio }
>
> \score {
>   \new TabVoice { \stemDown \MUSIC }
>   \layout { \myLayout }
> }
>
> Cheers,
>   Harm
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: More ponderings on Chordmode

2016-02-05 Thread Colin Campbell

On 16-02-05 01:31 PM, Peter Gentry wrote:

I cannot discover a means to have the chords sound as a guitar in this example 
everything I try ends up as a piano.

Is it possible to assign a midiInstrument to the chordNotes?



   \relative c''
   \new Staff {
 \set Staff.midiInstrument = "acoustic guitar (nylon)"
\transpose c b {




As a bit of a SWAG, does your soundfont actually have a definition for 
"acoustic guitar (nylon) "? If not, it will default to some sort of 
piano sound. Also, having been bitted by this myself, is the soundfont 
loaded in your MIDI device actually the one you think it is?


Just my CAD .02, Peter!

Cheers,
Colin

--
The firmest fayth is found in fewest woordes.
 -Edward Dyer, courtier and poet (c. 1540-1607)

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