Re: Edition Engraver tweak error

2018-03-06 Thread Craig Dabelstein
Hi Kieren,

Well obviously I couldn't use your suggestion because I'm a total idiot!

Thanks for your help. Much appreciated.

All the best,

Craig

On Wed., 7 Mar. 2018, 8:43 am Kieren MacMillan, <
kieren_macmil...@sympatico.ca> wrote:

> Hi Craig,
>
> > \editionMod global 57 2/4 wagner.trauermusik.fluteI.Voice -\tweak
> minimum-length #5 \<
>
> Why not
>
>   \editionMod global 57 2/4 wagner.trauermusik.fluteI.Voice \once
> \override Hairpin.minimum-length = #5
>
> ??
>
> Hope that helps!
> Kieren.
> 
>
> Kieren MacMillan, composer
> ‣ website: www.kierenmacmillan.info
> ‣ email: i...@kierenmacmillan.info
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


edition-engraver commit error (was Re: Edition Engraver tweak error)

2018-03-06 Thread Jan-Peter Voigt

Hi Craig,

Kieren already answered, but I want to assure that you where not caught 
by I mistake I made on Monday: There is a commit that ought to be in its 
own branch for development that accidentally disabled overrides. So 
please do switch to the previous commit (Feb 1 "issue #19") if this is 
the case.


I am sorry for any inconvenience for any user of the edition-engraver!

I repaired the repository, so any users that did not pull between Monday 
5. Mar 21h CET and 7. Mar 8:30h CET should not be affected by this mistake.


Best
Jan-Peter



Am 06.03.2018 um 23:41 schrieb Craig Dabelstein:

Hi all,

When trying to apply a tweak to a hairpin with the EE I get an 
"unterminated crescendo" error. If I leave out the crescendo \< from the 
EE (but include it in the content file which is where it thought it 
should belong) it doesn't work at all. Is there a different way I should 
be trying to do this?


\editionMod global 57 2/4 wagner.trauermusik.fluteI.Voice -\tweak 
minimum-length #5 \<


Thanks in advance,

Craig


--
*Craig Dabelstein*
Maxime's Music
craig.dabelst...@gmail.com 
/http://maximesmusic.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: Define nr of measures per system

2018-03-06 Thread Brian Barker

At 18:16 06/03/2018 +0100, Omri Abram wrote:
Another beginner question, but can't seem to find the answer in the 
documentation: is it possible to define a constant number of 
measures per staff system?


The Notation Reference (at 4.3.1) suggests:

For line breaks at regular intervals use \break separated by skips 
and repeated with \repeat.
For example, this would cause the following 28 measures (assuming 4/4 
time) to be broken every 4 measures, and only there:

<<
  \repeat unfold 7 {
s1 \noBreak s1 \noBreak
s1 \noBreak s1 \break
  }
  { the actual music... }
>>

Brian Barker 



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


Re: Centered full-measure rest in 3/4?

2018-03-06 Thread Kieren MacMillan
Hi Karen,

> I am setting an interlude for a colleague. She has specified a full-measure 
> centered rest, notated as a dotted half-rest. I have searched the 
> documentation for several hours and cannot seem to figure out how to do this.
> 
> I want the rest in measure 2, but centered like the rest in measure 1. Advice?

I assume you’d want to use a MultiMeasureRest (i.e., R2.), and override the 
stencil to look like you want it to.

Hope that puts you on the right path!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: Simple midi player

2018-03-06 Thread J Martin Rushton
On 06/03/18 14:00, Gianmaria Lari wrote:
> 
> On 6 March 2018 at 13:31, Ben  > wrote:
> 
> On 3/6/2018 1:36 AM, Gianmaria Lari wrote:
>>
>> On 6 March 2018 at 00:32, Hwaen Ch'uqi > > wrote:
>>
>> Greetings All,
>>
>> I should like to piggy-back onto Nathan's question, though as
>> an emacs
>> user. I have been using timidity, which is directly mentioned
>> in the
>> documentation, but I too would like the ability to fast-forward or
>> rewind or to start at a particular place.
>>
>> Hwaen Ch'uqi
>>
>>
>> What about windows? Anyone found a way to set the starting point
>> at a particular place instead of the beginning?
>>
>> Gianmaria
>>  
> There is basic 'seek and playback' functionality in Frescobaldi.
> 
> 
> Yes, you can move the frescobaldi midi player cursor (with the mouse) at
> the position you like BUT each time you re-compile you lost the position
> and you have to set it again it is doable but not practical. What I
> personally do is to comment out the part of the score I don't want to
> listen.  So, it would be great to be able to set the score begin to
> a certain measure and make Frescobaldi doesn't forget it.
> 
> By the way do you know if it exist any keyboard shortcuts more than
> "ctrl-p" to control the player?
> 
> Thankyou, g.
> 
Moving the cursor like that can also loose the instrumentation.  Instead
of midi's interpretation of the correct orchestration you end up with an
anodyne piano-ish sound.  Much, very much, better than nothing, but
annoying on occasions.



