Re: Bar lines at far left of single staff systens.

2018-06-04 Thread dfro

On 6/4/18 11:34 PM, David Wright wrote:

On Mon 04 Jun 2018 at 22:38:35 (-0400), dfro wrote:

Is there a setting to get bar lines to show on the far left side of
single staff systems? I haven't been able to find a way to do this,
if it is possible.

Put the staff in a grand staff thus:

   \new GrandStaff <<
 \new Staff <<

and add whichever of these you find you require:

\layout {
   \context {
 \Score
 \override SystemStartBar.collapse-height = #1
   }
   \context {
 \GrandStaff
 \override SystemStartBracket.collapse-height = #1
   }
}

You can do the same with ChoirStaff, and using
SystemStartBracket/Brace/Square as appropriate.

Cheers,
David.


Thank you David!

This method works well, also. Is there a way to make the first measure 
with no bar line on the left, and then have all subsequent staff systems 
engrave the left most bar lines?


Peace,

David


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


Re: Bar lines at far left of single staff systens.

2018-06-04 Thread dfro

On 6/4/18 10:52 PM, Karlin High wrote:

On 6/4/2018 9:38 PM, dfro wrote:
Is there a setting to get bar lines to show on the far left side of 
single staff systems?

That sounds similar to this thread.

From the example there, you can adjust the SystemStartBar.thickness 
value to fit your needs.


For help beyond that, you will probably have to further explain your 
project or provide an image of what you want.


Karlin,

Thank you for the information! That works for me. A line thickness of 2
looks like the other bar lines.

Is there a way to dynamically unset the System_start_delimiter_engraver
in the music block so that the first staff system has no bar line, and
then set it so that all the remaining staff systems begin with the bar
line? My noob experiments have not worked. Below is the example code I
am using.

I am making jazz leadsheets (melody and chords) where the clef is
written once at the beginning, and chordsheets where no clef is written.
I see this practice of drawing the leftmost bar line in many of my jazz
and percussion music books. That has also been my practice most of the
time when writing single staff music by hand.

Thanks again for the help,

David


%Start of code

\version "2.18.2"

\new Staff \with {
  \consists "System_start_delimiter_engraver"
  systemStartDelimiter = #'SystemStartBar
  \override SystemStartBar.collapse-height = 0
  \override SystemStartBar.thickness = 2
}
{
  c'1 \break % I would like no bar line at far left.
  c'1 \break % I would like a bar line at far left from this line on.
  c'1
}

%End of code


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


Re: Bar lines at far left of single staff systens.

2018-06-04 Thread David Wright
On Mon 04 Jun 2018 at 22:38:35 (-0400), dfro wrote:
> Is there a setting to get bar lines to show on the far left side of
> single staff systems? I haven't been able to find a way to do this,
> if it is possible.

Put the staff in a grand staff thus:

  \new GrandStaff <<
\new Staff <<

and add whichever of these you find you require:

\layout {
  \context {
\Score
\override SystemStartBar.collapse-height = #1
  }
  \context {
\GrandStaff
\override SystemStartBracket.collapse-height = #1
  }
}

You can do the same with ChoirStaff, and using
SystemStartBracket/Brace/Square as appropriate.

Cheers,
David.

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


Re: Bar lines at far left of single staff systens.

2018-06-04 Thread Karlin High

On 6/4/2018 9:38 PM, dfro wrote:
Is there a setting to get bar lines to show on the far left side of 
single staff systems?

That sounds similar to this thread.

From the example there, you can adjust the SystemStartBar.thickness 
value to fit your needs.


For help beyond that, you will probably have to further explain your 
project or provide an image of what you want.

--
Karlin High
Missouri, USA

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


Bar lines at far left of single staff systens.

2018-06-04 Thread dfro
Is there a setting to get bar lines to show on the far left side of 
single staff systems? I haven't been able to find a way to do this, if 
it is possible.


Thanks,

David


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


Re: Environmental Path Variable

2018-06-04 Thread Aaron Hill

On 2018-06-04 17:39, Aaron Hill wrote:

From a normal cmd.exe prompt, you can search for the executable with:

  dir /r /s /b c:lilypond.exe


Sorry, just realized I had an `/r` on there that is not needed.

-- Aaron Hill

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


Re: Environmental Path Variable

2018-06-04 Thread Aaron Hill

On 2018-06-04 17:01, NagyMusic wrote:
I have Lilypond 2.19.80 installed on Windows, and it works just fine 
when
used with Frescobaldi. I'm working on a project for which I need to be 
able
to make Lilypond callable from my command line, which presently, I 
can't
seem to achieve. For instance, when I enter lilypond --version, I get 
this

