lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lilypond-user Digest, Vol 104, Issue 64


From: Father Gordon Gilbert
Subject: Re: lilypond-user Digest, Vol 104, Issue 64
Date: Tue, 19 Jul 2011 06:06:22 -0400

On 18/07/2011, address@hidden
<address@hidden> wrote:
> Send lilypond-user mailing list submissions to
>       address@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
>       https://lists.gnu.org/mailman/listinfo/lilypond-user
> or, via email, send a message with subject or body 'help' to
>       address@hidden
>
> You can reach the person managing the list at
>       address@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of lilypond-user digest..."
>
>
> Today's Topics:
>
>    1. Re:problem with svg-output (address@hidden)
>    2. Re:Renaissance lute and tab (Mario Moles)
>    3. Re:Renaissance lute and tab (Federico Bruni)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 18 Jul 2011 14:52:21 +0200
> From: "address@hidden" <address@hidden>
> To: Stefan Thomas <address@hidden>
> Cc: lilypond-user <address@hidden>
> Subject: Re: problem with svg-output
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> On Jul 18, 2011, at 2:23 PM, Stefan Thomas wrote:
>
>> Dear community,
>> when I compile the following file with
>> lilypond -dbackend=svg
>> the svg-output looks different to the pdf, I've compiled with lilypond.
>> The symbol for "muchair" is not displayed correctly.
>> Here the example:
>>
>> \version "2.14.1"
>> %%%%%% note with air
>>
>> #(define (airohalf radius height thick)
>>     (string-append "gsave
>>                     /msellipse {
>>                           /endangle exch def
>>                           /startangle exch def
>>                           /yrad exch def
>>                           /xrad exch def
>>                           /y exch def
>>                           /x exch def
>>                           /savematrix matrix currentmatrix def
>>                           x y translate
>>                           xrad yrad scale
>>                           0 0 1 startangle endangle arc
>>                           savematrix setmatrix
>>                       } def
>>                     /rad " (number->string radius) " def
>>                     /offset " (number->string height) " rad mul def
>>                     /ecenter 0 offset add def
>>                     /xradius rad rad mul offset offset mul sub sqrt def
>>                     /yradius rad offset sub def
>>                     " (number->string thick) " setlinewidth
>>                     currentpoint translate
>>                     0 0 moveto
>>                     newpath
>>                             0 rad rad 0 360 arc
>>                             fill
>>                     0 rad translate
>>                     1 1 1 setcolor
>>                     newpath
>>                             0 ecenter xradius yradius 0 -180 msellipse
>>                             closepath
>>                             fill
>>                     0 0 rad sub translate
>>                     0 0 0 setcolor
>>                     newpath
>>                             0 rad rad 0 360 arc
>>                             stroke
>>                     grestore"))
>>
>> #(define (airuhalf radius height thick)
>>     (string-append "gsave
>>                     /msellipse {
>>                           /endangle exch def
>>                           /startangle exch def
>>                           /yrad exch def
>>                           /xrad exch def
>>                           /y exch def
>>                           /x exch def
>>                           /savematrix matrix currentmatrix def
>>                           x y translate
>>                           xrad yrad scale
>>                           0 0 1 startangle endangle arc
>>                           savematrix setmatrix
>>                       } def
>>                     /rad " (number->string radius) " def
>>                     /offset " (number->string height) " rad mul def
>>                     /ecenter 0 offset sub def
>>                     /xradius rad rad mul offset offset mul sub sqrt def
>>                     /yradius 0 rad offset sub sub def
>>                     " (number->string thick) " setlinewidth
>>                     currentpoint translate
>>                     0 0 moveto
>>                     newpath
>>                             0 rad rad 0 360 arc
>>                             stroke
>>                     0 rad translate
>>                     newpath
>>                             0 ecenter xradius yradius 0 -180 msellipse
>>                             closepath
>>                             fill
>>                     grestore"))
>>
>>
>> #(define-markup-command (airytone layout props radius height thick)
>>    (number? number? number?)
>>    (let ((longstring ""))
>>      (set! height (max (min height 1) 0))
>>      (if (> height 0.5)
>>          (set! longstring (airohalf radius (* 2 (- height 0.5)) thick))
>>          (set! longstring (airuhalf radius (- 1 (* 2 height)) thick)))
>>      (ly:make-stencil
>>       (list 'embedded-ps longstring)
>>       (cons 0 0) (cons 0 2))))
>>
>> muchair =  \markup { \airytone #1.0 #1.0 #0.1 }
>> motiv =  { \times 4/5 {a32-.->\f [ b-.  c'-.   cis'-.   d'-.   ]} }
>> \new Staff {
>>   \override TextSpanner #'(bound-details left text) = \muchair % der Text,
>> mit der TextSpanner beginnt
>> r2 r4 r8  \context Voice << {\motiv} {s8 \startTextSpan  }>> \times 4/5 {
>> cis' 32-.   d'-.   es'-.   \stopTextSpan   r16   } r8 r4 r2
>>
>> }
>
> You cannot use the embedded-ps command in an SVG (PS does not embed in SVG).
> Given that these are drawing simple circles and not ellipses, you can
> rewrite this using LilyPond stencil commands.  These commands will export to
> all backends.
>
> Cheers,
> MS
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 18 Jul 2011 16:51:09 +0200
> From: Mario Moles <address@hidden>
> To: Janek Warcho? <address@hidden>
> Cc: address@hidden
> Subject: Re: Renaissance lute and tab
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Janek! Thank's!
> I have understood. But lilypond says this log:
> Elaborazione di ?tab.ly?
> Analisi...
> tab.ly:11:31: errore: GUILE ha segnalato un errore per l'espressione che
> inizia qui
> \set TabStaff.stringTunings = #
>                                `(   ,(ly:make-pitch 0 0 0)
> Interpretazione della musica...
> attenzione: controllo del tipo per ?stringTunings? fallito; il valore
> ?#<unspecified>? deve essere del tipo ?list?
> Pre-elaborazione degli oggetti grafici...
> Determinazione del numero ottimale di pagine...
> Compressione della musica in una pagina...
> Disegno dei sistemi...
> Output della formattazione inviato a ?tab.ps?...
> Conversione a ?./tab.pdf?...
> errore: errore nei file: "tab.ly"
> Wrong type (expecting exact integer): 4.0
> LilyPond [tab.ly] ? uscito con il codice 1.
>
> --
> oiram/bin/selom
> MkarlM-HomePage
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> </archive/html/lilypond-user/attachments/20110718/4d9da595/attachment.html>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: tab.ly
> Type: text/x-lilypond
> Size: 593 bytes
> Desc: not available
> URL:
> </archive/html/lilypond-user/attachments/20110718/4d9da595/attachment.bin>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 18 Jul 2011 17:32:15 +0200
> From: Federico Bruni <address@hidden>
> To: Mario Moles <address@hidden>
> Cc: address@hidden
> Subject: Re: Renaissance lute and tab
> Message-ID:
>       <address@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> Mario,
>
> when you want to share the lilypond output in this mailing list, you should
> write this command in the terminal before running lilypond:
>
> export LANG=en
>
> or
>
> export LANG=C
>
> (maybe the latter is better)
>
> Even though Jan will probably be able to help you nevertheless.
>
> 2011/7/18 Mario Moles <address@hidden>
>
>> **
>>
>> Hi Janek! Thank's!
>>
>> I have understood. But lilypond says this log:
>>
>> Elaborazione di ?tab.ly?
>>
>> Analisi...
>>
>> tab.ly:11:31: errore: GUILE ha segnalato un errore per l'espressione che
>> inizia qui
>>
>> \set TabStaff.stringTunings = #
>>
>> `( ,(ly:make-pitch 0 0 0)
>>
>> Interpretazione della musica...
>>
>> attenzione: controllo del tipo per ?stringTunings? fallito; il valore
>> ?#<unspecified>? deve essere del tipo ?list?
>>
>> Pre-elaborazione degli oggetti grafici...
>>
>> Determinazione del numero ottimale di pagine...
>>
>> Compressione della musica in una pagina...
>>
>> Disegno dei sistemi...
>>
>> Output della formattazione inviato a ?tab.ps?...
>>
>> Conversione a ?./tab.pdf?...
>>
>> errore: errore nei file: "tab.ly"
>>
>> Wrong type (expecting exact integer): 4.0
>>
>> LilyPond [tab.ly] ? uscito con il codice 1.
>>
>>
>> --
>>
>> oiram/bin/selom
>>
>> MkarlM-HomePage <http://mariomoles.altervista.org/>
>>
>> _______________________________________________
>> lilypond-user mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> </archive/html/lilypond-user/attachments/20110718/8c814884/attachment.html>
>
> ------------------------------
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> End of lilypond-user Digest, Vol 104, Issue 64
> **********************************************
>


-- 
Fr. Gordon Gilbert
Penetanguishene, ON



reply via email to

[Prev in Thread] Current Thread [Next in Thread]