fretboard-bug?

2017-09-28 Thread bb
The fretboard shows fourth string as open and fingered fret one. I have
added a pdf as a proof. If you compile you should get this pdf as well.

Regards BB

\version "2.19.2"
   allFourthsA =\stringTuning <  a, d g c' f'>
cmSevenA = { < g'\1 c,\2 g\3 dis\4 ais\5 > } % cd#ga#
\storePredefinedDiagram #default-fret-table \cmSevenA % cd#ga#
    #allFourthsA
    #"1-1; 1-1;o;o;2-2;" %
#(set-global-staff-size 27)
chordNames = \chordmode { c:m7 }
notes = { \cmSevenA \break  \bar "||" }
\score {
  <<
 \set Timing.defaultBarType = ""
 \new ChordNames {
  %\set chordChanges = ##t
  \chordNames }
    \new FretBoards {
  \set Staff.stringTunings = #allFourthsA
  \notes }
    \new TabStaff \relative c' {
  \set TabStaff.stringTunings = #allFourthsA
  \notes  }
  >>
  \layout {
  }
}



Bug4.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Header

2017-09-28 Thread Mario Moles

I would like, in small format, the title of the song on every page!


Il 28/09/2017 07:24, Jan-Peter Voigt ha scritto:

so, what are you looking for?
I use a markup for odd/evenFoorterMarkup that displays the current 
title. If there are other (non title) tocItems in between, it might be 
disturbed. But I only use that for collections of music so this is not 
the case in my use cases.


--

oiram/bin/selom

Da ognuno secondo le proprie capacità ad ognuno secondo i propri bisogni.

MIB-kernellinux-tester

Linux 

MIB Lilypond 
Frescobaldi 
Rosegarden 


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


Re: fretboard-bug?

2017-09-28 Thread Malte Meyn



Am 28.09.2017 um 13:08 schrieb bb:

     #"1-1; 1-1;o;o;2-2;" %


This is not a bug but you have an extra space here. It should be

#"1-1;1-1;o;o;2-2;" % correct
#"1-1; 1-1;o;o;2-2;" % wrong but not a bug

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


Re: Header

2017-09-28 Thread Ben


On 9/28/2017 7:35 AM, Mario Moles wrote:


I would like, in small format, the title of the song on every page!



Mario,

Wouldn't this work then, as expected? A rather straight-forward header / 
title setup...just set one up for the title of the piece, for example.


http://lilypond.org/doc/v2.18/Documentation/notation/creating-titles-headers-and-footers#titles-explained


   Default layout of headers and footers

/Headers/ and /footers/ are lines of text appearing at the top and 
bottom of pages, separate from the main text of a book. They are 
controlled by the following |\paper| variables:


 * |oddHeaderMarkup|
 * |evenHeaderMarkup|
 * |oddFooterMarkup|
 * |evenFooterMarkup|

These markup variables can only access text fields from top-level 
|\header| blocks (which apply to all scores in the book) and are defined 
in ‘ly/titling-init.ly’. By default:


 * page numbers are automatically placed on the top far left (if even)
   or top far right (if odd), starting from the second page.
 * the |instrument| text field is placed in the center of every page,
   starting from the second page.
 * the |copyright| text is centered on the bottom of the first page.
 * the |tagline| is centered on the bottom of the last page, and below
   the |copyright| text if there is only a single page.




Il 28/09/2017 07:24, Jan-Peter Voigt ha scritto:

so, what are you looking for?
I use a markup for odd/evenFoorterMarkup that displays the current 
title. If there are other (non title) tocItems in between, it might 
be disturbed. But I only use that for collections of music so this is 
not the case in my use cases.


--

oiram/bin/selom

Da ognuno secondo le proprie capacità ad ognuno secondo i propri bisogni.

MIB-kernellinux-tester

Linux 

MIB Lilypond 
Frescobaldi 
Rosegarden 




___
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: automatic partwriter

2017-09-28 Thread David Nalesnik
Hi Kieren,

On Wed, Sep 27, 2017 at 8:16 AM, Kieren MacMillan
 wrote:
> Hi David,
>
>> I wanted to share something which I think illustrates the power that
>> Lily has over other popular notation software.
>
> o_O
>
> Amazing.
>
> 1. You are a force of nature.

Well, diligent/obsessive in fits and starts :)

>
> 2. The timing on this share couldn't have been better: in the next few 
> months, I'll be giving presentations/lectures at several universities and 
> colleges, and will be featuring Lilypond prominently in parts of those 
> presentations. I want to include truly "mindset-altering" applications, and 
> this definitely counts as such.