message:

'lilypond' is not recognized as an internal or external command,
operable program or batch file.

I included the Lilypond executable system variable path to SYSTEM 
variable

"path": C:\User\nagym\Program Files (x86)\LilyPond\usr\bin

I also tried including the same path to the USER variable "path" but 
with

no luck.

Note that the Frescobaldi, which once again, works compiles .ly files
flawlessly has this path as default:
C:\User\nagym\Program Files (x86)\LilyPond\usr\bin\lilypond-windows.exe


Those are both very unusual paths.  Are you sure that is where LilyPond 
is installed?


From a normal cmd.exe prompt, you can search for the executable with:

  dir /r /s /b c:lilypond.exe

Or from a PowerShell prompt, you can do the equivalent:

  Get-ChildItem -Recurse -Path C: -Filter lilypond.exe

NOTE: For both of these, replace `C:` with a different drive letter as 
appropriate.


-- Aaron Hill

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


Environmental Path Variable

2018-06-04 Thread NagyMusic
I have Lilypond 2.19.80 installed on Windows, and it works just fine when
used with Frescobaldi. I'm working on a project for which I need to be able
to make Lilypond callable from my command line, which presently, I can't
seem to achieve. For instance, when I enter lilypond --version, I get this
message:

'lilypond' is not recognized as an internal or external command,
operable program or batch file.

I included the Lilypond executable system variable path to SYSTEM variable
"path": C:\User\nagym\Program Files (x86)\LilyPond\usr\bin

I also tried including the same path to the USER variable "path" but with
no luck.

Note that the Frescobaldi, which once again, works compiles .ly files
flawlessly has this path as default:
C:\User\nagym\Program Files (x86)\LilyPond\usr\bin\lilypond-windows.exe

I welcome your advice on this issue. I admit that this all seems a little
bit unusual since I used to be able to make Lilypond callable via terminal
before on the same device. Perhaps I should reinstall Lilypond?

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


Re: Batch-apply tremolo markings? (Frescobaldi)

2018-06-04 Thread Karlin High

On 6/4/2018 4:41 PM, Aaron Hill wrote:

And Cunningham's Law wins again!


I was aware of this concept, but not that it had a name.

"The best way to get the right answer on the internet is not to ask a 
question; but to post the wrong answer."

--
Karlin High
Missouri, USA

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


Re: Batch-apply tremolo markings? (Frescobaldi)

2018-06-04 Thread Thomas Morley
2018-06-04 23:41 GMT+02:00 Aaron Hill :
> On 2018-06-04 14:16, Thomas Morley wrote:

> Would it be worth having LilyPond emit a warning when there are hidden
> articulations?  Especially since you make it sound like there could be
> potential problems with saying `` as opposed to `:16` beyond
> that the tremolos do not render.

I don't think it's a problem having the tremolo in the 'articulations
of notes in a chord. It is simply dead code and not doing anything (at
least at the moment). This is more a matter of code-hygiene.
I'm more concerned about having the tremolo in the chord's
'articulations then in the 'elements.
I vaguely remember some problem with this, can't put my hands on it
right now, though.

Best,
  Harm

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


Re: Batch-apply tremolo markings? (Frescobaldi)

2018-06-04 Thread Aaron Hill

On 2018-06-04 14:16, Thomas Morley wrote:

This will add the tremolo to each note of a chord and to the
'articulations of said EventChord, whereas by default it should sit in
the 'elements of the chord and not been added to the notes.
Although it seems to work in the minimal I'm not sure it will always
do (without undesired side-effects).

music-map is not the right tool anyway, it will always iterate deeper.


And Cunningham's Law wins again!  Thanks for the correction, Harm.

To test it, I did a \displayMusic on both my version and the original 
function and found that the NoteEvents within the EventChord did indeed 
have the tremolo articulation.


Would it be worth having LilyPond emit a warning when there are hidden 
articulations?  Especially since you make it sound like there could be 
potential problems with saying `` as opposed to `:16` 
beyond that the tremolos do not render.


-- Aaron Hill

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


Re: Batch-apply tremolo markings? (Frescobaldi)

