Re: Jianpu Notation

2017-09-04 Thread Paul

On 08/24/2017 02:29 PM, MING TSANG wrote:


Thank you David Kastrup for helping.
Paul: does the info provide help to solve the lyrics placement in jianpu?


Thanks David for the tip on how to solve this issue.

Ming, unfortunately I don't have time to work on this right now. Maybe 
at some point, but since I don't use Jianpu, it would be best if someone 
who did use it could take it on.


Cheers,
-Paul
___
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: Jianpu Notation

2017-08-30 Thread David Zhang
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: Jianpu Notation

2017-08-26 Thread Jacques Menu Muzhic
Hello,

I see that work has already been done for Jianpu, much more than I’m able to do.

Thanks Ming for letting me know!

JM

> Le 25 août 2017 à 04:30, David Zhang <david...@qq.com> a écrit :
> 
> Hi MING !
> 
> I can't do the merge right now for I have to look deep into the code. But 
> anyone who do is welcome to make a pull request.
> Also, for any feature wanted, please fire an issue.
> 
> David Zhang
> 
> 
>> 在 2017年8月25日,上午2:26,MING TSANG <tsan...@rogers.com 
>> <mailto:tsan...@rogers.com>> 写道:
>> 
>> 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 <http://jianpu10a.ly/>? 
>> Thank you.
>> Ming
>> 
>> 
>> From: David Zhang <david...@qq.com <mailto:david...@qq.com>>
>> To: MING TSANG <tsan...@rogers.com <mailto:tsan...@rogers.com>>; Paul Morris 
>> <p...@paulwmorris.com <mailto:p...@paulwmorris.com>>; Werner LEMBERG 
>> <w...@gnu.org <mailto:w...@gnu.org>>; Carl Sorensen <c_soren...@byu.edu 
>> <mailto:c_soren...@byu.edu>>; David Nalesnik <david.nales...@gmail.com 
>> <mailto:david.nales...@gmail.com>>; Lilypond-usermailinglist 
>> <lilypond-user@gnu.org <mailto: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 
>> <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 
>>> <mailto: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 <http://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

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


Re: Jianpu Notation

2017-08-24 Thread David Zhang
Hi MING !

I can't do the merge right now for I have to look deep into the code. But 
anyone who do is welcome to make a pull request.
Also, for any feature wanted, please fire an issue.

David Zhang


> 在 2017年8月25日,上午2:26,MING TSANG <tsan...@rogers.com> 写道:
> 
> 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 
> <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 
>> <mailto: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 <http://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-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-24 Thread David Kastrup
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-23 Thread David Zhang
Hi all!

I have created a github resp. and uploaded our previous code to 
https://github.com/nybbs2003/lilypond-Jianpu 
<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 David Zhang
I can offer pricise judgement and tones of samples, but I can't write Lisp.

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


Re: Jianpu Notation

2015-07-10 Thread MING TSANG
Paul and David:Further to my previous email on July 9 , I have a typo error.  
Should be jianpu6.ly to jianpu10a.ly  Is jainpu10.ly stable enough?Can you 
suggest any free merge window software that will bring the two file into 
working jianpu11.ly?
Jianpu6.ly contains the follow feature :
   ( numbered  --   1     2     3     4     5     6     7     solfegeI -  
 do   re    mi   fa    so   la     te     solfegeII -   d     r      m    
f      s     l       t  ) 
David : can you merge the file for us?  
Immanuel,Ming.
  


 On Thursday, July 9, 2015 10:23 AM, MING TSANG tsan...@rogers.com wrote:
   

 Paul:  Is it possible to line up sharp / flat to the Jianpu notation in 
Jainpu10a.ly?Paul / David :  I try to combine Jianpu10a.ly to Jianpu6.ly, but 
encounter problems. David can you do that?Immanuel,Ming.





 


 On Wednesday, May 6, 2015 8:36 PM, MING TSANG tsan...@rogers.com wrote:
   

 Paul,Thank you. Take you time, and I am looking forward to see the fix.  Thank 
you for your time and patience.In the meantime, I have work around :1.  coded   
 c'2~c'2    a'1~a'2 r2  with c'2( c'2)   a'1( a'2) r2 to generate pdf2.  remove 
the ( ) and put ~ back to produce midiImmanuel,Ming 


 On Wednesday, May 6, 2015 1:24 PM, MING TSANG tsan...@rogers.com wrote:
   

 Hi, Paul  David :
Additional test .ly file for tie notes.
Immanuel,Ming 


 On Tuesday, May 5, 2015 7:25 AM, MING TSANG tsan...@rogers.com wrote:
   

 Paul  David :
I test the jianpu10a.ly with the following code and notice that a tie note is 
not working properly. 
%snippet begin .\version 2.18.2\language english
global = {  \key f\major}\include jianpu10a.ly
notes = { c'1 f'2( g') g'2~g'2 e'2. r4 } \new JianpuStaff \jianpuMusic { 
\global \notes }  \new Staff { \global \notes }%snippet end .
Immanuel,Ming. 

 



 On Sunday, May 3, 2015 11:16 PM, Paul Morris p...@paulwmorris.com wrote:
   

 
On May 1, 2015, at 9:33 PM, Super-User david...@qq.com wrote:
And, I've attached some real world examples from Baidu, which displays key 
B-flat as 1=♭B instead of 1=B♭.I've attached jianpu10a.ly which fixes 
this.

Ok, thanks for this.
-Paul

   

   

   

   

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


Re: Jianpu Notation

2015-07-09 Thread MING TSANG
Paul:  Is it possible to line up sharp / flat to the Jianpu notation in 
Jainpu10a.ly?Paul / David :  I try to combine Jianpu10a.ly to Jianpu6.ly, but 
encounter problems. David can you do that?Immanuel,Ming.





 


 On Wednesday, May 6, 2015 8:36 PM, MING TSANG tsan...@rogers.com wrote:
   

 Paul,Thank you. Take you time, and I am looking forward to see the fix.  Thank 
you for your time and patience.In the meantime, I have work around :1.  coded   
 c'2~c'2    a'1~a'2 r2  with c'2( c'2)   a'1( a'2) r2 to generate pdf2.  remove 
the ( ) and put ~ back to produce midiImmanuel,Ming 


 On Wednesday, May 6, 2015 1:24 PM, MING TSANG tsan...@rogers.com wrote:
   

 Hi, Paul  David :
Additional test .ly file for tie notes.
Immanuel,Ming 


 On Tuesday, May 5, 2015 7:25 AM, MING TSANG tsan...@rogers.com wrote:
   

 Paul  David :