Sure, go ahead!  Just be aware that the partwriter is only decent at
the moment with progressions of root-position triads.  I need to clean
up the code before I can enhance it.  (At the top of the list is
giving it an "understanding" of harmonic function and allowing
variable doublings.)  I'll keep you up to date.

>
> Thanks for all you do!

You're very welcome!

> 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: automatic partwriter

2017-09-28 Thread David Nalesnik
Hi Sam,

On Thu, Sep 28, 2017 at 8:20 AM, Sam Bivens  wrote:
> Hi David,
>
> I agree, this is *really* impressive work!

I appreciate this.  The positive feedback I've gotten is encouraging
me to keep going with this.

>
> Have you experimented with including intentional errors as a type of
> error-detection exercise for students?
>

Actually, that hit me on my ride home yesterday.  Thinking about how
to filter out the ugly, it occurred to me--why not encourage it?  An
"anti-partwriter" that only shows realizations with parallels, for
example.

I ought to provide some interface to turn off/on this/that rule easily.

David

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


Re: automatic partwriter

2017-09-28 Thread Sam Bivens

Hi David,

I agree, this is *really* impressive work!

Have you experimented with including intentional errors as a type of 
error-detection exercise for students?


Take care,

Sam

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


Re: Header

2017-09-28 Thread Wols Lists
On 28/09/17 12:35, Mario Moles wrote:
> I would like, in small format, the title of the song on every page!
> 
This sounds like you want to do what I've done. In my case, the default
headers are wrong because they centre the instrument name under the
title - I want them left-justified on the page.

Somebody pointed me at the "paper" function bookTitleMarkup, I guess
you'll want the header/footer functions - you'll have to find them
yourself, I haven't got a clue what they're called :-)

Copy them into your personal include directory, edit them so they put
the song title where you want it, and then include them in the paper
block of every relevant score.

Works a treat for me, so long as I remember the line

\include "../../Include/paper.bookTitleMarkup"

in my score's paper block, I get a typical Brass Band music header,
instead of lily's default orchestral version.

Cheers,
Wol


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


Re: automatic partwriter

2017-09-28 Thread David Nalesnik
On Thu, Sep 28, 2017 at 12:07 PM, Karlin High  wrote:
> On 9/28/2017 8:34 AM, David Nalesnik wrote:
>
> I appreciate this.  The positive feedback I've gotten is encouraging
> me to keep going with this.
>
>
> Fully understanding this piece is going to stretch my understanding of both
> music theory and LilyPond code. But yesterday, a MIDI file from these chord
> progressions worked great for putting my four-year-old son down for his nap.
> --

Love this :)

It also makes a great template for semi-improvised interlude music in
church services.

David

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


Re: Draw line between fingerings, but how does this go?

2017-09-28 Thread Pieter Terpstra
Pieter Terpstra wrote:

> Thank you Marc.
> 
> You mean the BartGliss.ly code?

It worked perfectly. Also managed to do it with the \draw-line command but this 
one is much easier and doesn't have 
to be readjusted when a space-setting has changed.

Kindly,

  Peter


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


How can I make a 7.9+.9- chord?

2017-09-28 Thread gumblex
Dear list,

I would like to write a "dis:7.9+.9-" chord in \chordmode. However, both
in ChordNames lines and in scores, it appears to be a "dis:7.9-" chord.
If I write "dis:7.9-.9+", it appears to be a "dis:7.9+" chord.

Is this a bug? And how can I display this chord correctly in a
ChordNames line?

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


Instrument registrations (was: automatic partwriter)

2017-09-28 Thread David Kastrup
David Nalesnik  writes:

> Hi Kieren,
>
> On Wed, Sep 27, 2017 at 8:16 AM, Kieren MacMillan
>  wrote:
>> Hi David,
>>
>>> I wanted to share something which I think illustrates the power that
>>> Lily has over other popular notation software.
>>
>> o_O
>>
>> Amazing.
>>
>> 1. You are a force of nature.
>
> Well, diligent/obsessive in fits and starts :)