2018-06-04 Thread Thomas Morley
2018-06-04 22:55 GMT+02:00 Aaron Hill :
> On 2018-06-04 12:09, Ben wrote:
>>
>> Wow. Um, this is awesome. Yes it works beautifully. How difficult
>> would it be to allow this function to accept chords? Or would that
>> simply be best served as creating another function like \addTremChords
>> or something?
>
>
> Not that hard.  You just need to accept both NoteEvent and EventChord:
>
> 
>   \version "2.19.81"
>   addTremolos =
>   #(define-music-function (number music) (integer? ly:music?)
>  (music-map
>   (lambda (mus)
> (if (or (eq? 'NoteEvent (ly:music-property mus 'name))
> (eq? 'EventChord (ly:music-property mus 'name)))
> (let ((art (ly:music-property mus 'articulations '(
>   (ly:music-set-property!
>mus
>'articulations
>(cons
> (make-music
>  'TremoloEvent
>  'tremolo-type number)
> art
> mus)
>   music))
>   \addTremolos 16 { b' r a'  }
> 
>
> -- Aaron Hill

This will add the tremolo to each note of a chord and to the
'articulations of said EventChord, whereas by default it should sit in
the 'elements of the chord and not been added to the notes.
Although it seems to work in the minimal I'm not sure it will always
do (without undesired side-effects).

music-map is not the right tool anyway, it will always iterate deeper.
I'd prefer map-some-music and come up with the code below, build after
`addStacc'. I think it is originally coded by David Kastrup, can't
find it right now , though.

\version "2.19.81"

#(define (make-tremolo x)
   (make-music 'TremoloEvent
   'tremolo-type x))

#(define (add-tremolo x)
 (lambda (m)
   (case (ly:music-property m 'name)
 ((NoteEvent) (set! (ly:music-property m 'articulations)
  (append (ly:music-property m 'articulations)
 (list (make-tremolo x
   m)
 ((EventChord)(set! (ly:music-property m 'elements)
  (append (ly:music-property m 'elements)
 (list (make-tremolo x
   m)
 (else #f

addTrem = #(define-music-function (int music)
 (index? ly:music?)
   (map-some-music (add-tremolo int) music))

\addTrem 32 {
  c'1
  R1
  1
}


Cheers,
  Harm

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


Re: Batch-apply tremolo markings? (Frescobaldi)

2018-06-04 Thread Ben

On 6/4/2018 4:55 PM, Aaron Hill wrote:

On 2018-06-04 12:09, Ben wrote:

Wow. Um, this is awesome. Yes it works beautifully. How difficult
would it be to allow this function to accept chords? Or would that
simply be best served as creating another function like \addTremChords
or something?


Not that hard.  You just need to accept both NoteEvent and EventChord:


  \version "2.19.81"
  addTremolos =
  #(define-music-function (number music) (integer? ly:music?)
 (music-map
  (lambda (mus)
    (if (or (eq? 'NoteEvent (ly:music-property mus 'name))
    (eq? 'EventChord (ly:music-property mus 'name)))
    (let ((art (ly:music-property mus 'articulations '(
  (ly:music-set-property!
   mus
   'articulations
   (cons
    (make-music
 'TremoloEvent
 'tremolo-type number)
    art
    mus)
  music))
  \addTremolos 16 { b' r a'  }


-- Aaron Hill


Thank you guys so much. This makes things so much easier on the eyes in 
input files for those high-density tremolo scores! Much appreciated!
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: align markup text to right side of measure

2018-06-04 Thread Aaron Hill

On 2018-06-04 12:37, Simon Albrecht wrote:

On 04.06.2018 21:22, Reilly Farrell wrote:
I'm looking for a way to control the alignment of markup text.  
Specifically, I'm looking to align "D.C. al Fine" to the very right 
side of a measure, rather than having it float above a given note.


That’s simple, if you use a RehearsalMark – which is semantically no
bad idea anyway:

\version "2.19.80"
{
  1
  \tweak self-alignment-X -1 \mark\markup \normal-text\italic "D. C. al 
Fine"

  1
}


Just for the sake of readability, you might want to use #LEFT, #CENTER, 
or #RIGHT when setting the self-alignment-X property:



  \version "2.19.80"
  {
1
\tweak self-alignment-X #LEFT
\mark \markup \small "LEFT"
4 4 4 4
\tweak self-alignment-X #CENTER
\mark \markup \small "CENTER"
4 4 4 4
\tweak self-alignment-X #RIGHT
\mark \markup \small "RIGHT"
1
  }


That is a whole lot easier than trying to remember whether 1 or -1 means 
left or right.


-- Aaron Hill

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


Re: Batch-apply tremolo markings? (Frescobaldi)

2018-06-04 Thread Aaron Hill

On 2018-06-04 12:09, Ben wrote:

Wow. Um, this is awesome. Yes it works beautifully. How difficult
would it be to allow this function to accept chords? Or would that
simply be best served as creating another function like \addTremChords
or something?


Not that hard.  You just need to accept both NoteEvent and EventChord:


  \version "2.19.81"
  addTremolos =
  #(define-music-function (number music) (integer? ly:music?)
 (music-map
  (lambda (mus)
(if (or (eq? 'NoteEvent (ly:music-property mus 'name))
(eq? 'EventChord (ly:music-property mus 'name)))
(let ((art (ly:music-property mus 'articulations '(
  (ly:music-set-property!
   mus
   'articulations
   (cons
(make-music
 'TremoloEvent
 'tremolo-type number)
art
mus)
  music))
  \addTremolos 16 { b' r a'  }


-- Aaron Hill

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


Re: \bookpart mystery

2018-06-04 Thread Aaron Hill

On 2018-06-04 08:54, David Sumbler wrote:

In my efforts (largely successful) to find a way easily to control
conditional compilation, I came across this apparent anomaly.

The following two short examples work as one might expect:

%
\book {
  \score { g }
}
%

%
var =
\book {
  \score { g }
}

\var
%

Adding a \bookpart to the first also works as expected:

%
\book {
  \bookpart {
\score { g }
  }
}
%

But putting this into a variable thus:

%
var =
\book {
  \bookpart {
\score { g }
  }
}

\var
%

causes parsing errors.

For my better understanding of how LilyPond works, can somebody explain
to me why this happens?

David


I tried a few more permutations and found you can do this:


  \version "2.19.81"
  varOne = \bookpart { \score { g } }
  varTwo = \book { \varOne }
  \varTwo


But going back to your original code, given the output from lilypond...


GNU LilyPond 2.19.81
Processing `bookpartvar.ly'
Parsing.../usr/local/lilypond/usr/share/lilypond/current/scm/lily-library.scm:243:5:
 In procedure ly:book-process in expression (process-procedure book 
paper ...):

/usr/local/lilypond/usr/share/lilypond/current/scm/lily-library.scm:243:5:
 Wrong type (expecting real number): #


...here are the lines leading up to and including 243 from 
lily-library.scm:



  (define (print-book-with book process-procedure)
(let* ((paper (ly:parser-lookup '$defaultpaper))
   (layout (ly:parser-lookup '$defaultlayout))
   (outfile-name (get-outfile-name book)))
  (process-procedure book paper layout outfile-name)))


It would seem there is a problem with the so-called "default paper".  
That led me to try this:



  \version "2.19.81"
  var = \book { \bookpart { \paper {} \score { g } } }
  \var


And that compiles.

-- Aaron Hill

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


Re: solve tie across voices

2018-06-04 Thread Aaron Hill

On 2018-06-04 06:33, Ursus wrote:
It seems the most simple way to get what I need is continuing the first 
and
second voice for a bar filling the first voice with the notes I need 
like

thus and placing an invisible rest the second voice.

r2 r4 << { b~ | b8 b c d e f4.~ |  f4. e8 r2 | } \\ { f4~ | f2 r | s1 
|} >>


Although this can get a bit wonky with stemdirections for the upper 
voice,
it seems the invissible rest does force the stems up (even with a 
\stemdown

added)

Not quite satisfied yet


The implicit \voiceOne and \voiceTwo will change stem direction 
defaults.  You just need to reset that by explicitly going back to a 
single voice:



  \version "2.19.81"
  \relative b' {
r2 r4
<< { b4~ | b8 b c d e f4.~ | \oneVoice f4. }
\\ { f,4~ | f2 r | s4. } >>
e'8 r2 |
  }


NOTE: I've included a little more markup here so the example is both 
complete and minimal.


-- Aaron Hill

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


Re: align markup text to right side of measure

2018-06-04 Thread Simon Albrecht

On 04.06.2018 21:22, Reilly Farrell wrote:
I'm looking for a way to control the alignment of markup text.  
Specifically, I'm looking to align "D.C. al Fine" to the very right 
side of a measure, rather than having it float above a given note.


That’s simple, if you use a RehearsalMark – which is semantically no bad 
idea anyway:


\version "2.19.80"
{
  1
  \tweak self-alignment-X -1 \mark\markup \normal-text\italic "D. C. al 
Fine"

  1
}

Best, Simon

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


align markup text to right side of measure

2018-06-04 Thread Reilly Farrell
I'm looking for a way to control the alignment of markup text.
Specifically, I'm looking to align "D.C. al Fine" to the very right side of
a measure, rather than having it float above a given note.  Here's a
snippet of the markup text in its current form:

c4 c4^\markup{ \italic { D.C. al Fine } } c4 c4

Any guidance on this issue is appreciated.  Thank you!
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Batch-apply tremolo markings? (Frescobaldi)

2018-06-04 Thread Ben

On 6/4/2018 2:44 PM, Malte Meyn wrote:



Am 04.06.2018 um 19:46 schrieb Ben:
but I wonder if it's possible to write a simple function to basically 
'turn on add :32 tremolo to notes until turned off' - that would keep 
the code much cleaner, although I know it's somewhat limited in it's 
usability. But, just brainstorming here.


How about the following code? Works only for single notes, not for 
chords; but that could be changed.


\version "2.19.81"

addTremolos =
#(define-music-function (number music) (integer? ly:music?)
   (music-map
    (lambda (mus)
  (if (eq? 'NoteEvent
   (ly:music-property mus 'name))
  (let ((art (ly:music-property mus 'articulations '(
    (ly:music-set-property!
 mus
 'articulations
 (cons
  (make-music
   'TremoloEvent
   'tremolo-type number)
  art
  mus)
    music))


\addTremolos 16 {
  b r a
}



Wow. Um, this is awesome. Yes it works beautifully. How difficult would 
it be to allow this function to accept chords? Or would that simply be 
best served as creating another function like \addTremChords or something?


I use a lot of tremolo in double-stop strings for these recent projects, 
so I'm curious :)


Thank you so much! This is so cool.


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


Re: Batch-apply tremolo markings? (Frescobaldi)

2018-06-04 Thread Malte Meyn




Am 04.06.2018 um 19:46 schrieb Ben:
but I wonder if it's possible to write a simple function to basically 
'turn on add :32 tremolo to notes until turned off' - that would keep 
the code much cleaner, although I know it's somewhat limited in it's 
usability. But, just brainstorming here.


How about the following code? Works only for single notes, not for 
chords; but that could be changed.


\version "2.19.81"

addTremolos =
#(define-music-function (number music) (integer? ly:music?)
   (music-map
(lambda (mus)
  (if (eq? 'NoteEvent
   (ly:music-property mus 'name))
  (let ((art (ly:music-property mus 'articulations '(
(ly:music-set-property!
 mus
 'articulations
 (cons
  (make-music
   'TremoloEvent
   'tremolo-type number)
  art
  mus)
music))


\addTremolos 16 {
  b r a
}



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


Re: Batch-apply tremolo markings? (Frescobaldi)

2018-06-04 Thread Ben

On 6/4/2018 1:37 PM, Ben wrote:

On 6/4/2018 1:32 PM, Lukas-Fabian Moser wrote:



Ben mailto:soundsfromso...@gmail.com>> 
schrieb am Mo., 4. Juni 2018, 19:16:


On 6/4/2018 12:58 PM, Lukas-Fabian Moser wrote:



Ben mailto:soundsfromso...@gmail.com>> schrieb am Mo., 4. Juni
2018, 18:27:

Hello,

I have been trying to find a quick way to 'paint' an
articulation but have not been successful. Frescobaldi has a
ton of these markings built-in where you can just select
some of your score, select an articulation, and then it's
batch-applied to all notes in one go.

I would like to apply a tremolo marking to a bunch of notes
quickly in a similar way.

At the moment, I have to copy and paste the ":32" to each
note manually (since Frescobaldi does not feature this
marking as a Quick Insert at the moment).

Any chance someone could help me find this solution? Thank you!

{
   c4 d e f
   c4:32 d:32 e:32 f:32
}


Can't test it right now: Maybe let Frescobaldi add some suitable
articulation and then search? (Select appropriate
section of source for this.)

Lukas




Hmm, I don't think that would be possible. Search and replace is
not going to attach a marking to the note names, unless the notes
are always the same in the search/fields, right? I'd like to be
able to select any pitch names in any input file and just 'attach
marking' to it.

In the same way Frescobaldi can attach an accent to 'selected
note names' in an input file, I was hoping I could create one for
'add tremolo marking to selected note names' in the file.

I think the white-space between selected pitches in the input
file would mess up the basic search and replace function in this
case.

Do you agree?

Sorry, I was not clear enough. I meant: use Frescobaldi to add, for 
instance, -> to all the notes, and then turn -> into :32 by s


But maybe I am wrong, can't test it right now.

Lukas



Here's an example. I just created a workaround like you suggested, and 
it worked perfectly. I added a bunch of trill markings, and then 
replaced them with ":32" and it was great. :) Easy peasy.


However, it got me thinking: from an aesthetic viewpoint, obviously a 
lot of manual tremolos is jarring and overload on the senses. I did this 
example below as a concept to show the worst-case...I know it's crazy 
looking.


but I wonder if it's possible to write a simple function to basically 
'turn on add :32 tremolo to notes until turned off' - that would keep 
the code much cleaner, although I know it's somewhat limited in it's 
usability. But, just brainstorming here.


Thanks for any feedback/help.
___

Instead of:

{

c4:32 d:32 e:32 f:32 r d4:32 g:32 c:32 c4:32 d:32 e:32 f:32 r d4:32 g:32 
c:32 c4:32 d:32 e:32 f:32 r d4:32 g:32 c:32 c4:32 d:32 e:32 f:32 r d4:32 
g:32 c:32 c4:32 d:32 e:32 f:32 r d4:32 g:32 c:32 c4:32 d:32 e:32 f:32 r 
d4:32 g:32 c:32 c4:32 d:32 e:32 f:32 r d4:32 g:32 c:32 c4:32 d:32 e:32 
f:32 r d4:32 g:32 c:32 c4:32 d:32 e:32 f:32 r d4:32 g:32 c:32 c4:32 d:32 
e:32 f:32 r d4:32 g:32 c:32 c4:32 d:32 e:32 f:32 r d4:32 g:32 c:32 c4:32 
d:32 e:32 f:32 r d4:32 g:32 c:32 c4:32 d:32 e:32 f:32 r d4:32 g:32 c:32 
c4:32 d:32 e:32 f:32 r d4:32 g:32 c:32 c4:32 d:32 e:32 f:32 r d4:32 g:32 
c:32 c4:32 d:32 e:32 f:32 r d4:32 g:32 c:32 c4:32 d:32 e:32 f:32 r d4:32 
g:32 c:32 c4:32 d:32 e:32 f:32 r d4:32 g:32 c:32 c4:32 d:32 e:32 f:32 r 
d4:32 g:32 c:32 c4:32 d:32 e:32 f:32 r d4:32 g:32 c:32 c4:32 d:32 e:32 
f:32 r d4:32 g:32 c:32

}

have something like:
___

\alltrem = :32 ...etc

  % is there a way to somehow 'apply/suffix' on all notes tremolo = :32 
until \alltremoff   (to make it more neat/clean) i.e.


 \alltrem
c4 d e f r d4 g c c4 d e f r d4 g c c4 d e f r d4 g c c4 d e f r d4 g c 
c4 d e f r d4 g c c4 d e f r d4 g c c4 d e f r d4 g c c4 d e f r d4 g c 
c4 d e f r d4 g c c4 d e f r d4 g c c4 d e f r d4 g c c4 d e f r d4 g c 
c4 d e f r d4 g c c4 d e f r d4 g c c4 d e f r d4 g c c4 d e f r d4 g c 
c4 d e f r d4 g c c4 d e f r d4 g c c4 d e f r d4 g c c4 d e f r d4 g c 
c4 d e f r d4 g c

\alltremoff


Thoughts?

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


Re: Batch-apply tremolo markings? (Frescobaldi)

2018-06-04 Thread Ben

On 6/4/2018 1:32 PM, Lukas-Fabian Moser wrote:



Ben mailto:soundsfromso...@gmail.com>> 
schrieb am Mo., 4. Juni 2018, 19:16:


On 6/4/2018 12:58 PM, Lukas-Fabian Moser wrote:



Ben mailto:soundsfromso...@gmail.com>> schrieb am Mo., 4. Juni 2018,
18:27:

Hello,

I have been trying to find a quick way to 'paint' an
articulation but have not been successful. Frescobaldi has a
ton of these markings built-in where you can just select some
of your score, select an articulation, and then it's
batch-applied to all notes in one go.

I would like to apply a tremolo marking to a bunch of notes
quickly in a similar way.

At the moment, I have to copy and paste the ":32" to each
note manually (since Frescobaldi does not feature this
marking as a Quick Insert at the moment).

Any chance someone could help me find this solution? Thank you!

{
   c4 d e f
   c4:32 d:32 e:32 f:32
}


Can't test it right now: Maybe let Frescobaldi add some suitable
articulation and then search? (Select appropriate section
of source for this.)

Lukas




Hmm, I don't think that would be possible. Search and replace is
not going to attach a marking to the note names, unless the notes
are always the same in the search/fields, right? I'd like to be
able to select any pitch names in any input file and just 'attach
marking' to it.

In the same way Frescobaldi can attach an accent to 'selected note
names' in an input file, I was hoping I could create one for 'add
tremolo marking to selected note names' in the file.

I think the white-space between selected pitches in the input file
would mess up the basic search and replace function in this case.

Do you agree?

Sorry, I was not clear enough. I meant: use Frescobaldi to add, for 
instance, -> to all the notes, and then turn -> into :32 by s


But maybe I am wrong, can't test it right now.

Lukas





Oh oh, I see now :) I guess that would technically work yes, with that 
extra step. I could replace with a built-in articulation, and then swap 
it out for a search/replace via selection - never even thought of that. 
Thank you for that workaround!


Hmm I wonder, is it possible with Python or Scheme without the extra 
step? Just curious.


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


Re: Batch-apply tremolo markings? (Frescobaldi)

2018-06-04 Thread Lukas-Fabian Moser
Ben  schrieb am Mo., 4. Juni 2018, 19:16:

> On 6/4/2018 12:58 PM, Lukas-Fabian Moser wrote:
>
>
>
> Ben  schrieb am Mo., 4. Juni 2018, 18:27:
>
>> Hello,
>>
>> I have been trying to find a quick way to 'paint' an articulation but
>> have not been successful. Frescobaldi has a ton of these markings built-in
>> where you can just select some of your score, select an articulation, and
>> then it's batch-applied to all notes in one go.
>>
>> I would like to apply a tremolo marking to a bunch of notes quickly in a
>> similar way.
>>
>> At the moment, I have to copy and paste the ":32" to each note manually
>> (since Frescobaldi does not feature this marking as a Quick Insert at the
>> moment).
>>
>> Any chance someone could help me find this solution? Thank you!
>> {
>>c4 d e f
>>c4:32 d:32 e:32 f:32
>> }
>>
>
> Can't test it right now: Maybe let Frescobaldi add some suitable
> articulation and then search? (Select appropriate section of source
> for this.)
>
> Lukas
>
>
>>
> Hmm, I don't think that would be possible. Search and replace is not going
> to attach a marking to the note names, unless the notes are always the same
> in the search/fields, right? I'd like to be able to select any pitch names
> in any input file and just 'attach marking' to it.
>
> In the same way Frescobaldi can attach an accent to 'selected note names'
> in an input file, I was hoping I could create one for 'add tremolo marking
> to selected note names' in the file.
>
> I think the white-space between selected pitches in the input file would
> mess up the basic search and replace function in this case.
>
> Do you agree?
>

Sorry, I was not clear enough. I meant: use Frescobaldi to add, for
instance, -> to all the notes, and then turn -> into :32 by s

But maybe I am wrong, can't test it right now.

Lukas



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


Re: Batch-apply tremolo markings? (Frescobaldi)

2018-06-04 Thread Ben

On 6/4/2018 12:58 PM, Lukas-Fabian Moser wrote:



Ben mailto:soundsfromso...@gmail.com>> 
schrieb am Mo., 4. Juni 2018, 18:27:


Hello,

I have been trying to find a quick way to 'paint' an articulation
but have not been successful. Frescobaldi has a ton of these
markings built-in where you can just select some of your score,
select an articulation, and then it's batch-applied to all notes
in one go.

I would like to apply a tremolo marking to a bunch of notes
quickly in a similar way.

At the moment, I have to copy and paste the ":32" to each note
manually (since Frescobaldi does not feature this marking as a
Quick Insert at the moment).

Any chance someone could help me find this solution? Thank you!

{
   c4 d e f
   c4:32 d:32 e:32 f:32
}


Can't test it right now: Maybe let Frescobaldi add some suitable 
articulation and then search? (Select appropriate section of 
source for this.)


Lukas




Hmm, I don't think that would be possible. Search and replace is not 
going to attach a marking to the note names, unless the notes are always 
the same in the search/fields, right? I'd like to be able to select any 
pitch names in any input file and just 'attach marking' to it.


In the same way Frescobaldi can attach an accent to 'selected note 
names' in an input file, I was hoping I could create one for 'add 
tremolo marking to selected note names' in the file.


I think the white-space between selected pitches in the input file would 
mess up the basic search and replace function in this case.


Do you agree?

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


Re: Batch-apply tremolo markings? (Frescobaldi)

2018-06-04 Thread Lukas-Fabian Moser
Ben  schrieb am Mo., 4. Juni 2018, 18:27:

> Hello,
>
> I have been trying to find a quick way to 'paint' an articulation but have
> not been successful. Frescobaldi has a ton of these markings built-in where
> you can just select some of your score, select an articulation, and then
> it's batch-applied to all notes in one go.
>
> I would like to apply a tremolo marking to a bunch of notes quickly in a
> similar way.
>
> At the moment, I have to copy and paste the ":32" to each note manually
> (since Frescobaldi does not feature this marking as a Quick Insert at the
> moment).
>
> Any chance someone could help me find this solution? Thank you!
> {
>c4 d e f
>c4:32 d:32 e:32 f:32
> }
>

Can't test it right now: Maybe let Frescobaldi add some suitable
articulation and then search? (Select appropriate section of source
for this.)

Lukas


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


Batch-apply tremolo markings? (Frescobaldi)

2018-06-04 Thread Ben

Hello,

I have been trying to find a quick way to 'paint' an articulation but 
have not been successful. Frescobaldi has a ton of these markings 
built-in where you can just select some of your score, select an 
articulation, and then it's batch-applied to all notes in one go.


I would like to apply a tremolo marking to a bunch of notes quickly in a 
similar way.


At the moment, I have to copy and paste the ":32" to each note manually 
(since Frescobaldi does not feature this marking as a Quick Insert at 
the moment).


Any chance someone could help me find this solution? Thank you!

{
   c4 d e f
   c4:32 d:32 e:32 f:32
}


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


\bookpart mystery

2018-06-04 Thread David Sumbler
In my efforts (largely successful) to find a way easily to control
conditional compilation, I came across this apparent anomaly.

The following two short examples work as one might expect:

%
\book {
  \score { g }
}
%

%
var =
\book {
  \score { g }
}

\var
%

Adding a \bookpart to the first also works as expected:

%
\book {
  \bookpart {
\score { g }
  }
}
%

But putting this into a variable thus:

%
var =
\book {
  \bookpart {
\score { g }
  }
}

\var
%

causes parsing errors.

For my better understanding of how LilyPond works, can somebody explain
to me why this happens?

David

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


Re: solve tie across voices

2018-06-04 Thread Robin Bannister

Ursus wrote:


Not quite satisfied yet


I am not sure I understand what you need,
but to get the last bar looking like
http://lilypond.1069038.n5.nabble.com/file/t4044/Image_001.png
I would
 - put the stem-down things in the second voice:| f4. e8
 - let the first voice tie to just a notehead:~ | \hide Stem f4.
   - LilyPond will merge these identical f4. noteheads


Cheers,
Robin


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


Re: solve tie across voices

2018-06-04 Thread Ursus
It seems the most simple way to get what I need is continuing the first and
second voice for a bar filling the first voice with the notes I need like
thus and placing an invisible rest the second voice.

r2 r4 << { b~ | b8 b c d e f4.~ |  f4. e8 r2 | } \\ { f4~ | f2 r | s1 |} >> 

Although this can get a bit wonky with stemdirections for the upper voice,
it seems the invissible rest does force the stems up (even with a \stemdown
added)

Not quite satisfied yet



--
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: solve tie across voices

2018-06-04 Thread Ben

On 6/4/2018 8:38 AM, Ursus wrote:


I have tried to solve the final tie on the f but failed. I tried
r2 r4 << { b~ | b8 b c d e f4.~ | } \\ { f4~ | f2 r | } >> f4. e8 r2 |
But the tie got lost, probably because the <<\\>> construct creates a new
and separate voice. I looked into creating a tie across voices but still
haven't found a working solution. Now I'm sure this must be pretty simple.
Would the solution work similarly with slurs?





Hello,

If you just want a down and dirty tie between voices, then perhaps this 
snippet could help you depending on how many times this sort of 
situation happens in your project:


http://lsr.di.unimi.it/LSR/Item?id=8

Also, maybe this could help as well.

http://lilypond.1069038.n5.nabble.com/Ties-between-voices-td206339.html


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


solve tie across voices

2018-06-04 Thread Ursus
 
I have tried to solve the final tie on the f but failed. I tried
r2 r4 << { b~ | b8 b c d e f4.~ | } \\ { f4~ | f2 r | } >> f4. e8 r2 |
But the tie got lost, probably because the <<\\>> construct creates a new
and separate voice. I looked into creating a tie across voices but still
haven't found a working solution. Now I'm sure this must be pretty simple.
Would the solution work similarly with slurs?



--
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