Re: markup

2024-06-06 Thread ming tsang
PS forgot to include the output pdf.

On Thu, Jun 6, 2024 at 5:12 PM ming tsang  wrote:

> Dear Valentin,
>
> The "%\rouded-box" is a misplaced typo. Once I delete the \rounded-box
> trom the code you sent me, it works A-ok.  Your code answers my two
> questions.
> I might try to put a rounded-box on the two markups.
>
> On Thu, Jun 6, 2024 at 4:26 PM Valentin Petzel  wrote:
>
>> Hello,
>>
>> Do you mean something like this:
>>
>> \version "2.24.3"
>> \markup\line {
>>   \circle" 1. "
>>   \box \override #'(line-width . 40) \fill-line { "\t\musicglyh \tlsr?" }
>> %
>> \rounded-box
>> }
>> \markup \vspace #0.75
>>
>> Cheers,
>> Valentin
>>
>> Am Donnerstag, 6. Juni 2024, 23:16:51 MESZ schrieb ming tsang:
>> > Dear Lilyponders,
>> > I have two markups printed in two lines.
>> > questions:
>> > 1.. How to print the two markups side-by-side on one line
>> > 2.. How to shorten the fill-line or have an arg to determine the width.
>> > Here is the lily markup code:
>> > \version "2.24.3"
>> > \markup\circle" 1. "
>> > \markup \box \fill-line { "\t\musicglyh \tlsr?" } %\rounded-box
>> > \markup \vspace #0.75
>> > --
>> > ming (lyndon) tsang
>>
>>
>
> --
> ming (lyndon) tsang
>


-- 
ming (lyndon) tsang


markup_two markup in the same print..pdf
Description: Adobe PDF document


Re: markup

2024-06-06 Thread ming tsang
Dear Valentin,

The "%\rouded-box" is a misplaced typo. Once I delete the \rounded-box trom
the code you sent me, it works A-ok.  Your code answers my two questions.
I might try to put a rounded-box on the two markups.

On Thu, Jun 6, 2024 at 4:26 PM Valentin Petzel  wrote:

> Hello,
>
> Do you mean something like this:
>
> \version "2.24.3"
> \markup\line {
>   \circle" 1. "
>   \box \override #'(line-width . 40) \fill-line { "\t\musicglyh \tlsr?" } %
> \rounded-box
> }
> \markup \vspace #0.75
>
> Cheers,
> Valentin
>
> Am Donnerstag, 6. Juni 2024, 23:16:51 MESZ schrieb ming tsang:
> > Dear Lilyponders,
> > I have two markups printed in two lines.
> > questions:
> > 1.. How to print the two markups side-by-side on one line
> > 2.. How to shorten the fill-line or have an arg to determine the width.
> > Here is the lily markup code:
> > \version "2.24.3"
> > \markup\circle" 1. "
> > \markup \box \fill-line { "\t\musicglyh \tlsr?" } %\rounded-box
> > \markup \vspace #0.75
> > --
> > ming (lyndon) tsang
>
>

-- 
ming (lyndon) tsang


markup

2024-06-06 Thread ming tsang
Dear Lilyponders,
I have two markups printed in two lines.
questions:
1.. How to print the two markups side-by-side on one line
2.. How to shorten the fill-line or have an arg to determine the width.
Here is the lily markup code:
\version "2.24.3"
\markup\circle" 1. "
\markup \box \fill-line { "\t\musicglyh \tlsr?" } %\rounded-box
\markup \vspace #0.75
--
ming (lyndon) tsang


Re: running lilypond

2024-05-24 Thread ming tsang
Good morning Jean:
Thank you for the quick answer.
I have not used the terminal to run lilypond. I have been using frecobaldi
v3.1 and lilypond v16.  I was hoping to use the .ly file to run terminal
lilypond.
I will not learn using terminal lilypond. If a .ly file cannot run terminal
lilypond, it is fine with me.
BTW I am running window 10
Ming (Lyndon) Tsang

On Fri, May 24, 2024 at 7:36 AM Jean Abou Samra  wrote:

> Le vendredi 24 mai 2024 à 07:23 -0600, ming tsang a écrit :
> > I try to run the following code as lilypond .ly
> > \version "2.24.3"
> > lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts myfile.ly
>
> This looks like a command that you should run in a terminal, not LilyPond
> syntax.
>
> In Frescobaldi, you can add the "-dbackend=eps -dno-gs-load-fonts
> -dinclude-eps-fonts"
> arguments in the "Additional command line options" box inside "LilyPond >
> Engrave (custom)…".
>
>
>

-- 
ming (lyndon) tsang


running lilypond

2024-05-24 Thread ming tsang
Hi lilyponders,

I try to run the following code as lilypond .ly
\version "2.24.3"
lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts myfile.ly

And I got the following in log file with Exited with return code 1.

Starting lilypond.exe 2.24.3 [Untitled]...

Processing
`C:/Users/Owner/AppData/Local/Temp/frescobaldi-hw7wj9lu/tmpw7z7ix8h/
document.ly'

Parsing...

C:/Users/Owner/AppData/Local/Temp/frescobaldi-hw7wj9lu/tmpw7z7ix8h/document.ly:3:10
<0>: error: syntax error, unexpected '-', expecting '.' or '='

lilypond

-dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts myfile.ly

C:/Users/Owner/AppData/Local/Temp/frescobaldi-hw7wj9lu/tmpw7z7ix8h/document.ly:3:24
<1>: error: syntax error, unexpected '-'

lilypond -dbackend=eps

-dno-gs-load-fonts -dinclude-eps-fonts myfile.ly

C:/Users/Owner/AppData/Local/Temp/frescobaldi-hw7wj9lu/tmpw7z7ix8h/document.ly:3:70
<2>: error: syntax error, unexpected end of input, expecting '='

lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts myfile.

ly

fatal error: failed files:
"C:\\Users\\Owner\\AppData\\Local\\Temp\\frescobaldi-hw7wj9lu\\tmpw7z7ix8h\\
document.ly"

Exited with return code 1.
--
Thank you for the help,
ming (lyndon) tsang


Re: Help using a Scheme variable in a function

2024-04-13 Thread ming tsang
Hello Mathew Fong,
I am very interested in this scheme variable in a function, however I have
a hard time generating a working .ly with sample output.
Thank you.
-- 
ming (lyndon) tsang


Re: warning

2024-03-06 Thread ming tsang
Good morning Aaron,
Thank you for pointing to theKeeping contexts alive in the lilypond manual.
it mentions not to combine <<...>> with {...} use. Now I stick to one and
the warning:cannot find context Voice=soprano message is gone. I now see
the lyrics.
Thank you very much for your help. Very much appreciated.
waiming(lyndon) Tsang

On Tue, Mar 5, 2024 at 5:06 PM Aaron Hill  wrote:

> On 2024-03-05 1:53 pm, ming tsang wrote:
> > Hi users,
> > I got the following warning message. I read some where one should not
> > ignore the warning message.
> >
> > warning: cannot find context Voice = soprano
> >
> > how to make context specification?
>
> Without more information or a MWE, we are going to be making blind
> guesses.
>
> But the most likely cause for a context not being found is that it was
> not kept alive.
>
> Please review the information here [1] and see if that helps in your
> situation.
>
> [1]:
>
> https://lilypond.org/doc/v2.24/Documentation/notation/keeping-contexts-alive
>
>
> -- Aaron Hill
>


-- 
ming (lyndon) tsang


warning

2024-03-05 Thread ming tsang
Hi users,
I got the following warning message. I read some where one should not
ignore the warning message.

warning: cannot find context Voice = soprano

how to make context specification?

Thanks
-- 
ming (lyndon) tsang


align solfege display

2022-10-08 Thread ming tsang
Hi lilyponders,
Someone helped to to produce solfege Up or below staff.
Question:
1.  How to align the solfege?
2. Is it possible to have the solfege on a seperate staff ont its own OR as
dynamic staff (line)?
Thanks for the help.
Ming Tsang
Example:
[image: image.png]
-- 
ming (lyndon) tsang


test_solfege.ly
Description: Binary data


Re: error: Unbound variable: \version

2022-09-20 Thread ming tsang
Hi Jean,
The following code is in v2.23.11 and it run OK.
\version "2.23.11"
\markup "test"

And the log file is :
Starting lilypond.exe 2.23.11 [Untitled (11)]...

Processing
`C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-7krgt6o3/tmprbzc8juy/
document.ly'

Parsing...

Finding the ideal number of pages...

Fitting music on 1 page...

Drawing systems...

Converting to `document.pdf'...

Success: compilation successfully completed

Completed successfully in 1.4".


I am just querious about the error in v2.18.2.


Ming

On Tue, Sep 20, 2022 at 4:56 AM Jean Abou Samra  wrote:

> Le 20/09/2022 à 10:18, ming tsang a écrit :
> > dear lilyponders,
> > i have the following lilypond code:
> > \version "2.18.2"
> > \markup "Test"
> >
> > That produce the following error in log file:
> >
> > Starting lilypond-windows.exe 2.18.2 [Untitled (9)]...
> >
> > C:/LilyPond_2-18-2/usr/share/lilypond/current/scm/lily.scm:462:5 <0>:
> > In procedure primitive-load-path in expression (primitive-load-path
> > file-name):
> >
> > C:/LilyPond_2-18-2/usr/share/lilypond/current/scm/lily.scm:462:5 <1>:
> > Unbound variable: \version
> >
> > Exited with return code 1.
> >
> >
> > QUESTION:
> > I have version in my computer. I have window 10, lilypond v2.18.2 and
> > v2.23.10, frecoaldi v3.2
>
>
> Does the error reproduce in 2.23.10, and if so, can you paste the exact
> error message (with the line numbers)?
>
> What is the name of the file? This sounds like LilyPond is mistaking it
> for one of its internal files.
>
> Jean
>
>

-- 
ming (lyndon) tsang


error: Unbound variable: \version

2022-09-20 Thread ming tsang
dear lilyponders,
i have the following lilypond code:
\version "2.18.2"
\markup "Test"

That produce the following error in log file:

Starting lilypond-windows.exe 2.18.2 [Untitled (9)]...

C:/LilyPond_2-18-2/usr/share/lilypond/current/scm/lily.scm:462:5 <0>: In
procedure primitive-load-path in expression (primitive-load-path file-name):

C:/LilyPond_2-18-2/usr/share/lilypond/current/scm/lily.scm:462:5 <1>:
Unbound variable: \version

Exited with return code 1.

QUESTION:
I have version in my computer. I have window 10, lilypond v2.18.2 and
v2.23.10, frecoaldi v3.2

Ming
-- 
ming (lyndon) tsang


Re: chord name does not transpose as score using language italino

2022-09-07 Thread ming tsang
Hi Hans
Thank you for the info pertaining to the known issue 6305. I found the work
around solution from the known issue link.
Ming Tsang

On Wed, Sep 7, 2022 at 2:15 AM Hans Aikema  wrote:

>
>
> On 7 Sep 2022, at 05:32, ming tsang  wrote:
>
> 
> The following code produces a png file that did not print the
> correct chord name. .
> 
> ...
> the output png screen print:
> [image: image.png]
> I am expecting to seeA C#m F#m D C#m Bm
> Any help is appreciated.
> ming (lyndon) tsang
>
>
> That would be known issue
> https://gitlab.com/lilypond/lilypond/-/issues/6305
> The work-around according to comments would be to add a \language
> "english" after the notes and before the score.
>


-- 
ming (lyndon) tsang


chord name does not transpose as score using language italino

2022-09-06 Thread ming tsang
The following code produces a png file that did not print the correct chord
name. .

\version "2.23.11"
\language "italiano"
global = {
  \key do \major
  \numericTimeSignature
  \time 4/4
}

chordNames = \chordmode {
  \global
  % Chords follow here.
  la1 dod1:m fad1:m re2 dob8:m re4.:m
%  a1 cs1:m fs1:m d2 cs8:m b4.:m
}

melody = \fixed do'' {
  \global
  % Music follows here.
  mi8 do8 mi8 do8 mi8 do8 mi8 do8
  mi8 si, mi si, mi si, mi si,
%do re mi fa sol la si
  mi8 la, mi la, mi la, mi la,
  fa8 8 8 mi8 r8 re4.
}

verse = \lyricmode {
  % Lyrics follow here.

}

\score {
  <<
\new ChordNames \chordNames
\new Staff { \melody }
\addlyrics { \verse }
  >>
  \layout { }
  \midi {
\tempo 4=158
  }
}
the output png screen print:
[image: image.png]
I am expecting to seeA C#m F#m D C#m Bm
Any help is appreciated.
ming (lyndon) tsang


Rehearsal MIDI files: in wizard

2022-08-25 Thread ming tsang
Dear lilyponders,
on frecobaldi there is a score wizard which contains Rehearsal MIDI files
option. After I install frecobalsi 3.2 I cannot locate this option.
Does it move to other section within the score wizard?
Thanks for the help.
Ming.


-- 
ming (lyndon) tsang


Compiling from the command line from Frecobaldi

2022-07-19 Thread ming tsang
How to run the command line to compile lilypond  v2.23.8 from
frecobaldi,v3.1.3?

e.g.:
$ lilypond -dbackend=svg -o test svg.ly

shalom + Emmanuel,
ming.

-- 
ming (lyndon) tsang


Re: UTF-8 unicode use in \markup

2021-11-29 Thread ming tsang
Thank you very much. Helpful information.

Sent from my iPhone

> On Nov 28, 2021, at 7:39 PM, Valentin Petzel  wrote:
> 
> Just for clarification:
> 
> 00a7 is not a special code, but a hexadecimal number. Basically any unicode 
> char is linked with a number, and the „code” is just this number in 
> hexadecimal digits.
> 
> U+ is just a way to specify that a hexadecimal number stands for a 
> unicode 
> char. In our case that function is taken by char. #xSOMETHING is just a guile 
> way of entering numbers as hexadecimal. So instead of ##x00a7 you can also do 
> ##xa7 as well as simply 167 (which is the decimal numeric value for hex A7).
> 
> Thus char basically takes a number and gives us that unicode character.
> 
> Cheers,
> Valentin
> 
> Am Montag, 29. November 2021, 01:27:37 CET schrieb ming tsang:
>> Hi Valentin Petzel,
>> Thank you for your reply.  I found a
>> UTF-8 encoding table and Unicode characters
>> https://www.utf8-chartable.de/unicode-utf8-table.pl?utf8=0x
>> Now I can look up the U+00a7 and then use \markup { \char ##x00a7 ) to
>> display it.
>> for \char I cannot use unicode  U+00a7. I was hoping \char could accept
>> U+00a7.  Now I can use ##x00a7.
>> Thank you for your info.
>> Shalom,
>> yMing.
>> 
>>> On Sun, Nov 28, 2021 at 5:16 PM Valentin Petzel  wrote:
>>> Hello Ming,
>>> 
>>> I do not understand your exact problem. If you want to have € in markup
>>> you
>>> can either directly put € in the markup, or use \char ##20ac.
>>> 
>>> Valentin
>>> 
>>> Am Sonntag, 28. November 2021, 22:42:47 CET schrieb ming tsang:
>>>> Hi lilyponder,
>>>> 
>>>> I would like to use \markup to display  € using  U+20AC. I can use
>>> 
>>> \markup
>>> 
>>>> { \char  ##x2197 } to  display / print / output to pdf.  ##x2197 is
>>>> [image: image.png]
>>>> 
>>>> Your help is appreciated.
>>>> 
>>>> Shalom,
>>>> yMing



Re: UTF-8 unicode use in \markup

2021-11-28 Thread ming tsang
Hi Valentin Petzel,
Thank you for your reply.  I found a
UTF-8 encoding table and Unicode characters
https://www.utf8-chartable.de/unicode-utf8-table.pl?utf8=0x
Now I can look up the U+00a7 and then use \markup { \char ##x00a7 ) to
display it.
for \char I cannot use unicode  U+00a7. I was hoping \char could accept
U+00a7.  Now I can use ##x00a7.
Thank you for your info.
Shalom,
yMing.

On Sun, Nov 28, 2021 at 5:16 PM Valentin Petzel  wrote:

> Hello Ming,
>
> I do not understand your exact problem. If you want to have € in markup
> you
> can either directly put € in the markup, or use \char ##20ac.
>
> Valentin
>
> Am Sonntag, 28. November 2021, 22:42:47 CET schrieb ming tsang:
> > Hi lilyponder,
> >
> > I would like to use \markup to display  € using  U+20AC. I can use
> \markup
> > { \char  ##x2197 } to  display / print / output to pdf.  ##x2197 is
> > [image: image.png]
> >
> > Your help is appreciated.
> >
> > Shalom,
> > yMing



-- 
ming (lyndon) tsang


UTF-8 unicode use in \markup

2021-11-28 Thread ming tsang
Hi lilyponder,

I would like to use \markup to display  € using  U+20AC. I can use \markup
{ \char  ##x2197 } to  display / print / output to pdf.  ##x2197 is
[image: image.png]

Your help is appreciated.

Shalom,
yMing

-- 
ming (lyndon) tsang


Re: print log content to a pdf

2021-11-23 Thread ming tsang
On Sun, Nov 21, 2021 at 10:02 PM David Wright 
wrote:

> On Sun 21 Nov 2021 at 16:01:43 (-0500), ming tsang wrote:
>
> > The following lilypond code
> >
> > #(ly:font-config-display-fonts)
> >
> > generate a log output.
> >
> > Is it possible to generate a pdf by lilypond?
>
> $ lilypond your-fontname-generator-code.ly > fontslist
> $ edit fontslist (because there's other stuff in the file)
> $ paps fontslist --header | ps2pdf - fontslist.pdf
>
> AFAICT LP typesets /music/ into PDF files, but not its log output.
>
> Cheers,
> David.
>

Thank you for the info and work around.
-- 
ming (lyndon) tsang


print log content to a pdf

2021-11-21 Thread ming tsang
Dear lilyponders,
The following lilypond code

#(ly:font-config-display-fonts)

generate a log output.

Is it possible to generate a pdf by lilypond?

Shalom,
yMing.


-- 
ming (lyndon) tsang


Re: eps file

2021-09-02 Thread ming tsang
Hi Valentin Petzel:
Here is the file. I open the lily.scm with  miscrosoft notepad and save as.
Thank you very much Valentin and David for your patience and helpful hands.
Very much appreciated.
Shalom,
Ming.


On Thu, Sep 2, 2021 at 7:37 AM Valentin Petzel  wrote:

> Okay, the guile version looks fine. I'll try to look into this, can you
> please append the file
> C:/LilyPond_2-23-3/usr/share/lilypond/current/scm/lily/lily.scm 
>
> just to be sure?
>
> 02.09.2021 13:07:42 ming tsang :
>
> Hi David Wright and Valentin Petzel:
> Thank you both for helping.
> I did a (#display version) + move the eps file to a directory does not
> contain space on the names.
> Here is the screen capture from frecobaldi v2.3.3.
> [image: image.png]
>
> Shalom,
> Ming
>
> On Wed, Sep 1, 2021 at 8:36 PM David Wright 
> wrote:
>
>>
>> On Wed 01 Sep 2021 at 19:15:19 (-0400), ming tsang wrote:
>>
>> > end of the lily code. I have no idea what "ice-9 format" is.
>> > #"c:\User\yming
>> tsang\Documents\SNIPPET\Untitled_draw-squibble-1.eps"
>>
>> ↑↑↑ a "long" filename, and containing a space
>>
>> > `C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-o_s4xv8r/tmps19cuu1_/
>> document.ly'
>>
>>  a Microsoft hack to make a short filename without a
>> space
>>
>>
>> Cheers,
>> David.
>>
>
>
> --
> ming (lyndon) tsang
>
>