signature.asc
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Edition Engraver tweak error

2018-03-06 Thread Kieren MacMillan
Hi Craig,

> \editionMod global 57 2/4 wagner.trauermusik.fluteI.Voice -\tweak 
> minimum-length #5 \<

Why not

  \editionMod global 57 2/4 wagner.trauermusik.fluteI.Voice \once \override 
Hairpin.minimum-length = #5

??

Hope that helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Edition Engraver tweak error

2018-03-06 Thread Craig Dabelstein
Hi all,

When trying to apply a tweak to a hairpin with the EE I get an
"unterminated crescendo" error. If I leave out the crescendo \< from the EE
(but include it in the content file which is where it thought it should
belong) it doesn't work at all. Is there a different way I should be trying
to do this?

\editionMod global 57 2/4 wagner.trauermusik.fluteI.Voice -\tweak
minimum-length #5 \<

Thanks in advance,

Craig


-- 
*Craig Dabelstein*
Maxime's Music
craig.dabelst...@gmail.com
*http://maximesmusic.com *
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Centered full-measure rest in 3/4?

2018-03-06 Thread Karen Billings
Good afternoon,
I am setting an interlude for a colleague. She has specified a full-measure 
centered rest, notated as a dotted half-rest. I have searched the documentation 
for several hours and cannot seem to figure out how to do this.
I want the rest in measure 2, but centered like the rest in measure 1.Advice?

BTW, I'm using Lilypond version 2.18.2.
Thanks!
Karen
\include "english.ly"

\layout { indent = 0.0\cm }

\paper {
  #(define top-margin (* .5 cm))
  top-system-spacing #'basic-distance = #10
  score-system-spacing #'basic-distance = #15
  system-system-spacing #'basic-distance = #15
  last-bottom-spacing #'basic-distance = #10
  score-markup-spacing #'basic-distance = #8
  ragged-bottom = ##t
}


Soprano = \relative c' {
  \clef treble
  \key g \major
  \numericTimeSignature
  \autoBeamOn
  \time 3/4
  s2 8_. 8_.
  s2.
  \bar "||"
}

Alto = \relative c'' {
  \clef treble
  \key g \major
  \numericTimeSignature
  \autoBeamOn
  \time 3/4
  2 s4
  2 s4
}

Tenor = \relative c' {
  \clef bass
  \key g \major
  \numericTimeSignature
  \autoBeamOn
  \time 3/4
  s2. s
}

Bass = \relative c {
  \clef bass
  \key g \major
  \numericTimeSignature
  \autoBeamOn
  \time 3/4
  \override MultiMeasureRest.staff-position = #+2
  R2.
  d2.\rest
}