Here is an example file I wrote: unfortunately I had to leave out both
image file (you'll have to outcomment the \epsfile markup I guess) of
the bass buttons as well as the complete result because the list will
not allow such sizes.

It has to be said that the first version I wrote was not done using
Scheme but rather in Lua, writing out LilyPond source code.  I was more
comfortable hacking up something quick in that manner.

I think that this is something likely to haunt a lot of potential
applications: Scheme is not that well suited for
brainstorming/prototyping since it is sort of write-only for humans:
it's primarily readable for computers, and keeping stuff
semi-well-readable for humans requires discipline and effort.

On the other hand, the direct access to LilyPond internals has its
advantages.

\version "2.19.22"

\paper {
  ragged-last = ##f
}

#(define (number-or-pitch? a) (or (integer? a) (ly:pitch? a)))

bass-staff = "lo"
bass-clef = "bass"
bass-desc = \markuplist { }
bari-low-desc = \markuplist { (stem down, solid heads) }
bv-one = { \voiceOne \harmonicsOn }
bv-two = { \voiceTwo \harmonicsOn }
tv-one = { \voiceOne \harmonicsOn }
tv-two = \voiceTwo
sv-one = { \voiceOne \harmonicsOn }
sv-two = \voiceTwo
%%{
bass-staff = "hi"
bass-clef = "treble"
bass-desc = \markuplist { (stem down, diamond heads) }
bari-low-desc = \markuplist { (stem up, solid heads) }
bv-one = { \voiceFour \harmonicsOn }
bv-two = { \voiceTwo \harmonicsOn }
tv-one = { \voiceOne \harmonicsOn }
tv-two = \voiceThree
sv-one = { \voiceOne \harmonicsOn }
sv-two = \voiceTwo
%}

#(define stats (make-hash-table 20))

#(define (add-to-stats pitch chordname count)
   (let ((p (hashv-create-handle! stats count '()))
	 (num (modulo (ly:pitch-semitones (ly:pitch-diff pitch #{ a #})) 12)))
 (set-cdr! p (cons (cons num chordname) (cdr p)

#(define (stats-list)
   (define (sort-pairs lst)
 (map cdr
	  (sort-list lst car<)))
   (map (lambda (e)
	#{ \markuplist \override-lines #'(word-space . 1) \wordwrap-lines
	   #(cons (format #f "~d reeds:" (car e))
	 (fold-right
	  (lambda (next lst)
	   (cons (string-append next (if (null? lst) "." ",")) lst))
	  '() (sort-pairs (reverse (cdr e) #})
	(sort-list (hash-table->alist stats) car<)))

chordmap =
#(define-music-function (start width music)
   (number-or-pitch? index? ly:music?)
   (if (ly:pitch? start) (set! start (ly:pitch-semitones start)))
   (map-some-music
(lambda (m)
  (and
   (music-is-of-type? m 'event-chord)
   (begin
	 (set! (ly:music-property m 'elements)
	   (append-map
		(lambda (x)
		  (let ((p (ly:music-property x 'pitch)))
		(if (ly:pitch? p)
			(let loop ((n (ly:make-pitch
   (- (ly:pitch-octave p)
	  (floor (/ (- (ly:pitch-semitones p) start)
		12)))
   (ly:pitch-notename p)
   (ly:pitch-alteration p)))
   (l '()))
			  (if (< (ly:pitch-semitones n)
 (+ start width))
			  (loop (ly:pitch-transpose (ly:make-pitch 1 0 0) n)
(cons (music-clone x 'pitch n) l))
			  l))
			(list x
		(ly:music-property m 'elements)))
	 m)))
music))

#(define (conflate keys vals)
   (define (folder k v res)
 (if (or (null? res)
	 (not (equal? v (cdar res
	 (cons (cons (list k) v) res)
	 (cons (cons (cons k (caar res)) (cdar res)) (cdr res
   (fold-right folder '() keys vals))

#(define (one-set start count music)
   (map (lambda (kv)
	  (let ((keys (car kv)) (m (cdr kv)))
	(cons (if (null? (cdr keys))
		  (format "~d" (car keys))
		  (format "~d–~d" (car keys) (last keys)))
		  m)))
	(conflate (iota count 1)
		  (map
		   (lambda (i) #{ \chordmap #i #12 $music #})
		   (iota count (ly:pitch-semitones start))

#(define (bass-format-set pitch name)
   (let ((bass #{ \chordmap e,, 12 < $pitch >4 #})
	 (accf #{ \chordmap a, 41 < $pitch >4 #})
	 (accp (one-set #{ a, #} 20 #{ < $pitch >4 #})))
 (add-to-stats pitch (string-upcase name) (+ 2 (* 2 (length (ly:music-property accf ' elements)
 #{ << \context Staff = "hi"
   << \new Voice \with \tv-one
  { \tempo \markup \caps #name \transpose c c' $accf }
  \new Voice \with \tv-two { <>_"*" $accf } >>
   \context Staff = \bass-staff
   { \clef \bass-clef \key $pitch \major
 << \new Voice \with \bv-one \transpose c c' $bass
	\new Voice \with \bv-two { $bass } >>
	   }
>>
	$@(map (lambda (p)
		 (let ((idx (car p)) (m (cdr p)))
		   #{ << \context Staff = "hi"
 << \new Voice \with \tv-one \transpose c c' $m
\new Voice \with \tv-

Re: How can I make a 7.9+.9- chord?

2017-09-28 Thread Marc Hohl

Am 28.09.2017 um 18:31 schrieb gumblex:

Dear list,

I would like to write a "dis:7.9+.9-" chord in \chordmode. However, both
in ChordNames lines and in scores, it appears to be a "dis:7.9-" chord.
If I write "dis:7.9-.9+", it appears to be a "dis:7.9+" chord.


This is a current restriction of LilyPond's chord handling abilities.
You cannot use two alterations of the same interval.

Marc

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


Re: How can I make a 7.9+.9- chord?

2017-09-28 Thread Ben

On 9/28/2017 12:31 PM, gumblex wrote:

Dear list,

I would like to write a "dis:7.9+.9-" chord in \chordmode. However, both
in ChordNames lines and in scores, it appears to be a "dis:7.9-" chord.
If I write "dis:7.9-.9+", it appears to be a "dis:7.9+" chord.


Hmm, I haven't seen it written like that, but are you talking about a 
flat 9 / sharp 9 chord? or...?




Is this a bug? And how can I display this chord correctly in a
ChordNames line?

___
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: How can I make a 7.9+.9- chord?

2017-09-28 Thread Marc Hohl

Am 28.09.2017 um 18:31 schrieb gumblex:
[...]And how can I display this chord correctly in a

ChordNames line?


This is untested, but IIRC

\once\override ChordName.text = \markup { ... }

should work.


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




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


Re: fretboard-bug?

2017-09-28 Thread Thomas Morley
2017-09-28 13:50 GMT+02:00 Malte Meyn :
>
>
> Am 28.09.2017 um 13:08 schrieb bb:
>>
>>  #"1-1; 1-1;o;o;2-2;" %
>
>
> This is not a bug but you have an extra space here. It should be
>
> #"1-1;1-1;o;o;2-2;" % correct
> #"1-1; 1-1;o;o;2-2;" % wrong but not a bug



commit e2e1656c9d0897fb45a215bdcb96b146100c33e2
Author: Thomas Morley 
Date:   Sun Aug 23 15:24:06 2015 +0200

Clear fret-diagram- and harp-pedal-input-strings from whitespace

issue 4575

Whitespace-characters are deleted before further processing.

Allows for
\markup \fret-diagram #"s:2;h:5;
6-3;5-5;4-5;3-4;2-3;1-x;"

Also adding errors for typos in fret-diagram with a meaningful message:
\markup \fret-diagram #"s:2;g:r;
6-3;5-5;4-5;3-4;2-3;1-x;"
will return:
fatal error: Unhandled entry in fret-diagram "g:r" in "g:r"

This error would not apply, if something for #\g would be defined
in fret-parse-definition-string somewhere in the future.

Then, the message would be:
fatal error: Unhandled entry in fret-diagram "r" in "g:r"

Something similiar is already in harp-pedals.scm


was meant to remove unwanted white-space from input-strings for markup-commands.

5204 Remove white-space from storePredefinedDiagram input-string
https://sourceforge.net/p/testlilyissues/issues/5204/

now does the same for storePredefinedDiagram.


Cheers,
  Harm

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


Re: How can I make a 7.9+.9- chord?

2017-09-28 Thread Thomas Morley
2017-09-28 21:34 GMT+02:00 Marc Hohl :
> Am 28.09.2017 um 18:31 schrieb gumblex:
>>
>> Dear list,
>>
>> I would like to write a "dis:7.9+.9-" chord in \chordmode. However, both
>> in ChordNames lines and in scores, it appears to be a "dis:7.9-" chord.
>> If I write "dis:7.9-.9+", it appears to be a "dis:7.9+" chord.
>
>
> This is a current restriction of LilyPond's chord handling abilities.
> You cannot use two alterations of the same interval.
>
> Marc



Rather a restriction of this input-syntax in chordmode.

\version "2.19.56"

\new ChordNames
\chordmode {
< dis' fisis' ais' cis'' e'' eisis'' >
}

works.

Cheers,
  Harm

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


Re:How can I make a 7.9+.9- chord

2017-09-28 Thread Flaming Hakama by Elaine
> Dear list,
>>
>> I would like to write a "dis:7.9+.9-" chord in \chordmode. However, both
>> in ChordNames lines and in scores, it appears to be a "dis:7.9-" chord.
>> If I write "dis:7.9-.9+", it appears to be a "dis:7.9+" chord.
>>
>
> This is a current restriction of LilyPond's chord handling abilities.
> You cannot use two alterations of the same interval.
>
> Marc


Here's one way to do it, if somewhat unsemantically, by treating the b9 as
a #8:


\version "2.19.15"

myChordNames = {
1-\markup { \raise #0.7 { \normalsize 7 } \raise
#3.9 { \tiny \center-column { \lower #1.25 { " b9" } " #9" } } }
}
chExceptions = #(append (sequential-music-to-chord-exceptions myChordNames
#t) ignatzekExceptions)


songChords = \chordmode {
\set chordNameExceptions = #chExceptions
dis:7.8+.9+
}
songMusic = \relative { R1 }

\score {
\new StaffGroup <<
\new ChordNames { \songChords }
\new Staff { \songMusic }
>>
}


HTH,

David Elaine Alt
415 . 341 .4954   "*Confusion is
highly underrated*"
ela...@flaminghakama.com
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Header

2017-09-28 Thread Simon Albrecht

On 28.09.2017 17:29, Wols Lists wrote:

On 28/09/17 12:35, Mario Moles wrote:

I would like, in small format, the title of the song on every page!


This sounds like you want to do what I've done. In my case, the default
headers are wrong because they centre the instrument name under the
title - I want them left-justified on the page.

Somebody pointed me at the "paper" function bookTitleMarkup, I guess
you'll want the header/footer functions - you'll have to find them
yourself, I haven't got a clue what they're called :-)


It’s not like Malte and I hadn’t already mentioned oddHeaderMarkup and 
evenHeaderMarkup. Also, they aren’t functions, they’re variables that 
are defined in \paper{}.



Copy them into your personal include directory, edit them so they put
the song title where you want it, and then include them in the paper
block of every relevant score.

Works a treat for me, so long as I remember the line

\include "../../Include/paper.bookTitleMarkup"


Two more hints on that: Lily is pretty good at merging multiple \paper 
or \header or \layout blocks, so just write a proper \paper block in 
your include file and include it on top level in your main document.
Also, instead of manually specifying the path to your Include directory, 
it’s much more convenient to add it to Lily’s search path, either using 
the Frescobaldi preferences dialog or, if you run LilyPond from the 
command line, defining an alias in your ~/.bashrc so Lily is always run 
with the -I /path/to/include/directory switch.


Best, Simon

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


Re: How can I make a 7.9+.9- chord?

2017-09-28 Thread Jacques Menu Muzhic
Hello gumblex,

As a dirty hack, you can fool LilyPond by using a minor tenth and forcing it to 
be displayed as an augmented ninth.

HTH!

JM


%%%

\version "2.19"

\header {
  title  = "Test Jazz"
}

% correct markup for "b" and "#" (use symbols from current font...)
chordFlat = \markup { \hspace #0.2 \fontsize #-1 \raise #0.3 \flat }
chordSharp = \markup { \hspace #0.1 \fontsize #-1 \raise #0.3 \sharp }


%\include "JazzChordsExceptions.ily"
myJazzChords =
{
  -\markup { \super { "7/" \chordFlat "9/" \chordSharp "9" 
} }
}

jazzChordsExceptions =
#(append (sequential-music-to-chord-exceptions myJazzChords #t))

P_POne_HARMONY_Staff_HARMONY_Voice = \chordmode {

  \set chordNameSeparator = \markup { "/" }
  \set chordNameExceptions = #jazzChordsExceptions

  \time 4/4

  dis1:7.9-.10- | %1

  \bar "|."
}

P_POne_Staff_One_Voice_One = \relative {
  \time 4/4
  % \clef "treble"
  \key f \major

  dis'1

  \bar "|."
}


\score {
  <<

\context ChordNames = "P_POne_HARMONY_Staff_HARMONY_Voice"
\P_POne_HARMONY_Staff_HARMONY_Voice

\new Staff = "P_POne_Staff_One"
\with { instrumentName = "Theme in dis"}
<<
  \context Voice = "P_POne_Staff_One_Voice_One" <<
\clef "treble"
\P_POne_Staff_One_Voice_One
  >>
>>
  >>

  \layout {
  }

}

%%%


> Le 28 sept. 2017 à 21:34, Marc Hohl  a écrit :
> 
> Am 28.09.2017 um 18:31 schrieb gumblex:
>> Dear list,
>> I would like to write a "dis:7.9+.9-" chord in \chordmode. However, both
>> in ChordNames lines and in scores, it appears to be a "dis:7.9-" chord.
>> If I write "dis:7.9-.9+", it appears to be a "dis:7.9+" chord.
> 
> This is a current restriction of LilyPond's chord handling abilities.
> You cannot use two alterations of the same interval.
> 
> Marc
> 
> ___
> 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


Exited with return code 1. - Guile signal error & cannot find context to switch to

2017-09-28 Thread MING TSANG
Dear lilyponders,I run (compile) the attached test-tempo.ly and receive the 
following error (Exited with return code 1.)However, the pdf output seems 
OK.Ming


Starting lilypond-windows.exe 2.19.65 [test-tempo.ly]...Processing 
`C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly'Parsing...programming
 error: Unknown type predicatecontinuing, cross 
fingersC:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:152:43:
 error: GUILE signaled an error for the expression beginning here \set 
Score.tempoWholesPerMinute = # (ly:make-moment 76 4.)
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:166:5:
 error: error in #{ ... #}  \rehearsalMidi "soprano" "soprano sax" 
\verseSopranoVoice
Interpreting music...warning: type check for `tempoWholesPerMinute' failed; 
value `#' must be of type 
`moment'C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:85:12:
 warning: cannot find context to switch to  \change Staff = "right" bf8 df' gf' 
bf'4 g'8) |}
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:86:12:
 warning: cannot find context to switch tolft.44 = {  \change Staff = "left" 
ef,8( bf, ef 
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:87:12:
 warning: cannot find context to switch to  \change Staff = right gf8 bf df' 
4.) |}
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:88:12:
 warning: cannot find context to switch tolft.45 = {  \change Staff = left 
df,8( af, df
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:89:12:
 warning: cannot find context to switch to  \change Staff = right f8 af df' 
4.) |} 
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:90:12:
 warning: cannot find context to switch tolft.46 = {  \change Staff = left 
<<{r4. bf, af,}\\{bf,,2. r4.}>> |}
MIDI output to `test-tempo-sop.mid'...programming error: Unknown type 
predicatecontinuing, cross 
fingersC:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:152:43:
 error: GUILE signaled an error for the expression beginning here \set 
Score.tempoWholesPerMinute = # (ly:make-moment 76 4.)
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:176:5:
 error: error in #{ ... #}  \rehearsalMidi "tenor" "tenor sax" \verseTenorVoice
Interpreting music...warning: type check for `tempoWholesPerMinute' failed; 
value `#' must be of type 
`moment'C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:85:12:
 warning: cannot find context to switch to  \change Staff = "right" bf8 df' gf' 
bf'4 g'8) |}
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:86:12:
 warning: cannot find context to switch tolft.44 = {  \change Staff = "left" 
ef,8( bf, ef 
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:87:12:
 warning: cannot find context to switch to  \change Staff = right gf8 bf df' 
4.) |}
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:88:12:
 warning: cannot find context to switch tolft.45 = {  \change Staff = left 
df,8( af, df
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:89:12:
 warning: cannot find context to switch to  \change Staff = right f8 af df' 
4.) |} 
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:90:12:
 warning: cannot find context to switch tolft.46 = {  \change Staff = left 
<<{r4. bf, af,}\\{bf,,2. r4.}>> |}
MIDI output to `test-tempo-ten.mid'...Interpreting music...Preprocessing 
graphical objects...Interpreting music...MIDI output to 
`test-tempo.mid'...Finding the ideal number of pages...Fitting music on 1 
page...Drawing systems...Layout output to `./tmp-lilypond-pTm2Ng'...Converting 
to `test-tempo.pdf'...Deleting `./tmp-lilypond-pTm2Ng'...Wrong type argument in 
position 2 (expecting unknown type): 4.0Wrong type argument in position 2 
(expecting unknown type): 4.0fatal error: failed files: 
"C:\\Users\\user\\AppData\\Local\\Temp\\frescobaldi-t7bi8umh\\tmp4uf0oy18\\test-tempo.ly"Exited
 with return code 1.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Exited with return code 1. - Guile signal error & cannot find context to switch to

2017-09-28 Thread Ben

On 9/28/2017 8:43 PM, MING TSANG wrote:

Dear lilyponders,
I run (compile) the attached test-tempo.ly and receive the following 
error (Exited with return code 1.)

However, the pdf output seems OK.
Ming


Starting lilypond-windows.exe 2.19.65 [test-tempo.ly]...
Processing 
`C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly'

Parsing...
programming error: Unknown type predicate
continuing, cross fingers
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:152:43 
: *error: GUILE signaled an error for the 
expression beginning here*

\set Score.tempoWholesPerMinute = #
(ly:make-moment 76 4.)

C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:166:5 
:*error: error in #{ ... #}*

**
*\rehearsalMidi "soprano" "soprano sax" \verseSopranoVoice*

*Interpreting music...*
*warning: type check for `tempoWholesPerMinute' failed; value 
`#' must be of type `moment'*
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:85:12 
: *warning: cannot find context to switch to*

**
*\change Staff = "right" bf8 df' gf' bf'4 g'8) |}*

C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:86:12 
: warning: cannot find context to switch to

lft.44 = {
\change Staff = "left" ef,8( bf, ef

C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:87:12 
: warning: cannot find context to switch to

\change Staff = right gf8 bf df' 4.) |}


MIDI output to `test-tempo-ten.mid'...
Interpreting music...
Preprocessing graphical objects...
Interpreting music...
MIDI output to `test-tempo.mid'...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `./tmp-lilypond-pTm2Ng'...
Converting to `test-tempo.pdf'...
Deleting `./tmp-lilypond-pTm2Ng'...
Wrong type argument in position 2 (expecting unknown type): 4.0
Wrong type argument in position 2 (expecting unknown type): 4.0
fatal error: failed files: 
"C:\\Users\\user\\AppData\\Local\\Temp\\frescobaldi-t7bi8umh\\tmp4uf0oy18\\test-tempo.ly"


Hi Ming,

I didn't see any attached files with this message, just a heads up.

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


Re: Exited with return code 1. - Guile signal error & cannot find context to switch to

2017-09-28 Thread MING TSANG
Sorry for the missing attachment .ly file.  Here it is.

  From: MING TSANG 
 To: Lilypond-usermailinglist  
 Sent: Thursday, September 28, 2017 8:43 PM
 Subject: Exited with return code 1. - Guile signal error & cannot find context 
to switch to
   
Dear lilyponders,I run (compile) the attached test-tempo.ly and receive the 
following error (Exited with return code 1.)However, the pdf output seems 
OK.Ming


Starting lilypond-windows.exe 2.19.65 [test-tempo.ly]...Processing 
`C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly'Parsing...programming
 error: Unknown type predicatecontinuing, cross 
fingersC:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:152:43:
 error: GUILE signaled an error for the expression beginning here \set 
Score.tempoWholesPerMinute = # (ly:make-moment 76 4.)
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:166:5:
 error: error in #{ ... #}  \rehearsalMidi "soprano" "soprano sax" 
\verseSopranoVoice
Interpreting music...warning: type check for `tempoWholesPerMinute' failed; 
value `#' must be of type 
`moment'C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:85:12:
 warning: cannot find context to switch to  \change Staff = "right" bf8 df' gf' 
bf'4 g'8) |}
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:86:12:
 warning: cannot find context to switch tolft.44 = {  \change Staff = "left" 
ef,8( bf, ef 
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:87:12:
 warning: cannot find context to switch to  \change Staff = right gf8 bf df' 
4.) |}
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:88:12:
 warning: cannot find context to switch tolft.45 = {  \change Staff = left 
df,8( af, df
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:89:12:
 warning: cannot find context to switch to  \change Staff = right f8 af df' 
4.) |} 
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:90:12:
 warning: cannot find context to switch tolft.46 = {  \change Staff = left 
<<{r4. bf, af,}\\{bf,,2. r4.}>> |}
MIDI output to `test-tempo-sop.mid'...programming error: Unknown type 
predicatecontinuing, cross 
fingersC:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:152:43:
 error: GUILE signaled an error for the expression beginning here \set 
Score.tempoWholesPerMinute = # (ly:make-moment 76 4.)
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:176:5:
 error: error in #{ ... #}  \rehearsalMidi "tenor" "tenor sax" \verseTenorVoice
Interpreting music...warning: type check for `tempoWholesPerMinute' failed; 
value `#' must be of type 
`moment'C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:85:12:
 warning: cannot find context to switch to  \change Staff = "right" bf8 df' gf' 
bf'4 g'8) |}
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:86:12:
 warning: cannot find context to switch tolft.44 = {  \change Staff = "left" 
ef,8( bf, ef 
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:87:12:
 warning: cannot find context to switch to  \change Staff = right gf8 bf df' 
4.) |}
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:88:12:
 warning: cannot find context to switch tolft.45 = {  \change Staff = left 
df,8( af, df
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:89:12:
 warning: cannot find context to switch to  \change Staff = right f8 af df' 
4.) |} 
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:90:12:
 warning: cannot find context to switch tolft.46 = {  \change Staff = left 
<<{r4. bf, af,}\\{bf,,2. r4.}>> |}
MIDI output to `test-tempo-ten.mid'...Interpreting music...Preprocessing 
graphical objects...Interpreting music...MIDI output to 
`test-tempo.mid'...Finding the ideal number of pages...Fitting music on 1 
page...Drawing systems...Layout output to `./tmp-lilypond-pTm2Ng'...Converting 
to `test-tempo.pdf'...Deleting `./tmp-lilypond-pTm2Ng'...Wrong type argument in 
position 2 (expecting unknown type): 4.0Wrong type argument in position 2 
(expecting unknown type): 4.0fatal error: failed files: 
"C:\\Users\\user\\AppData\\Local\\Temp\\frescobaldi-t7bi8umh\\tmp4uf0oy18\\test-tempo.ly"Exited
 with return code 1.

   \version "2.19"
\language "english"

\header {
  subtitle = "Come to the Feast"
  composer = "Mary Kay Beall"
}

\layout {
  \context {
\Voice
\consists "Melody_engraver"
\override Stem #'neutral-direction = #'()
  }
}

global = {
  \key ef \major
  \time 9/8
  \tempo 4.=76
}

eVar =
#(define-music-function (xx start stop) (list? index? index?)
   #{ #@(map (lambda (i) #{ $xx . #i #}) (iota (- stop start -1) start)) #})


sop.0 = R8*9

sop.42 = { g'2. r4. |}
sop.4

Re: Exited with return code 1. - Guile signal error & cannot find context to switch to

2017-09-28 Thread Malte Meyn

This code has two errors:

1. You didn’t name the staves "left" and "right" in the definition of 
rehearsalMidi.

2. ly:make-moment doesn’t take durations but numbers. So it has to be
\set Score.tempoWholesPerMinute = #(ly:make-moment 228 8)
or
\tempo 4. = 76
instead of
\set Score.tempoWholesPerMinute = #(ly:make-moment 76 4.)
This leads to the Guile error because it happens within the definition 
of rehearsalMidi which is written in Scheme.


Am 29.09.2017 um 04:56 schrieb MING TSANG:

Sorry for the missing attachment .ly file.  Here it is.



*From:* MING TSANG 
*To:* Lilypond-usermailinglist 
*Sent:* Thursday, September 28, 2017 8:43 PM
*Subject:* Exited with return code 1. - Guile signal error & cannot find 
context to switch to


Dear lilyponders,
I run (compile) the attached test-tempo.ly and receive the following 
error (Exited with return code 1.)

However, the pdf output seems OK.
Ming


Starting lilypond-windows.exe 2.19.65 [test-tempo.ly]...
Processing 
`C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly'

Parsing...
programming error: Unknown type predicate
continuing, cross fingers
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:152:43 
: *error: GUILE signaled an error for the 
expression beginning here*

\set Score.tempoWholesPerMinute = #
(ly:make-moment 76 4.)

C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:166:5 
:*error: error in #{ ... #}*

**
*\rehearsalMidi "soprano" "soprano sax" \verseSopranoVoice*

*Interpreting music...*
*warning: type check for `tempoWholesPerMinute' failed; value 
`#' must be of type `moment'*
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:85:12 
: *warning: cannot find context to switch to*

**
*\change Staff = "right" bf8 df' gf' bf'4 g'8) |}*

C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:86:12 
: warning: cannot find context to switch to

lft.44 = {
\change Staff = "left" ef,8( bf, ef

C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:87:12 
: warning: cannot find context to switch to

\change Staff = right gf8 bf df' 4.) |}

C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:88:12 
: warning: cannot find context to switch to

lft.45 = {
\change Staff = left df,8( af, df

C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:89:12 
: warning: cannot find context to switch to

\change Staff = right f8 af df' 4.) |}

C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:90:12 
: warning: cannot find context to switch to

lft.46 = {
\change Staff = left <<{r4. bf, af,}\\{bf,,2. r4.}>> |}

MIDI output to `test-tempo-sop.mid'...
programming error: Unknown type predicate
continuing, cross fingers
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:152:43 
: error: GUILE signaled an error for the 
expression beginning here

\set Score.tempoWholesPerMinute = #
(ly:make-moment 76 4.)

C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:176:5 
: error: error in #{ ... #}

\rehearsalMidi "tenor" "tenor sax" \verseTenorVoice

Interpreting music...
warning: type check for `tempoWholesPerMinute' failed; value 
`#' must be of type `moment'
C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:85:12 
: warning: cannot find context to switch to

\change Staff = "right" bf8 df' gf' bf'4 g'8) |}

C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:86:12 
: warning: cannot find context to switch to

lft.44 = {
\change Staff = "left" ef,8( bf, ef

C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:87:12 
: warning: cannot find context to switch to

\change Staff = right gf8 bf df' 4.) |}

C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:88:12 
: warning: cannot find context to switch to

lft.45 = {
\change Staff = left df,8( af, df

C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:89:12 
: warning: cannot find context to switch to

\change Staff = right f8 af df' 4.) |}

C:/Users/user/AppData/Local/Temp/frescobaldi-t7bi8umh/tmp4uf0oy18/test-tempo.ly:90:12 
: warning: cannot find context to switch to

lft.46 = {
\change Staff = left <<{r4. bf, af,}\\{bf,,2. r4