I test the jianpu10a.ly with the following code and notice that a tie note is 
not working properly. 
%snippet begin .\version 2.18.2\language english
global = {  \key f\major}\include jianpu10a.ly
notes = { c'1 f'2( g') g'2~g'2 e'2. r4 } \new JianpuStaff \jianpuMusic { 
\global \notes }  \new Staff { \global \notes }%snippet end .
Immanuel,Ming. 

 



 On Sunday, May 3, 2015 11:16 PM, Paul Morris p...@paulwmorris.com wrote:
   

 
On May 1, 2015, at 9:33 PM, Super-User david...@qq.com wrote:
And, I've attached some real world examples from Baidu, which displays key 
B-flat as 1=♭B instead of 1=B♭.I've attached jianpu10a.ly which fixes 
this.

Ok, thanks for this.
-Paul

   

   

   

  \version 2.18.2
\language english
\include jianpu10a.ly
global = {
  \key bf \major
  \time 4/4
  \partial 4.
  \tempo 4=100
}
SS➉   = { d'8 ef'8 e'8 |}  
SS➀   = { f'2~f'8 bf'8 c''8 bf'8 |}
SS➁   = { bf'4 c'4. df'8 ef'8 f'8 |}  
soprano = {
  \global
  \SS➉ \SS➀ \SS➁
}

\score {
  
\new JianpuStaff \jianpuMusic   { \soprano }

\new Staff \soprano
  
  \layout { } 
  %\midi { }
}

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


Re: Jianpu Notation

2015-05-06 Thread MING TSANG
Hi, Paul  David :
Additional test .ly file for tie notes.
Immanuel,Ming 


 On Tuesday, May 5, 2015 7:25 AM, MING TSANG tsan...@rogers.com wrote:
   

 Paul  David :
I test the jianpu10a.ly with the following code and notice that a tie note is 
not working properly. 
%snippet begin .\version 2.18.2\language english
global = {  \key f\major}\include jianpu10a.ly
notes = { c'1 f'2( g') g'2~g'2 e'2. r4 } \new JianpuStaff \jianpuMusic { 
\global \notes }  \new Staff { \global \notes }%snippet end .
Immanuel,Ming. 

 



 On Sunday, May 3, 2015 11:16 PM, Paul Morris p...@paulwmorris.com wrote:
   

 
On May 1, 2015, at 9:33 PM, Super-User david...@qq.com wrote:
And, I've attached some real world examples from Baidu, which displays key 
B-flat as 1=♭B instead of 1=B♭.I've attached jianpu10a.ly which fixes 
this.

Ok, thanks for this.
-Paul

   

  \version 2.18.2
\language english

global = {
  \key f\major
  \time 4/4
}
\include jianpu10a.ly

notes = { 
  c'1 f'2( g') g'2~g'2~g'2. r4  bf'1~bf'2 c''2 |\break
  d'8~d'8 e'8.~e'16 \tuplet 3/2{f'8~ f'8~ f'8} \tuplet 3/2{g'16 r16 g'16} r8 r1  |\break
  f'4~f'2 r4 f'2~f'4 g'4 a'4 a'4~ a'4 \tuplet 3/2{bf'8 a'8 g'8} 
}
  
 
  \new JianpuStaff \jianpuMusic { \global \notes }
  \new Staff { \global \notes }
 



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


Re: Jianpu Notation

2015-05-06 Thread Paul Morris
Hi Ming,

Yes, I see the problem with the ties on half notes and larger.  I know what’s 
causing this, but I’m not sure of the best way to fix it…  I’ll put it on my 
to-do list, but I’m not sure when I’ll be able to get to it.

-Paul


 On May 6, 2015, at 1:24 PM, MING TSANG tsan...@rogers.com wrote:
 
 Hi, Paul  David :
 
 Additional test .ly file for tie notes.
 
 Immanuel,
 Ming
 
 
 
 On Tuesday, May 5, 2015 7:25 AM, MING TSANG tsan...@rogers.com wrote:
 
 
 Paul  David :
 
 I test the jianpu10a.ly with the following code and notice that a tie note is 
 not working properly. 
 
 %snippet begin .
 \version 2.18.2
 \language english
 
 global = {
   \key f\major
 }
 \include jianpu10a.ly
 
 notes = { c'1 f'2( g') g'2~g'2 e'2. r4 }
   
  
   \new JianpuStaff \jianpuMusic { \global \notes }
   \new Staff { \global \notes }
 
 %snippet end .
 
 Immanuel,
 Ming. 
 
 
 
 
 
 
 On Sunday, May 3, 2015 11:16 PM, Paul Morris p...@paulwmorris.com wrote:
 
 
 On May 1, 2015, at 9:33 PM, Super-User david...@qq.com 
 mailto:david...@qq.com wrote:
 
 And, I've attached some real world examples from Baidu, which displays key 
 B-flat as 1=♭B instead of 1=B♭.I've attached jianpu10a.ly 
 http://jianpu10a.ly/ which fixes this.
 
 Ok, thanks for this.
 
 -Paul
 
 
 
 
 jianpu-test_2.ly2015-05-06_132055.png

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


Re: Jianpu Notation

2015-05-06 Thread MING TSANG
Paul,Thank you. Take you time, and I am looking forward to see the fix.  Thank 
you for your time and patience.In the meantime, I have work around :1.  coded   
 c'2~c'2    a'1~a'2 r2  with c'2( c'2)   a'1( a'2) r2 to generate pdf2.  remove 
the ( ) and put ~ back to produce midiImmanuel,Ming 


 On Wednesday, May 6, 2015 1:24 PM, MING TSANG tsan...@rogers.com wrote:
   

 Hi, Paul  David :
Additional test .ly file for tie notes.
Immanuel,Ming 


 On Tuesday, May 5, 2015 7:25 AM, MING TSANG tsan...@rogers.com wrote:
   

 Paul  David :
I test the jianpu10a.ly with the following code and notice that a tie note is 
not working properly. 
%snippet begin .\version 2.18.2\language english
global = {  \key f\major}\include jianpu10a.ly
notes = { c'1 f'2( g') g'2~g'2 e'2. r4 } \new JianpuStaff \jianpuMusic { 
\global \notes }  \new Staff { \global \notes }%snippet end .
Immanuel,Ming. 

 



 On Sunday, May 3, 2015 11:16 PM, Paul Morris p...@paulwmorris.com wrote:
   

 
On May 1, 2015, at 9:33 PM, Super-User david...@qq.com wrote:
And, I've attached some real world examples from Baidu, which displays key 
B-flat as 1=♭B instead of 1=B♭.I've attached jianpu10a.ly which fixes 
this.

Ok, thanks for this.
-Paul

   

   

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


Re: Jianpu Notation

2015-05-05 Thread MING TSANG
Paul  David :
I test the jianpu10a.ly with the following code and notice that a tie note is 
not working properly. 
%snippet begin .\version 2.18.2\language english
global = {  \key f\major}\include jianpu10a.ly
notes = { c'1 f'2( g') g'2~g'2 e'2. r4 } \new JianpuStaff \jianpuMusic { 
\global \notes }  \new Staff { \global \notes }%snippet end .
Immanuel,Ming. 

 



 On Sunday, May 3, 2015 11:16 PM, Paul Morris p...@paulwmorris.com wrote:
   

 
On May 1, 2015, at 9:33 PM, Super-User david...@qq.com wrote:
And, I've attached some real world examples from Baidu, which displays key 
B-flat as 1=♭B instead of 1=B♭.I've attached jianpu10a.ly which fixes 
this.

Ok, thanks for this.
-Paul

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


Re: Jianpu Notation

2015-05-03 Thread Paul Morris
Hi Ming,

 On May 1, 2015, at 4:33 PM, MING TSANG tsan...@rogers.com wrote:
 
 One question:  Is this stable enough to merge with jianpu6.ly 
 http://jianpu6.ly/ from David Zhang?

I think so.

 Jianpu6.ly http://jianpu6.ly/ allows the display jianpu in two options:
 numbered: 1 2 3 4  5  6  7   
 solfege option1: do  remi   fa so la ti   OR
 soffege option2: dr  mf   s   l   t (this 
 option is not in jianpu6.ly http://jianpu6.ly/ yet but I wish it is)
 Note: Paul and David, who want to tackle this?   

I’m happy for David to do it.  It’s basically the same change as before I think.

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


Re: Jianpu Notation

2015-05-03 Thread Paul Morris
 On May 1, 2015, at 9:33 PM, Super-User david...@qq.com wrote:
 
 And, I've attached some real world examples from Baidu, which displays key 
 B-flat as 1=♭B instead of 1=B♭.I've attached jianpu10a.ly 
 http://jianpu10a.ly/ which fixes this.

Ok, thanks for this.

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


Re: Jianpu Notation

2015-05-03 Thread Paul Morris
Hi David,

 On May 1, 2015, at 10:24 PM, Super-User david...@qq.com wrote:
 
 Here's a test script, with all transpose using \major. But somehow, the key 
 signture displays other than 1=“.

Thanks for the test script.  I suspect that those key signatures are unusual or 
non-standard.  I’ve only supported the standard keys from the circle of 5ths:
https://en.wikipedia.org/wiki/Circle_of_fifths

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


Re: Jianpu Notation

2015-05-02 Thread MING TSANG
Paul  David:
Paul, thank you for your suggestion to use \tag in lyrics so that one lyrics 
can now be used by both Staff  jianpuStaff.please review the .png and .ly 
files.  I use David's jianpu10a.ly.  I am not quite sure what is the difference 
between 10  10a though.
David: are you working on incorporating solfege1  solfege2 into jianpu10a.ly?  
  ( numbered  --   1     2     3     4     5     6     7     solfege1 -   
do   re    mi   fa    so   la     te     solfege2 -   d     r      m    f  
    s     l       t  )
Immanuel,Ming. 


 On Friday, May 1, 2015 2:24 PM, Paul Morris p...@paulwmorris.com wrote:
   

 Hi all,

Attached is version 10 that fixes:

1. beam appearance (using a new stencil-flip function)
2. duration-only note entry (c'8 8 8 8)
3. key signatures appearing at the beginning of every line

The key signature fix was a standard LilyPond override, so adjust as needed:
http://lilypond.org/doc/v2.18/Documentation/notation/visibility-of-objects#using-break_002dvisibility

Ming, would you please ask your question about tags and lyrics in another 
thread, since it’s more about how to use tags and not limited to Jianpu?

Cheers,
-Paul


  
\version 2.18.2
\language english


\include jianpu10a.ly

\header {
  title = 十架七言
  subtitle = 7 speech
  % Remove default LilyPond tagline
  tagline = ##f
}

\paper {
  #(set-paper-size letter)
}

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

globald = {
  \key d \major
  \numericTimeSignature
  \time 3/4
  \tempo 4=100
}


\include include_lyndon-specific.ly

melodyd =   {  
   
  fs'2. | %m01
  e'2 a'8. g'16 |%m002
  fs'4 fs'2 |%m03
  d'4 d''4 cs''8.( b'16) %m04
  a'2 b'8. g'16 |\break %m05
  fs'2 e'8 fs'8 |%m06
  e'8 b8 d'2 |%m07
  a'4 fs'2 |%m08
  e'4 fs'4  a'8( g'8) |%m09
  fs'2 d''4 | \break %m10
  cs''8( d''8) e''8( d''8) cs''8( b'8) |%m11
  a'2. |%m12
  d'4 d''2 |%m13
  d''4 cs''4 b'8 a'8 |%m14
  fs'2. |\break %m15
  d'4 b'2 |%m16
  b'4 a'4 g'8 fs'8 |%m17
  e'2 a'8( g'8) |%m18
  fs'2 fs'8( e'8) |%m19
  d'2 d''8( cs''8) |\break %m20
  b'2 b'8( a'8) |%m21
  g'2 fs'4 |%m22
  e'8 d' cs'( e') cs'( d') |%m23
  b2. |%m24
  b2 cs'8( e'16 d'16) | \break %m25
  b2 \tuplet 3/2{g'8( b'  g')} |%m26
  fs'2 r4 |%m27
  fs'8 fs'4~8 r4 |%m28
  b'4 a'8( g'8) fs'4 |%m29
  e'8 d' cs' e' d' cs' |  %m30
  b2. \bar|.
  
}




verse = \lyricmode {
  父 啊! 赦 免 他 們, 因 為 他 們 所 作 的, 他 們 不 曉 得. 
  %{我 實 在 告 訴 你, %} 今 日 你 要 同 我 在 樂 園 裡 了. 
  母 親 看 你 的 兒 子, (門 徒) 看 你 的 母 親. 
  我 的 神 哪! 我 的 神 哪! 為 甚 麽 離 棄 我!
  我 渴 了!
  成 了!
  父 啊! 我 將 我 靈 魂 交 在 祢 手 裡.
  
}
sk = \tag SK {\skip1}
verseSK = \lyricmode {
  父 \sk \sk 啊! \sk 赦 免 他 們, \sk  因 為 他 們 \sk  所 作 的, \sk  他 們 不 曉 得. \sk  
  %{我 實 在 告 訴 你, %} 今 日 \sk  你 要 同 我 \sk  在 樂 園 裡 了. \sk  \sk  
  母 親 \sk  看 你 的 兒 子, \sk  \sk  (門 徒) \sk  看 你 的 母 親. \sk
  我 的 \sk  神 哪! \sk  我 的 \sk  神 哪! \sk  為 甚 麽 離 棄 我! \sk  \sk 
  我 \sk  渴 了! \sk 
  成 了! \sk  \sk 
  父 啊! \sk  我 將 我 靈 魂 交 在 祢 手 裡.
}
verseSolfege = \lyricmode {
  父2 啊!2 赦8. 免16 他4 們,2 因4 為4 他8.~16 們2 所8. 作16 的,2 他8 們8 不8 曉8 得.2 
  %{我 實 在 告 訴 你, %} 今4 日2 你4 要4 同8~8 我2 在4 樂8~8 園8~8 裡8~8 了.2. 
  母4 親2 看4 你4 的8 兒8 子.2. (門4 徒)2 看4 你4 的8 母8 親.2 
  我8~8 的2 神8~8 哪!2 我8~8 的2 神8~8 哪!2 為4 甚8 麽8~8 離8~8 棄8~8  我2.
  我2  渴8~16~16 了!2
  成\tuplet3/2{8( 8 8)} 了2 s4
  父8 啊!4~8 s4 我4 將8~8 我4 靈8 魂8 交8 在8 祢8 手8 裡2.
}
verseJ = \lyricmode {
  父 \skip1 \skip1 啊! \skip1 赦 免 他 們, \skip1  因 為 他 們 \skip1  所 作 的, \skip1  他 們 不 曉 得. \skip1  
  %{我 實 在 告 訴 你, %} 今 日 \skip1  你 要 同 我 \skip1  在 樂 園 裡 了. \skip1  \skip1  
  母 親 \skip1  看 你 的 兒 子, \skip1  \skip1  (門 徒) \skip1  看 你 的 母 親. \skip1
  我 的 \skip1  神 哪! \skip1  我 的 \skip1  神 哪! \skip1  為 甚 麽 離 棄 我! \skip1  \skip1 
  我 \skip1  渴 了! \skip1 
  成 了! \skip1  \skip1 
  父 啊! \skip1  我 將 我 靈 魂 交 在 祢 手 裡.
  
}


\score { 

  
  \new JianpuStaff \jianpuMusic \new Voice = solfege { \globald \melodyd }
  \new Lyrics \keepWithTag SK \lyricsto solfege { \verseSK}
  \new Staff  \new Voice = number{ \globald \melodyd }
  \new Lyrics \removeWithTag SK \lyricsto number {  \verseSK } 
  
  \layout { }
  %\midi { }
}

\book {
  \bookOutputSuffix midi
 \score { 

%\jianpuVoice
%\new JianpuStaff \jianpuMusic {  \globald \melodyd }
  
%\new ChordNames \chordNames
\new Staff { \globald \melodyd }
%\addlyrics { 

Re: Jianpu Notation

2015-05-02 Thread MING TSANG
Paul  David:
I download a merge  compare program. I compare jianpu10.ly  jianpu10a.ly and 
there is only one line different.Please refer to .png screen capture.
Immanuel,Ming. 


 On Saturday, May 2, 2015 6:45 AM, MING TSANG tsan...@rogers.com wrote:
   

 Paul  David:
Paul, thank you for your suggestion to use \tag in lyrics so that one lyrics 
can now be used by both Staff  jianpuStaff.please review the .png and .ly 
files.  I use David's jianpu10a.ly.  I am not quite sure what is the difference 
between 10  10a though.
David: are you working on incorporating solfege1  solfege2 into jianpu10a.ly?  
  ( numbered  --   1     2     3     4     5     6     7     solfege1 -   
do   re    mi   fa    so   la     te     solfege2 -   d     r      m    f  
    s     l       t  )
Immanuel,Ming. 


 On Friday, May 1, 2015 2:24 PM, Paul Morris p...@paulwmorris.com wrote:
   

 Hi all,

Attached is version 10 that fixes:

1. beam appearance (using a new stencil-flip function)
2. duration-only note entry (c'8 8 8 8)
3. key signatures appearing at the beginning of every line

The key signature fix was a standard LilyPond override, so adjust as needed:
http://lilypond.org/doc/v2.18/Documentation/notation/visibility-of-objects#using-break_002dvisibility

Ming, would you please ask your question about tags and lyrics in another 
thread, since it’s more about how to use tags and not limited to Jianpu?

Cheers,
-Paul


   

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


Re: Jianpu Notation

2015-05-02 Thread Paul Morris
 On May 1, 2015, at 3:43 AM, Werner LEMBERG w...@gnu.org wrote:
 
 Would it be worth defining “flip” functions that call
 ly:stencil-scale with negative, non-scaling, numbers (i.e. -1) ?
 
 IMHO, no.

Ok, having looked more into this I think it would be worth it.  I just sent an 
email to the dev list, so discussion can continue there.

-Paul


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


回复: Jianpu Notation

2015-05-01 Thread Super-User
Hi,Paul!

Here's a test script, with all transpose using \major. But somehow, the key 
signture displays other than 1=.


David Zhang

accidental_test.ly
Description: Binary data


accidental_test.pdf
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Jianpu Notation

2015-05-01 Thread Paul Morris
Hi all,

Attached is version 10 that fixes:

1. beam appearance (using a new stencil-flip function)
2. duration-only note entry (c'8 8 8 8)
3. key signatures appearing at the beginning of every line

The key signature fix was a standard LilyPond override, so adjust as needed:
http://lilypond.org/doc/v2.18/Documentation/notation/visibility-of-objects#using-break_002dvisibility

Ming, would you please ask your question about tags and lyrics in another 
thread, since it’s more about how to use tags and not limited to Jianpu?

Cheers,
-Paul



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


Re: Jianpu Notation

2015-05-01 Thread Werner LEMBERG

 Negative values will flip or mirror the stencil without changing
 its origin; this may result in collisions unless the scaled stencil
 is realigned
 
 I’ll have to give this a try.  
 
 Would it be worth defining “flip” functions that call
 ly:stencil-scale with negative, non-scaling, numbers (i.e. -1) ?

IMHO, no.

 That would be more discoverable and result in clearer code.

Regarding `more discoverable': I guess that there are missing cross
reference entries

 And/or the doc string for ly:stencil-scale could indicate that it
 can be used in this way, currently it only says:
 
   Scale stil using the horizontal and vertical scaling factors x
   and y.

This certainly makes sense.  Can you provide a patch?


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


Re: Jianpu Notation

2015-05-01 Thread MING TSANG
Paul, 
Thank you for the update.  It works wonders. I like it very much.  I can live 
with midi generated separately and put in lots of \skip1 in lyrics.  I will ask 
\tag and lyrics question as a separate thread in the lists.
One question:  Is this stable enough to merge with jianpu6.ly from David 
Zhang?Jianpu6.ly allows the display jianpu in two options:numbered:             
    1     2     3     4      5      6      7   solfege option1:         do  re  
  mi   fa     so     la     ti       ORsoffege option2:         d    r      m   
 f       s       l       t     (this option is not in jianpu6.ly yet but I wish 
it is)Note: Paul and David, who want to tackle this?   
Attached is the output generated by jianpu10.ly
Immanuel,ming. 


   
  
\version 2.18.2
\language english


\include jianpu10.ly

\header {
  title = 十架七言
  subtitle = 7 speech
  % Remove default LilyPond tagline
  tagline = ##f
}

\paper {
  #(set-paper-size letter)
}

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

globald = {
  \key d \major
  \numericTimeSignature
  \time 3/4
  \tempo 4=100
}
globalc = {
  \key c \major
  \numericTimeSignature
  \time 3/4
  \tempo 4=100
}

\include include_lyndon-specific.ly

melodyd =   {  
   
  fs'2. | %m01
  e'2 a'8. g'16 |%m002
  fs'4 fs'2 |%m03
  d'4 d''4 cs''8.( b'16) %m04
  a'2 b'8. g'16 |\break %m05
  fs'2 e'8 fs'8 |%m06
  e'8 b8 d'2 |%m07
  a'4 fs'2 |%m08
  e'4 fs'4  a'8( g'8) |%m09
  fs'2 d''4 | \break %m10
  cs''8( d''8) e''8( d''8) cs''8( b'8) |%m11
  a'2. |%m12
  d'4 d''2 |%m13
  d''4 cs''4 b'8 a'8 |%m14
  fs'2. |\break %m15
  d'4 b'2 |%m16
  b'4 a'4 g'8 fs'8 |%m17
  e'2 a'8( g'8) |%m18
  fs'2 fs'8( e'8) |%m19
  d'2 d''8( cs''8) |\break %m20
  b'2 b'8( a'8) |%m21
  g'2 fs'4 |%m22
  e'8 d' cs'( e') cs'( d') |%m23
  b2. |%m24
  b2 cs'8( e'16 d'16) | \break %m25
  b2 \tuplet 3/2{g'8( b'  g')} |%m26
  fs'2 r4 |%m27
  fs'8 fs'4~8 r4 |%m28
  b'4 a'8( g'8) fs'4 |%m29
  e'8 d' cs' e' d' cs' |  %m30
  b2. \bar|.
  
}

melodyc =   {  

  e'2. %m01
  d'2 g'8. f'16 |%m002
  e'4 e'2 |%m03
  c'4 c''4 b'8.( a'16) %m04
  g'2 a'8. f'16 |%m05
  e'2 d'8 e'8 |%m06
  d'8 a8 c'2 |%m07
  g'4 e'2 |%m08
  d'4 e'4  g'8( f'8) |%m09
  e'2 c''4 |%m10
  b'8( c''8) d''8( c''8) b'8( a'8) |%m11
  g'2. |%m12
  c'4 c''2 |%m13
  c''4 b'4 a'8 g'8 |%m14
  e'2. |%m15
  c'4 a'2 |%m16
  a'4 g'4 f'8 e'8 |%m17
  d'2 g'8( f'8) |%m18
  e'2 e'8( d'8) |%m19
  c'2 c''8( b'8) |%m20
  a'2 a'8( g'8) |%m21
  f'2 e'4 |%m22
  d'8 c' b( d') b( c') |%m23
  a2. |%m24
  a2 b8( d'16 c'16) |%m25
  a2 f'8( a'16 f'16) |%m26
  e'2 r4 |%m27
  e'8 e'4. r4 |%m28
  a'4 g'8( f'8) e'4 |%m29
  d'8 c' b d' c' b |%m30
  a2. \bar|.\break
   
}


verse = \lyricmode {
  父 啊! 赦 免 他 們, 因 為 他 們 所 作 的, 他 們 不 曉 得. 
  %{我 實 在 告 訴 你, %} 今 日 你 要 同 我 在 樂 園 裡 了. 
  母 親 看 你 的 兒 子, (門 徒) 看 你 的 母 親. 
  我 的 神 哪! 我 的 神 哪! 為 甚 麽 離 棄 我!
  我 渴 了!
  成 了!
  父 啊! 我 將 我 靈 魂 交 在 祢 手 裡.
  
}

verseJ = \lyricmode {
  父 \skip1 \skip1 啊! \skip1 赦 免 他 們, \skip1  因 為 他 們 \skip1  所 作 的, \skip1  他 們 不 曉 得. \skip1  
  %{我 實 在 告 訴 你, %} 今 日 \skip1  你 要 同 我 \skip1  在 樂 園 裡 了. \skip1  \skip1  
  母 親 \skip1  看 你 的 兒 子, \skip1  \skip1  (門 徒) \skip1  看 你 的 母 親. \skip1
  我 的 \skip1  神 哪! \skip1  我 的 \skip1  神 哪! \skip1  為 甚 麽 離 棄 我! \skip1  \skip1 
  我 \skip1  渴 了! \skip1 
  成 了! \skip1  \skip1 
  父 啊! \skip1  我 將 我 靈 魂 交 在 祢 手 裡.
  
}


\score { 

%\jianpuVoice
\new JianpuStaff \jianpuMusic  \transpose d f   {  \globald \melodyd }
\addlyrics { \verseJ }  
%\new ChordNames \chordNames
\new Staff  \rup   { \globald \melodyd }
%\new JianpuStaff \jianpuMusic \transpose d f  {  \globald \melodyd }
%\addlyrics { \verse }
  
  \layout { }
  %\midi { }
}

\book {
  \bookOutputSuffix 10
 \score { 

%\jianpuVoice
%\new JianpuStaff \jianpuMusic {  \globald \melodyd }
  
%\new ChordNames \chordNames
\new Staff   \transpose d f { \globald \melodyd }
\addlyrics { \verse }
  
  %\layout { }
  \midi { }
 }
}

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


Re: Jianpu Notation

2015-04-30 Thread MING TSANG
David:  Take care and enjoy the new appartment.
David  Paul: I created jianpu-test_1.ly for testing jianpu9.lyThe result is 
self explaining.   There is a difference in coding c''8 8 vs c''8 c''Lyric 
treat -  0  as notes
Immanuel,Ming
 


 On Wednesday, April 29, 2015 9:34 PM, Super-User david...@qq.com wrote:
   

 Hi Ming!
I've moved to new apartment in Beijing last week, and gonna to join events in 
Hangzhou these days. I will checkout the new code when I am available.
David Zhang 

  
\version 2.18.2
\language english


\include jianpu9.ly



\paper {
  #(set-paper-size letter)
}

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

globalf = {
  \key f \major
  \numericTimeSignature
  \time 4/4
  \tempo 4=100
}



melodyf =   {  
   
  
  c'4 8~8 d'16 16 e'32 32 d'32 e'32 r4 |
  f'4 g' a' bf' c'' d'' e'' f'' |\break
  g'8. a'16 r16 bf'8. r2 |
  bf8 bf8 d'8 8 a'16 16  c''16 16 g''8 8 |\break
  a'1 |
  bf'2. c''8 c'' |\break
  g'4. a'8 bf'8 c''4. |
  f'8( f'') e'8( e''16 f'') r4 r8. r16|\break
  a'32 bf'16 c''8 d'' e''8 d''16 c''32 16 8 4|
}



verse = \lyricmode {
  父 啊! 赦 免 他 們, 因 為 他 們 所 作 的, 他 們 不 曉 得. 
  %{我 實 在 告 訴 你, %} 今 日 你 要 同 我 在 樂 園 裡 了. 
  母 親 看 你 的 兒 子, (門 徒) 看 你 的 母 親. 
  我 的 神 哪! 我 的 神 哪! 為 甚 麽 離 棄 我!
  我 渴 了!
  成 了!
  父 啊! 我 將 我 靈 魂 交 在 祢 手 裡.
  
}

verseJ = \lyricmode {
  父 \skip1 \skip1 啊! \skip1 赦 免 他 們, \skip1  因 為 他 們 \skip1  所 作 的, \skip1  他 們 不 曉 得. \skip1  
  %{我 實 在 告 訴 你, %} 今 日 \skip1  你 要 同 我 \skip1  在 樂 園 裡 了. \skip1  \skip1  
  母 親 \skip1  看 你 的 兒 子, \skip1  \skip1  (門 徒) \skip1  看 你 的 母 親. \skip1
  我 的 \skip1  神 哪! \skip1  我 的 \skip1  神 哪! \skip1  為 甚 麽 離 棄 我! \skip1  \skip1 
  我 \skip1  渴 了! \skip1 
  成 了! \skip1  \skip1 
  父 啊! \skip1  我 將 我 靈 魂 交 在 祢 手 裡.
  
}


\score { 

%\jianpuVoice
\new JianpuStaff \jianpuMusic {  \globalf \melodyf }
\addlyrics { \verse }  
%\new ChordNames \chordNames
\new Staff  { \globalf \melodyf }
%\new JianpuStaff \jianpuMusic \transpose d f  {  \globald \melodyd }
%\addlyrics { \verse }
  
  \layout { }

}
%{
\book {
  \bookOutputSuffix 9
 \score { 


\new Staff{ \globalf \melodyf }
%\addlyrics { \verse }
  
  \layout { }
  \midi { }
 }
}

%}

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


Re: Jianpu Notation

2015-04-30 Thread Super-User
Hi,Paul!


I saw the output by Ming, apart from the beam problem, I saw another problem.
In 5-line notation, key signature is displayed 1) at the beginning of every 
line, 2) at key change, and 3) end of line if next measure contains key change. 
However, in Jianpu, 1) is not necessary, but only at the beginning of the 
score. Please fix this!


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


Re: Jianpu Notation

2015-04-30 Thread MING TSANG
 Paul,

Thank you for taking care of this. Looking forward to receive the update.

 On Thursday, April 30, 2015 11:36 AM, Paul Morris p...@paulwmorris.com 
wrote:
   

 
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.

Can you post a simple .ly to show how to use \tag in lyrics?Thank you for you 
help.
Immanuel,Ming.



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


Re: Jianpu Notation

2015-04-30 Thread Werner LEMBERG

 David  Paul: I created jianpu-test_1.ly for testing jianpu9.lyThe
 result is self explaining.   There is a difference in coding c''8 8
 vs c''8 c''Lyric treat -  0  as notes

Looking at this, I see a fundamental error.  The lilypond output has
beams in reversed order, for example


 0. 6
   ---
--

However, it should be exactly the opposite:

 0. 6
--
   ---


Here's a real world example

  https://bennyt85erhu.files.wordpress.com/2010/04/duxiancao.jpg


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


Re: Jianpu Notation

2015-04-30 Thread Paul Morris
 On Apr 30, 2015, at 9:10 AM, MING TSANG tsan...@rogers.com 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

2015-04-30 Thread Paul Morris
 On Apr 30, 2015, at 9:45 AM, Werner LEMBERG w...@gnu.org wrote:
 
 Looking at this, I see a fundamental error.  The lilypond output has
 beams in reversed order, for example
 
 
 0. 6
   ---
--
 
 However, it should be exactly the opposite:
 
 0. 6
--
   —

Yes, I am aware of this.  Thanks for that real-world example.  A simple fix 
would be to just flip the beam stencil, but there doesn’t seem to be a function 
that does that.  There is ly:stencil-rotate but no ly:stencil-flip-horizontal 
or ly:stencil-flip-vertical (or say, ly:stencil-flip-axis).  

(The jianpu-ly python script has this same problem, as you can see from the 
little example image on this page: 
http://people.ds.cam.ac.uk/ssb22/mwrhome/jianpu-ly.html )

time lapse

Aha! a search of the source code led me to the stencil-scale.ly regression test 
that indicates that ly:stencil-scale can be used to flip a stencil if you feed 
it negative numbers.  

Negative values will flip or mirror the stencil without changing its origin; 
this
may result in collisions unless the scaled stencil is realigned

I’ll have to give this a try.  

Would it be worth defining “flip” functions that call ly:stencil-scale with 
negative, non-scaling, numbers (i.e. -1) ?  That would be more discoverable and 
result in clearer code.  And/or the doc string for ly:stencil-scale could 
indicate that it can be used in this way, currently it only says:

Scale stil using the horizontal and vertical scaling factors x and y.

-Paul


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


Re: Jianpu Notation

2015-04-29 Thread MING TSANG
Paul,
Thank you very much for the update.
One minor glitch, bar 27  28 the rest does not show on jianpu-score. It show 
the same as previous note. 
Thanks again. I am looking forward for midi  and lyrics  working.
Immanuel,Ming.  


 On Wednesday, April 29, 2015 1:24 AM, Paul Morris p...@paulwmorris.com 
wrote:
   

  On Apr 29, 2015, at 12:54 AM, Paul Morris p...@paulwmorris.com wrote:
 
 Luckily it was not hard to fix.  Attached is a new version.

Well, I spoke too soon… so here’s another version that should work.

-Paul


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


Re: Jianpu Notation

2015-04-29 Thread Werner LEMBERG

 Thank you very much for the update.

Indeed, it starts looking good :-)  Congrats.


Werner

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


Re: Jianpu Notation

2015-04-29 Thread Paul Morris
On Apr 29, 2015, at 7:18 AM, MING TSANG tsan...@rogers.com wrote:Paul,Thank you very much for the update.One minor glitch, bar 27  28 the rest does not show on jianpu-score. It show the same as previous note.Thanks Ming for catching that glitch. Everything worked fine for simple test cases with rests, but somehow for those rests in your score the code was somehow registering a pitch for those rest events (I don’t know why…) so they were being treated as notes. The new version 9 that's attached solves this problem. Not hard to fix once I figured out the cause (just check to see if should be a rest first, rather than first checking for a pitch as an indication that it should be a note). Let me know if you find any other odd glitches like this.Oh, and thanks Werner, I agree that it has gotten a lot better!-Paul

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


Re: Jianpu Notation

2015-04-29 Thread MING TSANG
Paul,
Thank you very much. This look great.
As I mention few days ago, David put the following options in jianpu6.ly.  Is 
jianpu9.ly stable enough to merge with jianpu6.ly?If yes, David, can you do the 
honer?  OR Paul, do you want to take the challenge.  I let you all decide.  I 
appreciated for both of you taking time out of your busy schedule to make this 
jianpu notation possible.  My wish came true since lilypond v.2.12. 
I show my 7 speech to couple of friends. They like it.  One  suggests if 
the jianpu can show as (option1 or option1):
 jianpu :  1     2     3     4     5     6     7     1'option1:  d     r     m  
   f      s     l      t     d'option2:  do   re   mi    fa    so   la    ti    
do'  

Immanuel,Ming.  


 On Wednesday, April 29, 2015 3:14 PM, Paul Morris p...@paulwmorris.com 
wrote:
   

 
On Apr 29, 2015, at 7:18 AM, MING TSANG tsan...@rogers.com wrote:
Paul,
Thank you very much for the update.
One minor glitch, bar 27  28 the rest does not show on jianpu-score. It show 
the same as previous note. 

Thanks Ming for catching that glitch.  Everything worked fine for simple test 
cases with rests, but somehow for those rests in your score the code was 
somehow registering a pitch for those rest events (I don’t know why…) so they 
were being treated as notes.  
The new version 9 that's attached solves this problem.  Not hard to fix once I 
figured out the cause (just check to see if should be a rest first, rather than 
first checking for a pitch as an indication that it should be a note).  Let me 
know if you find any other odd glitches like this.
Oh, and thanks Werner, I agree that it has gotten a lot better!
-Paul



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


Re: Jianpu Notation

2015-04-29 Thread Super-User
Hi Ming!


I've moved to new apartment in Beijing last week, and gonna to join events in 
Hangzhou these days. I will checkout the new code when I am available.


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


Re: Jianpu Notation

2015-04-29 Thread MING TSANG
Paul,I do further run of jianpu9.ly. Please refer to .png
I added :     this verse is just for JianpuStaff   --- Staff has the regular 
lyric (without the \skip1)1.  \skip1 \skip1 for lyric for n - -    n - 0   
...ref bar 24, 27      2.  \skip1 for n -  ...ref bar 25 
I coded \tuplet  ...the lyric display correctly
I also notice 8th-note underline in bar 25 is lower than that of bar 26, 28, 29 
 and 30
Immanuel,Ming. 


 On Wednesday, April 29, 2015 4:03 PM, MING TSANG tsan...@rogers.com 
wrote:
   

 Paul,
Thank you very much. This look great.
As I mention few days ago, David put the following options in jianpu6.ly.  Is 
jianpu9.ly stable enough to merge with jianpu6.ly?If yes, David, can you do the 
honer?  OR Paul, do you want to take the challenge.  I let you all decide.  I 
appreciated for both of you taking time out of your busy schedule to make this 
jianpu notation possible.  My wish came true since lilypond v.2.12. 
I show my 7 speech to couple of friends. They like it.  One  suggests if 
the jianpu can show as (option1 or option1):
 jianpu :  1     2     3     4     5     6     7     1'option1:  d     r     m  
   f      s     l      t     d'option2:  do   re   mi    fa    so   la    ti    
do'  

Immanuel,Ming.  


 On Wednesday, April 29, 2015 3:14 PM, Paul Morris p...@paulwmorris.com 
wrote:
   

 
On Apr 29, 2015, at 7:18 AM, MING TSANG tsan...@rogers.com wrote:
Paul,
Thank you very much for the update.
One minor glitch, bar 27  28 the rest does not show on jianpu-score. It show 
the same as previous note. 

Thanks Ming for catching that glitch.  Everything worked fine for simple test 
cases with rests, but somehow for those rests in your score the code was 
somehow registering a pitch for those rest events (I don’t know why…) so they 
were being treated as notes.  
The new version 9 that's attached solves this problem.  Not hard to fix once I 
figured out the cause (just check to see if should be a rest first, rather than 
first checking for a pitch as an indication that it should be a note).  Let me 
know if you find any other odd glitches like this.
Oh, and thanks Werner, I agree that it has gotten a lot better!
-Paul



   

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


Re: Jianpu Notation

2015-04-28 Thread Paul Morris
Hi Ming,On Apr 28, 2015, at 4:51 PM, MING TSANG tsan...@rogers.com wrote:Thank you for the jianpu8.ly.I test run with v2.19.19 and I got the following error.Starting lilypond-windows.exe 2.19.19 [7-speech+jianpu_8.ly]...Processing `K:/LILY_POND/7-speech/7-speech+jianpu_8.ly'Parsing...Interpreting music...C:/Users/Tsang/Dropbox/LP_includes/jianpu8.ly:248:30: In procedure ly:event-property in _expression_ (ly:event-property event (quote jianpu-key-sig)):C:/Users/Tsang/Dropbox/LP_includes/jianpu8.ly:248:30: Wrong type argument in position 1 (expecting Stream_event): #f




Exited with return code 1.Hmmm… I tried your file, and it worked fine for me with LilyPond 2.19.18 and also 2.18.2. I then downloaded 2.19.19 and got the same error you did. Luckily it was not hard to fix. Attached is a new version.Cheers,-Paul

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


Re: Jianpu Notation

2015-04-28 Thread Paul Morris
 On Apr 29, 2015, at 12:54 AM, Paul Morris p...@paulwmorris.com wrote:
 
 Luckily it was not hard to fix.  Attached is a new version.

Well, I spoke too soon… so here’s another version that should work.

-Paul



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


Re: Jianpu Notation

2015-04-28 Thread Paul Morris
Hi David and Ming,On Apr 25, 2015, at 6:18 PM, Paul Morris p...@paulwmorris.com wrote:However, I see now that really a different approach is needed. Basically whole notes and half notes should be converted into the equivalent number of quarter notes, with the first one displayed as a number and the rest as dashes. That way the spacing will be much better.I’ve started experimenting with this. It will take using a music function. This will also allow automatically inserting markups for the octave dots, which will then make it easier to have beams that span more than one note. So there are several benefits to this approach.Attached is a new version (8) that implements this new approach. It seems to be working well. Spacing is improved, the beams now span more than one note and they span rests too, octave dots are below beams, a first/rough draft of Jianpu key signatures is in place, etc. A music function \jianpuMusic is used to modify the music input. You use it like this:\new JianpuStaff \jianpuMusic { % music goes here as usual…}This music function breaks half and whole notes/rests into quarter notes/rests, including dotted versions (even pesky double-dotted half notes/rests). “Under the hood” rests are actually converted into notes so that they can have beams and flags just like notes do.The function also transposes the music to C major key signature “under the hood" which gives us correct octaves and accidentals "for free" -- much simpler this way. (Because of this you can’t get midi output with \jianpuMusic, you’d just use a separate score for midi without this music function applied to the music.)Ok, that’s enough for now… let me know if you have questions. It seems that lyrics will need a similar \jianpuLyrics function to work correctly.Cheers,-Paul

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


Re: Jianpu Notation

2015-04-28 Thread MING TSANG
Paul,
Thank you for the jianpu8.ly.I test run with v2.19.19 and I got the following 
error. 
Starting lilypond-windows.exe 2.19.19 [7-speech+jianpu_8.ly]...Processing 
`K:/LILY_POND/7-speech/7-speech+jianpu_8.ly'Parsing...Interpreting 
music...C:/Users/Tsang/Dropbox/LP_includes/jianpu8.ly:248:30: In procedure 
ly:event-property in expression (ly:event-property event (quote 
jianpu-key-sig)):C:/Users/Tsang/Dropbox/LP_includes/jianpu8.ly:248:30: Wrong 
type argument in position 1 (expecting Stream_event): #fExited with return code 
1.

 Immanuel,Ming.


 On Tuesday, April 28, 2015 4:20 PM, Paul Morris p...@paulwmorris.com 
wrote:
   

 Hi David and Ming,

On Apr 25, 2015, at 6:18 PM, Paul Morris p...@paulwmorris.com wrote:
However, I see now that really a different approach is needed.  Basically whole 
notes and half notes should be converted into the equivalent number of quarter 
notes, with the first one displayed as a number and the rest as dashes.  That 
way the spacing will be much better.
I’ve started experimenting with this.  It will take using a music function.  
This will also allow automatically inserting markups for the octave dots, which 
will then make it easier to have beams that span more than one note.  So there 
are several benefits to this approach.

Attached is a new version (8) that implements this new approach.  It seems to 
be working well.  Spacing is improved, the beams now span more than one note 
and they span rests too, octave dots are below beams, a first/rough draft of 
Jianpu key signatures is in place, etc.  
A music function \jianpuMusic is used to modify the music input.  You use it 
like this:
\new JianpuStaff \jianpuMusic {  % music goes here as usual…}
This music function breaks half and whole notes/rests into quarter notes/rests, 
including dotted versions (even pesky double-dotted half notes/rests).  “Under 
the hood” rests are actually converted into notes so that they can have beams 
and flags just like notes do.
The function also transposes the music to C major key signature “under the 
hood which gives us correct octaves and accidentals for free -- much simpler 
this way.  (Because of this you can’t get midi output with \jianpuMusic, you’d 
just use a separate score for midi without this music function applied to the 
music.)
Ok, that’s enough for now…  let me know if you have questions.  It seems that 
lyrics will need a similar \jianpuLyrics function to work correctly.
Cheers,-Paul



  
\version 2.19.19
\language english


\include jianpu8.ly

\header {
  title = 十架七言
  subtitle = 7 speech
  % Remove default LilyPond tagline
  tagline = ##f
}

\paper {
  #(set-paper-size letter)
}

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

globald = {
  \key d \major
  \numericTimeSignature
  \time 3/4
  \tempo 4=100
}
globalc = {
  \key c \major
  \numericTimeSignature
  \time 3/4
  \tempo 4=100
}



melodyd =   {  
   
  fs'2. %m01
  e'2 a'8. g'16 |%m002
  fs'4 fs'2 |%m03
  d'4 d''4 cs''8.( b'16) %m04
  a'2 b'8. g'16 |%m05
  fs'2 e'8 fs'8 |%m06
  e'8 b8 d'2 |%m07
  a'4 fs'2 |%m08
  e'4 fs'4  a'8( g'8) |%m09
  fs'2 d''4 |%m10
  cs''8( d''8) e''8( d''8) cs''8( b'8) |%m11
  a'2. |%m12
  d'4 d''2 |%m13
  d''4 cs''4 b'8 a'8 |%m14
  fs'2. |%m15
  d'4 b'2 |%m16
  b'4 a'4 g'8 fs'8 |%m17
  e'2 a'8( g'8) |%m18
  fs'2 fs'8( e'8) |%m19
  d'2 d''8( cs''8) |%m20
  b'2 b'8( a'8) |%m21
  g'2 fs'4 |%m22
  e'8 d' cs'( e') cs'( d') |%m23
  b2. |%m24
  b2 cs'8( e'16 d'16) |%m25
  b2 g'8( b'16 g'16) |%m26
  fs'2 r4 |%m27
  fs'8 fs'4. r4 |%m28
  b'4 a'8( g'8) fs'4 |%m29
  e'8 d' cs' e' d' cs' |%m30
  b2. \bar|.
   
}

melodyc =   {  

  e'2. %m01
  d'2 g'8. f'16 |%m002
  e'4 e'2 |%m03
  c'4 c''4 b'8.( a'16) %m04
  g'2 a'8. f'16 |%m05
  e'2 d'8 e'8 |%m06
  d'8 a8 c'2 |%m07
  g'4 e'2 |%m08
  d'4 e'4  g'8( f'8) |%m09
  e'2 c''4 |%m10
  b'8( c''8) d''8( c''8) b'8( a'8) |%m11
  g'2. |%m12
  c'4 c''2 |%m13
  c''4 b'4 a'8 g'8 |%m14
  e'2. |%m15
  c'4 a'2 |%m16
  a'4 g'4 f'8 e'8 |%m17
  d'2 g'8( f'8) |%m18
  e'2 e'8( d'8) |%m19
  c'2 c''8( b'8) |%m20
  a'2 a'8( g'8) |%m21
  f'2 e'4 |%m22
  d'8 c' b( d') b( c') |%m23
  a2. |%m24
  a2 b8( d'16 c'16) |%m25
  a2 f'8( a'16 f'16) |%m26
  e'2 r4 |%m27
  e'8 e'4. r4 |%m28
  a'4 g'8( f'8) e'4 |%m29
  d'8 c' b d' c' b |%m30
  a2. \bar||\break
   
}


verse = \lyricmode {
  父 啊! 赦 免 他 們, 因 為 他 們 所 作 的, 他 們 不 曉 得. 
  %{我 實 在 告 訴 你, %} 今 日 你 要 同 我 在 樂 園 裡 了. 
  母 親 看 你 的 兒 子, (門 徒) 看 你 的 母 親. 
  我 的 神 哪! 我 的 神 哪! 為 甚 麽 離 棄 我!
  我 渴 了!
  成 了!
  父 啊! 我 將 我 靈 魂 交 在 祢 手 裡.
  
}


\score { 

%\jianpuVoice
\new JianpuStaff \jianpuMusic
{  \globald \melodyd }
  
%\new ChordNames \chordNames
\new Staff{ \globald \melodyd }
\addlyrics { \verse }
  
  \layout { }
  \midi { }
}



Re: 回复: Jianpu Notation

2015-04-28 Thread MING TSANG
david  Paul:
This morning I run a ly file with jianpu6b.ly and I notice the lyrics is not 
lining vertically to the note for  3 - - and 2 - (bar 1 % 2)please refer to .png
David, any progress about missing underline for 8th-note and 16th-note in my 
previous email?
Immanuel,Ming. 


 On Sunday, April 26, 2015 2:45 PM, MING TSANG tsan...@rogers.com wrote:
   

 David  Paul: I understood and I can wait.
David:  jianpu6.ly not working properly,  Missing underline 8th-note and 
double-underline 16th-note for both numbered  solfege versions. Please 
refer to png.  Can you have a look see if this can be fixed?In the mean time I 
will use jianpu6b.ly for my present use for now until jianpu6.ly is fixed and 
merged with jianpu6b.ly OR until new approach by Paul is available with options 
in jianpu6.ly.
Immanuel,mING. 


 On Sunday, April 26, 2015 12:53 PM, Super-User david...@qq.com wrote:
   

 Hi, Paul!
I agree better merge after your refactoring to new approach.Looking forward to 
see your new version.
David Zhang

-- 原始邮件 --发件人: Paul 
Morrisp...@paulwmorris.com; 发送时间: 2015年4月26日(星期天) 晚上11:38收件人: 
Super-Userdavid...@qq.com; Urs Liskau...@openlilylib.org; 抄送: MING 
TSANGtsan...@rogers.com; lilypond-userlilypond-user@gnu.org; 主题: Re: 
Jianpu Notation
Hi David and Ming, 

 On Apr 25, 2015, at 10:51 PM, Super-User david...@qq.com wrote:
 
 May I suggest having this project hosted on Github also?
 The facilities on Github enables better managements of issues, goal, test 
cases, and of course, the codebase itself, especially code merges.
 In addition, programmers unaware of / non-subscribing this mail-list can also 
contribute by making pull requests, as in any open-sourced projects.
 To push it forward, I need consent of anyone else who have also contribute 
the code, and agree on the license GPL v3.

This is fine with me.  At some point I think it would be a good idea to add 
this to openLilyLib, but I’m not sure if it makes sense to go ahead and do that 
now, or to work on it on github independently and then move it to openLilyLib 
later once it’s more mature.  
https://github.com/openlilylib/openlilylib

Urs, what say you?  

I think my preference would be to add it to openLilyLib directly rather than 
set up a separate repo and migrate it later.

Ming is correct, my latest version does not include David’s latest changes. I 
hadn’t seen them before working on my revisions and I haven’t taken the time to 
merge them since I think the changes in my “6b file will be 
superseded/obsolete after I implement the new approach.  In short, I don’t 
think the changes in my version “6b” are worth merging with David’s version “6”.

In other words, the new approach will bring so many changes it makes sense to 
wait until I finish it before doing any merging.  (It might even make sense to 
hold off on further development or setting up of github too.  On the other 
hand, I don’t want to discourage David from working on this. So maybe we just 
figure out the merging when the I have a new version worth merging… probably 
with Github’s help.)

Cheers,
-Paul 



   

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


回复: Jianpu Notation

2015-04-26 Thread Super-User
Hi, Paul!


I agree better merge after your refactoring to new approach.
Looking forward to see your new version.


David Zhang




-- 原始邮件 --
发件人: Paul Morrisp...@paulwmorris.com; 
发送时间: 2015年4月26日(星期天) 晚上11:38
收件人: Super-Userdavid...@qq.com; Urs Liskau...@openlilylib.org; 
抄送: MING TSANGtsan...@rogers.com; lilypond-userlilypond-user@gnu.org; 
主题: Re: Jianpu Notation



Hi David and Ming, 

 On Apr 25, 2015, at 10:51 PM, Super-User david...@qq.com wrote:
 
 May I suggest having this project hosted on Github also?
 The facilities on Github enables better managements of issues, goal, test 
 cases, and of course, the codebase itself, especially code merges.
 In addition, programmers unaware of / non-subscribing this mail-list can also 
 contribute by making pull requests, as in any open-sourced projects.
 To push it forward, I need consent of anyone else who have also contribute 
 the code, and agree on the license GPL v3.

This is fine with me.  At some point I think it would be a good idea to add 
this to openLilyLib, but I’m not sure if it makes sense to go ahead and do that 
now, or to work on it on github independently and then move it to openLilyLib 
later once it’s more mature.  
https://github.com/openlilylib/openlilylib

Urs, what say you?  

I think my preference would be to add it to openLilyLib directly rather than 
set up a separate repo and migrate it later.

Ming is correct, my latest version does not include David’s latest changes. I 
hadn’t seen them before working on my revisions and I haven’t taken the time to 
merge them since I think the changes in my “6b file will be 
superseded/obsolete after I implement the new approach.  In short, I don’t 
think the changes in my version “6b” are worth merging with David’s version “6”.

In other words, the new approach will bring so many changes it makes sense to 
wait until I finish it before doing any merging.  (It might even make sense to 
hold off on further development or setting up of github too.  On the other 
hand, I don’t want to discourage David from working on this. So maybe we just 
figure out the merging when the I have a new version worth merging… probably 
with Github’s help.)

Cheers,
-Paul___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Jianpu Notation

2015-04-26 Thread Paul Morris
Hi David and Ming, 

 On Apr 25, 2015, at 10:51 PM, Super-User david...@qq.com wrote:
 
 May I suggest having this project hosted on Github also?
 The facilities on Github enables better managements of issues, goal, test 
 cases, and of course, the codebase itself, especially code merges.
 In addition, programmers unaware of / non-subscribing this mail-list can also 
 contribute by making pull requests, as in any open-sourced projects.
 To push it forward, I need consent of anyone else who have also contribute 
 the code, and agree on the license GPL v3.

This is fine with me.  At some point I think it would be a good idea to add 
this to openLilyLib, but I’m not sure if it makes sense to go ahead and do that 
now, or to work on it on github independently and then move it to openLilyLib 
later once it’s more mature.  
https://github.com/openlilylib/openlilylib

Urs, what say you?  

I think my preference would be to add it to openLilyLib directly rather than 
set up a separate repo and migrate it later.

Ming is correct, my latest version does not include David’s latest changes. I 
hadn’t seen them before working on my revisions and I haven’t taken the time to 
merge them since I think the changes in my “6b file will be 
superseded/obsolete after I implement the new approach.  In short, I don’t 
think the changes in my version “6b” are worth merging with David’s version “6”.

In other words, the new approach will bring so many changes it makes sense to 
wait until I finish it before doing any merging.  (It might even make sense to 
hold off on further development or setting up of github too.  On the other 
hand, I don’t want to discourage David from working on this. So maybe we just 
figure out the merging when the I have a new version worth merging… probably 
with Github’s help.)

Cheers,
-Paul 



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


Re: Jianpu Notation

2015-04-26 Thread MING TSANG
Paul,
Thank you very much.
Immanuel,Ming. 


 On Saturday, April 25, 2015 6:18 PM, Paul Morris p...@paulwmorris.com 
wrote:
   

 Hello,

On Apr 24, 2015, at 12:43 AM, Paul Morris p...@paulwmorris.com wrote:

 I just spotted \time 3/4 or 4/4, jianpu display  6 - . , I think it should 
be 6 - -. 
 Indeed, in Jianpu, dots follow only by quarter notes and below.

Yes, this is a “known issue”.  I have started working on it, but it’s a bit 
beyond the things I am familiar with and already know about.  (I have gotten it 
to add the right number of dashes, but the dots are still being displayed when 
they shouldn’t.  Work for another day…)

I’m attaching a new version that fixes this.  
However, I see now that really a different approach is needed.  Basically whole 
notes and half notes should be converted into the equivalent number of quarter 
notes, with the first one displayed as a number and the rest as dashes.  That 
way the spacing will be much better.
I’ve started experimenting with this.  It will take using a music function.  
This will also allow automatically inserting markups for the octave dots, which 
will then make it easier to have beams that span more than one note.  So there 
are several benefits to this approach.
I’ll try to see if I can work on it when I have time...
Cheers,-Paul



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


Re: Jianpu Notation

2015-04-26 Thread MING TSANG
David,
I agree as suggested even though I am not a developer.  I need to learn github 
-- is it hard to learn?
Paul's jianpu6b.ly does not contain David's jianpu6.ly and I have no knowledge 
to merge both into one.
Thank you.
Immanuel,Ming.  


 On Saturday, April 25, 2015 10:51 PM, Super-User david...@qq.com wrote:
   

 Hello, everyone!
May I suggest having this project hosted on Github also?The facilities on 
Github enables better managements of issues, goal, test cases, and of course, 
the codebase itself, especially code merges.In addition, programmers unaware of 
/ non-subscribing this mail-list can also contribute by making pull requests, 
as in any open-sourced projects.To push it forward, I need consent of anyone 
else who have also contribute the code, and agree on the license GPL v3.
Thank you!
David Zhang
-- 原始邮件 --发件人: Paul 
Morris;p...@paulwmorris.com;发送时间: 2015年4月26日(星期天) 上午6:18收件人: 
Super-Userdavid...@qq.com; 抄送: MING TSANGtsan...@rogers.com; 
lilypond-userlilypond-user@gnu.org; 主题: Re: Jianpu Notation
Hello,

On Apr 24, 2015, at 12:43 AM, Paul Morris p...@paulwmorris.com wrote:

 I just spotted \time 3/4 or 4/4, jianpu display  6 - . , I think it should 
be 6 - -. 
 Indeed, in Jianpu, dots follow only by quarter notes and below.

Yes, this is a “known issue”.  I have started working on it, but it’s a bit 
beyond the things I am familiar with and already know about.  (I have gotten it 
to add the right number of dashes, but the dots are still being displayed when 
they shouldn’t.  Work for another day…)

I’m attaching a new version that fixes this.  
However, I see now that really a different approach is needed.  Basically whole 
notes and half notes should be converted into the equivalent number of quarter 
notes, with the first one displayed as a number and the rest as dashes.  That 
way the spacing will be much better.
I’ve started experimenting with this.  It will take using a music function.  
This will also allow automatically inserting markups for the octave dots, which 
will then make it easier to have beams that span more than one note.  So there 
are several benefits to this approach.
I’ll try to see if I can work on it when I have time...
Cheers,-Paul


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


Re: Jianpu Notation

2015-04-25 Thread Paul Morris
Hello,On Apr 24, 2015, at 12:43 AM, Paul Morris p...@paulwmorris.com wrote:I just spotted \time 3/4 or 4/4, jianpu display " 6 - ." , I think it should be "6 - -".Indeed, in Jianpu, dots follow only by quarter notes and below.Yes, this is a “known issue”. I have started working on it, but it’s a bit beyond the things I am familiar with and already know about. (I have gotten it to add the right number of dashes, but the dots are still being displayed when they shouldn’t. Work for another day…)I’m attaching a new version that fixes this. However, I see now that really a different approach is needed. Basically whole notes and half notes should be converted into the equivalent number of quarter notes, with the first one displayed as a number and the rest as dashes. That way the spacing will be much better.I’ve started experimenting with this. It will take using a music function. This will also allow automatically inserting markups for the octave dots, which will then make it easier to have beams that span more than one note. So there are several benefits to this approach.I’ll try to see if I can work on it when I have time...Cheers,-Paul

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


Re: Jianpu Notation

2015-04-25 Thread Super-User
Hello, everyone!


May I suggest having this project hosted on Github also?
The facilities on Github enables better managements of issues, goal, test 
cases, and of course, the codebase itself, especially code merges.
In addition, programmers unaware of / non-subscribing this mail-list can also 
contribute by making pull requests, as in any open-sourced projects.
To push it forward, I need consent of anyone else who have also contribute the 
code, and agree on the license GPL v3.


Thank you!


David Zhang


-- 原始邮件 --
发件人: Paul Morris;p...@paulwmorris.com;
发送时间: 2015年4月26日(星期天) 上午6:18
收件人: Super-Userdavid...@qq.com; 
抄送: MING TSANGtsan...@rogers.com; lilypond-userlilypond-user@gnu.org; 
主题: Re: Jianpu Notation



Hello,
On Apr 24, 2015, at 12:43 AM, Paul Morris p...@paulwmorris.com wrote:

 I just spotted \time 3/4 or 4/4, jianpu display  6 - . , I think it should 
 be 6 - -. 




Yes, this is a “known issue”.  I have started working on it, but it’s a bit 
beyond the things I am familiar with and already know about.  (I have gotten it 
to add the right number of dashes, but the dots are still being displayed when 
they shouldn’t.  Work for another day…)







I’m attaching a new version that fixes this.  


However, I see now that really a different approach is needed.  Basically whole 
notes and half notes should be converted into the equivalent number of quarter 
notes, with the first one displayed as a number and the rest as dashes.  That 
way the spacing will be much better.


I’ve started experimenting with this.  It will take using a music function.  
This will also allow automatically inserting markups for the octave dots, which 
will then make it easier to have beams that span more than one note.  So there 
are several benefits to this approach.


I’ll try to see if I can work on it when I have time...


Cheers,
-Paul___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Re: Jianpu Notation

2015-04-25 Thread MING TSANG
David,Thank you very much. Now it working.How to switch between number and 
solfege in lily code?Immanuel,Ming Tsang 


 On Saturday, April 25, 2015 12:47 AM, Super-User david...@qq.com wrote:
   

 


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


Re: Re: Jianpu Notation

2015-04-25 Thread MING TSANG
David,
Thank you.  This mean I need to update jainpu6.ly every time I need to use 
solfege or number!
One other thing, I just spotted that on solfege-style  underline is missing for 
eighth-note , double-underline for sixteenth-note.Please refer to .png file
Once again for your hard work.Immanuel,Ming. 


 On Saturday, April 25, 2015 8:33 AM, Super-User david...@qq.com wrote:
   

 find
#(define Jianpu.style  solfege)
change to
#(define Jianpu.style  numbered)发自我的iPad

-- Original --From: MING TSANG 
tsan...@rogers.comDate: 周六,4月 25,2015 20:09To: Super-User david...@qq.com, 
Paul Morris p...@paulwmorris.comCc: lilypond-user 
lilypond-user@gnu.orgSubject: Re: Re: Jianpu Notation
David,Thank you very much. Now it working.How to switch between number and 
solfege in lily code?Immanuel,Ming Tsang 


 On Saturday, April 25, 2015 12:47 AM, Super-User david...@qq.com wrote:
   

 


   

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


Re: Jianpu Notation

2015-04-24 Thread MING TSANG
Paul,
Thank you.
Immanuel,Ming Tsang 


 On Friday, April 24, 2015 12:44 AM, Paul Morris p...@paulwmorris.com 
wrote:
   

 Hello David and Ming,

On Apr 23, 2015, at 10:44 PM, Super-User david...@qq.com wrote:
 I just spotted \time 3/4 or 4/4, jianpu display  6 - . , I think it should 
be 6 - -. 
 Indeed, in Jianpu, dots follow only by quarter notes and below.

Yes, this is a “known issue”.  I have started working on it, but it’s a bit 
beyond the things I am familiar with and already know about.  (I have gotten it 
to add the right number of dashes, but the dots are still being displayed when 
they shouldn’t.  Work for another day…)

Plus, I made a mistake in the original version about rests. Rests beyond one 
beat are displayed as repeated 0s e.g. 0 0 0 0 for whole rest.

This shouldn’t be hard to fix, we can just use the “0” stencil (repeated) 
instead of adding the dashes.

In addition, I have noticed that in 2015-04-23_11.png provided by Ming, 
slurs are sometimes drawn below note heads, it should be always in above.

I see David already fixed this, nicely done!
-Paul


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


Re: 回复: Jianpu Notation

2015-04-24 Thread MING TSANG
David,
Thank you.
Immanuel,Ming Tsang 


 On Friday, April 24, 2015 1:28 AM, Super-User david...@qq.com wrote:
   

 Here's an example for key signatures.
David Zhang

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


Re: Jianpu Notation

2015-04-24 Thread MING TSANG
Paul  David:
I show my 7 speech to couple of friends. They like it.  One  suggests if the 
jianpu can show as (option1 or option1): jianpu :  1     2     3     4     5    
 6     7     1'option1:  d     r     m     f      s     l      t     d'option2: 
 do   re   mi    fa    so   la    ti    do'  
Is it possible to adapt jianpu5-1.ly to display with option1 or option2?
Thank you for your thought.
Immanuel,Ming Tsang 


 On Friday, April 24, 2015 12:44 AM, Paul Morris p...@paulwmorris.com 
wrote:
   

 Hello David and Ming,

On Apr 23, 2015, at 10:44 PM, Super-User david...@qq.com wrote:
 I just spotted \time 3/4 or 4/4, jianpu display  6 - . , I think it should 
be 6 - -. 
 Indeed, in Jianpu, dots follow only by quarter notes and below.

Yes, this is a “known issue”.  I have started working on it, but it’s a bit 
beyond the things I am familiar with and already know about.  (I have gotten it 
to add the right number of dashes, but the dots are still being displayed when 
they shouldn’t.  Work for another day…)

Plus, I made a mistake in the original version about rests. Rests beyond one 
beat are displayed as repeated 0s e.g. 0 0 0 0 for whole rest.

This shouldn’t be hard to fix, we can just use the “0” stencil (repeated) 
instead of adding the dashes.

In addition, I have noticed that in 2015-04-23_11.png provided by Ming, 
slurs are sometimes drawn below note heads, it should be always in above.

I see David already fixed this, nicely done!
-Paul


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


回复: Jianpu Notation

2015-04-24 Thread Super-User
I made some lines of code that could render option2, with a hard coded #(define 
Jianpu.style  solfege)
Could anyone make it as a \override ?


David Zhang


-- 原始邮件 --
发件人: MING TSANG;tsan...@rogers.com;
发送时间: 2015年4月25日(星期六) 上午7:02
收件人: Paul Morrisp...@paulwmorris.com; Super-Userdavid...@qq.com; 
抄送: lilypond-userlilypond-user@gnu.org; 
主题: Re: Jianpu Notation



Paul  David:


I show my 7 speech to couple of friends. They like it.  One  suggests if the 
jianpu can show as (option1 or option1):
 jianpu :  1 2 3 4 5 6 7 1'
option1:  d r m f  s l  t d'
option2:  do   re   mifaso   latido'  


Is it possible to adapt jianpu5-1.ly to display with option1 or option2?


Thank you for your thought.


Immanuel,
Ming Tsang
  



 On Friday, April 24, 2015 12:44 AM, Paul Morris p...@paulwmorris.com 
wrote:
  
  

 Hello David and Ming,
On Apr 23, 2015, at 10:44 PM, Super-User david...@qq.com wrote:

 I just spotted \time 3/4 or 4/4, jianpu display  6 - . , I think it should 
 be 6 - -. 
 Indeed, in Jianpu, dots follow only by quarter notes and below.



Yes, this is a “known issue”.  I have started working on it, but it’s a bit 
beyond the things I am familiar with and already know about.  (I have gotten it 
to add the right number of dashes, but the dots are still being displayed when 
they shouldn’t.  Work for another day…)

Plus, I made a mistake in the original version about rests. Rests beyond one 
beat are displayed as repeated 0s e.g. 0 0 0 0 for whole rest.



This shouldn’t be hard to fix, we can just use the “0” stencil (repeated) 
instead of adding the dashes.

In addition, I have noticed that in 2015-04-23_11.png provided by Ming, 
slurs are sometimes drawn below note heads, it should be always in above.



I see David already fixed this, nicely done!


-Paul

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


回复: 回复: Jianpu Notation

2015-04-24 Thread Super-User
Hello, Ming!


You might have forgotten to change the include command to \include jianpu6.ly 
. 
If changed, my code defaults solfege notation.
I wonder how to serve both style with same code with a \override command being 
the switch.


David Zhang




-- 原始邮件 --
发件人: MING TSANG;tsan...@rogers.com;
发送时间: 2015年4月25日(星期六) 中午12:26
收件人: Super-Userdavid...@qq.com; Paul Morrisp...@paulwmorris.com; 
抄送: lilypond-userlilypond-user@gnu.org; 
主题: Re: 回复: Jianpu Notation



David,


Thank you.  I notice the change, but how do I use it.  How to use override? 
I ran my 7 speech with jianpu6.ly and I get the same result - number-note .


Immanuel,
Ming Tsang
  



 On Friday, April 24, 2015 11:21 PM, Super-User david...@qq.com wrote:
  
  

 I made some lines of code that could render option2, with a hard coded 
#(define Jianpu.style  solfege)
Could anyone make it as a \override ?


David Zhang


-- 原始邮件 --
发件人: MING TSANG;tsan...@rogers.com;
发送时间: 2015年4月25日(星期六) 上午7:02
收件人: Paul Morrisp...@paulwmorris.com; Super-Userdavid...@qq.com; 
抄送: lilypond-userlilypond-user@gnu.org; 
主题: Re: Jianpu Notation



Paul  David:


I show my 7 speech to couple of friends. They like it.  One  suggests if the 
jianpu can show as (option1 or option1):
 jianpu :  1 2 3 4 5 6 7 1'
option1:  d r m f  s l  t d'
option2:  do   re   mifaso   latido'  


Is it possible to adapt jianpu5-1.ly to display with option1 or option2?


Thank you for your thought.


Immanuel,
Ming Tsang
  



 On Friday, April 24, 2015 12:44 AM, Paul Morris p...@paulwmorris.com 
wrote:
  
  

 Hello David and Ming,
On Apr 23, 2015, at 10:44 PM, Super-User david...@qq.com wrote:

 I just spotted \time 3/4 or 4/4, jianpu display  6 - . , I think it should 
 be 6 - -. 
 Indeed, in Jianpu, dots follow only by quarter notes and below.



Yes, this is a “known issue”.  I have started working on it, but it’s a bit 
beyond the things I am familiar with and already know about.  (I have gotten it 
to add the right number of dashes, but the dots are still being displayed when 
they shouldn’t.  Work for another day…)

Plus, I made a mistake in the original version about rests. Rests beyond one 
beat are displayed as repeated 0s e.g. 0 0 0 0 for whole rest.



This shouldn’t be hard to fix, we can just use the “0” stencil (repeated) 
instead of adding the dashes.

In addition, I have noticed that in 2015-04-23_11.png provided by Ming, 
slurs are sometimes drawn below note heads, it should be always in above.



I see David already fixed this, nicely done!


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


Re: 回复: Jianpu Notation

2015-04-24 Thread MING TSANG
David,
Thank you.  I notice the change, but how do I use it.  How to use override? I 
ran my 7 speech with jianpu6.ly and I get the same result - number-note .
Immanuel,Ming Tsang 


 On Friday, April 24, 2015 11:21 PM, Super-User david...@qq.com wrote:
   

 I made some lines of code that could render option2, with a hard coded 
#(define Jianpu.style  solfege)Could anyone make it as a \override ?
David Zhang
-- 原始邮件 --发件人: MING 
TSANG;tsan...@rogers.com;发送时间: 2015年4月25日(星期六) 上午7:02收件人: Paul 
Morrisp...@paulwmorris.com; Super-Userdavid...@qq.com; 抄送: 
lilypond-userlilypond-user@gnu.org; 主题: Re: Jianpu Notation
Paul  David:
I show my 7 speech to couple of friends. They like it.  One  suggests if the 
jianpu can show as (option1 or option1): jianpu :  1     2     3     4     5    
 6     7     1'option1:  d     r     m     f      s     l      t     d'option2: 
 do   re   mi    fa    so   la    ti    do'  
Is it possible to adapt jianpu5-1.ly to display with option1 or option2?
Thank you for your thought.
Immanuel,Ming Tsang 


 On Friday, April 24, 2015 12:44 AM, Paul Morris p...@paulwmorris.com 
wrote:
   

 Hello David and Ming,

On Apr 23, 2015, at 10:44 PM, Super-User david...@qq.com wrote:
 I just spotted \time 3/4 or 4/4, jianpu display  6 - . , I think it should 
be 6 - -. 
 Indeed, in Jianpu, dots follow only by quarter notes and below.

Yes, this is a “known issue”.  I have started working on it, but it’s a bit 
beyond the things I am familiar with and already know about.  (I have gotten it 
to add the right number of dashes, but the dots are still being displayed when 
they shouldn’t.  Work for another day…)

Plus, I made a mistake in the original version about rests. Rests beyond one 
beat are displayed as repeated 0s e.g. 0 0 0 0 for whole rest.

This shouldn’t be hard to fix, we can just use the “0” stencil (repeated) 
instead of adding the dashes.

In addition, I have noticed that in 2015-04-23_11.png provided by Ming, 
slurs are sometimes drawn below note heads, it should be always in above.

I see David already fixed this, nicely done!
-Paul


   

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


回复: Jianpu Notation

2015-04-24 Thread Super-User
When taken seriously, solfegue (with movable do) has (7 natural+5 sharp+5 
flatted) names, and used without accidentals, which takes some changes.
see http://en.wikipedia.org/wiki/Solfège




-- 原始邮件 --
发件人: Super-Userdavid...@qq.com; 
发送时间: 2015年4月25日(星期六) 中午11:21
收件人: MING TSANGtsan...@rogers.com; Paul Morrisp...@paulwmorris.com; 
抄送: lilypond-userlilypond-user@gnu.org; 
主题: 回复: Jianpu Notation



I made some lines of code that could render option2, with a hard coded #(define 
Jianpu.style  solfege)
Could anyone make it as a \override ?


David Zhang


-- 原始邮件 --
发件人: MING TSANG;tsan...@rogers.com;
发送时间: 2015年4月25日(星期六) 上午7:02
收件人: Paul Morrisp...@paulwmorris.com; Super-Userdavid...@qq.com; 
抄送: lilypond-userlilypond-user@gnu.org; 
主题: Re: Jianpu Notation



Paul  David:


I show my 7 speech to couple of friends. They like it.  One  suggests if the 
jianpu can show as (option1 or option1):
 jianpu :  1 2 3 4 5 6 7 1'
option1:  d r m f  s l  t d'
option2:  do   re   mifaso   latido'  


Is it possible to adapt jianpu5-1.ly to display with option1 or option2?


Thank you for your thought.


Immanuel,
Ming Tsang
  



 On Friday, April 24, 2015 12:44 AM, Paul Morris p...@paulwmorris.com 
wrote:
  
  

 Hello David and Ming,
On Apr 23, 2015, at 10:44 PM, Super-User david...@qq.com wrote:

 I just spotted \time 3/4 or 4/4, jianpu display  6 - . , I think it should 
 be 6 - -. 
 Indeed, in Jianpu, dots follow only by quarter notes and below.



Yes, this is a “known issue”.  I have started working on it, but it’s a bit 
beyond the things I am familiar with and already know about.  (I have gotten it 
to add the right number of dashes, but the dots are still being displayed when 
they shouldn’t.  Work for another day…)

Plus, I made a mistake in the original version about rests. Rests beyond one 
beat are displayed as repeated 0s e.g. 0 0 0 0 for whole rest.



This shouldn’t be hard to fix, we can just use the “0” stencil (repeated) 
instead of adding the dashes.

In addition, I have noticed that in 2015-04-23_11.png provided by Ming, 
slurs are sometimes drawn below note heads, it should be always in above.



I see David already fixed this, nicely done!


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


Re: 回复: 回复: Jianpu Notation

2015-04-24 Thread MING TSANG
David, I did change \include pointing to jianpu6.ly.   There is no change, it 
still display numbers.Immanuel,Ming Tsang 


 On Saturday, April 25, 2015 12:31 AM, Super-User david...@qq.com wrote:
   

 Hello, Ming!
You might have forgotten to change the include command to \include jianpu6.ly 
. If changed, my code defaults solfege notation.I wonder how to serve both 
style with same code with a \override command being the switch.
David Zhang

-- 原始邮件 --发件人: MING 
TSANG;tsan...@rogers.com;发送时间: 2015年4月25日(星期六) 中午12:26收件人: 
Super-Userdavid...@qq.com; Paul Morrisp...@paulwmorris.com; 抄送: 
lilypond-userlilypond-user@gnu.org; 主题: Re: 回复: Jianpu Notation
David,
Thank you.  I notice the change, but how do I use it.  How to use override? I 
ran my 7 speech with jianpu6.ly and I get the same result - number-note .
Immanuel,Ming Tsang 


 On Friday, April 24, 2015 11:21 PM, Super-User david...@qq.com wrote:
   

 I made some lines of code that could render option2, with a hard coded 
#(define Jianpu.style  solfege)Could anyone make it as a \override ?
David Zhang
-- 原始邮件 --发件人: MING 
TSANG;tsan...@rogers.com;发送时间: 2015年4月25日(星期六) 上午7:02收件人: Paul 
Morrisp...@paulwmorris.com; Super-Userdavid...@qq.com; 抄送: 
lilypond-userlilypond-user@gnu.org; 主题: Re: Jianpu Notation
Paul  David:
I show my 7 speech to couple of friends. They like it.  One  suggests if the 
jianpu can show as (option1 or option1): jianpu :  1     2     3     4     5    
 6     7     1'option1:  d     r     m     f      s     l      t     d'option2: 
 do   re   mi    fa    so   la    ti    do'  
Is it possible to adapt jianpu5-1.ly to display with option1 or option2?
Thank you for your thought.
Immanuel,Ming Tsang 


 On Friday, April 24, 2015 12:44 AM, Paul Morris p...@paulwmorris.com 
wrote:
   

 Hello David and Ming,

On Apr 23, 2015, at 10:44 PM, Super-User david...@qq.com wrote:
 I just spotted \time 3/4 or 4/4, jianpu display  6 - . , I think it should 
be 6 - -. 
 Indeed, in Jianpu, dots follow only by quarter notes and below.

Yes, this is a “known issue”.  I have started working on it, but it’s a bit 
beyond the things I am familiar with and already know about.  (I have gotten it 
to add the right number of dashes, but the dots are still being displayed when 
they shouldn’t.  Work for another day…)

Plus, I made a mistake in the original version about rests. Rests beyond one 
beat are displayed as repeated 0s e.g. 0 0 0 0 for whole rest.

This shouldn’t be hard to fix, we can just use the “0” stencil (repeated) 
instead of adding the dashes.

In addition, I have noticed that in 2015-04-23_11.png provided by Ming, 
slurs are sometimes drawn below note heads, it should be always in above.

I see David already fixed this, nicely done!
-Paul


   

   

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


Re: Jianpu Notation

2015-04-23 Thread Carl Sorensen


On 4/23/15 7:55 AM, H. S. Teoh hst...@quickfur.ath.cx wrote:

On Thu, Apr 23, 2015 at 12:34:32PM +, Carl Sorensen wrote:
 
 
 On 4/22/15 10:57 PM, Super-User david...@qq.com wrote:
 
 Seheme, as a dialect of Lisp, can be annotated with ;; so that our
 Scheme codes implementing Jianpu can be documented as well.
 
But the Internals Reference (IR) is automatically generated from the
 C++ source code of the engravers.  And we don't have any automatic
 tools to generate IR references from Scheme engravers.
[...]

It should be possible, right? At the very least, we could use a fixed
format, say for the comment header in the .scm file of the engraver, and
use a script to extract and format that into documentation.

Yes, it's certainly possible.  And it can be done automatically (not from
comments) because the information is in Scheme structures with known
syntax.

But nobody has written the code to do it.

If you'd like to try that as a project, I'm certain you'd get people
(myself and others) who would provide support/review patches.

Thanks,

Cral


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


Re: Jianpu Notation

2015-04-23 Thread David Nalesnik
On Thu, Apr 23, 2015 at 11:07 AM, Carl Sorensen c_soren...@byu.edu wrote:



 On 4/23/15 7:55 AM, H. S. Teoh hst...@quickfur.ath.cx wrote:

 On Thu, Apr 23, 2015 at 12:34:32PM +, Carl Sorensen wrote:
 
 
  On 4/22/15 10:57 PM, Super-User david...@qq.com wrote:
 
  Seheme, as a dialect of Lisp, can be annotated with ;; so that our
  Scheme codes implementing Jianpu can be documented as well.
 
 But the Internals Reference (IR) is automatically generated from the
  C++ source code of the engravers.  And we don't have any automatic
  tools to generate IR references from Scheme engravers.
 [...]
 
 It should be possible, right? At the very least, we could use a fixed
 format, say for the comment header in the .scm file of the engraver, and
 use a script to extract and format that into documentation.

 Yes, it's certainly possible.  And it can be done automatically (not from
 comments) because the information is in Scheme structures with known
 syntax.

 But nobody has written the code to do it.

 If you'd like to try that as a project, I'm certain you'd get people
 (myself and others) who would provide support/review patches.


+1

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


回复: Jianpu Notation

2015-04-23 Thread Super-User
Ming Tsang: I also expected it for long, and went for collage for a CS degree, 
and work in startups for two years, and try to write my own implementation.


Note that I don't say that the output of a1soft program is optimal
compared to manually printed jianpu scores.  But lilypond's output is
still too different.


That's right, still far away to go yet.


Comments in the code are not the documentation I am talking about.  The
JianpuStaff should be added to the Internals Reference, and the
documentation should be added to all of the languages of LilyPond
documentation.


I have not downloaded the IR yet, but some other documents from the official 
website.
I can contribute my time writing decent documentation and examples the same way 
with other elements in notation.pdf , when it comes to final version that can 
produce industrial quality of Jianpu output.




David Zhang





-- 原始邮件 --
发件人: Carl Sorensenc_soren...@byu.edu; 
发送时间: 2015年4月23日(星期四) 晚上8:47
收件人: Werner LEMBERGw...@gnu.org; 
抄送: Paul Morrisp...@paulwmorris.com; MING TSANGtsan...@rogers.com; 
Super-Userdavid...@qq.com; lilypond-userlilypond-user@gnu.org; 
主题: Re: Jianpu Notation



On 4/22/15 10:55 PM, Werner LEMBERG w...@gnu.org wrote:


Ok, the problem was that your music file was for LilyPond 2.19 and
jianpu3.ly only works with 2.18.
 
 Have you proposed adding this to LilyPond?  It seems like this would
 be a promising thing to add to the core, since it's another standard
 notation.

But it's still *far* away from the look of normal jianpu notation as
used e.g. for the Erhu in Taiwan.  Attached you can find a typical
example, created with the a1soft program, together with a
`translation' to lilypond.

Note that I don't say that the output of a1soft program is optimal
compared to manually printed jianpu scores.  But lilypond's output is
still too different.

Ah, I see. the current output is a sketch of Jianpu, but not really Jianpu.

That's a good reason to have it available, but not in core.

Thanks,

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


Re: Jianpu Notation

2015-04-23 Thread David Nalesnik
On Thu, Apr 23, 2015 at 11:09 AM, David Nalesnik david.nales...@gmail.com
wrote:



 On Thu, Apr 23, 2015 at 11:07 AM, Carl Sorensen c_soren...@byu.edu
 wrote:



 On 4/23/15 7:55 AM, H. S. Teoh hst...@quickfur.ath.cx wrote:

 On Thu, Apr 23, 2015 at 12:34:32PM +, Carl Sorensen wrote:
 
 
  On 4/22/15 10:57 PM, Super-User david...@qq.com wrote:
 
  Seheme, as a dialect of Lisp, can be annotated with ;; so that our
  Scheme codes implementing Jianpu can be documented as well.
 
 But the Internals Reference (IR) is automatically generated from the
  C++ source code of the engravers.  And we don't have any automatic
  tools to generate IR references from Scheme engravers.
 [...]
 
 It should be possible, right? At the very least, we could use a fixed
 format, say for the comment header in the .scm file of the engraver, and
 use a script to extract and format that into documentation.

 Yes, it's certainly possible.  And it can be done automatically (not from
 comments) because the information is in Scheme structures with known
 syntax.


I think there would need to be an enhancement of the mechanism for creating
Scheme engravers, though.  C++ engravers have an expression at their ends
such as the following (in lily/slur-engraver.cc):

ADD_TRANSLATOR (Slur_engraver,
/* doc */
Build slur grobs from slur events.,

/* create */
Slur ,

/* read */
slurMelismaBusy 
doubleSlurs ,

/* write */

   );

Checking the documentation for Slur_engraver shows how this is used.  See:

http://www.lilypond.org/doc/v2.18/Documentation/internals/slur_005fengraver

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


Re: Jianpu Notation

2015-04-23 Thread H. S. Teoh
On Thu, Apr 23, 2015 at 12:34:32PM +, Carl Sorensen wrote:
 
 
 On 4/22/15 10:57 PM, Super-User david...@qq.com wrote:
 
 Seheme, as a dialect of Lisp, can be annotated with ;; so that our
 Scheme codes implementing Jianpu can be documented as well.
 
 Comments in the code are not the documentation I am talking about.
 The JianpuStaff should be added to the Internals Reference, and the
 documentation should be added to all of the languages of LilyPond
 documentation.
 
 But the Internals Reference (IR) is automatically generated from the
 C++ source code of the engravers.  And we don't have any automatic
 tools to generate IR references from Scheme engravers.
[...]

It should be possible, right? At the very least, we could use a fixed
format, say for the comment header in the .scm file of the engraver, and
use a script to extract and format that into documentation.


T

-- 
Be in denial for long enough, and one day you'll deny yourself of things you 
wish you hadn't.

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


Re: Jianpu Notation

2015-04-23 Thread David Nalesnik
On Thu, Apr 23, 2015 at 9:55 AM, H. S. Teoh hst...@quickfur.ath.cx wrote:

 On Thu, Apr 23, 2015 at 12:34:32PM +, Carl Sorensen wrote:
 
 
  On 4/22/15 10:57 PM, Super-User david...@qq.com wrote:
 
  Seheme, as a dialect of Lisp, can be annotated with ;; so that our
  Scheme codes implementing Jianpu can be documented as well.
 
  Comments in the code are not the documentation I am talking about.
  The JianpuStaff should be added to the Internals Reference, and the
  documentation should be added to all of the languages of LilyPond
  documentation.
 
  But the Internals Reference (IR) is automatically generated from the
  C++ source code of the engravers.  And we don't have any automatic
  tools to generate IR references from Scheme engravers.
 [...]

 It should be possible, right? At the very least, we could use a fixed
 format, say for the comment header in the .scm file of the engraver, and
 use a script to extract and format that into documentation.


Some documentation technique would be nice.  There are currently two Scheme
engravers in the codebase (Measure_counter_engraver, and the
Span_stem_engraver).  Allowing full inclusion of Scheme engravers
would/should be an encouragement to development efforts from power users.

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


Re: Jianpu Notation

2015-04-23 Thread Paul Morris
Hi Ming,

 On Apr 23, 2015, at 7:41 AM, MING TSANG tsan...@rogers.com wrote:
 
 Good morning Paul,
 
 Thank you very much for you jianpu4.ly.
 
 I run your jianpu-test.ly and sportted one note not the same in key C and key 
 D.  The 2nd note on third measure - a dot below the horizontal bar is missing 
 in key D.

Good catch.  I see now that the octave dots in Jianpu are not based on the 
absolute octave of the note but are relative to the current key / key 
signature.  In other words, the Jianpu octave increases between 7 and 1, and 
not between b and c.  

Attached is a new version jianpu5.ly that gets the octave dots right.  Let me 
know if you see anything else that’s not correct.

I have also changed the name of the custom staff context to JianpuStaff to 
match the other staff contexts in LilyPond.  (Although I have a slight 
preference for having it the other way around, consistency is good.)

Thanks for your appreciation!

-Paul



jianpu5.ly
Description: Binary data


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


Re: Jianpu Notation

2015-04-23 Thread Carl Sorensen


On 4/22/15 10:57 PM, Super-User david...@qq.com wrote:

Seheme, as a dialect of Lisp, can be annotated with ;; so that our Scheme
codes implementing Jianpu can be documented as well.

Comments in the code are not the documentation I am talking about.  The
JianpuStaff should be added to the Internals Reference, and the
documentation should be added to all of the languages of LilyPond
documentation.

But the Internals Reference (IR) is automatically generated from the C++
source code of the engravers.  And we don't have any automatic tools to
generate IR references from Scheme engravers.

Thanks,

Carl


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


Re: Jianpu Notation

2015-04-23 Thread Carl Sorensen
On 4/22/15 10:55 PM, Werner LEMBERG w...@gnu.org wrote:


Ok, the problem was that your music file was for LilyPond 2.19 and
jianpu3.ly only works with 2.18.
 
 Have you proposed adding this to LilyPond?  It seems like this would
 be a promising thing to add to the core, since it's another standard
 notation.

But it's still *far* away from the look of normal jianpu notation as
used e.g. for the Erhu in Taiwan.  Attached you can find a typical
example, created with the a1soft program, together with a
`translation' to lilypond.

Note that I don't say that the output of a1soft program is optimal
compared to manually printed jianpu scores.  But lilypond's output is
still too different.

Ah, I see. the current output is a sketch of Jianpu, but not really Jianpu.

That's a good reason to have it available, but not in core.

Thanks,

Carl


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


Re: Jianpu Notation

2015-04-23 Thread MING TSANG
Good morning Paul,
Thank you very much for you jianpu4.ly.
I run your jianpu-test.ly and sportted one note not the same in key C and key 
D.  The 2nd note on third measure - a dot below the horizontal bar is missing 
in key D.
I appreciate very much that you to take time and patient working out jianpu 
notation.
Immanuel,Ming 


 On Wednesday, April 22, 2015 11:59 PM, Paul Morris p...@paulwmorris.com 
wrote:
   

 Hi Ming,

 On Apr 22, 2015, at 1:34 PM, MING TSANG tsan...@rogers.com wrote:
 Thank you for your jianpu3.ly
 
 I try to use it in key D  the score display correctly, but the jianpu display 
 differently.  I don't know scheme. I am hoping in your spare time you can 
 update it.  Very much appreciated.

Ok, the problem was that your music file was for LilyPond 2.19 and jianpu3.ly 
only works with 2.18.

Attached is jianpu4.ly which works with either 2.18 or 2.19.  It also creates a 
custom Staff context called “StaffJianpu so you can just write:

\new StaffJianpu { 
  % music etc. goes here just like 
  % with the standard Staff context
}


jianpu4.ly is ready to be included in files.  (Feel free to rename it if you 
like.)  I moved the test music to jianpu-test.ly.  I’m also attaching a new 
version of your music file.

HTH,
-Paul

P.S. In case anyone is wondering, in 2.18 the context property “keySignature 
becomes “keyAlterations in 2.19.  I believe this was to prevent confusion with 
the “KeySignature grob.


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


Re: Jianpu Notation

2015-04-23 Thread MING TSANG
David:   Thank you for started the jianpu notation.  I also love it to call 
JianpuStaff.Paul:  Thank you for the time and patience and effort that make 
jianpu notation possible.Carl: Thank you suggestion to add to lilypond core. 
Thank you for pointing out a1soft software program. I will have a look. I still 
love jianpu notation in lilypond. I am very satisfied now - that my wish came 
true since lily v2.12
Immanuel,Ming Tsang 


 On Thursday, April 23, 2015 12:57 AM, Super-User david...@qq.com wrote:
   

 Hello!

As the one who raise this topic, I would love to see this adding to the core 
(and well documented) when all gears' up, as it could be read by a billion and 
written by millions.
Seheme, as a dialect of Lisp, can be annotated with ;; so that our Scheme codes 
implementing Jianpu can be documented as well.
I have expressed my hope that this should be add to the core in a previous 
email, should Carl missed it.
I can write test cases, including edge cases, to keep this improving.

P.S. I prefer replacing StaffJianpu with JianpuStaff, as with DrumStaff 
and TabStaff

David Zhang

-- Original --
From: Carl Sorensen;c_soren...@byu.edu;
Date: Thu, Apr 23, 2015 12:30 PM
To: Paul Morrisp...@paulwmorris.com; MING TSANGtsan...@rogers.com; 
Cc: Super-Userdavid...@qq.com; 
lilypond-user@gnu.orglilypond-user@gnu.org; 
Subject: Re: Jianpu Notation


On 4/22/15 8:59 PM, Paul Morris p...@paulwmorris.com wrote:

Ok, the problem was that your music file was for LilyPond 2.19 and
jianpu3.ly only works with 2.18.

Have you proposed adding this to LilyPond? It seems like this would be a
promising thing to add to the core, since it's another standard notation.

I guess the biggest problem we have with adding it to the core is that it
uses Scheme engravers, rather than C++ engravers, and we have no mechanism
for documenting Scheme engravers.

I think it would be worthwhile posting this to liypond-devel to start a
discussion about adding it to the core.

Thanks,

Carl



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


回复: Jianpu Notation

2015-04-23 Thread Super-User
Here's an example for key signatures.


David Zhang

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


Re: Jianpu Notation

2015-04-23 Thread Paul Morris
Hello David and Ming,

 On Apr 23, 2015, at 10:44 PM, Super-User david...@qq.com wrote:
 
  I just spotted \time 3/4 or 4/4, jianpu display  6 - . , I think it 
  should be 6 - -. 
 Indeed, in Jianpu, dots follow only by quarter notes and below.

Yes, this is a “known issue”.  I have started working on it, but it’s a bit 
beyond the things I am familiar with and already know about.  (I have gotten it 
to add the right number of dashes, but the dots are still being displayed when 
they shouldn’t.  Work for another day…)

 Plus, I made a mistake in the original version about rests. Rests beyond one 
 beat are displayed as repeated 0s e.g. 0 0 0 0 for whole rest.

This shouldn’t be hard to fix, we can just use the “0” stencil (repeated) 
instead of adding the dashes.

 In addition, I have noticed that in 2015-04-23_11.png provided by Ming, 
 slurs are sometimes drawn below note heads, it should be always in above.

I see David already fixed this, nicely done!

-Paul

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


Re: Jianpu Notation

2015-04-23 Thread MING TSANG
Paul,
Thank you for the update to jianpu5.ly. I just spotted \time 3/4 or 4/4, jianpu 
display  6 - . , I think it should be 6 - -.   Please refer to 
.pngTechnically it is ok- the . represent 1/2 of 6 - which is three beats.6 
- - also depict three beats -- I saw all jianpu use this notation.When you 
have time please update this. Thank you for your time and patience.  
Immanuel,Ming Tsang. 


 On Thursday, April 23, 2015 4:11 PM, Paul Morris p...@paulwmorris.com 
wrote:
   

 Hi Ming,

 On Apr 23, 2015, at 7:41 AM, MING TSANG tsan...@rogers.com wrote:
 
 Good morning Paul,
 
 Thank you very much for you jianpu4.ly.
 
 I run your jianpu-test.ly and sportted one note not the same in key C and key 
 D.  The 2nd note on third measure - a dot below the horizontal bar is missing 
 in key D.

Good catch.  I see now that the octave dots in Jianpu are not based on the 
absolute octave of the note but are relative to the current key / key 
signature.  In other words, the Jianpu octave increases between 7 and 1, and 
not between b and c.  

Attached is a new version jianpu5.ly that gets the octave dots right.  Let me 
know if you see anything else that’s not correct.

I have also changed the name of the custom staff context to JianpuStaff to 
match the other staff contexts in LilyPond.  (Although I have a slight 
preference for having it the other way around, consistency is good.)

Thanks for your appreciation!

-Paul


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


回复: Jianpu Notation

2015-04-23 Thread Super-User
 I just spotted \time 3/4 or 4/4, jianpu display  6 - . , I think it should 
 be 6 - -. 

Plus, I made a mistake in the original version about rests. Rests beyond one 
beat are displayed as repeated 0s e.g. 0 0 0 0 for whole rest.
In addition, I have noticed that in 2015-04-23_11.png provided by Ming, 
slurs are sometimes drawn below note heads, it should be always in above.


Thanks!


David Zhang




-- 原始邮件 --
发件人: MING TSANGtsan...@rogers.com; 
发送时间: 2015年4月24日(星期五) 上午10:34
收件人: Paul Morrisp...@paulwmorris.com; 
抄送: lilypond-userlilypond-user@gnu.org; Super-Userdavid...@qq.com; 
主题: Re: Jianpu Notation



Paul,


Thank you for the update to jianpu5.ly.
 I just spotted \time 3/4 or 4/4, jianpu display  6 - . , I think it should 
be 6 - -.   Please refer to .png
Technically it is ok- the . represent 1/2 of 6 - which is three beats.
6 - - also depict three beats -- I saw all jianpu use this notation.
When you have time please update this. Thank you for your time and patience.  


Immanuel,
Ming Tsang.
  



 On Thursday, April 23, 2015 4:11 PM, Paul Morris p...@paulwmorris.com 
wrote:
  
  

 Hi Ming,

 On Apr 23, 2015, at 7:41 AM, MING TSANG tsan...@rogers.com wrote:
 
 Good morning Paul,
 
 Thank you very much for you jianpu4.ly.
 
 I run your jianpu-test.ly and sportted one note not the same in key C and key 
 D.  The 2nd note on third measure - a dot below the horizontal bar is missing 
 in key D.

Good catch.  I see now that the octave dots in Jianpu are not based on the 
absolute octave of the note but are relative to the current key / key 
signature.  In other words, the Jianpu octave increases between 7 and 1, and 
not between b and c.  

Attached is a new version jianpu5.ly that gets the octave dots right.  Let me 
know if you see anything else that’s not correct.

I have also changed the name of the custom staff context to JianpuStaff to 
match the other staff contexts in LilyPond.  (Although I have a slight 
preference for having it the other way around, consistency is good.)

Thanks for your appreciation!

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


回复: Jianpu Notation

2015-04-23 Thread Super-User
\slurUp




-- 原始邮件 --
发件人: Super-User;david...@qq.com;
发送时间: 2015年4月24日(星期五) 上午10:44
收件人: MING TSANGtsan...@rogers.com; Paul Morrisp...@paulwmorris.com; 
抄送: lilypond-userlilypond-user@gnu.org; 
主题: 回复: Jianpu Notation



 I just spotted \time 3/4 or 4/4, jianpu display  6 - . , I think it should 
 be 6 - -. 

Plus, I made a mistake in the original version about rests. Rests beyond one 
beat are displayed as repeated 0s e.g. 0 0 0 0 for whole rest.
In addition, I have noticed that in 2015-04-23_11.png provided by Ming, 
slurs are sometimes drawn below note heads, it should be always in above.


Thanks!


David Zhang




-- 原始邮件 --
发件人: MING TSANGtsan...@rogers.com; 
发送时间: 2015年4月24日(星期五) 上午10:34
收件人: Paul Morrisp...@paulwmorris.com; 
抄送: lilypond-userlilypond-user@gnu.org; Super-Userdavid...@qq.com; 
主题: Re: Jianpu Notation



Paul,


Thank you for the update to jianpu5.ly.
 I just spotted \time 3/4 or 4/4, jianpu display  6 - . , I think it should 
be 6 - -.   Please refer to .png
Technically it is ok- the . represent 1/2 of 6 - which is three beats.
6 - - also depict three beats -- I saw all jianpu use this notation.
When you have time please update this. Thank you for your time and patience.  


Immanuel,
Ming Tsang.
  



 On Thursday, April 23, 2015 4:11 PM, Paul Morris p...@paulwmorris.com 
wrote:
  
  

 Hi Ming,

 On Apr 23, 2015, at 7:41 AM, MING TSANG tsan...@rogers.com wrote:
 
 Good morning Paul,
 
 Thank you very much for you jianpu4.ly.
 
 I run your jianpu-test.ly and sportted one note not the same in key C and key 
 D.  The 2nd note on third measure - a dot below the horizontal bar is missing 
 in key D.

Good catch.  I see now that the octave dots in Jianpu are not based on the 
absolute octave of the note but are relative to the current key / key 
signature.  In other words, the Jianpu octave increases between 7 and 1, and 
not between b and c.  

Attached is a new version jianpu5.ly that gets the octave dots right.  Let me 
know if you see anything else that’s not correct.

I have also changed the name of the custom staff context to JianpuStaff to 
match the other staff contexts in LilyPond.  (Although I have a slight 
preference for having it the other way around, consistency is good.)

Thanks for your appreciation!

-Paul

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


Re: Jianpu Notation

2015-04-22 Thread MING TSANG
Paul,
Thank you for your jianpu3.ly
I try to use it in key D   the score display correctly, but the jianpu display 
differently.  I don't know scheme. I am hoping in your spare time you can 
update it.  Very much appreciated.
Immanuel,Ming  


 On Tuesday, April 21, 2015 12:06 AM, Paul Morris p...@paulwmorris.com 
wrote:
   

 Hi Ming, 

 On Apr 19, 2015, at 8:22 PM, MING TSANG tsan...@rogers.com wrote:
 
 It is terrific. Now only one input of notes is generating Voice Staff for 
 jianpu notation and new Staff for music score.  Thank you.
 
 I try to put  r8  r16  r32 and I got the following error:
 Starting lilypond-windows.exe 2.19.17 [sample_jianpu2.ly]...
 Processing `K:/sample_lily-code/sample_jianpu2.ly'
 Parsing...
 Interpreting music...[8]
 warning: type check for `stencil' failed; value `#unspecified' must be of 
 type `stencil'
 fatal error: typecheck failed
 Exited with return code 1.

Thanks for catching this.  I’ve fixed it in the next version (jianpu3), 
attached to my other message.

 Thank you again for making this possible. I have been waiting this for years, 
 since v2.12.  Silas's and David's solution require to code twice - one for 
 jianpu and one for music score.  Your is only one input and straight forward. 
 Excellent.

Glad I could help!  I’m sure it’s not yet as mature or complete as Silas’s 
approach, but it can be improved and refined over time.  

Cheers,
-Paul


  \version 2.19.17
\language english

\header {
  title = 天父必保守
  subtitle = Heavenly Father Conversative
  composer = 曲 詞 : 鄒立基
  % Remove default LilyPond tagline
  tagline = ##f
}

\paper {
  #(set-paper-size letter)
}

\layout {
  \context {
\Voice
\consists Melody_engraver
\override Stem #'neutral-direction = #'()
  }
}
\include include_jianpu3.ily
globalD = {
  \key d \major
  \numericTimeSignature
  \time 4/4
  \tempo 4=80
}
globalC = {
  \key   c \major
  \numericTimeSignature
  \time 4/4
  \tempo 4=80
}

chordNames = \chordmode {
  %\global
  % Chords follow here.
  
}

melodyC =   {
  %\global
  e'4 8 d'8 e'4 a4 |%m01
  e'8 g'8 e'8d'8 e'2 |%m02
  c'4. b8 a'4 a'4 |%m03
  a'8g'8 d'8e'8 d'2 |%m04
}
melodyD =   {
  %\global
  fs'4 8 e'8 fs'4 b4 |%m01
  fs'8 a'8 fs'8e'8 fs'2 |%m02
  d'4. cs'8 b'4 b'4 |%m03
  b'8a'8 e'8fs'8 e'2 |%m04
}

verseOne = \lyricmode {
  \set stanza = 1.
  mi mi re mi lami sol mi re mido ti la lala sol re mi re
  
}

verseTwo = \lyricmode {
  \set stanza = 2.
  % Lyrics follow here.
  
}
jianpuVoiceD = \new Staff \with {
  \consists \Jianpu_note_head_engraver
  \consists \Jianpu_rest_engraver
  \consists \Jianpu_accidental_engraver
  \override Clef.stencil = ##f
  \remove Staff_symbol_engraver
  \override StaffSymbol.line-count = #0
  \override BarLine.bar-extent = #'(-2 . 2)
  \override Staff.TimeSignature.style = #'numbered
  \override Staff.Stem.transparent = ##t
  \override Stem.length = #0
  \override Rest.Y-offset = #-1
  \override NoteHead.Y-offset = #-1
  \override Beam.transparent = ##t
  \override Stem.direction = #UP
  \override Beam.beam-thickness = #0
  \override Beam.length-fraction = #0
  \override Tie.staff-position = #2.5
  \override TupletBracket.bracket-visibility = ##t
  \tupletUp
  \hide Stem
  \hide Beam
}
\new Voice {
  \globalD \melodyD
}
jianpuVoiceC = \new Staff \with {
  \consists \Jianpu_note_head_engraver
  \consists \Jianpu_rest_engraver
  \consists \Jianpu_accidental_engraver
  \override Clef.stencil = ##f
  \remove Staff_symbol_engraver
  \override StaffSymbol.line-count = #0
  \override BarLine.bar-extent = #'(-2 . 2)
  \override Staff.TimeSignature.style = #'numbered
  \override Staff.Stem.transparent = ##t
  \override Stem.length = #0
  \override Rest.Y-offset = #-1
  \override NoteHead.Y-offset = #-1
  \override Beam.transparent = ##t
  \override Stem.direction = #UP
  \override Beam.beam-thickness = #0
  \override Beam.length-fraction = #0
  \override Tie.staff-position = #2.5
  \override TupletBracket.bracket-visibility = ##t
  \tupletUp
  \hide Stem
  \hide Beam
}
\new Voice {
  \globalC \melodyC
}
\markup { music in C.}
\score {
  
\jianpuVoiceC
%\new ChordNames \chordNames
\new Staff = melo { \globalC  \melodyC }
\addlyrics { \verseOne }
\addlyrics { \verseTwo }
  
  \layout { }
  \midi { }
}
\markup { }
\markup { }
\markup { music in D   expecting to sing as C .. but now jianpu sing as fa (4) }
\markup { however midi sound correct ac C in key D but jianpu show 4 (fa) -- should be mi (3) } 

\score {
  
\jianpuVoiceD
%\new ChordNames \chordNames
\new Staff = melo { \globalD \melodyD }
\addlyrics { \verseOne }
\addlyrics { \verseTwo }
  
  \layout { }
  \midi { }
}


include_jianpu3.ily
Description: Binary data

回复: Jianpu Notation

2015-04-22 Thread Super-User
Hi, Ming!


Here's a table of how the numbers should be converted. Please take a look.


David Zhang




-- 原始邮件 --
发件人: MING TSANG;tsan...@rogers.com;
发送时间: 2015年4月23日(星期四) 凌晨1:34
收件人: Paul Morrisp...@paulwmorris.com; 
抄送: lilypond-user@gnu.orglilypond-user@gnu.org; 
Super-Userdavid...@qq.com; 
主题: Re: Jianpu Notation



Paul,


Thank you for your jianpu3.ly


I try to use it in key D   the score display correctly, but the jianpu display 
differently.  I don't know scheme. I am hoping in your spare time you can 
update it.  Very much appreciated.


Immanuel,
Ming 
  



 On Tuesday, April 21, 2015 12:06 AM, Paul Morris p...@paulwmorris.com 
wrote:
  
  

 Hi Ming, 

 On Apr 19, 2015, at 8:22 PM, MING TSANG tsan...@rogers.com wrote:
 
 It is terrific. Now only one input of notes is generating Voice Staff for 
 jianpu notation and new Staff for music score.  Thank you.
 
 I try to put  r8  r16  r32 and I got the following error:
 Starting lilypond-windows.exe 2.19.17 [sample_jianpu2.ly]...
 Processing `K:/sample_lily-code/sample_jianpu2.ly'
 Parsing...
 Interpreting music...[8]
 warning: type check for `stencil' failed; value `#unspecified' must be of 
 type `stencil'
 fatal error: typecheck failed
 Exited with return code 1.

Thanks for catching this.  I’ve fixed it in the next version (jianpu3), 
attached to my other message.

 Thank you again for making this possible. I have been waiting this for years, 
 since v2.12.  Silas's and David's solution require to code twice - one for 
 jianpu and one for music score.   Your is only one input and straight 
 forward. Excellent.

Glad I could help!  I’m sure it’s not yet as mature or complete as Silas’s 
approach, but it can be improved and refined over time.  

Cheers,
-Paul

Table of Jianpu and Keys.pdf
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


回复: Jianpu Notation

2015-04-22 Thread Super-User
To note, when in 1=C, a note in D should be notated as 2, and when in 1=D, the 
same note should be notated as 1, as demonstrated in the table.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Jianpu Notation

2015-04-22 Thread Paul Morris
Hi Ming,

 On Apr 22, 2015, at 1:34 PM, MING TSANG tsan...@rogers.com wrote:
 Thank you for your jianpu3.ly
 
 I try to use it in key D   the score display correctly, but the jianpu 
 display differently.  I don't know scheme. I am hoping in your spare time you 
 can update it.  Very much appreciated.

Ok, the problem was that your music file was for LilyPond 2.19 and jianpu3.ly 
only works with 2.18.

Attached is jianpu4.ly which works with either 2.18 or 2.19.  It also creates a 
custom Staff context called “StaffJianpu so you can just write:

\new StaffJianpu { 
  % music etc. goes here just like 
  % with the standard Staff context
}


jianpu4.ly is ready to be included in files.  (Feel free to rename it if you 
like.)  I moved the test music to jianpu-test.ly.  I’m also attaching a new 
version of your music file.

HTH,
-Paul

P.S. In case anyone is wondering, in 2.18 the context property “keySignature 
becomes “keyAlterations in 2.19.  I believe this was to prevent confusion with 
the “KeySignature grob.



jianpu4.ly
Description: Binary data


jianpu-test.ly
Description: Binary data


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


Re: Jianpu Notation

2015-04-22 Thread Carl Sorensen


On 4/22/15 8:59 PM, Paul Morris p...@paulwmorris.com wrote:


P.S. In case anyone is wondering, in 2.18 the context property
³keySignature becomes ³keyAlterations in 2.19.  I believe this was to
prevent confusion with the ³KeySignature grob.

If your code has version strings, convert-ly should automatically update
it.

Thanks,

Carl


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


Re: Jianpu Notation

2015-04-22 Thread Werner LEMBERG

Ok, the problem was that your music file was for LilyPond 2.19 and
jianpu3.ly only works with 2.18.
 
 Have you proposed adding this to LilyPond?  It seems like this would
 be a promising thing to add to the core, since it's another standard
 notation.

But it's still *far* away from the look of normal jianpu notation as
used e.g. for the Erhu in Taiwan.  Attached you can find a typical
example, created with the a1soft program, together with a
`translation' to lilypond.

Note that I don't say that the output of a1soft program is optimal
compared to manually printed jianpu scores.  But lilypond's output is
still too different.

[And sorry, I currently don't have access to my erhu music book right
now to show a scan of a manually printed jianpu page.]


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


Re: Jianpu Notation

2015-04-22 Thread Paul Morris
Hi Carl,

 On Apr 23, 2015, at 12:24 AM, Carl Sorensen c_soren...@byu.edu wrote:
 
 On 4/22/15 8:59 PM, Paul Morris p...@paulwmorris.com wrote:
 
 P.S. In case anyone is wondering, in 2.18 the context property
 łkeySignature becomes łkeyAlterations in 2.19.  I believe this was to
 prevent confusion with the łKeySignature grob.
 
 If your code has version strings, convert-ly should automatically update
 it.

That’s good, but in order to have it work with both 2.18 and 2.19 I used a bit 
of a quick hack/workaround.  

Since trying ly:context-property with a non-existent property returns an empty 
list ‘() which is also a valid value for this context property (c major / a 
minor), it seems there’s no real way to check for the existence of this context 
property.  So my code checks one first, if it returns ‘() it also check the 
other, and that covers all possible cases.  

Better would be to have some code for checking the LilyPond version (like in 
openLilyLib).  But I was going for speed in this case.

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


Re: Jianpu Notation

2015-04-22 Thread Carl Sorensen
On 4/22/15 8:59 PM, Paul Morris p...@paulwmorris.com wrote:

Ok, the problem was that your music file was for LilyPond 2.19 and
jianpu3.ly only works with 2.18.

Have you proposed adding this to LilyPond?  It seems like this would be a
promising thing to add to the core, since it's another standard notation.

I guess the biggest problem we have with adding it to the core is that it
uses Scheme engravers, rather than C++ engravers, and we have no mechanism
for documenting Scheme engravers.

I think it would be worthwhile posting this to liypond-devel to start a
discussion about adding it to the core.

Thanks,

Carl


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


Re: Jianpu Notation

2015-04-22 Thread Paul Morris
 On Apr 23, 2015, at 12:30 AM, Carl Sorensen c_soren...@byu.edu wrote:
 
 On 4/22/15 8:59 PM, Paul Morris p...@paulwmorris.com wrote:
 
 Ok, the problem was that your music file was for LilyPond 2.19 and
 jianpu3.ly only works with 2.18.
 
 Have you proposed adding this to LilyPond?  It seems like this would be a
 promising thing to add to the core, since it's another standard notation.

I haven’t but I’m not opposed to that eventually.  As Werner notes there is 
still a lot to do.  I haven’t done anything with refining the appearance.  I’m 
just trying to get the ball rolling by getting all the “moving parts” in place 
(since I’m already familiar with the techniques for implementing alternative 
notation systems in LilyPond).  

Ideally someone who uses and really knows Jianpu well could take it over and 
refine it. (Maybe David Zhang? or Silas Brown who did the “jianpu-ly Python 
approach? [1]  Maybe some of the appearance work could be repurposed from the 
output of “jianpu-ly”?  I haven’t tried it.)  I don’t really have the time 
right now to refine it and see it all the way through to adding it to the core.

[1] http://people.ds.cam.ac.uk/ssb22/mwrhome/jianpu-ly.html


 I guess the biggest problem we have with adding it to the core is that it
 uses Scheme engravers, rather than C++ engravers, and we have no mechanism
 for documenting Scheme engravers.

Yes, that’d be a problem.  


 I think it would be worthwhile posting this to liypond-devel to start a
 discussion about adding it to the core.

Thanks, although I’m not sure it’s worth starting that discussion just yet…  

-Paul


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


Re: Jianpu Notation

2015-04-22 Thread Super-User
Hello!

As the one who raise this topic, I would love to see this adding to the core 
(and well documented) when all gears' up, as it could be read by a billion and 
written by millions.
Seheme, as a dialect of Lisp, can be annotated with ;; so that our Scheme codes 
implementing Jianpu can be documented as well.
I have expressed my hope that this should be add to the core in a previous 
email, should Carl missed it.
I can write test cases, including edge cases, to keep this improving.

P.S. I prefer replacing StaffJianpu with JianpuStaff, as with DrumStaff 
and TabStaff

David Zhang

-- Original --
From: Carl Sorensen;c_soren...@byu.edu;
Date: Thu, Apr 23, 2015 12:30 PM
To: Paul Morrisp...@paulwmorris.com; MING TSANGtsan...@rogers.com; 
Cc: Super-Userdavid...@qq.com; 
lilypond-user@gnu.orglilypond-user@gnu.org; 
Subject: Re: Jianpu Notation


On 4/22/15 8:59 PM, Paul Morris p...@paulwmorris.com wrote:

Ok, the problem was that your music file was for LilyPond 2.19 and
jianpu3.ly only works with 2.18.

Have you proposed adding this to LilyPond?  It seems like this would be a
promising thing to add to the core, since it's another standard notation.

I guess the biggest problem we have with adding it to the core is that it
uses Scheme engravers, rather than C++ engravers, and we have no mechanism
for documenting Scheme engravers.

I think it would be worthwhile posting this to liypond-devel to start a
discussion about adding it to the core.

Thanks,

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


Re: Jianpu Notation

2015-04-20 Thread Paul Morris
Hi Ming, 

 On Apr 19, 2015, at 8:22 PM, MING TSANG tsan...@rogers.com wrote:
 
 It is terrific. Now only one input of notes is generating Voice Staff for 
 jianpu notation and new Staff for music score.  Thank you.
 
 I try to put  r8  r16  r32 and I got the following error:
 Starting lilypond-windows.exe 2.19.17 [sample_jianpu2.ly]...
 Processing `K:/sample_lily-code/sample_jianpu2.ly'
 Parsing...
 Interpreting music...[8]
 warning: type check for `stencil' failed; value `#unspecified' must be of 
 type `stencil'
 fatal error: typecheck failed
 Exited with return code 1.

Thanks for catching this.  I’ve fixed it in the next version (jianpu3), 
attached to my other message.

 Thank you again for making this possible. I have been waiting this for years, 
 since v2.12.  Silas's and David's solution require to code twice - one for 
 jianpu and one for music score.   Your is only one input and straight 
 forward. Excellent.

Glad I could help!  I’m sure it’s not yet as mature or complete as Silas’s 
approach, but it can be improved and refined over time.  

Cheers,
-Paul


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


Re: Jianpu Notation

2015-04-20 Thread Paul Morris
Hi David,

 On Apr 19, 2015, at 7:28 PM, Super-User david...@qq.com wrote:
 
 I am impressed by your code! You have really made things automated!

Thanks!  I am attaching the next revision to this email.

 To note about improvement, accidentals in jianpu look identical to those in 
 standard notation, but the baseline is about 0.75 height position of numeric 
 note head height button up.

I haven’t done anything about this or any other spacing adjustments.  It would 
be great if you could work on the spacing parts since you know Jianpu and what 
it should look like.  Feel free to ask questions on this list if you need to.

 Lines indicating duration (aka. beams) should be horizontally linked together 
 the same way as 5-stave notation.

This will probably be tricky and/or difficult to do.  Maybe it is possible by 
overriding beams and flags rather than adding these symbols to the note head 
stencil?  This is difficult though because the octave dots fall below these 
duration dashes for 8th notes, 16th, 32nd, etc. So the positioning won’t be 
easy.

 I have tried changing \key c \major to \key d \major, and found that 
 rules dealing with accidentals are still in the old way(eg. the second note 
 should be flat-7, not natural-7).

The latest version (attached) includes a custom accidental sign engraver to 
provide Jianpu accidentals.  I may have missed some edge cases, but I don’t 
think so. (There are no triple sharp or triple flat glyphs in LilyPond so I 
reached the limit of what can be done there.)  Let me know if you find 
accidentals that are not right.

The shorter rests (8th, 16th, 32nd, etc.) are now fixed as well.

Wikipedia shows the following for dotted half and whole notes, which is still 
not supported:

Whole (semibreve):  1 - - -
Dotted whole:   1 - - - - -
Double dotted:  1 - - - - - -
Half (minim): 1 -
Dotted half:   1 - -  
Double dotted:  1 - - ·

I’m sure there are other things too, but this is a good start.  Hopefully I’ve 
given you enough to build on, since I have other things I need to work on and 
I’m not sure how much more time I’ll be able to spend on this for now.

Cheers,
-Paul



jianpu3.ly
Description: Binary data


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


Re: Jianpu Notation

2015-04-19 Thread Pierre Perol-Schneider
Hi David,

I feel really stupid having said such a silly question just after a first
lecture...
Here's some old open source code just in case it'll help you find some
inspiration ;) : http://www.a1soft.com/smusic/
Sorry for the noise,
Cheers,
Pierre

2015-04-18 15:16 GMT+02:00 Super-User david...@qq.com:

 Hi Pierre!

 I am not talking about a specific kind of music, but a notation widely
 used in east Asia, especially China. It has all aspects in 5-staff
 notation, and shares some notaions of it, but differs in others.

 Thanks!

 David Zhang
 发自我的iPad



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


Re: Jianpu Notation

2015-04-19 Thread Paul Morris
Hi David,

 On Apr 18, 2015, at 1:14 AM, Paul Morris p...@paulwmorris.com wrote:
 
 In the attached file is a start on a more automated way to do it.  It uses a 
 custom note head engraver and custom rest engraver (written in Scheme) to 
 automatically alter the note head and rest stencils. By going further in this 
 direction it would be possible to also add the dots and lines (that indicate 
 octave and duration) to the note head stencil.  This would automate those 
 parts as well.  

I went ahead and worked some more on this.  (It took me long enough to figure 
out how to do this stuff, so I might as well put it to use so others can 
benefit too.)

See the attached file for another revision that implements these things:
- dots indicating octaves
- lines indicating note and rest durations
- correctly determines Jianpu note number (c major key: c = 0, c minor key: c = 
6, etc.)

It works by incorporating these symbols into the note head stencil.

This is just a quick sketch that can be improved and refined in terms of 
spacing and other details.  Some things still to do are handling dotted notes 
(I haven’t been able to access the dots grob from note head grob, so this seems 
tricky) and Jianpu accidental signs (which will require their own engraver).

HTH,
-Paul 



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


回复: Jianpu Notation

2015-04-19 Thread Super-User
Hi,Paul!


I am impressed by your code! You have really made things automated! To note 
about improvement, accidentals in jianpu look identical to those in standard 
notation, but the baseline is about 0.75 height position of numeric note head 
height button up. Lines indicating duration (aka. beams) should be horizontally 
linked together the same way as 5-stave notation.
I have tried changing \key c \major to \key d \major, and found that rules 
dealing with accidentals are still in the old way(eg. the second note should be 
flat-7, not natural-7).


Thanks!


David Zhang




-- 原始邮件 --
发件人: Paul Morrisp...@paulwmorris.com; 
发送时间: 2015年4月20日(星期一) 上午6:24
收件人: Super-Userdavid...@qq.com; 
抄送: lilypond-userlilypond-user@gnu.org; 
主题: Re: Jianpu Notation



Hi David,

 On Apr 18, 2015, at 1:14 AM, Paul Morris p...@paulwmorris.com wrote:
 
 In the attached file is a start on a more automated way to do it.  It uses a 
 custom note head engraver and custom rest engraver (written in Scheme) to 
 automatically alter the note head and rest stencils. By going further in this 
 direction it would be possible to also add the dots and lines (that indicate 
 octave and duration) to the note head stencil.  This would automate those 
 parts as well.  

I went ahead and worked some more on this.  (It took me long enough to figure 
out how to do this stuff, so I might as well put it to use so others can 
benefit too.)

See the attached file for another revision that implements these things:
- dots indicating octaves
- lines indicating note and rest durations
- correctly determines Jianpu note number (c major key: c = 0, c minor key: c = 
6, etc.)

It works by incorporating these symbols into the note head stencil.

This is just a quick sketch that can be improved and refined in terms of 
spacing and other details.  Some things still to do are handling dotted notes 
(I haven’t been able to access the dots grob from note head grob, so this seems 
tricky) and Jianpu accidental signs (which will require their own engraver).

HTH,
-Paul___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Jianpu Notation

2015-04-19 Thread MING TSANG
Paul,
It is terrific. Now only one input of notes is generating Voice Staff for 
jianpu notation and new Staff for music score.  Thank you.
I try to put  r8  r16  r32 and I got the following error:Starting 
lilypond-windows.exe 2.19.17 [sample_jianpu2.ly]...Processing 
`K:/sample_lily-code/sample_jianpu2.ly'Parsing...Interpreting 
music...[8]warning: type check for `stencil' failed; value `#unspecified' 
must be of type `stencil'fatal error: typecheck failedExited with return code 1.
Thank you again for making this possible. I have been waiting this for years, 
since v2.12.  Silas's and David's solution require to code twice - one for 
jianpu and one for music score.   Your is only one input and straight forward. 
Excellent.
I also try out \transpose c d to both voice  staff and it works.
Immanuel,Ming


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


Re: Jianpu Notation

2015-04-18 Thread Super-User
Hello!


Good to hear replies! My code does not need to type the rythem twice, I rewrite 
the rythem again for comparation. Yes, the beams want more improvements on 
appreance. Let's see how to improve it!


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


Re: Jianpu Notation

2015-04-18 Thread MING TSANG



   
 David,  
Please refer to email below.  Silas has developed a way to generate jianpu. I 
find it duplicate of input - one for jianpu and one for lilypond code.  I asked 
if his code can use lilypond code to generate jianpu and the answer is no.The 
way I see your approach is the same jianpu input and lilypond code input - a 
duplicate effort.
Someone in lilypond community ( couldn't remember who - a few lilyponders ) 
provides a way to generate number notes attach to pitch note.  Please refer to 
attached lilypond file.  The jianpu will adjust to the key signature.  (1) one 
draw back is that I cannot just display jianpu only (2) the number has no beat 
identification (quarter note, eighth note, etc) (3) does not display rest  I am 
not familiarly with scheme so I cannot modify the code. 
Please have a look and see if you can adapt to what you try to accomplish.
Immanuel,Ming.
Re: jianpu (numeric notes) lilypond transcribe?
Silas wrote:
I should point out that Ming Tsang's example PNG (posted on 17 Nov)
was created using my jianpu in Lilypond program available at
http://people.ds.cam.ac.uk/ssb22/mwrhome/jianpu-ly.html
but what he wants to ask is is it possible to do that without
having to type the numbers in manually, i.e. can the jianpu be
automatically generated from normal Lilypond input without having
to input the numbers separately.

My program does not attempt to parse normal Lilypond input because
the syntax is a moving target between Lilypond versions and it's rather
complicated to handle everything.

Moreover, although it's nice to be able to print the jianpu line
along with a 5-line stave, in many cases you actually DON'T want
this: if you know the user of the part ONLY reads jianpu, then
the 5-line stave is just wasting paper and ink; you might as well
put jianpu only, especially if you are printing out 135 songs!
And if you are printing jianpu only, then I find it's quicker to
type in the jianpu numbers myself, instead of going to all the
trouble of coding a 5-line staff that won't actually be printed.

Also, in some music you have to make a human judgment about what to
do with the jianpu, for example if the key changes (you may or may
not get away with changing key in the jianpu; it depends on the
singer/instrument; you might have to write everything relative to
the same key, in which case you have to choose which of the music's
different keys is the main one) or if there are chromaticisms
(sometimes it makes sense to rewrite the enharmonics in the jianpu
line, e.g. #5 to b6; there are no fixed rules about this, it's
down to judgment and it can depend on the singer/instrument).
If any program did produce the jianpu numbers completely automatically
then I would want to be able to edit/override them at times.

Of course, if the music is simple (it's in one key with no awkward
chromaticisms) then automatic jianpu should be easier.  If I were
inputting a large number of simple tunes, and I wanted both the music
line and the jianpu line but without having to type everything twice,
I would write myself a simple search/replace script so I can automatically
generate one format from the other (or even use a third format to
generate both).  In this case the translator needs to cope only with
the specific things that I will actually use for this specific input
(it does not have to address the entire Lilypond feature set).
For example, if you are in D major and you specify duration on
every note in Lilypond, just replace d4 - 1, d8 - q1, e4 - 2 etc.

In the general case though, it's going to be hard to automatically
convert normal Lilypond input into jianpu-ly's input (or reproduce
jianpu-ly's work in mainstream Lilypond) although it would be nice.

Meanwhile, at least jianpu-ly does have a few sanity checks in
it in case you make a mistake.  It performs barline checks like
Lilypond (and in jianpu-ly they are ERRORS, not warnings, so you
should certainly know if you did something wrong there), and it
should be possible to hear the music played back (although I should
probably implement a play it in the right key feature so you can
play it alongside the other stave and check all notes sound the same).

Silas

-- 
Silas S Brown http://people.ds.cam.ac.uk/ssb22





  \version 2.19.18
\language english

#(define syllables '(do re mi fa so la ti))
#(define sylsⓓ '(ⓓ ⓡ ⓜ ⓕ ⓢ ⓛ ⓣ))
#(define numR➀ '(➀ ➁ ➂ ➃ ➄ ➅ ➆))
#(define number '(1 2 3 4 5 6 7))
#(define numR➑ '(➊ ➋ ➌ ➍ ➎ ➏ ➐))
%{
#(define (solfege-engraver lst dir)
   (make-engraver 
 (acknowledgers
  ((note-head-interface engraver grob source)
   (let* (
  (context (ly:translator-context engraver))
  (tonic-pitch (ly:context-property context 'tonic))
  (tonic-index (ly:pitch-notename tonic-pitch))
  (event (ly:grob-property grob 'cause))
  (grob-pitch (ly:event-property event 'pitch))
  (grob-index 

Re: Jianpu Notation

2015-04-18 Thread Paul Morris
Hi David,

I'm happy to answer your questions and try to help you get Jianpu working in 
LilyPond.  It will take learning some Scheme, and how LilyPond can be extended 
with Scheme.  I'd suggest looking at the extending manual and searching the 
LSR for examples of code that uses stencil or path.  The GNU guile manuals 
are a good reference for info about Scheme.

Cheers,
Paul___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Jianpu Notation

2015-04-17 Thread Super-User
Hello!


I am a Java developer and music amateur from China who is familiar with both 
5-staff notation and Jianpu (aka numberic) notation used for all pitched 
Chinese instruments. I have seen post discussed about displaying Jianpu 
notation in Lilypond years ago, and would like to help developing 
implementation of it. Recently, I have tried to implement a small subset of 
Jianpu on Lilypond, in ugly programming style, as attached in this email. I 
would like to hear more from the Lilypond community about how to implement the 
Jianpu support better.


Many Thanks!


David Zhang

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


Re: Jianpu Notation

2015-04-17 Thread Pierre Perol-Schneider
Hi David,

I've absolutely no clue what kind of music you're talking about.
I've seen than Ming (pretty active on the list) has already started some
discussion about it.
In any case I'd follow you just by curiosity!

Cheers,
Pierre

2015-04-17 8:53 GMT+02:00 Super-User david...@qq.com:

 Hello!

 I am a Java developer and music amateur from China who is familiar with
 both 5-staff notation and Jianpu (aka numberic) notation used for all
 pitched Chinese instruments. I have seen post discussed about displaying
 Jianpu notation in Lilypond years ago, and would like to help developing
 implementation of it. Recently, I have tried to implement a small subset of
 Jianpu on Lilypond, in ugly programming style, as attached in this email. I
 would like to hear more from the Lilypond community about how to implement
 the Jianpu support better.

 Many Thanks!

 David Zhang

 ___
 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

2015-04-17 Thread Paul Morris
Hello David,

 On Apr 17, 2015, at 2:53 AM, Super-User david...@qq.com wrote:
 Recently, I have tried to implement a small subset of Jianpu on Lilypond, in 
 ugly programming style, as attached in this email. I would like to hear more 
 from the Lilypond community about how to implement the Jianpu support better.

In the attached file is a start on a more automated way to do it.  It uses a 
custom note head engraver and custom rest engraver (written in Scheme) to 
automatically alter the note head and rest stencils.  By going further in this 
direction it would be possible to also add the dots and lines (that indicate 
octave and duration) to the note head stencil.  This would automate those parts 
as well.  

Anyway, this is just another possible approach in addition to the existing 
support for Jianpu using Python, which I just learned about.

(I only know a little about Jianpu, but I have experience with extending 
LilyPond to support other notation systems, see especially http://clairnote.org)

Cheers,
-Paul



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


Re: Jianpu Notation

2015-04-17 Thread James Harkins
Super-User david290 at qq.com writes:

 I am a Java developer and music amateur from China who is familiar
 with both 5-staff notation and Jianpu (aka numberic) notation used for
 all pitched Chinese instruments. I have seen post discussed about
 displaying Jianpu notation in Lilypond years ago, and would like to
 help developing implementation of it. Recently, I have tried to
 implement a small subset of Jianpu on Lilypond, in ugly programming
 style, as attached in this email. I would like to hear more from the
 Lilypond community about how to implement the Jianpu support better.

Hi,

Nice to see work resuming on this :)

Are you aware of Silas Brown's jianpu-ly python script?

http://people.ds.cam.ac.uk/ssb22/mwrhome/jianpu-ly.html

It defines a syntax for (what appears to be) a fairly large subset of
jianpu notation. The python script produces (ugly) LilyPond code to
render the jianpu. That code can be pasted into bigger scores, where it
prints nicely alongside Western notation.

One thing that it doesn't handle -- and this was a pretty serious
limitation when I tried to use it in a project -- is grace notes. If
you started with his work and added grace notes, you would be very far
along the way.

I'm working in Guangzhou, by the way.

hjh



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