-- 
ming (lyndon) tsang
 This file is part of LilyPond, the GNU music typesetter.

 Copyright (C) 1998--2021 Jan Nieuwenhuizen 
 Han-Wen Nienhuys 

 LilyPond is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 LilyPond is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.

;; Internationalisation: (_i "to be translated") gets an entry in the
;; POT file; (gettext ...) must be invoked explicitly to do the actual
;; "translation".
;;
;; (define-macro (_i x) x)
;; (define-macro-public _i (x) x)
;; (define-public-macro _i (x) x)
;; Abbrv-PWR!

(define-module (lily))

(defmacro-public _i (x) x)

;; GUILE defaults to fixed seed.
(define-public (randomize-rand-seed)
  (ly:randomize-rand-seed)
  (let*
  ((t (gettimeofday))
   ;; GUILE's random initialization is clumsy (it converts the
   ;; integer to decimal string, and then sums groups of 8 bytes
   ;; as 64 bit integers.  Here we multiply to spread the entropy
   ;; around a bit better.
   (seed (*
  (cdr t)
  (car t)
  (getpid
(set! *random-state* (seed->random-state seed

(randomize-rand-seed)

(cond-expand
 (guile-2
  (begin
   ;; By default, we don't want scary backtraces.
   (debug-disable 'backtrace)))
 (else
  (begin
   (read-enable 'positions)
   (debug-enable 'debug))
  ))

(define-public PLATFORM
  (string->symbol
   (string-downcase
(car (string-tokenize (utsname:sysname (uname)) char-set:letter)

;; We don't use (srfi srfi-39) (parameter objects) here because that
;; does not give us a name/handle to the underlying fluids themselves.

(define %parser (make-fluid))
(define %location (make-fluid))
;; No public setters: should not get overwritten in action
(define-public (*parser*) (fluid-ref %parser))
(define-public (*location*) (fluid-ref %location))

(define-public _ gettext)

;; Guile 1.8 doesn't have (and doesn't need) eval-when.
(defmacro-public eval-early (expr)
  `(cond-expand
(guile-2 (eval-when (expand load eval) ,expr))
(else ,expr)))

;; It would be nice to convert occurences of parser/location to
;; (*parser*)/(*location*) using the syncase module but it is utterly
;; broken in GUILE 1 and would require changing a lot of unrelated
;; innocuous constructs which just happen to fall apart with
;; inscrutable error messages.

;;
;; Session-handling variables and procedures.
;;
;;  A "session" corresponds to one .ly file processed on a LilyPond
;;  command line.  Every session gets to see a reasonably fresh state
;;  of LilyPond and should work independently from previous files.
;;
;;  Session management relies on cooperation, namely the user not
;;  trying to change variables and data structures internal to
;;  LilyPond.  It is not proof against in-place modification of data
;;  structures (as they are jus

Re: eps file

2021-09-01 Thread ming tsang
Hi Valentin,
I try another way to code eps file location path. I move the eps file to
the same folder of lily file.
Shalom,
Ming

\version "2.23.3"
\markup {
  \general-align #Y #DOWN {
\epsfile #Y #20 #"Untitled_draw-squibble-1.eps"
  }
}

ERROR Message,

Starting lilypond-windows.exe 2.23.3 [Untitled]...

Processing
`C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-o_s4xv8r/tmps19cuu1_/
document.ly'

Parsing...

fatal error: cannot find file: `Untitled_draw-squibble-1.eps' (load path:
`C:/LilyPond_2-23-3/usr/share/lilypond/current/ly;C:/LilyPond_2-23-3/usr/share/lilypond/current/ps;C:/LilyPond_2-23-3/usr/share/lilypond/current/scm;C:/LilyPond_2-23-3/usr/share/lilypond/current/fonts/otf/;C:/LilyPond_2-23-3/usr/share/lilypond/current/fonts/svg/;C:/Users/yming
tsang/Dropbox/LP_includes/;', cwd:
`C:\Users\YMINGT~1\AppData\Local\Temp\frescobaldi-o_s4xv8r\tmps19cuu1_')

Exited with return code 1.

On Wed, Sep 1, 2021 at 4:27 PM Valentin Petzel  wrote:

> Hello Ming!
>
> Just put the name of the file either as absolute path or as relative path
> to
> your lilypond file instead of context-example.eps.
>
> The sytax for \epsfile is
> \epsfile axis size path
> Where axis is the axis for scaling, size is the size of the end result
> along
> this axis and path is the path to the file.
>
> Cheers,
> Valentin
>
> Am Mittwoch, 1. September 2021, 22:17:13 CEST schrieb ming tsang:
> > Dear lilyponders,
> > How can I specify the eps file that will be recognized by the \markup -
> re
> > below lilypond code? The eps file is in my computer folder.
> > Shalom,
> > Ming
> >
> > \markup {
> >   \general-align #Y #DOWN {
> > \epsfile #X #20 #"context-example.eps"
> > \epsfile #Y #20 #"context-example.eps"
> >   }
> > ,



-- 
ming (lyndon) tsang


Re: eps file

2021-09-01 Thread ming tsang
Hi Valentin,
Thank you for the info. But I have a hard time entering the file path name.
When I ran lilypond through frescobaldi v2.3.3, I got an error - see at the
end of the lily code. I have no idea what "ice-9 format" is.
Shalom,
Ming.

\version "2.23.3"
\markup {
  \general-align #Y #DOWN {
\epsfile #X #20
#"c:\User\yming tsang\Documents\SNIPPET\Untitled_draw-squibble-1.eps"
%\epsfile #Y #20 #"Untitled_draw-squibble-1.eps"
  }
}


E <2>rror message .

Starting lilypond-windows.exe 2.23.3 [Untitled]...

Processing
`C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-o_s4xv8r/tmps19cuu1_/
document.ly'

Parsing...

C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-o_s4xv8r/tmps19cuu1_/document.ly:7:6
<0>: error: GUILE signaled an error for the expression beginning here

#

"c:\User\yming tsang\Documents\SNIPPET\Untitled_draw-squibble-1.eps"

C:/LilyPond_2-23-3/usr/share/lilypond/current/scm/lily/lily.scm:973:21 <1>:
In procedure simple-format in expression (ly:parse-file file-name):

C:/LilyPond_2-23-3/usr/share/lilypond/current/scm/lily/lily.scm:973:21 <2>:
FORMAT: Unsupported format option ~1 - use (ice-9 format) instead

Exited with return code 1.

On Wed, Sep 1, 2021 at 4:27 PM Valentin Petzel  wrote:

> Hello Ming!
>
> Just put the name of the file either as absolute path or as relative path
> to
> your lilypond file instead of context-example.eps.
>
> The sytax for \epsfile is
> \epsfile axis size path
> Where axis is the axis for scaling, size is the size of the end result
> along
> this axis and path is the path to the file.
>
> Cheers,
> Valentin
>
> Am Mittwoch, 1. September 2021, 22:17:13 CEST schrieb ming tsang:
> > Dear lilyponders,
> > How can I specify the eps file that will be recognized by the \markup -
> re
> > below lilypond code? The eps file is in my computer folder.
> > Shalom,
> > Ming
> >
> > \markup {
> >   \general-align #Y #DOWN {
> > \epsfile #X #20 #"context-example.eps"
> > \epsfile #Y #20 #"context-example.eps"
> >   }
> > ,



-- 
ming (lyndon) tsang


eps file

2021-09-01 Thread ming tsang
Dear lilyponders,
How can I specify the eps file that will be recognized by the \markup - re
below lilypond code? The eps file is in my computer folder.
Shalom,
Ming

\markup {
  \general-align #Y #DOWN {
\epsfile #X #20 #"context-example.eps"
\epsfile #Y #20 #"context-example.eps"
  }
}


-- 
ming (lyndon) tsang


Re: error :GUILE signaled an error for the expression beginning here #

2021-07-23 Thread ming tsang
Hi David Wright,

Thank you for your reply. You are right, this is not essential for my work
with lilypond / frecobaldi.  I have made a note to myself to create file
location (path) & file names in english only in relation to
lilypond/frecobaldi. I have not encountered problems with other  softwares
by using non-english characters in location (path) or file name or both.

>"I've no idea what these <http://xn--4grwd.ly> constructions
>are meant to signify. "
I did not enter < .. >. I think my email server is attempting to include
the file attachment or links to the file to the email.  When I try to click
on it I got :
This site can’t be reached

*勉勵.ly <http://xn--4grwd.ly>*’s DNS address could not be found. Diagnosing
the problem.
DNS_PROBE_POSSIBLE

Thanks again.
Shalom,
yMing



Th



On Thu, Jul 22, 2021 at 10:53 PM David Wright 
wrote:

> On Thu 22 Jul 2021 at 12:12:03 (-0400), ming tsang wrote:
> >
> > I guess I will wait for #1379 in frecobaldi user list to resolve.
>
> I hope you're only waiting to be able to double-click in your file
> manager, which after all is just a matter of convenience, rather
> than necessity.
>
> I don't know what your filemanager looks like, and whether it runs
> within a working directory or not, but if so, you could try out
> double-clicking where /only/ the directory path is Chinese, but the
> actual filename is composed of roman (plain) characters. Under these
> circumstances, only the filename needs to be passed to the program,
> and the latter could determine the Chinese name of the current working
> directory itself. I'm not optimistic, however.
>
> > I use surface pro 4 & window 10; frecobaldi v3.1.3, lilypond v2.23.3.
> > [ … ]
> > I don't know "Chinese (Traditional, Taiwan)" is UTF-8 or UTF-16.
>
> It's a function of the OS and the filesystem, not the language
> (and we're discussing only paths/filenames, not text files etc).
> With NTFS, I think UTF-16 has been a permanent fixture since XP.
>
> The actual rules on naming files are quite involved, and I wouldn't
> claim to understand their full implications. I can only point to:
> https://en.wikipedia.org/wiki/NTFS#Internals
> I hope these features are not interfering with the interpretation
> of your filenames. The same goes for the first paragraph of:
>
> https://docs.microsoft.com/en-gb/windows/win32/fileio/naming-a-file?redirectedfrom=MSDN#win32-file-namespaces
>
> > The following is how one can re-create the problem in window 10.
> > e.g.
> > 1.   create c:\yming\lily_聖詩
> > 2.  then I create file name in frecobaldi勉勵.ly <http://xn--4grwd.ly>
> <http://xn--4grwd.ly>;
> > and saved to "c:\yming\lily_聖詩".
> > A.  In "file manager" - double click the file name - frecobaldi opens up
> > two blank tabs with unreadible tab names.
> > B. within "frecobaldi" - file>open ... then nevigate to  location
> > c:\yming\lily_聖詩 ; click on file 勉勵.ly <http://xn--4grwd.ly> <
> http://xn--4grwd.ly> frecobaldi
> > display the file with contents in "勉勵.ly <http://xn--4grwd.ly> <
> http://xn--4grwd.ly>." tab.
>
> I've no idea what these <http://xn--4grwd.ly> constructions
> are meant to signify.
>
> > Note:  either file location or file name or both contain non english
> > characters, "A" happends.
>
> Cheers,
> David.
>


-- 
ming (lyndon) tsang


Re: error :GUILE signaled an error for the expression beginning here #

2021-07-22 Thread ming tsang
Dear David Wright:

Thank you for your reply. I guess I will wait for #1379 in frecobaldi user
list to resolve.

I use surface pro 4 & window 10; frecobaldi v3.1.3, lilypond v2.23.3.
I have the following info about my surface pro 4:
[image: image.png]
I use handwriting pad in my keyboard to write file location and file name.
I don't know "Chinese (Traditional, Taiwan)" is UTF-8 or UTF-16.

The following is how one can re-create the problem in window 10.
e.g.
1.   create c:\yming\lily_聖詩
2.  then I create file name in frecobaldi勉勵.ly <http://xn--4grwd.ly>;
and saved to "c:\yming\lily_聖詩".
A.  In "file manager" - double click the file name - frecobaldi opens up
two blank tabs with unreadible tab names.
B. within "frecobaldi" - file>open ... then nevigate to  location
c:\yming\lily_聖詩 ; click on file 勉勵.ly <http://xn--4grwd.ly> frecobaldi
display the file with contents in "勉勵.ly <http://xn--4grwd.ly>." tab.

Note:  either file location or file name or both contain non english
characters, "A" happends.

Shalom,
yMing.



On Sun, Jul 18, 2021 at 11:56 PM David Wright 
wrote:

> On Sun 18 Jul 2021 at 21:03:12 (-0400), ming tsang wrote:
>
> > I lost track of the author who updated the snippet id 197 recently. I
> > adapted to display the UTF-8 character in file path (location) and file
> > name.
> > I did some test:
> > 1.  file location path that contains UTF-8 character and no UTF-8
> character
> > in file name.
> > 2.  no UTF-8 character on the location path but has UTF-8 character on
> the
> > file name.
> > 3.  Both file location path and file name contain UTF-8 characters.
> >
> > All three tests were successful - i.e. able to display UTF-8 characters.
> > However, I cannot open the lilypond in file manager by frecobaldi v3.1.3.
> > The files are only able to be open inside frecobaldi by file>open; select
> > the right file on the 1,2,3 tests.
> >
> > Thank Knute for opening up a problem with frecobaldi to resolve this
> issue.
> >
> > Thank you everyone for helping. I hope I didn't miss anyone.
>
> A couple of years ago, you wrote "Question: Window 10 support UTF-8
> file name and lilypond does not. Is there any work around?"
> I remain unconvinced, but I'm not a Windows user, so it's difficult
> to experiment.
>
> https://cygwin.com/cygwin-ug-net/using-specialnames.html
> which is a page metadated Mar 29 18:57, says "Windows filesystems
> use Unicode encoded as UTF-16 to store filename information."
>
> So I think it's likely that you're not creating filenames containing
> UTF-8 characters, but that you're reencoding UTF-8 characters as
> UTF-16 ones. UTF-8 characters can occupy any number of bytes up to
> four, whereas UTF-16 characters can only occupy either two or four
> bytes, but not one or three. In addition, UTF-16 is byte-order
> sensitive, whereas UTF-8 isn't.
>
> My guess, though, would be that Frescobaldi can handle four-byte
> UTF-16 characters when asked to open a file, but might not be
> correctly parsing the same characters when a filename is handed
> to it by the file manager. I suppose you have to wait for #1379
> to be resolved.
>
> Cheers,
> David.
>


-- 
ming (lyndon) tsang


Re: error :GUILE signaled an error for the expression

2021-07-13 Thread ming tsang
Carl :  Thank you for the info.  How can I  change your display/markup font
to be a font that includes CJK characters?

David Wright :
Thank you for reminding me about my problem way back in 2015. You suggested
using the eps image in the file name.  I did not know how to create an eps
image for the file name.  So I end up not using utf-8 in the file name.  It
served me fine these years.
Now I created a folder name with utf-8 characters without realizing it will
affect the folder name as with  file name.
If this is the way lilypond works, I will remember not to use utf-8
characters in the folder and the file name.

One  strange thing is that this only affects the
"\markup  \wordwrap-string #(command-line)" --the example four.

I have different ways to display folder/filename.ly
%%lily code
%updated LSR 197 --https://lsr.di.unimi.it/LSR/Item?id=197
\version "2.23.3"

#(define comml(command-line))
#(define fileninput-file-name)
#(define siz  (object->string (stat:size (stat filen
#(define ver  (lilypond-version))
#(define dat  (strftime "%m/%d/%Y" (localtime (current-time
#(define tim  (strftime "%H:%M:%S" (localtime (current-time
#(define modt (stat:mtime (stat filen)))
#(define modts(strftime "%m/%d/%Y %H:%M:%S" (localtime modt)))
\markup { ". example one ." }
\markup \column {
  \line { "File Name = "\filen }
  \line { "File Size = "\siz   }
  \line { "LilyPond Version = " \ver   }
  \line { "Date Processed = "   \dat   }
  \line { "Time Processed = "   \tim   }
  \line { "Last Modified = "\modts }
  \line  { "Command Line = " \comml }
}
%

%%
\version "2.23.3" % or newer

filename = #(define-scheme-function () ()
  (car (ly:input-file-line-char-column (*location*
\markup { ". example two ." }
\markup { "File Name =" \filename }
\header { dedication = \markup { \filename } }
%%

%%%
\version "2.23.3"

#(define commandLine (object->string (command-line)))
\markup { ". example three ." }
\markup { \wordwrap-string { \commandLine } }
%%%


\version "2.23.3"
\markup { ". example four ." }
\markup \wordwrap #(command-line)

%end of example code.

The above test is for folder names containing utf-8 characters.
Later today I will test the folder and filename containing utf-8 characters
to see the effects.

Thank you for your help.
Shalom,
yMing Tsang

On Tue, Jul 13, 2021 at 12:15 PM David Wright 
wrote:

> > Date: Tue, 13 Jul 2021 08:14:51 -0700
> > From: Knute Snortum 
> > To: ming tsang 
> >
> > I don't think the error is caused by you not having the font, I think
> it's
> > that the font doesn't have a glyph (character, sort of) for U+FFFD. I
> don't
> > think all of the UTF-8 characters will work in the music view. The
> problem
> > is the non-latin characters in the path of the source file you're trying
> to
> > compile.
>
> I seem to remember writing:
> https://lists.gnu.org/archive/html/lilypond-user/2019-01/msg00762.html
> which refers back to:
> https://lists.gnu.org/archive/html/lilypond-user/2015-11/msg00325.html
> to which my reply would be the same:
> https://lists.gnu.org/archive/html/lilypond-user/2015-11/msg00331.html
> except for the reference, updated here to:
>
> NR § 1.8.2 Formatting text   →   § Graphic notation inside markup
>
> 
>
> > On Tue, Jul 13, 2021 at 6:41 AM ming tsang wrote:
> >
> > > Hi lilponder:
> > >
> > > There is a utf-8 in the file path. When I ran the file I got the
> following
> > > warning message  warning: no glyph for character U+FFFD in font
> > >
> `C:/LilyPond_2-23-3/usr/share/lilypond/current/fonts/otf/C059-Roman.otf'
> > >
> > > [image: image.png]
> > > How can I obtain the otf/C059-Roman.otf font.
> > >
> > > Shalom,
> > > yMing
>
> 
>
> On Wed, 30 Jan 2019 16:42:22 + (UTC) MING TSANG wrote:
>
> http://lsr.di.unimi.it/LSR/Snippet?id=197
>
> I copy the above snippet and name it test_file-name_info.ly and run with
> fracobaldi3.01 + lilypond2.19.82 it produces desired file infomation.
>
> Then I rename the file as test_中文.ly <http://xn--test_-9n1h080l.ly>
> (UTF-8 Chinese characters) and execute and the following error occurs:
>
> Starting lilypond-windows.exe 2.19.82 [test_中文.ly
> <http://xn--test_-9n1h080l.ly>]...
> warning: cannot find file: `C:/Users/yming/Documents/test_??.ly'
> fatal error: failed files: "C:/Users/yming/Documents/test_??.ly"
> Exited with return code 1.
>
> Question: Window 10 support UTF-8 file na

Re: error :GUILE signaled an error for the expression beginning here #

2021-07-12 Thread ming tsang
Thank you David Kastrup,
As suggested I use \wordwrap-string instead of \wordwrap. It works.
one question: is there any special character for the wrap text OR just when
the line fills up it wraps to the next line?

Shalom,
yMing Tsang

On Mon, Jul 12, 2021 at 12:28 PM David Kastrup  wrote:

> Knute Snortum  writes:
>
> > Aaron Hill:
> >
> > I would like to be able to see the *entire* command line, but when I
> write this:
> >
> > %%%
> > \version "2.22.1"
> >
> > #(define commandLine (object->string (command-line)))
> >
> > \markup { \wordwrap { \commandLine } }
> > %%%
> >
> > ... the text scrolls off the page (see attached). I can guess why
> > \wordwrap doesn't work the way I want: it just sees one big string. Is
> > there a way to get the command line string to break or wrap at the
> > spaces?
>
> This may be too obvious, but anything wrong with \wordwrap-string ?
>
> --
> David Kastrup
>


-- 
ming (lyndon) tsang


Re: error :GUILE signaled an error for the expression beginning here #

2021-07-12 Thread ming tsang
Heart fill thank you. It was a very experience talking to the lilypond user
group and I learned a lot.

Knute:  Thank you for following up on handling of the utf-8 file name
and/or file path (location) problem in frecobaldi.

David Kastrup:  Thank you for helping me to use convert-ly.

David Wright:  Help me identify the problem with my lily score code.

Jean:  Help me identify the problem codes as well.

Thomas:  Thank you for updating the LSR#197. Very useful.

Jonas:  thank you for the undocumented \input-file-name use.

Aaron:  Thank you for the sample code for v2.18.2 and v2.20.0.  They both
work wonderfully.  I am running v2.23.3 now, but will keep v2.18.2 handy in
case I need to go back.  I saved the code in a snippet in frecobaldi v3.1.3.

Once again thank you all. I hope I didn't miss anybody that I should give
thanks for helping me.

Shalom,
yMing Tsang






On Mon, Jul 12, 2021 at 6:30 AM Thomas Morley 
wrote:

> Am Mo., 12. Juli 2021 um 08:38 Uhr schrieb Jonas Hahnfeld via LilyPond
> user discussion :
> >
> > Am Sonntag, dem 11.07.2021 um 22:54 -0700 schrieb Aaron Hill:
> > > On 2021-07-11 12:32 pm, ming tsang wrote:
> > > > I am confused about this "file information" LSR.
> > > > Yesterday, I did a ""file>save as" to a file name to
> > > > untitled_LSR_file-info_v2182.ly. This morning I tried to run the
> > > > untitled_LSR_file-info_v2182.ly, but I got run error:
> > >
> > > The code in LSR 197 is not able to properly handle non-ASCII characters
> > > in a file path.  Upon review, its use of object->string is mangling the
> > > filename.  Also, the entire premise of the snippet is predicated on the
> > > false assertion that the command-line only consists of the filename in
> > > question.  In practice, there are likely to be many other arguments.
> At
> > > best, you might be able to rely on the filename being the last
> argument:
> > >
> > > 
> > > \version "2.18.2"
> > >
> > > filename = #(last (command-line))
> > > \markup { "File Name =" \filename }
> > > 
> > >
> > > However, why mess about with reparsing the command-line arguments in
> the
> > > first place?  LilyPond has already done this for you, so just ask
> > > LilyPond for the current filename:
> > >
> > > 
> > > \version "2.20.0" % or newer
> > >
> > > filename = #(define-scheme-function () ()
> > >   (car (ly:input-file-line-char-column (*location*
> > > \markup { "File Name =" \filename }
> > > 
> > >
> > > You could adapt the above to work on 2.18.2, but calling the function
> > > within markup requires some extra sugar:
> > >
> > > 
> > > \version "2.18.2"
> > >
> > > filename = #(define-scheme-function (parser location) ()
> > >   (car (ly:input-file-line-char-column location)))
> > > \markup { "File Name =" $#{ \filename #} }
> > > 
> > >
> > > All the more reason to leave 2.18.2 behind and just focus on the newer
> > > versions of LilyPond.
> >
> > Or you could use the (undocumented) \input-file-name, an internal
> > variable of the lexer, which seems to be there since "forever".
>
> In the light of this discussion, I modified said LSR-snippet.
> Alas, while the code changed, the image is not updated.
> https://lsr.di.unimi.it/LSR/Item?id=197
> Likely again a LSR-problem ...
>
> Cheers,
>   Harm
>


-- 
ming (lyndon) tsang


Re: error :GUILE signaled an error for the expression beginning here #

2021-07-11 Thread ming tsang
Dear Aaron,
Thank you for the info that the LSR repository is v2.18.2.
1.  I re-install lilypond v2.18.2
2.  I copy the LSR "file information" to a file.
3.  I ran it with v2.18.2 - successfully executed.
4.  I then apply convert-ly from v2.18.2 to v2.23.3
5.  I ran again in v2.23.3 - successfully executed.
Consider the problem solved! Thanks.

Also thank you to : Knute Snortum; David Kastrup for the help.

Thanks again,
yMing Tsang


On Sat, Jul 10, 2021 at 11:50 PM Aaron Hill 
wrote:

> On 2021-07-10 8:46 pm, Aaron Hill wrote:
> > On 2021-07-10 7:15 pm, ming tsang wrote:
> >> I copied the snippet from the lilypond snippet repository.  There is
> >> no
> >> lilypond version information.
> >
> > Last I checked, the LSR was only up-to-date with 2.18.2.
>
> And confirmed at the bottom of the Contributing [1] page:
>
> > The LSR is currently running LilyPond version 2.18.2.
>
> [1]: https://lsr.di.unimi.it/LSR/html/contributing.html
>
>
> -- Aaron Hill
>


-- 
ming (lyndon) tsang


Re: wront type for argument: on \note

2021-07-10 Thread ming tsang
Thank you both:
I will definitely run convert from now on.
yMing Tsang

Sent from my iPhone

> On Jul 9, 2021, at 7:00 PM, David Kastrup  wrote:
> 
> Aaron Hill  writes:
> 
>>> On 2021-07-09 1:22 pm, ming tsang wrote:
>>> I try to run the following lilypond code.
>>> \version "2.23.3"
>>> \markup { \note #"16" #1 }
>> 
>> The markup command was changed (in version 2.22, I think) so that you
>> now specify a duration, not a string:
>> 
>> 
>> \markup \note { 16 } #UP
>> 
> 
> It's worth noting that like other syntax changes, convert-ly is able to
> update the syntax for one \version to the current one.
> 
> -- 
> David Kastrup



wront type for argument: on \note

2021-07-09 Thread ming tsang
Hi lilyponders:

I try to run the following lilypond code.

\version "2.23.3"
\markup { \note #"16" #1 }

And I got the following error.

Starting lilypond-windows.exe 2.23.3 [Untitled_note.ly]...

Processing `C:/Users/yming
tsang/Documents/CHOIR_2021/the-Lord-in-His-Holy-temple/Untitled_note.ly'

Parsing...

C:/Users/yming
tsang/Documents/CHOIR_2021/the-Lord-in-His-Holy-temple/Untitled_note.ly:3:17
<0>: error: wrong type for argument 1. Expecting duration, found "16"

\markup { \note

#"16" #1 }

C:/LilyPond_2-23-3/usr/share/lilypond/current/scm/lily/lily.scm:973:21 <1>:
In procedure reverse! in expression (ly:parse-file file-name):

C:/LilyPond_2-23-3/usr/share/lilypond/current/scm/lily/lily.scm:973:21 <2>:
Wrong type argument in position 1: (1 "16" . #f)

Exited with return code 1.
--

Thank you.
yMing Tsang
ming (lyndon) tsang


Re: lilypond coding problem

2021-06-22 Thread ming tsang
I hit the wrong button that send the incomplete email
Now here is the continue email

bar 123 is strange no \hideNotes coded yet requires \unHideNotes
bar 124 no \unHideNotes coded
bar 125 is strange also \unHideNotes before \hideNotes
bars 127,128,129 I use \once\hideNotes - it seems ok

I will use \once\hideNotes  from now on.
I am trying to understand this hide and unHide business.
Thanks,
Ming Tsang

On Tue, Jun 22, 2021 at 9:53 PM ming tsang  wrote:

> Dear Knute:
> Thank you for the reply.
> I had 35 bars that requires the \hideNotes:
> bars 16, 20, 21, 23, 25, 26 no \unHideNotes coded
> bar 40 requires \unHideNotes
> bar 42 no \unHideNotes coded
> bar 44 requires  \unHideNotes
> bar 46 no \unHideNotes coded
> bar 51 requires \unHideNotes
> bars 52, 56, 57,59,60,76 no \unHideNotes coded
> bar 78 requires \unHideNotes
> bar 80  no \unHideNotes coded
> bar 85 requires \unHideNotes
> bars 86, 90,91 no \\unHideNotes coded
> bar 108 requires \unHideNotes
> bar 110 no \unHideNotes coded
> bars 112 ,119 requires \unHideNotes
> bar 120 no \unHideNotes
>
> On Tue, Jun 22, 2021 at 9:35 AM Knute Snortum  wrote:
>
>> On Tue, Jun 22, 2021 at 3:13 AM ming tsang 
>> wrote:
>> >
>> > Dear Moinard and Knute
>> > Thank you for the tips on \hideNotes and \unHideNotes.
>> > I coded 35 bars using \hidesNotes, only 4 bars need the \unHideNotes. I
>> discovered this while coding.  I have no idea.  When I saw missing notes
>> (even though I had coded in) I used \unHideNotes.
>> > Question:
>> > 1.  Do \hideNotes and \unHideNotes must be used in pairs?
>>
>> Nearly always.  I can imagine being close to the end of a piece and
>> using \hideNotes without \unhideNotes, but that would be rare. I
>> usua;;y hide notes, then as soon as I can, unhide them.
>>
>> > 2.  How can I pass the nide note in using variables? ie hn = *3/4
>> (\hideNotes d8)
>> >   in my code I use  f,2\hn
>>
>> I don't think that will work, but you could try it!
>>
>> --
>> Knute Snortum
>>
>
>
> --
> ming (lyndon) tsang
>


-- 
ming (lyndon) tsang


Re: lilypond coding problem

2021-06-22 Thread ming tsang
Dear Knute:
Thank you for the reply.
I had 35 bars that requires the \hideNotes:
bars 16, 20, 21, 23, 25, 26 no \unHideNotes coded
bar 40 requires \unHideNotes
bar 42 no \unHideNotes coded
bar 44 requires  \unHideNotes
bar 46 no \unHideNotes coded
bar 51 requires \unHideNotes
bars 52, 56, 57,59,60,76 no \unHideNotes coded
bar 78 requires \unHideNotes
bar 80  no \unHideNotes coded
bar 85 requires \unHideNotes
bars 86, 90,91 no \\unHideNotes coded
bar 108 requires \unHideNotes
bar 110 no \unHideNotes coded
bars 112 ,119 requires \unHideNotes
bar 120 no \unHideNotes

On Tue, Jun 22, 2021 at 9:35 AM Knute Snortum  wrote:

> On Tue, Jun 22, 2021 at 3:13 AM ming tsang  wrote:
> >
> > Dear Moinard and Knute
> > Thank you for the tips on \hideNotes and \unHideNotes.
> > I coded 35 bars using \hidesNotes, only 4 bars need the \unHideNotes. I
> discovered this while coding.  I have no idea.  When I saw missing notes
> (even though I had coded in) I used \unHideNotes.
> > Question:
> > 1.  Do \hideNotes and \unHideNotes must be used in pairs?
>
> Nearly always.  I can imagine being close to the end of a piece and
> using \hideNotes without \unhideNotes, but that would be rare. I
> usua;;y hide notes, then as soon as I can, unhide them.
>
> > 2.  How can I pass the nide note in using variables? ie hn = *3/4
> (\hideNotes d8)
> >   in my code I use  f,2\hn
>
> I don't think that will work, but you could try it!
>
> --
> Knute Snortum
>


-- 
ming (lyndon) tsang


Re: lilypond coding problem

2021-06-22 Thread ming tsang
Dear Moinard and Knute
Thank you for the tips on \hideNotes and \unHideNotes.
I coded 35 bars using \hidesNotes, only 4 bars need the \unHideNotes. I
discovered this while coding.  I have no idea.  When I saw missing notes
(even though I had coded in) I used \unHideNotes.
Question:
1.  Do \hideNotes and \unHideNotes must be used in pairs?
2.  How can I pass the nide note in using variables? ie hn = *3/4
(\hideNotes d8)
  in my code I use  f,2\hn
Thank you very much for your help.
Ming Tsang


On Tue, Jun 22, 2021 at 2:19 AM F. Moinard  wrote:

> Hello,
>
> Sorry, I forgot to mention \unHideNotes !
>
>
> Regards,
> Frédéric
>
>

-- 
ming (lyndon) tsang


Exited with return code -1073741819.

2021-06-17 Thread ming tsang
Starting lilypond-windows.exe 2.23.0 [trust_in_the_Lord.ly]...

Processing `C:/Users/yming
tsang/Documents/CHOIR_2021/專心信主/trust_in_the_Lord.ly'

Parsing...

Interpreting music...[8][16][24][32][40][48][56][64][72][80][88][96][96]

Exited with return code -1073741819.


Dear Lily Ponders,

I am trying to transpose a score with 136 bars. It was fine until bar 95. I
then code bar 96 and suddenly the error "Exited with return code
-1073741819." occurs.

When I remove bar 96 and it compile without error. I double checked bar 96,
there is no lilypond code error.

I need help to resolve this. Thanks in advance.
ming (lyndon) tsang
\version "2.23.0"
\language "english"

\header {
  title = "專 心 信 主"
  subtitle = "Trust In The Lord"
}

global = {
  \key c \major
  \numericTimeSignature
  \time 3/4
  \tempo "Moderately" 4=90
}

eVar =
#(define-music-function (xx start stop) (list? index? index?)
   #{ #@(map (lambda (i) #{ $xx . #i #}) (iota (- stop start -1) start)) #})
bk = \break
shf = \once \override NoteColumn.force-hshift = 1.75 
flu.01 = { r2. |}
flu.02 = { c4 a4 g8 f16 e16 |}
flu.03 = { d2 r4 |}
flu.04 = { d4 b4 a8 g16 f16 |}
flu.05 = { e8 gs16 b16 d'4 b8 d'8 |\bk}
flu.06 = { c'4 b4. g?8 |}
flu.07 = { a4 r4 c'8 a8 |}
flu.08 = { g2 r4 |}
flu.09 = { c'4 b4. g8 |}
flu.10 = { a2 4 |\bk}
flu.11 = { g2 f4 |}
flu.12 = { e2 4 |}
flu.13 = { d2 a4 |}
flu.14 = { g2 a8( b8 |}
flu.15 = { c'8 e' d' c' e fs |\bk}
flu.16 = { g2) d'4 |}
flu.17 = { c'4 b4. g8 |}
flu.18 = { a2 r4 |}
flu.19 = { d'4 c'4. a8 |}
flu.20 = { b2 a8 g8 |\bk}
flu.21 = { c'4 g4 f8 e8 |}
flu.22 = { d8 a f d a b |}
flu.23 = { r2. |}
flu.24 = { r2. |}
flu.25 = { c'2 b8 f8 |\bk}
flu.26 = { a4. 8 g f |}
flu.27 = { e2. |}
flu.28 = { r2. |}
flu.29 = { r2. |}
flu.30 = { b4 e d' |\bk}
flu.31 = { c'4 e a |}
flu.32 = { b2 r4 |}
flu.33 = { r2. |}
flu.34 = { r2. |}
flu.35 = { e4 b, e8 fs |\bk}
flu.36 = { gs8( b)\fermata b2 |} 
flu.37 = { r2. |}
flu.38 = { b4 e d' |}
flu.39 = { c'4 e fs |}
flu.40 = { gs2 r4 |\bk}
flu.41 = { r8 e8 a4 b4 |}
flu.42 = { c'4. b8 a8 c'8 |}
flu.43 = { b2.~ |}
flu.44 = { b2 r4 |}
flu.45 = { c'4 b4. g8 |\bk}
flu.46 = { a2 4 |}
flu.47 = { g2 f4 |}
flu.48 = { e2 r4 |}
flu.49 = { r8 d8 d' c' a fs |}
flu.50 = { g2 a8 b |\bk}
flu.51 = { c'4 e' d'8 c' |}
flu.52 = { b4 r8 a8 g8 a16 b16 |}
flu.53 = { c'4 b4. g8 |}
flu.54 = { a2 r4 |}
flu.55 = { r8 d8 d'4 c8 a |\bk}
flu.56 = { b4 g a8 b |}
flu.57 = { c'4 g f8 e |}
flu.58 = { d8( a\fermata) 4 g |}
flu.59 = { c2. |}
flu.60 = { r2. |\bk}

flu.79 = { c'4 b4. g8 |}
flu.80 = { a2 4 |}
flu.81 = { g4 d' f |}
flu.82 = { e4 c' e |}
flu.83 = { d4 a8 fs d d' |\bk}
flu.84 = { d'4 g a8 b |}
flu.85 = { c'4 e' fs |}
flu.86 = { g2 r4 |}
flu.87 = { r2. |}
flu.88 = { c4 a4. e8 |\bk}
flu.89 = { d2 r4 |}
flu.90 = { d4 b a8 g |}
flu.91 = { c'4 g f8 e |}
flu.92 = { d2 4 |\bar"||"}
flu.93 = { \key df \major c2. |\bk}
flu.94 = { r2. |}
flu.95 = { r2. |}
flu.96 = { r2. |}
flu.97 = { r2. |}
flu.98 = { r8 c8 8 f a c' |\bk}
flu.99 = { bf4. a?8 gf4 |}
flu.100 = { f2 r4 |}
flu.101 = { af2. |}
flu.102 = { f2 ef8 f16 g |}
flu.103 = { f2.~ |\bk}
flu.104 = { f2 r4 |}
flu.105 = { r2. |}
flu.106 = { r8 c8 8 f a c' |}
flu.107 = { bf4. af?8 gf4 |}
flu.108 = { f2 r4 |\bk}
flu.109 = { f4 df' c' |}
flu.110 = { bf4. c'8 df'4 |}
flu.111 = { c'2.~ |}
flu.112 = { c'2 r4 |\bk}
flu.113 = { df'4 c'4. af8 |}
flu.114 = { bf2 4 |}
flu.115 = { af8 ef af bf gf af |}
flu.116 = { f2 r4 |}
flu.117 = { r8 ef8 ef' df' bf g |\bk}
flu.118 = { af2 bf8 c' |}
flu.119 = { df'4 f g |}
flu.120 = { af2 r4 |}
flu.121 = { bf,4 af f8 df |}
flu.122 = { bf,2 r4 |\bk}
flu.123 = { bf,4 bf g8 ef |}
flu.124 = { c2 ef4 |}
flu.125 = { af2 gf8 f |}
flu.126 = { ef2 4 |}
flu.127 = { df2 f4 |\bk}
flu.128 = { bf4 r4 af8 bf16 c' |}
flu.129 = { df'4 bf4. f8 |}
flu.130 = { af2.\fermata |}
flu.131 = { r2. |\bk}
flu.132 = { df4. gf8 bf af16 gf |}
flu.133 = { af2 r4 |}
flu.134 = { df4. ef8 gf bf |}
flu.135 = { df'4 c'4. af8 |}
flu.136 = { bf8 af~ 2\fermata |\bar"|."}
flute = \fixed c'' {
  \global
  % Music follows here.
  \eVar \flu 01 60
  \repeat unfold 18 r2.
  \eVar \flu 79 136
}

sop.01 = { r2. |}
sop.02 = { r2. |}
sop.03 = { r2. |}
sop.04 = { r2. |}
sop.05 = { r2. |\bk}
sop.06 = { r2. |}
sop.07 = { r2. |}
sop.08 = { r2. |}
sop.09 = { c'4 b4. g8 |}
sop.10 = { a2 4 |\bk}
sop.11 = { g2 f4 |}
sop.12 = { e2 4 |}
sop.13 = { d2 a4 |}
sop.14 = { g2 a8( b) |}
sop.15 = { c'2 4 |\bk}
sop.16 = { b,2 r4 |}
sop.17 = { c'4 b4. g8 |}
sop.18 = { a2 r4 |}
sop.19 = { d'4 c'4. a8 |}
sop.20 = { b2 a8 g |\bk}
sop.21 = { c'4 g f8( e) |}
sop.22 = { d2 4 |}
sop.23 = { c2. |}
sop.24 = { r2. |}
sop.25 = { c2. |\bk}
sop.26 = { r2. |}
sop.27 = { r2. |}
sop.28 = { r2. |}
sop.29 = { e2 4 |}
sop.30 = { b2 r4 |\bk}
sop.31 = { c'4 8 b a4 |}
sop.32 = { b2 e4 |}
sop.33 = { e2 4 |}
sop.34 = { e2 d4 |}
sop.35 = { e4~ 2~ |}
sop.36 = { e2 r4 |}
sop.37 = { e2 4 |}
sop.38 = { b2 r4 |}
sop.39 = { c'4 8 b a4 |}
sop.40 = { b2 e4 |\bk}
sop.41 = { e2 4 |}
sop.42 = { c'4. b8 a4 |}
sop.43 = { b2.~ |}
sop.44 = { b2 r4 |}
sop.45 = 

Exited with return code -1073741819.

2021-06-17 Thread ming tsang
Starting lilypond-windows.exe 2.23.0 [trust_in_the_Lord.ly]...

Processing `C:/Users/yming
tsang/Documents/CHOIR_2021/專心信主/trust_in_the_Lord.ly'

Parsing...

Interpreting music...[8][16][24][32][40][48][56][64][72][80][88][96]

Exited with return code -1073741819.



Dear lily ponders,
I am trying
-- 
ming (lyndon) tsang


Re: lilypond coding problem

2021-06-16 Thread ming tsang
Thank you Knute.

Sent from my iPhone

> On Jun 16, 2021, at 2:03 PM, Knute Snortum  wrote:
> 
> 
> I think force-hshift is what you're looking for:
> 
> \once \override NoteColumn.force-hshift = 1.5 a4
> 
> --
> Knute Snortum
> 
> 
> 
>> On Wed, Jun 16, 2021 at 8:56 AM ming tsang  wrote:
>> Original score
>> 
>> 
>> --
>> test_a lilypond score
>> 
>> 
>> Dear lily ponders,
>> I have a hard time coding as close as to the original. 
>> Bar 1:  is it possible to move "a4" to the right side as the original.
>> Bar 5: is it possible to move "g4" to the right as the original.
>> 
>>   Bar 1,2,4&5 bass clef:  how to code slur as the original.
>> 
>> Here is the lilycode:
>> 
>> Thank you for the help.  
>> ming (lyndon) tsang


Re:

2020-09-19 Thread ming tsang
Hi, Jonas,

I downloaded and installed  v2.21.6  per your suggestion and the error was
gone. Thank you for the info.

Ming

On Thu, Sep 17, 2020 at 12:14 PM Jonas Hahnfeld  wrote:

> Hi,
>
> Am Donnerstag, den 17.09.2020, 11:29 -0400 schrieb ming tsang:
> > Starting lilypond-windows.exe 2.21.4 [the-conflict-of-the-ages.ly]...
> > Processing `C:/Users/yming
> tsang/Documents/CHOIR_2020/the-conflict-of-the-ages/
> the-conflict-of-the-ages.ly'
> > Parsing...
> > Interpreting music...
> > Preprocessing graphical objects...
> > Interpreting music...
> > fatal error: cannot create temp file: the-conflict-of-the-ages.mid.
> 2365: Invalid argument
> > Exited with return code 1.
> >
> >
> > Hi, lilyponders:
> > How to resolve the above error message? I did not find any .mid file in
> my pc.
> > Thanks for the help.
> > Ming.
>
> this issue has been fixed in 2.21.5 [1], I'd suggest downloading the
> latest release 2.21.6.
>
> Regards
> Jonas
>
> 1: https://gitlab.com/lilypond/lilypond/-/issues/6020
>


-- 
ming (lyndon) tsang


[no subject]

2020-09-17 Thread ming tsang
Starting lilypond-windows.exe 2.21.4 [the-conflict-of-the-ages.ly]...

Processing `C:/Users/yming
tsang/Documents/CHOIR_2020/the-conflict-of-the-ages/
the-conflict-of-the-ages.ly'

Parsing...

Interpreting music...

Preprocessing graphical objects...

Interpreting music...

fatal error: cannot create temp file: the-conflict-of-the-ages.mid. 2365:
Invalid argument

Exited with return code 1.


Hi, lilyponders:

How to resolve the above error message? I did not find any .mid file in my
pc.

Thanks for the help.

Ming.



-- 
ming (lyndon) tsang


print copyright on every page

2020-02-27 Thread MING TSANG
Dear lilyponders,
How can I print the copyright info on every page. The following code only have 
the copyright printed on the first page only.
Ming
\version "2.19.84"\language "english"
ymt = \markup {   \note #"16" #1  " yMt"  \postscript #"0.075 setlinewidth 0 
-2.5 moveto -13.75 10 -10 -7 2.5 5    rcurveto stroke"}  

\header {  title = "父 親"  subtitle = "Father"  composer = \markup\scale #'(.6 . 
.5)\ymt  arranger = ".."  copyright = \markup\scale #'(.4 . .4)\ymt }{ \repeat 
unfold 5 {  \repeat unfold 5 {c'4 4 4 4 b1 \break} \pageBreak   }}


Re: change postscript output size

2020-02-27 Thread MING TSANG
 Hi Pierre,
Thank you for the different way of coding \scale.Now it works wonderfully. 
Thanks again.
Ming. 
On Thursday, February 27, 2020, 01:31:15 a.m. EST, Pierre Perol-Schneider 
 wrote:  
 
 Hi Ming

Le mer. 26 févr. 2020 à 22:30, MING TSANG  a écrit :

 Pierre:Thank you for the \scale option,  but the text part did not scale. 
refer to below:

 Yes it does... Have you ckek the last line? 
 
On Wednesday, February 26, 2020, 03:43:02 p.m. EST, Pierre Perol-Schneider 
 wrote: 
[...] 

\markup\scale #'(1 . 5)\ymt

Try:
\version "2.19.84"

ymt = \markup {
  \note #"16" #1
  " yMt"
  %\scale #'(.5 . .5)
  \postscript #"0.075 setlinewidth 0 -2.5 moveto -13.75 10 -10 -7 2.5 5
    rcurveto stroke"
}

\markup\ymt
\markup\scale #'(.5 . .5)\ymt
Cheers,Pierre











Re: change postscript output size

2020-02-26 Thread MING TSANG
 Pierre:Thank you for the \scale option,  but the text part did not scale. 
refer to below:
The note is now outside the fish.
Thank you,Ming
On Wednesday, February 26, 2020, 03:43:02 p.m. EST, Pierre Perol-Schneider 
 wrote:  
 
 Hi Ming,How about \scale?e.g.:\version "2.19.84"

ymt = \markup { 
  \note #"16" #1
  " yMt"
  \scale #'(.5 . .5)
  \postscript #"0.075 setlinewidth 0 -2.5 moveto -13.75 10 -10 -7 2.5 5
    rcurveto stroke"
}

\markup\ymt
\markup\scale #'(1 . 5)\ymt
Cheers,Pierre



Le mer. 26 févr. 2020 à 20:56, MING TSANG  a écrit :

dear lilyponders,
I have the following postscript code. How can I make it smaller or larger?
ymt = \markup {   \note #"16" #1  " yMt"  \postscript #"0.075 setlinewidth 0 
-2.5 moveto -13.75 10 -10 -7 2.5 5    rcurveto stroke"}
image after lilypond compilation:

Thank you for the help.Ming


  

change postscript output size

2020-02-26 Thread MING TSANG
dear lilyponders,
I have the following postscript code. How can I make it smaller or larger?
ymt = \markup {   \note #"16" #1  " yMt"  \postscript #"0.075 setlinewidth 0 
-2.5 moveto -13.75 10 -10 -7 2.5 5    rcurveto stroke"}
image after lilypond compilation:

Thank you for the help.Ming



Re: remove a staff

2019-10-12 Thread MING TSANG
 Hi Simon,
For the past few days I try to code something to explain my problem.
A friend of my ask me to code jianpu. I did it by jianpu10a.ly from Paul 
Morris. the out put is good until he said he just want jianpu.  
I try not to code regular staff and I noticed the lyric is out of wack.
Then I thought if I can hide the regular Staff, this will satisfy my friend. 
That was the background of my asking help from the lilypond user community.  I 
appreciated the help from Michael Gerdan, Mark Stephen Mrotek, Karlin High, 
Graham King, Ben (soundsfromsound) and you. The result pdf is fine for the time 
being (my friend said he can live with result). Thank you everyone. 
I was debating if I should sumbit request to fixed jianpu10a.ly which Paul 
Morris provided in 2015.  Anyway I try this time. Attached is rely-test.ly file 
which is not tiny.  I complied the .ly file and generate five pdfs. The 
pdf-file-name depicts the outcome result. I hope it is not too much for such a 
request. Do I need to open up another thread?
Thank you,Ming 
On Saturday, October 12, 2019, 04:28:17 p.m. EDT, Simon Albrecht 
 wrote:  
 
 Hello Ming,

no less than six volunteers have stepped up to help you with this 
problem, and now you don’t see any need to let anyone know if you 
bypassed the problem, solved it, or simply gave up. I find that not 
exactly courteous, to say the least…

Best, Simon

On 09.10.19 03:22, MING TSANG wrote:
> Hi, lilyponders,
>
> Is it possible to remove a staff ( everything)?
>
> Thanks for the help,
> Ming
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilynd-user
  \version "2.19.83"
\language "english"



global = {
  \key d \major
  \partial 4
  \time 4/4
}



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

mel.00 = { d8 e |}
mel.01 = { fs4 a4 4. fs8 |}
mel.02 = { b4 a2 fs8 e |}
mel.03 = { d4. e8 d4 b, |}
mel.04 = { a,2 r4 fs8 e |}
mel.05 = { d4. 8 4 e |\bk}
mel.06 = { fs4 b a fs |}
mel.07 = { e4. 8 fs4 d |}
mel.08 = { e2 r4 d8 e |}
mel.09 = { fs4 a4 4. fs8 |}
mel.10 = { b4 a2 fs8 e |\bk}
mel.11 = { d4. e8 4 a4 |}
mel.12 = { fs2 r4 8 e |}
mel.13 = { d4. 8 8( c) e4 |}
mel.14 = { fs4 a e fs |}
mel.15 = { d1( |}
mel.16 = { d2) r4 fs8 a |\bk}
mel.17 = { d'4. 8 4 fs |}
mel.18 = { a4. b8 a4 fs8 a |}
mel.19 = { b4. d'8 4 b8 d' |}
mel.20 = { a2 r4 fs8 a |}
mel.21 = { d'4. 8 4 fs |\bk}
mel.22 = { a4. b8 a4 fs8 a |}
mel.23 = { d'4. e'8 d'4 b |}
mel.24 = { \time 2/4 a4. fs8 |}
mel.25 = { \time 4/4 e2 r4 d8 e |}
mel.26 = { fs4 a4 4. fs8 |\bk}
mel.27 = { b4 a2 fs8 e |}
mel.28 = { d4. e8 4 a |}
mel.29 = { fs2 r4 fs8 e |}
mel.30 = { d4. 8 4 e |}
mel.31 = { fs4 a e fs |}
mel.32 = { d2. \bar"|."}

melody = \fixed c' {
  \global
  \eVar \mel 00 32
}



verseI = \lyricmode { 
  回 頭 望 我 歲 月 匆 匆, "" 經 過 困 境 與 浪 濤·  \skip1 \skip1 倚 靠 耶 和 華 重
  造 新 生 命, 重 擔 必 卸 開·  "" "" 這 一 刻 我 縱 是 失 意, "" 失 去 
  平 靜 與 安 穩, "" "" 倚 靠 耶 和 華 令 擔 子 變 輕 省。 "" ""是 祢 
  的 犠 性 令 我 改 變, 是 祢 的 恩 典 導 我 行, "" "" 是 祢 的 恩 手 伴
  我 走 過, 是 祢 的 深 愛 不 捨 不 棄, "" "" 來 日 讓 我 仰 賴
  應 許, "" 充 滿 能 力 與 希 望, "" "" 倚 靠 耶 和 華 伴 我 一 世 走 過。
}
verse = \lyricmode { 
  回 頭 望 我 歲 月 匆 匆, 經 過 困 境 與 浪 濤·  倚 靠 耶 和 華 重
  造 新 生 命, 重 擔 必 卸 開·  這 一 刻 我 縱 是 失 意, 失 去 
  平 靜 與 安 穩, 倚 靠 耶 和 華 令 擔 子 變 輕 省。 是 祢 
  的 犠 性 令 我 改 變, 是 祢 的 恩 典 導 我 行, 是 祢 的 恩 手 伴
  我 走 過, 是 祢 的 深 愛 不 捨 不 棄, 來 日 讓 我 仰 賴
  應 許, 充 滿 能 力 與 希 望, 倚 靠 耶 和 華 伴 我 一 世 走 過。
}
hideS = { \hide Staff.BarLine
  \override Staff.StaffSymbol.line-count = #0
  \hideNotes %\hide Staff.NoteHead
  \hide Staff.TimeSignature
  \omit Score.Slur
  
  \omit Score.KeySignature   
  \hide Staff.Clef }

%%  \include "jianpu10a.ly"  %
% also works with 2.19.x and later   jianpu10a.ly

#(define (get-keysig-alt-count alt-alist)
   "Return number of sharps/flats in key sig, (+) for sharps, (-) for flats."
   (if (null? alt-alist)
   0
   (* (length alt-alist) 2 (cdr (car alt-alist)

#(define (get-major-tonic alt-count)
   "Return number of the tonic note

Re: remove a staff

2019-10-09 Thread MING TSANG
Michael,
Thank you. Please refer answer to Simon & Graham.
Thanks,
Ming.

Sent from my iPhone

> On Oct 8, 2019, at 10:39 PM, Michael Gerdau  wrote:
> 
> Yes, that’s possible.
> 
> Care to provide a MWE so that I or others could easily show you how?
> 
> Kind regards,
> Michael
> 
> Mobil gesendet
> 
>> Am 08.10.2019 um 22:23 schrieb MING TSANG :
>> 
>> 
>> Hi, lilyponders,
>> 
>> Is it possible to remove a staff ( everything)?
>> 
>> Thanks for the help,
>> Ming
>> ___
>> 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


Open multiple files on frecoaldi

2019-10-09 Thread MING TSANG
Hi, lily ponders,

> Previously, I was able to open multiple files in frecobaldi with each file in 
> a separate tab. Then, a couple of days ago, I found that this function was no 
> longer working as expected. I have no idea what why the function might have 
> become disabled; I don't recall making any major changes to my settings. Is 
> there something in the settings that, if changed, will restore the function 
> to its former usefulness?
> 
> I run windows 10 and lilypond 2.19.83 and frecobaldi 3.02

Thanks,
Ming

Sent from my iPhone___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: remove a staff

2019-10-09 Thread MING TSANG
 Hi, Graham:
Thank you verymuch for the answer.I manage to use the following code to  hide 
every on the staff except the bar number and key signature. I can live with bar 
number, but would like to hide the key signature as well. hideS = { \hide 
Staff.BarLine          \override Staff.StaffSymbol.line-count = #0          
\hideNotes %\hide Staff.NoteHead          \hide Staff.TimeSignature          
\hide Staff.Clef }
The result:
Thanks,Ming.On Wednesday, October 9, 2019, 05:49:17 a.m. EDT, Graham King 
 wrote:  
 
 

On 9 Oct 2019, at 02:22, MING TSANG  wrote:
Hi, lilyponders,
Is it possible to remove a staff ( everything)?
Thanks for the help,Ming

Hi Ming,you need to give us some context, or you'll just get the answer "yes" !
For example, if you're trying to remove a staff from a system when that staff 
contains just empty bars, the answer might be \RemoveEmptyStaves.  But if 
you're trying to remove an entire part from a score, the answer will be 
different and will include advice about how to structure the lilypond code.
Over to you.
-- Graham
  ___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: remove a staff

2019-10-09 Thread MING TSANG
 Hi, Simon,
Thank you for the answer. I am able to hide every thing except the key 
signature and bar number.  I can live of bar number but want the key signature 
hided.
Please refer to :


On Wednesday, October 9, 2019, 06:40:46 a.m. EDT, Simon Albrecht 
 wrote:  
 
 Kidding aside: of course it’s possible, but it’s not clear what your 
problem is. Why can’t you remove a staff? Do you want to hide it in 
certain systems only? We need more context and at best an example to 
answer the question.

http://lilypond.org/tiny-examples.html

Best, Simon

On 09.10.19 03:22, MING TSANG wrote:
> Hi, lilyponders,
>
> Is it possible to remove a staff ( everything)?
>
> Thanks for the help,
> Ming
>
> ___
> 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: remove a staff

2019-10-09 Thread MING TSANG
 Hi, Graham & Simon:Additional info, I also find the tie (slur) not hide. How 
to hide at least the key signature abd the tie/slur. I can live with bar 
number.  Refer to image :
 Thanks,Ming 
On Wednesday, October 9, 2019, 07:37:30 a.m. EDT, MING TSANG 
 wrote:  
 
  Hi, Graham:
Thank you verymuch for the answer.I manage to use the following code to  hide 
every on the staff except the bar number and key signature. I can live with bar 
number, but would like to hide the key signature as well. hideS = { \hide 
Staff.BarLine          \override Staff.StaffSymbol.line-count = #0          
\hideNotes %\hide Staff.NoteHead          \hide Staff.TimeSignature          
\hide Staff.Clef }
The result:
Thanks,Ming.On Wednesday, October 9, 2019, 05:49:17 a.m. EDT, Graham King 
 wrote:  
 
 

On 9 Oct 2019, at 02:22, MING TSANG  wrote:
Hi, lilyponders,
Is it possible to remove a staff ( everything)?
Thanks for the help,Ming

Hi Ming,you need to give us some context, or you'll just get the answer "yes" !
For example, if you're trying to remove a staff from a system when that staff 
contains just empty bars, the answer might be \RemoveEmptyStaves.  But if 
you're trying to remove an entire part from a score, the answer will be 
different and will include advice about how to structure the lilypond code.
Over to you.
-- Graham
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


remove a staff

2019-10-08 Thread MING TSANG
Hi, lilyponders,
Is it possible to remove a staff ( everything)?
Thanks for the help,Ming___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


open multiple files for viewing/editing in frecobaldi v3.0.1

2019-09-10 Thread MING TSANG
Hi list:
I used can open multiple files in frecobaldi that show each file in tabs. Two 
days ago I cannot do this anymore. I have no idea what setting that disable 
that function.  Is there s special settling that will restore the caption 
subject.
I run window 10 and lilypond 2.19.83.
Thank you,Ming___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


drop down list

2019-07-30 Thread MING TSANG
dear lily ponders,
On score setup wizard - frecobaldi a few entry such as "subsubtitle", "tempo 
indication" have drop down list, is it possible to edit the list - ie to delete 
or modify  entries?
Thanks for the help,Ming___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: conver-ly using frecobaldi 3.0.1

2019-06-21 Thread MING TSANG
 Anders:  Thank you for the info about convert-ly in frecobaldi. I will wait 
for the new version.David: The LSR 619 do not contain \version statement. So I 
added to it and run and it's OK.. Then I change the \version to "2.19.83" and 
compile - error occurs.  Then I try to use frecobaldi to do the convert-ly and 
it fails.
I have not run command line convert-ly ever. Please send me the command 
synthetic and steps of executing it. Thanks.
Ming 
On Friday, June 21, 2019, 07:40:37 a.m. EDT, David Kastrup  
wrote:  
 
 MING TSANG  writes:

> Hi, all
> At frecobaldi I try to do convert-ly and it seems not working
> Three steps taken:1. I run the LSR=619 with lily v2.18 -- it
> works 2. I change version to 2.19.83

What do you mean?  You change the \version header?

> and run and I gor the following error Starting
> lilypond-windows.exe 2.19.83 [Untitled (5)]...

> 3. THEN I try to use frecobaldi v3.0.1 to do convert-ly and it is not
> working.             I select "tools" -> "updates with
> convert-ly..."             it did nothing.

Why should it do anything if your \version header is already 2.19.83?
If you want it to do anything, the \version header needs to correspond
to the syntax in the file, in this case 2.18.2.  Then it will do the
changes required to get from versino 2.18.2 to the current version
including (but not restricted to) updating the \version header.

> How to set up frecobaladi v3.0.1 so that the tools - convert-ly works?

Do not change the \version header to something that does not correspond
to the version of the code in the file: that just misleads convert-ly.

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


Re: programming error: mis-predicted force, 108.120472 ~= 108.191480 continuing, cross fingers

2019-05-20 Thread MING TSANG
 Hi, Brian & Simon:
It seems that the \grace or \\acciaccatura  is the code generate the error. I 
use window 10.1). with \grace programming error spears2). change \grace to 
\acciaccatura  compiles clean without programming error3). BUT input next bar 
(measure) the programming error appears.4). Remove \grace or \\acciaccatura  
from my full .ly file, it compiles clean.
Question: 1.) what is the difference between \grace & \acciaccatura?2.) How to 
resolve this programming error...?3.) Just ignore it?
Thanks,Ming.

On Sunday, May 19, 2019, 3:37:51 p.m. EDT, Brian Barker 
 wrote:  
 
 At 20:28 19/05/2019 +0200, Simon Albrecht wrote:
>I can't reproduce the error with your example on Ubuntu 16.04.

For what it's worth, your example also compiles without error in 
version 2.18.2 under Windows 10 (providing I remove the \fixed, of course).

Brian Barker - privately  

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


Re: programming error: mis-predicted force, 108.120472 ~= 108.191480 continuing, cross fingers

2019-05-19 Thread MING TSANG
 %\version "2.19"\language "english"global = {  \key a \major  
\numericTimeSignature  \time 3/4  \partial 4
  % Draw a circle round the following bar number(s)  \override 
Score.BarNumber.stencil  = #(make-stencil-circler 0.1 0.25 
ly:text-interface::print)  }
right = \fixed c'  {  \global cs''8 b' |  2  8 a' |  
2 cs''8 a' |  4 a'' 8 fs'' |\break  e''4 r4 
a' |  2 4 |  \acciaccatura b'8 2 d''4 |  
4. d''8 cs''  |}
\new Staff \right%%I change \grace to\  \acciaccatura and the compile clean 
without the programming error
Then I add next bar and the compile indicated three programming error...I don't 
see how the code affect the compile.
Any where I can find the explaination of the programming error and how to 
resolve it?
Ming
The lilypond log as below:
Starting lilypond-windows.exe 2.19.83 [test_2.ly]...

Processing `C:/Users/yming 
tsang/Documents/S_team/2019-06-02/Speechless-Praise/test_2.ly'

Parsing...

Interpreting music...[8]

Preprocessing graphical objects...

programming error: mis-predicted force, 108.120472 ~= 108.262836

continuing, cross fingers

programming error: mis-predicted force, 108.120472 ~= 108.049201

continuing, cross fingers

programming error: mis-predicted force, 108.120472 ~= 108.049201

continuing, cross fingers

Finding the ideal number of pages...

Fitting music on 1 page...

Drawing systems...

Layout output to `./tmp-lilypond-zKIQCm'...

Converting to `test_2.pdf'...

Deleting `./tmp-lilypond-zKIQCm'...

Success: compilation successfully completed

Completed successfully in 4.3".

On Sunday, May 19, 2019, 2:28:30 p.m. EDT, Simon Albrecht 
 wrote:  
 
 Hi Ming,

I can’t reproduce the error with your example on Ubuntu 16.04.

Best, Simon

On 19.05.19 19:51, MING TSANG wrote:
> Hi Simon,
>
> Thank you for the info.  I finally find the first time the programming 
> error appears.
> I now have a minimal lily code demonstrate the error.
>
> Ming
> %%%
> \version "2.19.83"
> \language "english"
> global = {
>   \key a \major
>   \numericTimeSignature
>   \time 3/4
>   \partial 4
>
>   % Draw a circle round the following bar number(s)
>   \override Score.BarNumber.stencil
>   = #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
> }
>
> right = \fixed c' {
>   \global
>  cs''8 b' |
>  2  8 a' |
>  2 cs''8 a' |
>  4 a'' 8 fs'' |\break
>  e''4 r4 a' |
>  2 4 |
>  \grace b'8 2 d''4 |
> }
>
> \new Staff \right
>
> %%%
>
> log output:
>
> Starting lilypond-windows.exe 2.19.83 [test_2.ly]...
>
> Processing `C:/Users/yming 
> tsang/Documents/S_team/2019-06-02/Speechless-Praise/test_2.ly'
>
> Parsing...
>
> Interpreting music...[8][8]
>
> Preprocessing graphical objects...
>
> programming error: mis-predicted force, 108.120472 ~= 108.262836
>
> continuing, cross fingers
>
> Finding the ideal number of pages...
>
> Fitting music on 1 page...
>
> Drawing systems...
>
> Layout output to `./tmp-lilypond-y6dGQn'...
>
> Converting to `test_2.pdf'...
>
> Deleting `./tmp-lilypond-y6dGQn'...
>
> Success: compilation successfully completed
>
> Completed successfully in 1.4".
>
>
>
>
>
>
>
> On Sunday, May 19, 2019, 9:28:01 a.m. EDT, Simon Albrecht 
>  wrote:
>
>
> Hi Ming,
>
> it’s very likely impossible to say without seeing your source file, and
> as always: try to narrow it down yourself. What changes did you make to
> the document before the error first appeared? Just go through the usual
> ‘minimal example’ process (tedious as it may be), and if that doesn’t
> show you the problem already, then send the example to the list.
>
> Best, Simon
>
> http://lilypond.org/tiny-examples.html
>
> On 17.05.19 16:22, MING TSANG wrote:
> > Hi, lilyponders:
> >
> > What is it mean "...miss-predicted..."?
> > How to resolve the following error?
> >
> > Thank you for the help.
> > Ming
> >
> >
> > error log after compile:
> >
> > Starting lilypond-windows.exe 2.19.83 [speechless-praise.ly]...
> >
> > Processing `C:/Users/yming
> > 
> tsang/Documents/S_team/2019-06-02/Speechless-Praise/speechless-praise.ly'
> >
> > Parsing...
> >
> > Interpreting music...[8][16][24][32][40][48][56][64][72][80]
> >
> > Preprocessing graphical objects...
> >
> > Interpreting music...
> >
> > MIDI output to `speechless-praise.mid'...
> >
> > programming error: mis-predicted force, 108.120472 ~= 108.191480
> >
> > continuing, cross fingers
> >
> > programming error: mis-predicted force, 108.120472 ~= 107.961819
> >
> > continuing, cross fingers
> >
> > programmin

Re: programming error: mis-predicted force, 108.120472 ~= 108.191480 continuing, cross fingers

2019-05-19 Thread MING TSANG
 Hi Simon,
Thank you for the info.  I finally find the first time the programming error 
appears.I now have a minimal lily code demonstrate the error.
Ming  %%%\version "2.19.83"\language "english"global = {  \key a \major  
\numericTimeSignature  \time 3/4  \partial 4
  % Draw a circle round the following bar number(s)  \override 
Score.BarNumber.stencil  = #(make-stencil-circler 0.1 0.25 
ly:text-interface::print)  }
right = \fixed c' {  \global cs''8 b' |  2  8 a' |  
2 cs''8 a' |  4 a'' 8 fs'' |\break  e''4 r4 
a' |  2 4 |  \grace b'8 2 d''4 | }
\new Staff \right
%%%
log output:
Starting lilypond-windows.exe 2.19.83 [test_2.ly]...

Processing `C:/Users/yming 
tsang/Documents/S_team/2019-06-02/Speechless-Praise/test_2.ly'

Parsing...

Interpreting music...[8][8]

Preprocessing graphical objects...

programming error: mis-predicted force, 108.120472 ~= 108.262836

continuing, cross fingers

Finding the ideal number of pages...

Fitting music on 1 page...

Drawing systems...

Layout output to `./tmp-lilypond-y6dGQn'...

Converting to `test_2.pdf'...

Deleting `./tmp-lilypond-y6dGQn'...

Success: compilation successfully completed

Completed successfully in 1.4".






On Sunday, May 19, 2019, 9:28:01 a.m. EDT, Simon Albrecht 
 wrote:  
 
 Hi Ming,

it’s very likely impossible to say without seeing your source file, and 
as always: try to narrow it down yourself. What changes did you make to 
the document before the error first appeared? Just go through the usual 
‘minimal example’ process (tedious as it may be), and if that doesn’t 
show you the problem already, then send the example to the list.

Best, Simon

http://lilypond.org/tiny-examples.html

On 17.05.19 16:22, MING TSANG wrote:
> Hi, lilyponders:
>
> What is it mean "...miss-predicted..."?
> How to resolve the following error?
>
> Thank you for the help.
> Ming
>
>
> error log after compile:
>
> Starting lilypond-windows.exe 2.19.83 [speechless-praise.ly]...
>
> Processing `C:/Users/yming 
> tsang/Documents/S_team/2019-06-02/Speechless-Praise/speechless-praise.ly'
>
> Parsing...
>
> Interpreting music...[8][16][24][32][40][48][56][64][72][80]
>
> Preprocessing graphical objects...
>
> Interpreting music...
>
> MIDI output to `speechless-praise.mid'...
>
> programming error: mis-predicted force, 108.120472 ~= 108.191480
>
> continuing, cross fingers
>
> programming error: mis-predicted force, 108.120472 ~= 107.961819
>
> continuing, cross fingers
>
> programming error: mis-predicted force, 108.120472 ~= 107.957163
>
> continuing, cross fingers
>
> programming error: mis-predicted force, 108.120472 ~= 108.191480
>
> continuing, cross fingers
>
> programming error: mis-predicted force, 108.120472 ~= 107.961819
>
> continuing, cross fingers
>
> programming error: mis-predicted force, 108.120472 ~= 107.957163
>
> continuing, cross fingers
>
> programming error: mis-predicted force, 108.120472 ~= 106.800315
>
> continuing, cross fingers
>
> Finding the ideal number of pages...
>
> Fitting music on 2 or 3 pages...
>
> Drawing systems...
>
> Layout output to `./tmp-lilypond-spwyxH'...
>
> Converting to `speechless-praise.pdf'...
>
> Deleting `./tmp-lilypond-spwyxH'...
>
> Success: compilation successfully completed
>
> Completed successfully in 5.7".
>
>
>
> ___
> 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: tie four 8 note to 4 chord

2019-05-18 Thread MING TSANG
 Stefano & Andrew:
Thank you for the solution and explanation. 
Thanks,Ming.
On Saturday, May 18, 2019, 11:00:41 a.m. EDT, Stefano Troncaro 
 wrote:  
 
 Hi Ming, it depends on the music you are working with and your preference. I 
personally have it set to ##t as my personal default. I don't see the downside 
to having it turned on: if this happens often in your music it's cumbersome to 
keep setting and resetting it, and I also find that it helps to instantly spot 
input mistakes (if you have a tie flying all the way through your score you 
know you messed up somewhere).
Hope that helps,Stéfano

El vie., 17 may. 2019 a las 11:59, MING TSANG () escribió:

 Andrew:
Thank you very much.
Once the tieWaitForNote = ##t is set, it continues to work. Is this the 
intention?  Is it necessary to reset to it's default?
Thanks,Ming 
On Thursday, May 16, 2019, 7:41:14 p.m. EDT, Andrew Bernard 
 wrote:  
 
 Hi Ming,
\set tieWaitForNote = ##t
It's in the Notation Reference manual.
Andrew

  ___
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: tie four 8 note to 4 chord

2019-05-17 Thread MING TSANG
 Andrew:
Thank you very much.
Once the tieWaitForNote = ##t is set, it continues to work. Is this the 
intention?  Is it necessary to reset to it's default?
Thanks,Ming 
On Thursday, May 16, 2019, 7:41:14 p.m. EDT, Andrew Bernard 
 wrote:  
 
 Hi Ming,
\set tieWaitForNote = ##t
It's in the Notation Reference manual.
Andrew

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


programming error: mis-predicted force, 108.120472 ~= 108.191480 continuing, cross fingers

2019-05-17 Thread MING TSANG
Hi, lilyponders:
What is it mean "...miss-predicted..."?How to resolve the following error?
Thank you for the help.Ming

error log after compile:
Starting lilypond-windows.exe 2.19.83 [speechless-praise.ly]...
Processing `C:/Users/yming 
tsang/Documents/S_team/2019-06-02/Speechless-Praise/speechless-praise.ly'

Parsing...

Interpreting music...[8][16][24][32][40][48][56][64][72][80]

Preprocessing graphical objects...

Interpreting music...

MIDI output to `speechless-praise.mid'...

programming error: mis-predicted force, 108.120472 ~= 108.191480

continuing, cross fingers

programming error: mis-predicted force, 108.120472 ~= 107.961819

continuing, cross fingers

programming error: mis-predicted force, 108.120472 ~= 107.957163

continuing, cross fingers

programming error: mis-predicted force, 108.120472 ~= 108.191480

continuing, cross fingers

programming error: mis-predicted force, 108.120472 ~= 107.961819

continuing, cross fingers

programming error: mis-predicted force, 108.120472 ~= 107.957163

continuing, cross fingers

programming error: mis-predicted force, 108.120472 ~= 106.800315

continuing, cross fingers

Finding the ideal number of pages...

Fitting music on 2 or 3 pages...

Drawing systems...

Layout output to `./tmp-lilypond-spwyxH'...

Converting to `speechless-praise.pdf'...

Deleting `./tmp-lilypond-spwyxH'...

Success: compilation successfully completed

Completed successfully in 5.7".

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


tie four 8 note to 4 chord

2019-05-16 Thread MING TSANG


I try to transcribe the above image.
Question: is this  normal / standard score?
The below code is my attempt: %code  \key a\major  \clef bass  \time 3/4   d8~ 
f~ gs~ b~ 4 |}%endThe result and log:


Thanks,Ming

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


Re: how to restore the override to it default.

2019-05-07 Thread MING TSANG
Thank you for the quick response, Malte Meyn and David Kastup.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


how to restore the override to it default.

2019-05-07 Thread MING TSANG
Lilyponders, 
The override take effect for bar 2 to bar 4. I try to use \remove , but not 
working.
\version "2.19.83"{  \fixed c' { c'4 b a g   %bar 1     \override 
NoteHead.style = #'slash     \override Stem.transparent = ##t     \override 
Flag.transparent = ##t     c'4 4 4 4   %bar 2     b4 4 4 4   %bar 3      % how 
can I restore to default - same as bar 1     c'4 b a g  %bar 4  }}
Thanks for the help.Ming.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: warning message - missing slur

2019-04-14 Thread MING TSANG
 Lukas-Fabian, Ralph, Budanov and Ben:
Thank you all for the solution.
Ming.On Sunday, April 14, 2019, 8:18:42 a.m. EDT, Ralph Palmer 
 wrote:  
 
 On Sun, Apr 14, 2019 at 4:33 AM Lukas-Fabian Moser  wrote:

  

That's not true anymore: In recent versions (starting at some point in the 
2.19.xx series), slurs can be assigned a "name" allowing them to be referenced, 
and in particular, nested (cf. 
http://lilypond.org/doc/v2.19/Documentation/changes/index.html):

Thanks so much for this link, Lukas! Somehow, I had missed that documentation.
All the best, 
Ralph

-- 
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com  ___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


warning message - missing slur

2019-04-13 Thread MING TSANG
Lilyponders:
I have the following lily code:
 \version "2.19.83"\language "english"     \fixed c' { <<{f4 e8 c8~( c4 e8( f8) 
)}\\{f4 e8 c~ 4~ 4}>> |}

which has the following :
  

 
Starting lilypond-windows.exe 2.19.83 [Untitled]...

Processing 
`C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-02as553u/tmpcvsj14ki/document.ly'

Parsing...

Interpreting music...

C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-02as553u/tmpcvsj14ki/document.ly:6:35:
 warning: already have slur

 \fixed c' { <<{f4 e8 c8~( c4 e8

 ( f8) )}\\{f4 e8 c~ 4~ 4}>> |}

Preprocessing graphical objects...

Finding the ideal number of pages...

Fitting music on 1 page...

Drawing systems...

Layout output to `./tmp-lilypond-KNpEJz'...

Converting to `document.pdf'...

Deleting `./tmp-lilypond-KNpEJz'...

Success: compilation successfully completed
Completed successfully in 0.9".

the slur e8( f8) is missing. How can I get the slur printed by lilypond.
original:   


    On the above image, slur from e to f necessary.
Thank you,Ming
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: pdf & mid file not saved onto the folder where lily file resides.

2019-03-28 Thread MING TSANG
 Federico,Thank you for the tip of using frecobaldi. Now its. No need to do 
save & compile.Ming
On Thursday, March 28, 2019, 2:23:07 a.m. EDT, Federico Bruni 
 wrote:  
 
 There's an option in the preferences to always save a file before 
compiling, in case you want to be safe.

The issue with the network drive is known, I think. Probably this one:
https://github.com/frescobaldi/frescobaldi/issues/1053

I should double-check...

Il giorno gio 28 mar 2019 alle 3:20, MING TSANG  ha 
scritto:
> Thank you for the info. Now I use folder in C-drive. Save and compile 
> solve my problem..
> I was trying to use router network drive. I can the lily file but not 
> pdf and mid even I did save and compile. I have no idea. So i switch 
> back using C-drive.




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


Re: pdf & mid file not saved onto the folder where lily file resides.

2019-03-27 Thread MING TSANG
 Abraham,

Thank you for the info. Now I use folder in C-drive. Save and compile solve my 
problem..I was trying to use router network drive. I can the lily file but not 
pdf and mid even I did save and compile. I have no idea. So i switch back using 
C-drive.
Thanks,Ming

On Wednesday, March 27, 2019, 6:08:43 p.m. EDT, Abraham Lee 
 wrote:  
 
 Hi, Ming!
On Wed, Mar 27, 2019 at 4:01 PM MING TSANG  wrote:

Hi lilyponder:
I have my ipro4 computer hacked. I reinstall window 10 on ipro4. I down load 
lilypond 2.19.83 & 2.18.2 and also frecobaldi v3.0.1
Then I run frescobaldi to create new lily scroe sheet. It complies OK, but no 
pdf, mid files saved onto the same folder of lily file.
Help is appreciated. Log file is at below text.
Ming
Starting lilypond-windows.exe 2.19.83 [just-as-i-am.ly]...

Processing 
`C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly'

Parsing...

Interpreting music...

MIDI output to `just-as-i-am-soprano.mid'...

Interpreting music...

MIDI output to `just-as-i-am-alto.mid'...

Interpreting music...

MIDI output to `just-as-i-am-tenor.mid'...

Interpreting music...

MIDI output to `just-as-i-am-bass.mid'...

Interpreting music...

C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:155:14:
 warning: cannot find Staff `uniqueContext0'




 \addlyrics 

 { \sopranoVerse }




C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:160:14:
 warning: cannot find Staff `uniqueContext1'




 \addlyrics 

 { \altoVerse }




C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:165:14:
 warning: cannot find Staff `uniqueContext2'




 \addlyrics 

 { \tenorVerse }




C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:170:14:
 warning: cannot find Staff `uniqueContext3'




 \addlyrics 

 { \bassVerse }




[8][16][24][32][40][48]

Preprocessing graphical objects...

Interpreting music...

C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:155:14:
 warning: cannot find Staff `uniqueContext0'




 \addlyrics 

 { \sopranoVerse }




C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:160:14:
 warning: cannot find Staff `uniqueContext1'




 \addlyrics 

 { \altoVerse }




C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:165:14:
 warning: cannot find Staff `uniqueContext2'




 \addlyrics 

 { \tenorVerse }




C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:170:14:
 warning: cannot find Staff `uniqueContext3'




 \addlyrics 

 { \bassVerse }




MIDI output to `just-as-i-am.mid'...

Finding the ideal number of pages...

Fitting music on 1 or 2 pages...

Drawing systems...

Layout output to `./tmp-lilypond-cD8Hsa'...

Converting to `just-as-i-am.pdf'...

Deleting `./tmp-lilypond-cD8Hsa'...

Success: compilation successfully completed

Completed successfully in 2.1".

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

If you don’t explicitly save the file before compiling, Frescobaldi puts any 
created files are put in a “temp” folder.So, save first, then compile and you 
should get your files in the same folder as the input file.
HTH,Abraham  ___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


pdf & mid file not saved onto the folder where lily file resides.

2019-03-27 Thread MING TSANG
Hi lilyponder:
I have my ipro4 computer hacked. I reinstall window 10 on ipro4. I down load 
lilypond 2.19.83 & 2.18.2 and also frecobaldi v3.0.1
Then I run frescobaldi to create new lily scroe sheet. It complies OK, but no 
pdf, mid files saved onto the same folder of lily file.
Help is appreciated. Log file is at below text.
Ming
Starting lilypond-windows.exe 2.19.83 [just-as-i-am.ly]...

Processing 
`C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly'

Parsing...

Interpreting music...

MIDI output to `just-as-i-am-soprano.mid'...

Interpreting music...

MIDI output to `just-as-i-am-alto.mid'...

Interpreting music...

MIDI output to `just-as-i-am-tenor.mid'...

Interpreting music...

MIDI output to `just-as-i-am-bass.mid'...

Interpreting music...

C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:155:14:
 warning: cannot find Staff `uniqueContext0'




 \addlyrics 

 { \sopranoVerse }




C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:160:14:
 warning: cannot find Staff `uniqueContext1'




 \addlyrics 

 { \altoVerse }




C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:165:14:
 warning: cannot find Staff `uniqueContext2'




 \addlyrics 

 { \tenorVerse }




C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:170:14:
 warning: cannot find Staff `uniqueContext3'




 \addlyrics 

 { \bassVerse }




[8][16][24][32][40][48]

Preprocessing graphical objects...

Interpreting music...

C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:155:14:
 warning: cannot find Staff `uniqueContext0'




 \addlyrics 

 { \sopranoVerse }




C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:160:14:
 warning: cannot find Staff `uniqueContext1'




 \addlyrics 

 { \altoVerse }




C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:165:14:
 warning: cannot find Staff `uniqueContext2'




 \addlyrics 

 { \tenorVerse }




C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-ft__bl24/tmpl0b7mag8/just-as-i-am.ly:170:14:
 warning: cannot find Staff `uniqueContext3'




 \addlyrics 

 { \bassVerse }




MIDI output to `just-as-i-am.mid'...

Finding the ideal number of pages...

Fitting music on 1 or 2 pages...

Drawing systems...

Layout output to `./tmp-lilypond-cD8Hsa'...

Converting to `just-as-i-am.pdf'...

Deleting `./tmp-lilypond-cD8Hsa'...

Success: compilation successfully completed

Completed successfully in 2.1".

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


utf-8 file name in lilypond

2019-01-30 Thread MING TSANG
http://lsr.di.unimi.it/LSR/Snippet?id=197


I copy the above snippet and name it test_file-name_info.ly and run with 
fracobaldi3.01 + lilypond2.19.82 it produces desired file infomation.
Then I rename the file as test_中文.ly (UTF-8 Chinese characters) and execute and 
the following error occurs:
Starting lilypond-windows.exe 2.19.82 [test_中文.ly]...
warning: cannot find file: `C:/Users/yming/Documents/test_??.ly'

fatal error: failed files: "C:/Users/yming/Documents/test_??.ly"

Exited with return code 1.

Question: Window 10 support UTF-8 file name and lilypond does not. Is there any 
work around?___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: arpeggio variant

2019-01-23 Thread MING TSANG
 Andrew,
Thank you very much.
Ming.
On Wednesday, January 23, 2019, 7:37:49 a.m. EST, Andrew Bernard 
 wrote:  
 
 HI Ming,
A usage problem. Read the NR section 1.3.3 Expressive Marks as Lines and see 
the section Arpeggio. You will immediately see what's wrong.
Andrew



On Wed, 23 Jan 2019 at 23:27, MING TSANG  wrote:


I coded arpeggio variant and is not working. Am I use them wrongly?
 
\version "2.19.82"\language "english"right = \fixed c' {  \key bf\major  \time 
4/4  1\arpeggio  |  1\arpeggioArrowDown |   1\arpeggioBracket |   1\arpeggioArrowUp  |  1\arpeggioParenthesis |   1\arpeggioNormal  |}
\new Staff \right

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


arpeggio variant

2019-01-23 Thread MING TSANG
Dear lilypond user list:
I coded arpeggio variant and is not working. Am I use them wrongly?
Ming
\version "2.19.82"\language "english"right = \fixed c' {  \key bf\major  \time 
4/4  1\arpeggio  |  1\arpeggioArrowDown |   1\arpeggioBracket |   1\arpeggioArrowUp  |  1\arpeggioParenthesis |   1\arpeggioNormal  |}
\new Staff \right
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Flat flared hairpins

2018-12-31 Thread Ming Tsang
In our apartment here in Canada the floor number is 
1,2,3,5,6,7,8,9,10,11,12,15, 16 17   missing 4,13 & 14  

Ming

Sent from Mail for Windows 10

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


Re: Jianpu

2018-12-28 Thread MING TSANG
Thank you for the workaround.

Sent from my iPhone

> On Dec 27, 2018, at 2:44 PM, Thomas Morley  wrote:
> 
> 
> 
>> Am Do., 27. Dez. 2018 um 21:03 Uhr schrieb MING TSANG :
>> Dear Paul and David
>> 
>> I don't know the code. Appreciate if either one of you can help to resolve 
>> the tie problem for jianpu.
> 
> Hi,
> 
> my knowledge about Jianpu is zero.
> Though, how _should_ it look? Like the attached png?
> If so why not replacing the Tie with a Slur? At least this was how I created 
> the image.
> 
> Cheers,
>   Harm
> 
> 
> 
> 
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Jianpu

2018-12-27 Thread MING TSANG
Dear Paul and David
I don't know the code. Appreciate if either one of you can help to resolve the 
tie problem for jianpu.
Thank you,Ming

 the lily code is \version "2.19"
\language "english"
  
 
 \include "jianpu10a.ly"
 global = {
  \key d \major
  \numericTimeSignature
  \time 3/4
  \partial 4
  \tempo Andante 4=78
}

sop = { \global
 fs'8 e'8 |%m00.
 d'4 4 fs'8 a' |%m01
 e'4 4 fs'8( a') |%m02
 b'4 a'4 fs'8 e'8 |%m03
 d'2.~ |%m04
 d'2. |\break  %m05
 \repeat unfold 6 {R2.} |\break%m06-11
 R2. |\break
}

\score {
  <<
%\flutePart
\new JianpuStaff \jianpuMusic {  \sop}
\new Staff \sop
 
  >>
  \layout { }
   
}\version "2.9.82"
\language "english" 
% also works with 2.19.x and later   jianpu10a.ly

#(define (get-keysig-alt-count alt-alist)
   "Return number of sharps/flats in key sig, (+) for sharps, (-) for flats."
   (if (null? alt-alist)
   0
   (* (length alt-alist) 2 (cdr (car alt-alist)

#(define (get-major-tonic alt-count)
   "Return number of the tonic note 0-6, as if the key sig were major."
   ;; (alt-count major-tonic)
   ;; (-7 0) (-5 1) (-3 2) (-1 3) (1 4) (3 5) (5 6) (7 0)
   ;; (-6 4) (-4 5) (-2 6) (0 0) (2 1) (4 2) (6 3)
   (if (odd? alt-count)
   (modulo (- (/ (+ alt-count 1) 2) 4) 7)
   (modulo (/ alt-count 2) 7)))

#(define (get-key-alts context)
   "Needed because LilyPond 2.19 and 2.20 has 'keyAlterations
and 2.18 has 'keySignature for the same context property.
No way to test for existence of context property..."
   (define key-alts (ly:context-property context 'keyAlterations '()))
   (if (equal? key-alts '())
   (ly:context-property context 'keySignature '())
   key-alts))

#(define (stencil-flip axis stl)
   "Flip stencil @var{stl} in the direction of @var{axis}. 
@var{axis} is 0 for X, 1 for Y."
   (let* (
   ;; center stl on 0,0 to prepare for flipping,
   ;; and calculate how far it moved.
   (centered-stl (ly:stencil-aligned-to stl axis CENTER))
   (original-ext (ly:stencil-extent stl axis))
   (centered-ext (ly:stencil-extent centered-stl axis))
   (offset (- (car original-ext) (car centered-ext)))

   ;; scale centered-stl using -1 to flip it
   (xy (if (= axis X) '(-1 . 1) '(1 . -1)))
   (flipped-stl (ly:stencil-scale centered-stl (car xy) (cdr xy)))

   ;; restore flipped stl to original position
   (replaced-stl (ly:stencil-translate-axis flipped-stl offset axis)))

 ;; for testing...
 ;; (display original-ext) (display centered-ext)
 ;; (display (ly:stencil-extent replaced-stl axis))(newline)

 replaced-stl))


jianpuMusic =
#(define-music-function (parser location mus) (ly:music?)
   "This music function modifies the music input for better jianpu output."
   (let ((major-tonic-pitch (ly:make-pitch 0 0 0))
 (prev-pitch (ly:make-pitch 0 0 0)))
 (music-map
  (lambda (m)
(cond

 ;; KEY CHANGE
 ((music-is-of-type? m 'key-change-event)
  (let*
   ((pitch-alist (ly:music-property m 'pitch-alist))
(key-alts (filter (lambda (a) (not (= 0 (cdr a pitch-alist))
(keysig-alt-count (get-keysig-alt-count key-alts))
(major-tonic-number (get-major-tonic keysig-alt-count))
(tonic (ly:music-property m 'tonic))
(tonic-num (ly:pitch-notename tonic))
;; mode 1-7, 1=major 6=minor
(mode (+ 1 (modulo (- tonic-num major-tonic-number) 7

   (set! major-tonic-pitch
 (ly:make-pitch 0
   major-tonic-number
   (or (assoc-ref key-alts major-tonic-number) 0)))
   ;; store the actual key of the music for use in jianpu key signatures
   (ly:music-set-property! m 'jianpu-key-sig (cons mode tonic))

   ;; convert the key signature in effect to c major
   (ly:music-set-property! m 'pitch-alist '((0 . 0) (1 . 0) (2 . 0) (3 . 0) (4 . 0) (5 . 0) (6 . 0)))
   (ly:music-set-property! m 'tonic (ly:make-pitch 0 0 0))
   ))

 ;; REST AND MULTI-MEASURE REST
 ((or (music-is-of-type? m 'rest-event)
  (music-is-of-type? m 'multi-measure-rest))
  (let ((dur (ly:moment-main (ly:music-duration-length m
(if (>= dur 1/2)
;; split whole and half rests into quarter notes
(let ((q (make-music 'NoteEvent
   'duration (ly:make-duration 2 0 1)
   'jianpu-rest #t)))
  ;; double dotted half rest is special case
  ;; TODO: generalize this for triple dots, other durations, etc.?
  (if (= dur 7/8)
  (let ((q-dotted (ly:music-deep-copy q)))
(ly:music-set-property! q-dotted 'duration (ly:make-duration 2 1 1))
(set! m (make-sequential-music (append (make-list 2 q) (list 

RE: change of volta number

2018-06-22 Thread Ming Tsang
Thank you all for the reply. 

Here is snippet. 
It is Chinese character in the lyric.
In Chinese music note name uses (i)1 2 3 4 5 6 7 or (ii) do re mi fa so la ti.  
I find language “italiano” very close to (ii), therefor my snippet use language 
“italiano” for note name and use “Chinese” for lyric. This combination serve me 
well.

\set Score.repeatCommands = #'(end-repeat (volta "2."))
Works fine for changing the volta 1 to 2.

Thank you all,
Ming


Sent from Mail for Windows 10



test-snippet.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


change of volta number

2018-06-21 Thread Ming Tsang
Hi lilyponders, how can I modify volta number from 1. To 2?
Thanks,
Ming
Sent from Mail for Windows 10

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


RE: Different time signature on different staff

2018-04-16 Thread Ming Tsang
Knut,
Thank you for the sample PDF and ly source. 
http://lilybin.com/94hi4y/1 
Question: how to align bar lines for the above lilybin sample.
Ming


Sent from Mail for Windows 10

From: Knut Petersen
Sent: April 16, 2018 12:07 PM
To: Ming Tsang; lilypond-user@gnu.org
Subject: Re: Different time signature on different staff

Hi Ming! 
My code did not produce the expecting of time 6/8 on the first staff.  
What shall I code to correct this.

After reading the manual location pointed out by Brian you might have a look 
at my edition of Hugo Distles polymetric "Er ist's". PDF and source code

Knut

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


RE: Different time signature on different staff

2018-04-16 Thread Ming Tsang
Brian, 
Thank you for pointing me to NR. I have been search LSR and found nothing.
I will study the NR.
Ming

Sent from Mail for Windows 10

From: Brian Barker
Sent: April 16, 2018 11:49 AM
To: lilypond-user@gnu.org
Cc: Ming Tsang
Subject: Re: Different time signature on different staff

At 11:17 16/04/2018 -0400, Ming Tsang wrote:
>My code did not produce the expecting of time 6/8 on the first 
>staff. What shall I code to correct this.

See "Different time signatures with equal-length measures" and 
"Different time signatures with unequal-length measures" under 
"Polymetric notation" at
http://lilypond.org/doc/v2.19/Documentation/notation/displaying-rhythms#polymetric-notation
 
.

Brian Barker  


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


Different time signature on different staff

2018-04-16 Thread Ming Tsang
Dear ponders,
My code did not produce the expecting of time 6/8 on the first staff.  
What shall I code to correct this.
Thanks,
Ming




Sent from Mail for Windows 10



the-spirit-of-life_test.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Another code AbMaj7(#11)/Eb

2018-02-21 Thread Ming Tsang
Elaine:

Thank you.  I has been a great help.  
Is there any resource that will provide help next time I need co code some 
special chord?
Thanks again,
Ming

Sent from Mail for Windows 10

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


Another code AbMaj7(#11)/Eb

2018-02-20 Thread Ming Tsang
Hi, lilyponders,
I need help for code another chord per the image link
https://tsang94-rogers.tinytake.com/sf/MjM2OTAyOF83MjE0MDA1

Is there any resource that I can locate the solution?
Thank you,
Ming
Sent from Mail for Windows 10

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


Re: chord name e2:m7(b5)/d

2018-02-20 Thread Ming Tsang
Thank You Torsten and Robert:
Thank you for the tips.  I use language English sot I change  c ees ges bes  to 
c ef gf bf.  The result is great.
Ming

Sent from Mail for Windows 10

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


chord name e2:m7(b5)/d

2018-02-16 Thread Ming Tsang

Lilyponders
How to generate the second chard name?
Thanks for the help
Ming





Sent from Mail for Windows 10

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


Re: alignment of "To" and \coda horizontally

2018-02-03 Thread Ming Tsang
Robin,
Think you. I did not find the answer is LSR
Ming

Sent from Mail for Windows 10

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


RE: alignment of "To" and \coda horizontally

2018-02-02 Thread Ming Tsang
The following solve the caption subject. However how to make the “To” lower to 
align with  \coda  OR the \coda up a little to align with “To”?

\version “2.19.80” 
{ f'1^\markup { \halign #-4.4 \concat {"To " \musicglyph #"scripts.coda" } } 
|\bar"||" \break }

Sent from Mail for Windows 10

From: Ming Tsang
Sent: February 2, 2018 6:07 PM
To: lilypond-user@gnu.org
Subject: alignment of "To" and \coda horizontally

Liliponders,
How can I align the following on the same line horizontally?
Thanks,
Ming

\version "2.19.80"

{ f'1^\markup"To" \coda |\bar"||" }





Sent from Mail for Windows 10


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


Re: color lyrics text

2017-12-12 Thread MING TSANG
hi Simon, David, Peter and Ben:
Thank you for your answer. Here is so many ways to color lyric text. I am 
wondering, if one method is better than the other.
Thank you,Ming
Here is the various method.
\version "2.19.80"\language "english"
\header {  title = "test to set lyric text in color"}
global = {  \key c \major  \time 4/4}
sopranoVoice =  {  \global  \dynamicUp  r2. r8 e'16( d') |  c'8 ( c''4) a'8 
g'8.( f'16 e'8) f'8|  e'4 d'4 c'2 |  }
clrGreen = { \override LyricText . color = #green }reVrt = {  \revert LyricText 
. color } 
clrRed = { \override Lyrics.LyricText.color = #red }clrBlue = { \override 
Lyrics.LyricText.color = #green }clrBlack = { \override Lyrics.LyricText.color 
= #black }
verseOne = \lyricmode {  \clrGreen 宇 宙 \reVrt 宇 宙 \markup \with-color #red 萬 物 
頌 揚  }verseTwo = \lyricmode {  宇 宙 宇 宙 \clrRed 萬 物 頌 揚  }verseThree = 
\lyricmode {  宇 宙 宇 宙 \clrRed 萬 物 \clrBlack 頌 揚  }
\score {  \new Staff \with {    instrumentName = "Soprano"    midiInstrument = 
"choir aahs"  } { \sopranoVoice }  \addlyrics { \verseOne }  \addlyrics { 
\verseTwo }  \addlyrics { \verseThree }  \layout { }  \midi {    \tempo 4=100  
}}


  From: Simon Albrecht <simon.albre...@mail.de>
 To: David Kastrup <d...@gnu.org>; Peter Chubb <pe...@chubb.wattle.id.au> 
Cc: Ming Tsang <tsan...@rogers.com>; "lilypond-user@gnu.org" 
<lilypond-user@gnu.org>
 Sent: Tuesday, December 12, 2017 2:27 PM
 Subject: Re: \unfoldRepeats for midi file
  
On 12.12.2017 11:27, David Kastrup wrote:
> "Peter Chubb" <pe...@chubb.wattle.id.au> writes:
>
>> Ming> Thank you for the
>> Ming> answer. One question: how can I just want to show few color
>> Ming> lyric text only? I try to use {}, but it shows all lyric text in
>> Ming> color.  Ming
>>
>> You need to delimit the coloured part.  Something like
>>  words=\lyricmode {
>>      you \markup {\with-color #green can} see the \markup
>>     {\with-color #red} frog
>>  }
> Uh no?
>
> words=\lyricmode {
>      you \markup \with-color #green can see the
>      \markup \with-color #red frog
> }
>
> works fine.

Or

words = \lyricmode {
   you
   \override LyricText . color = #green
   can see
   \revert LyricText . color
   the frog
}

Best, Simon


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


RE: \unfoldRepeats for midi file

2017-12-11 Thread Ming Tsang
Peter,
I did reply all and I got mail delivery fail on your rmail address.
Thank you for the answer. One question: how can I just want to show few color 
lyric text only? I try to use {}, but it shows all lyric text in color. 
Ming

Sent from Mail for Windows 10

From: pe...@chubb.wattle.id.au
Sent: December 10, 2017 9:25 PM
To: Ming Tsang
Cc: lilypond-user@gnu.org
Subject: Re: \unfoldRepeats for midi file


Ming> Hi lilyponders, I try to produce file file that
Ming> unfoldRepeats. The following code did not produce repeats
Ming> volta. I need help.  Thanks, Ming

   Please next time try to produce a minimal example.

   You've asked for \repeat volta 1  which has no repeat.  Try \repeat
   volta 2 to play the tune twice.

Peter C

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


Color lyrics text

2017-12-10 Thread Ming Tsang
Hi lilyponders,
Can I color few lyric text?
Thank you for your help.
Ming

Sent from Mail for Windows 10

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


RE: \unfoldRepeats for midi file

2017-12-10 Thread Ming Tsang
Hi Peter,
Thank you for the reply.
I did not know volta 2 can have no \alternative. That why I use volta 1.  I 
change volta 1 to volta 2 and the \unfoldRepeats works.  Thank you very much.
Next time I will try a minimal example.
Ming.

Sent from Mail for Windows 10

From: pe...@chubb.wattle.id.au
Sent: December 10, 2017 9:25 PM
To: Ming Tsang
Cc: lilypond-user@gnu.org
Subject: Re: \unfoldRepeats for midi file


Ming> Hi lilyponders, I try to produce file file that
Ming> unfoldRepeats. The following code did not produce repeats
Ming> volta. I need help.  Thanks, Ming

   Please next time try to produce a minimal example.

   You've asked for \repeat volta 1  which has no repeat.  Try \repeat
   volta 2 to play the tune twice.

Peter C

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


\unfoldRepeats for midi file

2017-12-07 Thread Ming Tsang
Hi lilyponders,
I try to produce file file that unfoldRepeats. The following code did not 
produce repeats volta. I need help.
Thanks,
Ming

\version "2.19.80"
\language "english"

\header {
  subtitle = "Joy to the World / Angels We Have Heard on High"
}

global = {
  \key d \major
  \numericTimeSignature
  \time 2/4
}

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

\include "\articulate.ly"

   
sop.1  = { \key f\major \time 4/4 a'4 4 4 c'' |}  soj.1  = { d''4 cs''8. b'16 
|} 
sop.2  = { c''4. bf'8 a'2 |}   soj.2  = { a'4. g'8 |}
sop.3  = { a'4 g' a' c''|} soj.3  = { fs'4 e'|} 
sop.4  = { a'4. g'8 f'2 |\break }  soj.4  = { d'4. a'8 |}
sop.5  = { a'4 4 4 c'' |}  soj.5  = { b'4. 8 |}
sop.6  = { c''4. bf'8 a'2 |}   soj.6  = { cs''4. 8 |}
sop.7  = { a'4 g' a' c'' |}soj.7  = { d''4. 
\bar""\break 8 |}
sop.8  = { a'4. g'8 f'2 |\break }  soj.8  = { d''8( cs'') b'8( 
a') |}
sop.9  = { c''2( d''8 c'' bf' a' |}soj.9  = { a'8.( g'16 fs'8) 
d''8|}
sop.10  = { bf'2 c''8 bf' a' g' |} soj.10  = { d''8( cs''8) 
b'8( a') |} 
sop.11  = { a'2 bf'8 a' g' f') |}  soj.11  = { a'8.( g'16 fs'8) 
\bar""\break fs'8|}
sop.12  = { g'4. c'8 2 |}  soj.12  = { fs'8 8 8 16( g') 
|}
sop.13  = { f'4 g' a' bf' |}   soj.13  = { a'4. g'16( fs')|}
sop.14  = { a'2 g' |\break }   soj.14  = { e'8 8 8 16( 
fs')|}
sop.15  = { c''2( d''8 c'' bf' a' |}   soj.15  = {  g'4. 
\bar""\break fs'16( e') |}
sop.16  = { bf'2 c''8 bf' a' g' |}  soj.16  = { d'8( d''4) b'8 
|}
sop.17  = { a'2 bf'8 a' g' f') |}  soj.17  = { a'8.( g'16 fs'8) 
g'8 |} 
sop.18  = { g'4. c'8 2 |}  soj.18  = { fs'4 e' |}
sop.19  = { f'4 g' a' bf' |}   soj.19  = { d'2 |}
sop.20  = { a'2( g'2) |}soj.20  = { r4. r8 |}
sop.21  = { f'1 |  }   soj.21  = { R4*2 |}
soprano =   {
  \global
  \repeat volta 1 { \eVar \soj 1 19 }

  \soj.20 \soj.21 \break
  \repeat volta 1 { \eVar \sop 1 21 }
  
  R1 R1 \break
  \global
  \eVar \soj 1 19 \bar"|."
}

verseOne = \lyricmode {  \set fontSize = #2.0 }

choirPart = \new ChoirStaff <<
  \new Staff = "soprano" \soprano
  
>>

\score {  
  <<
 
\choirPart
  >>
  \layout { }
  %midi {
  %  \tempo 4=100
  %}
}
\score { \unfoldRepeats
  <<
  
\choirPart
  >>
  %\layout { }
  \midi {
\tempo 4=100
  }
}

% Rehearsal MIDI files:
rehearsalMidi = #
(define-music-function
 (parser location name midiInstrument lyrics) (string? string? ly:music?)
 #{
   \unfoldRepeats <<
 \new Staff = "soprano" \new Voice = "soprano" { \soprano }

 \context Staff = $name {
   \set Score.midiMinimumVolume = #0.5
   \set Score.midiMaximumVolume = #0.5
   \set Score.tempoWholesPerMinute = #(ly:make-moment 100 4)
   \set Staff.midiMinimumVolume = #0.8
   \set Staff.midiMaximumVolume = #1.0
   \set Staff.midiInstrument = $midiInstrument
 }
 \new Lyrics \with {
   alignBelowContext = $name
 } \lyricsto $name $lyrics
   >>
 #})
\book {
  \bookOutputSuffix "soprano"
  \score {
\rehearsalMidi "soprano" "soprano sax" \verseOne
\midi { }
  }
}


Sent from Mail for Windows 10

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


Re: Full bar rest R time 6/8 and 9/8

2017-12-01 Thread Ming Tsang
Thank you for the helping hand, Malte Meyn.

Sent from Mail for Windows 10

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


Full bar rest R time 6/8 and 9/8

2017-11-29 Thread Ming Tsang
Lilyponders:

1  for time 4/4R1 provides full bar rest centered;
2  for time 2/4R2 provides full bar rest centered
3  for time 3/4   R2. Provides full bar rest centered
 How to code :
4  for time 6/8; for time 9/8

Thank you for the help.
Ming

Sent from Mail for Windows 10

___
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 <tsan...@rogers.com>
 To: Lilypond-usermailinglist <lilypond-user@gnu.org> 
 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' 
<gf'ef''>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' 
<f'bf'>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' 
<gf'ef''>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' 
<f'bf'>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"
\overrid

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: Jianpu Notation

2017-08-30 Thread MING TSANG
Hi David,Thank you very much for resuming development of jianpu in lilypond 
(gitHub lilypond-jianpu).  If jianpu10a.ly is stable enough, please merge 
jianpu6.ly and jianpu10a.ly.  After the merge, I can resume testing.Ming.

  From: David Zhang <david...@qq.com>
 To: MING TSANG <tsan...@rogers.com> 
Cc: Lilypond-usermailinglist <lilypond-user@gnu.org>; David Nalesnik 
<david.nales...@gmail.com>; Carl Sorensen <c_soren...@byu.edu>; Jacques Menu 
Muzhic <imj-muz...@bluewin.ch>
 Sent: Wednesday, August 30, 2017 2:10 AM
 Subject: Re: Jianpu Notation
  
Hi MING!

As the code is uploaded to github, the Jianpu-lilypond project is techically 
resumed. What functions do you want to add? What aspects do you want to improve?

David Zhang

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


Re: manual beaming and variables

2017-08-27 Thread MING TSANG
Hi Simon:I reply from the user-achieve list. At end of the message there is an 
instruction "replay email via". I was assuming that it will change the subject 
line and include the message.Is is possible to set it to reply with re:subject 
and message ?Next time I will remember to do that.
  From: Simon Albrecht 
 To: TSANGMING ; "gianmarial...@gmail.com" 
; "lilypond-user@gnu.org"  
 Sent: Sunday, August 27, 2017 7:33 AM
 Subject: Re: manual beaming and variables
  
Hello Ming,

sorry to be pedantic, but this list is read by many people as well as 
archived. It is important that you write an actual reply to the original 
e-mail (instead of composing a technically independent e-mail), since 
the internal In-Reply-To header is needed for correct organisation of 
threads. Please stick to that in future.

Best, Simon


On 27.08.2017 13:14, TSANGMING wrote:
>
> The following works
>
> \version "2.19.60"
>
> note = {a8[ }
>
> {
>
> { \note b b b] }
>
> }
>
> 发送自 Windows 10 版邮件 
> 应用
>
>
>
> ___
> 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: manual beaming and variables

2017-08-27 Thread MING TSANG
Hi Simon,Will remember to do next time. Thank you for letting me know.Ming.

  From: Simon Albrecht 
 To: TSANGMING ; "gianmarial...@gmail.com" 
; "lilypond-user@gnu.org"  
 Sent: Sunday, August 27, 2017 7:33 AM
 Subject: Re: manual beaming and variables
   
Hello Ming,

sorry to be pedantic, but this list is read by many people as well as 
archived. It is important that you write an actual reply to the original 
e-mail (instead of composing a technically independent e-mail), since 
the internal In-Reply-To header is needed for correct organisation of 
threads. Please stick to that in future.

Best, Simon


On 27.08.2017 13:14, TSANGMING wrote:
>
> The following works
>
> \version "2.19.60"
>
> note = {a8[ }
>
> {
>
> { \note b b b] }
>
> }
>
> 发送自 Windows 10 版邮件 
> 应用
>
>
>
> ___
> 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: Jianpu Notation

2017-08-24 Thread MING TSANG
Thank you David Kastrup for helping.Paul: does the info provide help to solve 
the lyrics placement in jianpu?
Thank you Ming.

  From: David Kastrup <d...@gnu.org>
 To: MING TSANG <tsan...@rogers.com> 
Cc: Paul Morris <p...@paulwmorris.com>; Super-User <david...@qq.com>; Werner 
LEMBERG <w...@gnu.org>; Carl Sorensen <c_soren...@byu.edu>; David Nalesnik 
<david.nales...@gmail.com>; Lilypond-usermailinglist <lilypond-user@gnu.org>
 Sent: Thursday, August 24, 2017 2:47 AM
 Subject: Re: Jianpu Notation
   
MING TSANG <tsan...@rogers.com> writes:

> | From: | Paul Morris |
> | Subject: | Re: Jianpu Notation |
> | Date: | Thu, 30 Apr 2015 11:36:28 -0400 |
>
> There has no activities since April 30/2015 - two year past.I hope
> Paul Morris and David Zhang can re-start the development of
> Jianpu.Thank you.Ming.
>> On Apr 30, 2015, at 9:10 AM, MING TSANG <address@hidden> wrote:
>> 
>> David & Paul: 
>> I created jianpu-test_1.ly for testing jianpu9.ly
>> The result is self explaining.  
>
> Thanks Ming, this is helpful.
>
>> There is a difference in coding c''8 8 vs c''8 c’'
>
> Ah, it seems that in c’’8 8 the 8 does not have a pitch property when it is 
> received by the jianpuMusic function:
>
> \displayMusic shows that c’’8 becomes:
>
> (make-music
> 'NoteEvent
> 'duration
> (ly:make-duration 3)
> 'pitch
> (ly:make-pitch 1 0))
>
> …and then 8 becomes
>
> (make-music
> 'NoteEvent
> 'duration
> (ly:make-duration 3))
>
> with no pitch property.  So I’ll need to handle these pitch-less note events. 

The definition of \retrograde in ly/music-functions-init.ly shows how
this can be done:

retrograde =
#(define-music-function (music) (ly:music?)
    (_i "Return @var{music} in reverse order.")
    (retrograde-music
    (expand-repeat-notes!
      (expand-repeat-chords!
      (cons 'rhythmic-event
            (ly:parser-lookup '$chord-repeat-events))
      music

-- 
David Kastrup

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


Re: Jianpu Notation

2017-08-24 Thread MING TSANG
Thank you David Zhang for setting this github. Now the lilipond-jianpu 
development can proceed after two years wait.Can you  merge your jianpu6.y code 
with jianpu10a.ly? Thank you.Ming

  From: David Zhang <david...@qq.com>
 To: MING TSANG <tsan...@rogers.com>; Paul Morris <p...@paulwmorris.com>; 
Werner LEMBERG <w...@gnu.org>; Carl Sorensen <c_soren...@byu.edu>; David 
Nalesnik <david.nales...@gmail.com>; Lilypond-usermailinglist 
<lilypond-user@gnu.org> 
 Sent: Thursday, August 24, 2017 1:02 AM
 Subject: Re: Jianpu Notation
   
Hi all!
I have created a github resp. and uploaded our previous code to 
https://github.com/nybbs2003/lilypond-Jianpu . And we can resume the 
development and make further discussion on github.
David Zhang


在 2017年8月24日,上午11:18,MING TSANG <tsan...@rogers.com> 写道:

| From: | Paul Morris |
| Subject: | Re: Jianpu Notation |
| Date: | Thu, 30 Apr 2015 11:36:28 -0400 |

There has no activities since April 30/2015 - two year past.I hope Paul Morris 
and David Zhang can re-start the development of Jianpu.Thank you.Ming.
> On Apr 30, 2015, at 9:10 AM, MING TSANG <address@hidden> wrote:
> 
> David & Paul: 
> I created jianpu-test_1.ly for testing jianpu9.ly
> The result is self explaining.   

Thanks Ming, this is helpful.

> There is a difference in coding c''8 8 vs c''8 c’'

Ah, it seems that in c’’8 8 the 8 does not have a pitch property when it is 
received by the jianpuMusic function:

\displayMusic shows that c’’8 becomes:

(make-music
'NoteEvent
'duration
(ly:make-duration 3)
'pitch
(ly:make-pitch 1 0))

…and then 8 becomes

(make-music
'NoteEvent
'duration
(ly:make-duration 3))

with no pitch property.  So I’ll need to handle these pitch-less note events. 

> Lyric treat -  0  as notes

Yes, this I knew about, but I don’t know what the solution might be.  The - and 
0 are notes with modified stencils, which gives us good spacing and lets 0s 
have beams.  But that breaks how the lyrics align with the notes, and I can’t 
think of an automatic way to adjust the lyric durations so that, for example, a 
syllable that originally aligned with a whole note now aligns with four quarter 
notes.  

So currently you have to do this by hand by adjusting the durations of lyrics 
or adding skips, etc.  You could use tags, skips, and removeWithTag to have one 
set of lyrics that works with either standard notation or jianpu.

-Paul





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


Re: Jianpu Notation

2017-08-23 Thread MING TSANG

| From: | Paul Morris |
| Subject: | Re: Jianpu Notation |
| Date: | Thu, 30 Apr 2015 11:36:28 -0400 |

There has no activities since April 30/2015 - two year past.I hope Paul Morris 
and David Zhang can re-start the development of Jianpu.Thank you.Ming.
> On Apr 30, 2015, at 9:10 AM, MING TSANG <address@hidden> wrote:
> 
> David & Paul: 
> I created jianpu-test_1.ly for testing jianpu9.ly
> The result is self explaining.   

Thanks Ming, this is helpful.

> There is a difference in coding c''8 8 vs c''8 c’'

Ah, it seems that in c’’8 8 the 8 does not have a pitch property when it is 
received by the jianpuMusic function:

\displayMusic shows that c’’8 becomes:

(make-music
'NoteEvent
'duration
(ly:make-duration 3)
'pitch
(ly:make-pitch 1 0))

…and then 8 becomes

(make-music
'NoteEvent
'duration
(ly:make-duration 3))

with no pitch property.  So I’ll need to handle these pitch-less note events. 

> Lyric treat -  0  as notes

Yes, this I knew about, but I don’t know what the solution might be.  The - and 
0 are notes with modified stencils, which gives us good spacing and lets 0s 
have beams.  But that breaks how the lyrics align with the notes, and I can’t 
think of an automatic way to adjust the lyric durations so that, for example, a 
syllable that originally aligned with a whole note now aligns with four quarter 
notes.  

So currently you have to do this by hand by adjusting the durations of lyrics 
or adding skips, etc.  You could use tags, skips, and removeWithTag to have one 
set of lyrics that works with either standard notation or jianpu.

-Paul

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


  1   2   3   4   5   6   7   >