\score {
  <<
\new PianoStaff <<
  \new Staff = upper <<
\context Voice =
sopranos { \voiceOne << \Soprano >> }
\context Voice =
altos { \voiceTwo << \Alto >> }
  >>
  \new Staff = lower <<
\context Voice =
tenors { \voiceThree << \Tenor >> }
\context Voice =
basses { \voiceFour << \Bass >> }
  >>
>>
  >>
   \layout {
ragged-last = ##f
ragged-bottom = ##t
\context {
  \Score
%\remove "Bar_number_engraver"
\remove "Time_signature_engraver"
}
\context {
  \Lyrics
  \override LyricSpace #'minimum-distance = #0.1 %0.8
  \override LyricText #'font-size = #+1.5
  \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
  \override VerticalAxisGroup.
  nonstaff-relatedstaff-spacing.padding = #1.5
  \override VerticalAxisGroup.
  nonstaff-unrelatedstaff-spacing.padding = #1.5
}
  }
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Can't ignore-collisions on a tuplet

2018-03-06 Thread paolo prete
Hello,

in the below snippet I would like to keep the same distance between all the
notes of the 2/6 tuplet.
Instead, e' and e' in \voiceOne have a bigger distance because of the note
between them, in \voiceTwo.
How can I avoid that?
No problem if there will be collisions.

I tried to set several ignore-collision properties (  \override
NoteColumn.ignore-collision = ##t, \override NoteHead.ignore-collision =
##t, \override Ste.ignore-collision = ##t ) but the result is the same...

Thanks


%

\score
{
\new Staff
{
<<
  \new Voice
  {
\voiceOne
\stemUp
\times 2/6 {e''8[ e' e' f' g' a']}
r4 r r
  }

  \new Voice
  {
\voiceTwo
\stemDown
g'16[ b8.]
  }
>>
}

\layout
{
  \context
  {
\Score
proportionalNotationDuration = #(ly:make-moment 1/20)
  }
}

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


RE: Frescobaldi sudden failures on all machines

2018-03-06 Thread peter.gentry
David

The issue has been narrowed down to the output stage.  It's very odd no
errors in the log until output is invoked.  No more time today some quiet
work tomorrow required.

-Original Message-
From: David Kastrup  
Sent: 06 March 2018 16:11
To: peter.gen...@sunscales.myzen.co.uk
Cc: Lilypond 
Subject: Re: Frescobaldi sudden failures on all machines

 writes:

> I have been using Frescobaldi for years but today re-running old files 
> I see the following behaviour.
>
>  
>
> The compilation proceeds for a while then halts with error 
> -1073741819. This happens on two different Windows 10 machines with 
> different OS versions. It happens when attempting to recompile old .ly
files.
>
>  
>
> Frescobaldi error messages are notoriously obscure.  I have 
> uninstalled ad re-installed Frescobaldi and rebooted to no effect.
>
>  
>
> Does anyone have any suggestions to isolate this issue. I suspect it 
> may be about file permissions but that is just a suspicion.

I suspect this is just because failed assertions now make LilyPond abort
with an error message and you previously ignored them (which was almost a
given since distributed binaries of LilyPond completely omitted them).

--
David Kastrup


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


Re: Define nr of measures per system

2018-03-06 Thread Kieren MacMillan
Hi Omri,

> Another beginner question, but can't seem to find the answer in the 
> documentation:
> is it possible to define a constant number of measures per staff system?

There is no dead-simple, built-in way… but there are many ways of accomplishing 
what you want, each with pros and cons depending on exactly what functionality 
and flexibility you want.

For a constant number of measures per system, my favourite is David K's 
\bar-keeper, which I’ve shown in the snippet below. 

(Aside: I’m not sure why this isn’t in the main base code… Given that David K 
coded it, I imagine it’s the most elegant solution possible to the problem he 
was tasked to solve. And it is a function that many, many users would 
appreciate having access to.)

Hope this helps!
Kieren.

%%%  SNIPPET BEGINS
\version "2.19"

#(define (index-list? x)
  (and (list? x)
(every index? x)))

#(define (index-pattern numbers)
  "Convert an `index pattern' into a circular list.  Zeros are removed,
with the last zero preceding the part of the list that should become
circular.  If that list part is empty, the resulting list has no circular
end.  Without any zero, the whole list is turned into a circular one."
  (define (creverse! x y)
"Reverse both x and y, make y circular and append to x."
(if (pair? y)
 (let* ((rev-y (reverse! y))
(rev-x (reverse! x rev-y)))
   (set-cdr! y rev-y)
   rev-x)
 (reverse! x y)))
  (let loop ((non-reps '()) (reps '()) (rest numbers))
(cond ((null? rest) (creverse! non-reps reps))
   ((zero? (car rest))
(loop (append! reps non-reps) '() (cdr rest)))
   ((index? (car rest))
(loop non-reps (cons (car rest) reps) (cdr rest)))
   (else (ly:input-warning (*location*)
   (_ "Not an index: ~a") (car rest))
 (loop non-reps reps (cdr rest))

bar-keeper =
#(define-scheme-function (numbers) (index-list?)
  "Create a context mod for consisting a Timing-level engraver
breaking after bar group lengths specified in the list.  If the list
is exhausted, it starts over from the start or from after a 0 marker
contained in the list.  If the list @emph{ends} with@tie{}0, line
breaking reverts to normal after using up the list."
  (ly:make-context-mod
   `((consists
  ,(lambda (c)
  (let ((target #f) (numbers (index-pattern numbers)))
(make-engraver
 (acknowledgers
  ((paper-column-interface eng grob from)
   (and (pair? numbers)
(ly:grob-property grob 'non-musical #f)
(let ((bar (ly:context-property (ly:translator-context eng)
'internalBarNumber)))
  (if (not target)
  (set! target bar)
  (set! (ly:grob-property grob 'line-break-permission)
(and (>= bar (+ target (car numbers)))
 (begin
   (set! target (+ target (car numbers)))
   (set! numbers (cdr numbers))
   'force)))


\score {
  \new Score \with \bar-keeper 4 {
\repeat unfold 100 { c''4 }
  }
}
%%%  SNIPPET ENDS


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Define nr of measures per system

2018-03-06 Thread Omri Abram
Hello,

Thank you for the helpful answers to my previous question!

Another beginner question, but can't seem to find the answer in the
documentation:

is it possible to define a constant number of measures per staff system?

Cheers!

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


RE: Frescobaldi sudden failures on all machines

2018-03-06 Thread peter.gentry
Urs I agree I have tried dragging a "good"  desktop file onto the Lilypond 
short cut and nothing happens. Re-installing Lily has made things worse (the 
latest 2.19.6 version cannot be downloaded but I had a saved file.)

-Original Message-
From: Urs Liska  
Sent: 06 March 2018 14:38
To: lilypond-user@gnu.org; peter.gen...@sunscales.myzen.co.uk; Lilypond 

Subject: Re: Frescobaldi sudden failures on all machines



Am 6. März 2018 15:03:28 MEZ schrieb peter.gen...@sunscales.myzen.co.uk:
>I have been using Frescobaldi for years but today re-running old files 
>I see the following behaviour.
>
> 
>
>The compilation proceeds for a while then halts with error -1073741819.
>This
>happens on two different Windows 10 machines with different OS 
>versions. It happens when attempting to recompile old .ly files.
>
> 
>
>Frescobaldi error messages are notoriously obscure.  I have uninstalled 
>ad re-installed Frescobaldi and rebooted to no effect.
>
> 
>
>Does anyone have any suggestions to isolate this issue. I suspect it 
>may be about file permissions but that is just a suspicion.

I second Andrew's suspicion that it is not related to Frescobaldi at all. If 
Frescobaldi fails you would either get an error pop-up or in severe cases the 
Window might disappear.
If you can read about an error in the log window it's most likely a LilyPond 
error.

Please compile your files directly using LilyPond from the command line, then 
report what is happening.

Best
Urs

>
> 
>
>Thanks for reading this far.


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


RE: Frescobaldi sudden failures on all machines

2018-03-06 Thread peter.gentry
David

Nope I did not ignore any previous error messages. Something about Windows
10 and file permissions may be at the root. I had to run Fresco with
Administrator Privileges in the past. One possibility that may shed some
light is that I have installed Kaspersky Secure connection on both machines
just before disaster struck (just to watch football).

I have since re-installed Lily  from an old 2.19.56 installation package
followed by Fresco again. This time when I run Fresco a new popup appears
"running Lilypond this could take some time - nothing else happens.

I will try running from a command prompt but as it stands "Lilypond does not
exist" is the response.

-Original Message-
From: David Kastrup  
Sent: 06 March 2018 16:11
To: peter.gen...@sunscales.myzen.co.uk
Cc: Lilypond 
Subject: Re: Frescobaldi sudden failures on all machines

 writes:

> I have been using Frescobaldi for years but today re-running old files 
> I see the following behaviour.
>
>  
>
> The compilation proceeds for a while then halts with error 
> -1073741819. This happens on two different Windows 10 machines with 
> different OS versions. It happens when attempting to recompile old .ly
files.
>
>  
>
> Frescobaldi error messages are notoriously obscure.  I have 
> uninstalled ad re-installed Frescobaldi and rebooted to no effect.
>
>  
>
> Does anyone have any suggestions to isolate this issue. I suspect it 
> may be about file permissions but that is just a suspicion.

I suspect this is just because failed assertions now make LilyPond abort
with an error message and you previously ignored them (which was almost a
given since distributed binaries of LilyPond completely omitted them).

--
David Kastrup


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


Re: Frescobaldi sudden failures on all machines

2018-03-06 Thread David Kastrup
 writes:

> I have been using Frescobaldi for years but today re-running old files I see
> the following behaviour.
>
>  
>
> The compilation proceeds for a while then halts with error -1073741819. This
> happens on two different Windows 10 machines with different OS versions. It
> happens when attempting to recompile old .ly files.
>
>  
>
> Frescobaldi error messages are notoriously obscure.  I have uninstalled ad
> re-installed Frescobaldi and rebooted to no effect.
>
>  
>
> Does anyone have any suggestions to isolate this issue. I suspect it may be
> about file permissions but that is just a suspicion.

I suspect this is just because failed assertions now make LilyPond abort
with an error message and you previously ignored them (which was almost
a given since distributed binaries of LilyPond completely omitted them).

-- 
David Kastrup

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


Re: Change the duration of a chord defined as a variable

2018-03-06 Thread David Kastrup
paolo prete  writes:

> David,
>
> I wonder if is there another solution for obtaining the same result,
> because the discussed one is too much unstable. Here's the template, below.
> I googled how to change a chord duration, but I found nothing.

You change the duration of any event inside the chord.

-- 
David Kastrup

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


Re: Frescobaldi sudden failures on all machines

2018-03-06 Thread Urs Liska


Am 6. März 2018 15:03:28 MEZ schrieb peter.gen...@sunscales.myzen.co.uk:
>I have been using Frescobaldi for years but today re-running old files
>I see
>the following behaviour.
>
> 
>
>The compilation proceeds for a while then halts with error -1073741819.
>This
>happens on two different Windows 10 machines with different OS
>versions. It
>happens when attempting to recompile old .ly files.
>
> 
>
>Frescobaldi error messages are notoriously obscure.  I have uninstalled
>ad
>re-installed Frescobaldi and rebooted to no effect.
>
> 
>
>Does anyone have any suggestions to isolate this issue. I suspect it
>may be
>about file permissions but that is just a suspicion.

I second Andrew's suspicion that it is not related to Frescobaldi at all. If 
Frescobaldi fails you would either get an error pop-up or in severe cases the 
Window might disappear.
If you can read about an error in the log window it's most likely a LilyPond 
error.

Please compile your files directly using LilyPond from the command line, then 
report what is happening.

Best
Urs

>
> 
>
>Thanks for reading this far.

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


Re: Frescobaldi sudden failures on all machines

2018-03-06 Thread N. Andrew Walsh
Hi Peter,

I'm not at all an expert on any of this (or even really competent) but some
quick googling returns this thread:
http://lilypond.1069038.n5.nabble.com/Strange-return-code-and-compilation-fail-td145362.html

where they say that error is an access violation from within Lilypond (ie,
it's not Frescobaldi).

If it's happening on old .ly files, have you tried running convert-ly on
them? Have you tried creating a MWE just to make sure your Lily is working
at all?

HTH,

A

On Tue, Mar 6, 2018 at 3:03 PM,  wrote:

> I have been using Frescobaldi for years but today re-running old files I
> see the following behaviour.
>
>
>
> The compilation proceeds for a while then halts with error -1073741819.
> This happens on two different Windows 10 machines with different OS
> versions. It happens when attempting to recompile old .ly files.
>
>
>
> Frescobaldi error messages are notoriously obscure.  I have uninstalled ad
> re-installed Frescobaldi and rebooted to no effect.
>
>
>
> Does anyone have any suggestions to isolate this issue. I suspect it may
> be about file permissions but that is just a suspicion.
>
>
>
> Thanks for reading this far.
>
> ___
> 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


Frescobaldi sudden failures on all machines

2018-03-06 Thread peter.gentry
I have been using Frescobaldi for years but today re-running old files I see
the following behaviour.

 

The compilation proceeds for a while then halts with error -1073741819. This
happens on two different Windows 10 machines with different OS versions. It
happens when attempting to recompile old .ly files.

 

Frescobaldi error messages are notoriously obscure.  I have uninstalled ad
re-installed Frescobaldi and rebooted to no effect.

 

Does anyone have any suggestions to isolate this issue. I suspect it may be
about file permissions but that is just a suspicion.

 

Thanks for reading this far.

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


Re: Simple midi player

2018-03-06 Thread Gianmaria Lari
On 6 March 2018 at 13:31, Ben  wrote:

> On 3/6/2018 1:36 AM, Gianmaria Lari wrote:
>
>
> On 6 March 2018 at 00:32, Hwaen Ch'uqi  wrote:
>
>> Greetings All,
>>
>> I should like to piggy-back onto Nathan's question, though as an emacs
>> user. I have been using timidity, which is directly mentioned in the
>> documentation, but I too would like the ability to fast-forward or
>> rewind or to start at a particular place.
>>
>> Hwaen Ch'uqi
>>
>>
> What about windows? Anyone found a way to set the starting point at a
> particular place instead of the beginning?
>
> Gianmaria
>
>
> There is basic 'seek and playback' functionality in Frescobaldi.
>

Yes, you can move the frescobaldi midi player cursor (with the mouse) at
the position you like BUT each time you re-compile you lost the position
and you have to set it again it is doable but not practical. What I
personally do is to comment out the part of the score I don't want to
listen.  So, it would be great to be able to set the score begin to a
certain measure and make Frescobaldi doesn't forget it.

By the way do you know if it exist any keyboard shortcuts more than
"ctrl-p" to control the player?

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


Re: Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
David,

I wonder if is there another solution for obtaining the same result,
because the discussed one is too much unstable. Here's the template, below.
I googled how to change a chord duration, but I found nothing.




chord = 4 -> \mp

newChord =
{
  %  add \chord with a new fixed duration and with its articulations
}



I was thinking about taking the articulations from each NoteEvent of the
chord, iterating with a (map (lambda (x) ), and putting them into a new
list, but it seems overkill to me...
What do you think?


Thanks for your help




2018-03-06 14:04 GMT+01:00 David Kastrup :

>
>
> It works in master in that \mp ends up in the expression, but indeed it
> does so as a note articulation rather than a chord articulation, and
> LilyPond just drops \mf on the floor in that position.  Sorry for that.
>
>
> --
> David Kastrup
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bookparts

2018-03-06 Thread David Kastrup
Jan-Peter Voigt  writes:

[...]

>> Now books and bookparts actually have a \header with associated scopes.
>> Anything wrong with doing assignments in there?
> That might look like this?
> --
> \version "2.19.80"
>
> headerVal =
> #(define-scheme-function (name)(symbol?)
>(let ((alist (ly:module->alist (ly:book-header $current-bookpart
>  (assoc-get name alist)
>  ))
>
> \bookpart {
>   \header {
> thevoice = \relative { a'4 c g f }
> thelyrics = \lyricmode { la la la la }
>   }
>   <<
> \new Voice = "heinz" { \headerVal thevoice }
> \new Lyrics \lyricsto "heinz" { \headerVal thelyrics }
>   >>
> }

I was more thinking of \thevoice and \thelyrics here but indeed no
variants of that work.  Not really sure just what the function of the
"scopes" for books and bookparts as established in lily/parser.yy
actually is.

-- 
David Kastrup

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


Re: Change the duration of a chord defined as a variable

2018-03-06 Thread David Kastrup
paolo prete  writes:

> 2018-03-06 13:32 GMT+01:00 David Kastrup :
>
>> Take a look at the PDF.  They are there.
>>
>
>
> David,
> I can't see them with my version (master)
> I tried with lilybin too (both stable and unstable) and it doesn't even
> compile:
>
> http://lilybin.com/rotn1l/1

It works in master in that \mp ends up in the expression, but indeed it
does so as a note articulation rather than a chord articulation, and
LilyPond just drops \mf on the floor in that position.  Sorry for that.
At any rate, try

\displayMusic  \mp

in order to see the structures being used.  Working with \displayMusic
should help getting more of a clue about what happens here.

-- 
David Kastrup

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


Re: bookparts

2018-03-06 Thread Jan-Peter Voigt

Am 06.03.2018 um 13:12 schrieb David Kastrup:

IISC a major change to the codebase would be needed to allow something
like this: \bookpart { music = { c''4 } { \music } }
but there are a lot users who would like to use it this way.
I don't want to talk about scopes and coding style, but want to show
how I deal with it:
Using void-functions is a great thing because the can be called
anywhere. So if you want to define something inside a file that is to
be included inside curly brackets you can use a function like this:
--
\version "2.19.80"

def = #(define-void-function (sym val)(symbol? scheme?)
  (ly:parser-define! sym val))

\bookpart {
   \def music { c''4 } % this might be part of an included file
   { \music }
}

It would be utterly trivial to make assignments work like that void
function in the parser.

OK> It still would not introduce scoping, so people would be surprised that

assignments made in one book overrode assignments in an earlier book or
at top level.



People would expect to set the same named variables in different books
to different values and it would not work.

Essentially I talked about that in the second paragraph.


A generic function like "def" is about as useful as a generic opener for
child-proof bottle caps: the only person needing it is one you don't
want to have it.
You may be right. But still, *sometimes* I use such a function for files 
which are included and which *might* throw an error otherwise.



Now books and bookparts actually have a \header with associated scopes.
Anything wrong with doing assignments in there?

That might look like this?
--
\version "2.19.80"

headerVal =
#(define-scheme-function (name)(symbol?)
   (let ((alist (ly:module->alist (ly:book-header $current-bookpart
 (assoc-get name alist)
 ))

\bookpart {
  \header {
thevoice = \relative { a'4 c g f }
thelyrics = \lyricmode { la la la la }
  }
  <<
\new Voice = "heinz" { \headerVal thevoice }
\new Lyrics \lyricsto "heinz" { \headerVal thelyrics }
  >>
}
--

This might be useful and essentially lead to something. Now, I am used 
to my own toolchain and prefer delegating score- and bookpart-creation 
to music- and scheme-functions. And I really don't like using the header 
for content. (Btw. I didn't follow the whole thread so maybe nobody was 
asking for that)


Jan-Peter


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


Re: Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
2018-03-06 13:32 GMT+01:00 David Kastrup :

> Take a look at the PDF.  They are there.
>


David,
I can't see them with my version (master)
I tried with lilybin too (both stable and unstable) and it doesn't even
compile:

http://lilybin.com/rotn1l/1
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Change the duration of a chord defined as a variable

2018-03-06 Thread David Kastrup
paolo prete  writes:

> 2018-03-06 13:15 GMT+01:00 David Kastrup :
>
>>
>> Have you even tried what happens with articulations?
>>
>
> Yes, I tried with:
>
>
> %%%
> chord = \mp
>
> newChord =
> {
>   <$@(ly:music-property chord 'elements) >8 $@(ly:music-property chord
> 'articulations )
> }
>
> #(display (ly:music-property chord 'articulations))
>
> {
>  \newChord
> }
>
>
>
> ... but it doesn't show articulations  (I tried to display them with
> "#display(...)"  too and the list is empty). I don't understand how to pick
> them

Take a look at the PDF.  They are there.  And I'd suggest using

\displayMusic

on music expressions you want to see analyzed.  "display" is unreadable
in contrast.

-- 
David Kastrup

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


Re: Simple midi player

2018-03-06 Thread Ben

On 3/6/2018 1:36 AM, Gianmaria Lari wrote:


On 6 March 2018 at 00:32, Hwaen Ch'uqi > wrote:


Greetings All,

I should like to piggy-back onto Nathan's question, though as an emacs
user. I have been using timidity, which is directly mentioned in the
documentation, but I too would like the ability to fast-forward or
rewind or to start at a particular place.

Hwaen Ch'uqi


What about windows? Anyone found a way to set the starting point at a 
particular place instead of the beginning?


Gianmaria


There is basic 'seek and playback' functionality in Frescobaldi.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
Hi David,
in the snippet below, is it possible to set a new duration of \newChord  in
the variable definition?
Thanks

chord = 4
newChord = #(make-event-chord (ly:music-property chord 'elements))

{
 \newChord
}

2018-03-06 12:14 GMT+01:00 David Kastrup :

> paolo prete  writes:
>
> > Hello.
> >
> > How can I change the duration of a chord defined as a variable?
> > I want to obtain something like:
> >
> > chord = 
> >
> > { \chord 8 }
>
> \version "2.18.0"
> chord =
> #(define-music-function (parser location dur) (ly:duration?)
> #{  $dur #})
>
> For recent 2.19, you can leave out the "parser location" blurb.
>
> I am not sure whether this kind of usage might be common enough to
> warrant creating an \etc syntax for it, like
>
> chord =  \etc
>
> { \chord 8 }
>
> It might actually be desirable for guitar chord variants outside of
> \chordmode.  Or even in \chordmode.
>
> --
> David Kastrup
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
2018-03-06 13:15 GMT+01:00 David Kastrup :

>
> Have you even tried what happens with articulations?
>

Yes, I tried with:


%%%
chord = \mp

newChord =
{
  <$@(ly:music-property chord 'elements) >8 $@(ly:music-property chord
'articulations )
}

#(display (ly:music-property chord 'articulations))

{
 \newChord
}



... but it doesn't show articulations  (I tried to display them with
"#display(...)"  too and the list is empty). I don't understand how to pick
them
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Change the duration of a chord defined as a variable

2018-03-06 Thread David Kastrup
paolo prete  writes:

>> paolo prete  writes:
>>
>> > Hi David,
>> > in the snippet below, is it possible to set a new duration of \newChord in
>> > the variable definition?
>> > Thanks
>> >
>> > chord = 4
>> > newChord = #(make-event-chord (ly:music-property chord 'elements))
>> >
>> > {
>> >  \newChord
>> > }
>>
>> Well, the lazy way would be
>>
>> {
>>   <$@(ly:music-property chord 'elements) >8
>> }
>>
>
> Great. Is there also way to add the articulations of chord to newChord ?

Have you even tried what happens with articulations?

Asking LilyPond should is usually the proper first recourse since it
means you waste only your own computer's time.  As a bonus, you get no
complaints about top posting with full quote below.

-- 
David Kastrup

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


Re: bookparts

2018-03-06 Thread David Kastrup
Jan-Peter Voigt  writes:

> Hi all,
>
> in this mail the thing with defining variables inside of curly
> brackets popped up the first time in this thread - so I hook here. (If
> it was mentioned in the former mails it doesn't matter ;-) )
>
> IISC a major change to the codebase would be needed to allow something
> like this: \bookpart { music = { c''4 } { \music } }
> but there are a lot users who would like to use it this way.
> I don't want to talk about scopes and coding style, but want to show
> how I deal with it:
> Using void-functions is a great thing because the can be called
> anywhere. So if you want to define something inside a file that is to
> be included inside curly brackets you can use a function like this:
> --
> \version "2.19.80"
>
> def = #(define-void-function (sym val)(symbol? scheme?)
>  (ly:parser-define! sym val))
>
> \bookpart {
>   \def music { c''4 } % this might be part of an included file
>   { \music }
> }

It would be utterly trivial to make assignments work like that void
function in the parser.

It still would not introduce scoping, so people would be surprised that
assignments made in one book overrode assignments in an earlier book or
at top level.

People would expect to set the same named variables in different books
to different values and it would not work.

A generic function like "def" is about as useful as a generic opener for
child-proof bottle caps: the only person needing it is one you don't
want to have it.

Now books and bookparts actually have a \header with associated scopes.
Anything wrong with doing assignments in there?

-- 
David Kastrup

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


Re: Change the duration of a chord defined as a variable

2018-03-06 Thread David Kastrup
paolo prete  writes:

> Hi David,
> in the snippet below, is it possible to set a new duration of \newChord  in
> the variable definition?
> Thanks
>
> chord = 4
> newChord = #(make-event-chord (ly:music-property chord 'elements))
>
> {
>  \newChord
> }

Well, the lazy way would be

{
  <$@(ly:music-property chord 'elements) >8
}

-- 
David Kastrup

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


Re: Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
Great. Is there also way to add the articulations of chord to newChord ?

2018-03-06 12:46 GMT+01:00 David Kastrup :

> paolo prete  writes:
>
> > Hi David,
> > in the snippet below, is it possible to set a new duration of \newChord
> in
> > the variable definition?
> > Thanks
> >
> > chord = 4
> > newChord = #(make-event-chord (ly:music-property chord 'elements))
> >
> > {
> >  \newChord
> > }
>
> Well, the lazy way would be
>
> {
>   <$@(ly:music-property chord 'elements) >8
> }
>
> --
> David Kastrup
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bookparts

2018-03-06 Thread Jan-Peter Voigt

Hi all,

in this mail the thing with defining variables inside of curly brackets 
popped up the first time in this thread - so I hook here. (If it was 
mentioned in the former mails it doesn't matter ;-) )


IISC a major change to the codebase would be needed to allow something 
like this: \bookpart { music = { c''4 } { \music } }

but there are a lot users who would like to use it this way.
I don't want to talk about scopes and coding style, but want to show how 
I deal with it:
Using void-functions is a great thing because the can be called 
anywhere. So if you want to define something inside a file that is to be 
included inside curly brackets you can use a function like this:

--
\version "2.19.80"

def = #(define-void-function (sym val)(symbol? scheme?)
 (ly:parser-define! sym val))

\bookpart {
  \def music { c''4 } % this might be part of an included file
  { \music }
}
--
(In lily stable (<2.19) you have to add the parser and location arguments)

Still we have the global scope (OK, I do talk about scope) of the 
current parser. Now if you want to use some kind of templating mechanism 
you have two competing needs for the variable names. One approach to 
create templates is to prepare files to include which use well-named 
variables. For the piano the file might reference the variables 
piano_left and piano_right which have to be assigned beforehand. My 
first scores where for choir. So I was looking for a more flexible 
templates and I started to write music-functions which store the music 
in a tree so that my template functions are called "inside" or "on" a 
base branch. The branches of the tree are the scopes in which the 
template functions are called. This has the advantage that I can define 
several pieces of music with several instruments and then can quite 
easily create a book with several pieces all with there own 
instrumentation. You can have a look on the result here: 
https://github.com/jpvoigt/lalily-templates

(I am going to move this OLL-module to the OLL-GitHub-organization)


These are some very rough and quite unstructured thoughts ...
To conclude:
1. defining variables with music- or void-functions is a way to overcome 
the obstacle of defining variables only on the top-level
2. if the store behind the function allows for hierarchical storage 
templates (files or functions) can make use of a scope that is not on 
coding but on a semantic level ... or the like. This should be reworded 
somehow - I hope you get what I mean.


Jan-Peter



Am 05.03.2018 um 18:24 schrieb Kieren MacMillan:

Hi David,


Q: Included files just behave as if the content was inserted at the same
  position?
Q: Includes must be at top level?


Yes x 2.


Second yes is wrong.


Even if the included file has variable definitions?

Thanks,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
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: Change the duration of a chord defined as a variable

2018-03-06 Thread David Kastrup
paolo prete  writes:

> Hello.
>
> How can I change the duration of a chord defined as a variable?
> I want to obtain something like:
>
> chord = 
>
> { \chord 8 }

\version "2.18.0"
chord =
#(define-music-function (parser location dur) (ly:duration?)
#{  $dur #})

For recent 2.19, you can leave out the "parser location" blurb.

I am not sure whether this kind of usage might be common enough to
warrant creating an \etc syntax for it, like

chord =  \etc

{ \chord 8 }

It might actually be desirable for guitar chord variants outside of
\chordmode.  Or even in \chordmode.

-- 
David Kastrup

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


Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
Hello.

How can I change the duration of a chord defined as a variable?
I want to obtain something like:

chord = 

{ \chord 8 }



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