Re: OCR to lilypond

2015-12-02 Thread jerry
I find a  free online ocr   , it can
recognize text from jpg, png, tiff, bmp and gif image.




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/OCR-to-lilypond-tp30035p184380.html
Sent from the User mailing list archive at Nabble.com.

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


NR 3.3.2: \tagGroup

2015-12-02 Thread Federico Bruni

Hi all

If you scroll down to \tagGroup here:
http://lilypond.org/doc/v2.19/Documentation/notation/different-editions-from-one-source#using-tags

you find:

%

   \tagGroup #'(violinI violinII viola cello)

declares the respective tags as belonging to one tag group.

   \keepWithTag #'violinI …

will then only be concerned with tags from violinI’s tag group: any 
element of the included music that is tagged with one or more of tags 
from this set but not with violinI will get removed.


To any \keepWithTag command, only tags from the tag groups of the tags 
given in the command are visible.


%

I don't understand what this command does actually.
The last sentence is a bit confusing and there's no clear example 
showing the expected behaviour.


James, if it turns to be a documentation bug please hold on until 
Friday when I hope I've finished my translation (and review) of this 
chapter.


In the following example commenting/uncommenting \tagGroup does not 
change any behaviour.

What I'm missing?


\version "2.19.31"

music = \relative c'' {
 %\tagGroup #'(A B C D)
 \tag #'A { a4 a a a }
 \tag #'B { b4 b b b }
 \tag #'C { c4 c c c }
 \tag #'D { d4 d d d }
}

\new Staff {
 \keepWithTag #'A
 \music
}





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


Re: NR 3.3.2: \tagGroup

2015-12-02 Thread David Kastrup
Federico Bruni  writes:

> Ok, I got it:
>
> \version "2.19.31"
>
> music = \relative c'' {
>  \tagGroup #'(A B C)
>  \tag #'A { a4 a a a }
>  \tag #'B { b4 b b b }
>  \tag #'C { c4 c c c }
>  \tag #'D { d4 d d d }
> }
>
> \new Staff {
>  \keepWithTag #'A
>  \music
> }
>
> will print #'A and #'D but not #'B and #'C

Correct.  If you replace the rather generic names A, B, C, D, E with
something more specific like Urtext, EditionBrauer, EditionThoeni,
Layout, Midi, then it becomes more obvious that it's a nuisance if

\keepWithTag #'Urtext

will remove every music tagged with Midi or Layout.  Forming two
separate tag groups will cure that problem.

-- 
David Kastrup

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


Re: Introducing "LilyPond HTML Live Score"

2015-12-02 Thread Mathieu Demange
Hi David,

I just updated the project's repository. I refactored and simplified a
lot of things.

There's now a single python script (make-live-score) which takes care of
everything. Also, you don't need to edit your .ly file anymore.

Please note that the script except audio files to be specified (at least
one format) or it'll break the js part. This'll be fixed in the next
release and will allow to have visual rhythmic feedback even with no
sound played back.

See the README.md file for details (and command usage, it has been
reworked).

Please tell me how it goes now.

Cheers,

Mathieu

Le lundi 30 novembre 2015 à 16:27 -0800, David Bellows a écrit :
> > The jPlayer plugin for jQuery excepts (if possible) two audio formats :
> > Ogg Vorbis (.ogg) and AAC (.m4a). Please make sure you have your audio
> > source file converted into those two formats.
> 
> Hey Mathieu,
> 
> So here is my Lilypond test file.
> 
> \include "live-score.ily"
> \score{
>   {c e g c'}
>   \layout {}
>   \midi {}
> }
> 
> I then convert that to an ogg file with Timidity:
> 
> timidity -Ov score.midi
> 
> If I run make-live-score.sh as is then I get the score in index.html
> but no sound or animation.
> 
> If I comment out line 81, the m4a part, then I get the score and the
> sound but no animation.
> 
> I'm using Lilypond 2.19.32
> 
> On Mon, Nov 30, 2015 at 1:52 AM, Mathieu Demange
>  wrote:
> > Hi David,
> >
> > The jPlayer plugin for jQuery excepts (if possible) two audio formats :
> > Ogg Vorbis (.ogg) and AAC (.m4a). Please make sure you have your audio
> > source file converted into those two formats.
> >
> > I'll update the make-live-script.sh file today so it can accept command
> > line arguments to specify the .ly source file and the audio files (if
> > any).
> >
> > I'll urge myself to write some documentation too!
> >
> > Yours,
> >
> > Mathieu
> >
> >
> > Le dimanche 29 novembre 2015 à 13:15 -0800, David Bellows a écrit :
> >> > Ow! That's because I clearly didn't except anyone to try the script that 
> >> > quick :D
> >>
> >> Ha! I've been looking for something like this for a while. There's
> >> another out there but I've had no luck getting it working and I think
> >> it's been abandoned.
> >>
> >> > - make sure you adapt the paper format so that your score fits into one 
> >> > single page (see the \paper block in the original score.ly file)
> >> > - adapt the Javascript code in the index.tpl file (lines 80, 81, 82) to 
> >> > the audio files you want to use (if any)
> >>
> >> Ok, I switched to a score that uses only one page.
> >>
> >> I changed line 80 to reflect the name of the piece ("name").
> >> I changed line 82 to point to the correct ogg file ("name.ogg").
> >> I'm not sure what to do with line 81:
> >>A) If I change it to "name.m4a" then everything seems to compile
> >> and the score is shown in index.html but there's no sound or
> >> animation.
> >>B) If I comment out that line then I get the score and the music
> >> but no animation. So close!
> >>
> >> So I'm almost there!
> >>
> >> And I would very much like to include this in a super huge project I'm
> >> working once it reaches maturity and to that end I'll help out
> >> wherever I can (though I'm not much of a programmer).
> >>
> >> Thanks!
> >> Dave
> >>
> >> On Sun, Nov 29, 2015 at 12:03 PM, Mathieu Demange
> >>  wrote:
> >> > Ow! That's because I clearly didn't except anyone to try the script that
> >> > quick :D It's not fail-proof, yet, but here are some hints (before all 
> >> > this
> >> > gets managed automatically):
> >> >
> >> > - make sure you adapt the paper format so that your score fits into one
> >> > single page (see the \paper block in the original score.ly file)
> >> > - adapt the Javascript code in the index.tpl file (lines 80, 81, 82) to 
> >> > the
> >> > audio files you want to use (if any)
> >> >
> >> > Thanks for you interest! The tool is currently at an early stage of
> >> > development (more like a proof-of-concept actually). There's still quite 
> >> > a
> >> > lot of work to do :)
> >> >
> >> > Yours,
> >> >
> >> > Mathieu
> >> >
> >> >
> >> > Le 2015-11-29 20:10, David Bellows a écrit :
> >> >>
> >> >> This seems like it might be exceedingly cool, but I'm running into a
> >> >> problem. When running make-live-score.sh I get this:
> >> >>
> >> >> Drawing systems...
> >> >> Layout output to `score-page-1.svg'...
> >> >> Layout output to `score-page-2.svg'...
> >> >> Layout output to `score-page-3.svg'...
> >> >> Success: compilation successfully completed
> >> >> Adding #score id to  tag...
> >> >> sed: can't read score.svg: No such file or directory
> >> >> Injecting events timing data into score.svg...
> >> >> Traceback (most recent call last):
> >> >>   File "injector.py", line 6, in 
> >> >> svg = ET.parse("score.svg")
> >> >>   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in 
> >> >> parse
> >> >> tree.parse(source, parser)
> >> 

Re: NR 3.3.2: \tagGroup

2015-12-02 Thread Federico Bruni
Il giorno mer 2 dic 2015 alle 16:45, Federico Bruni 
 ha scritto:

In the following example commenting/uncommenting \tagGroup does not
change any behaviour.
What I'm missing?


\version "2.19.31"

music = \relative c'' {
  %\tagGroup #'(A B C D)
  \tag #'A { a4 a a a }
  \tag #'B { b4 b b b }
  \tag #'C { c4 c c c }
  \tag #'D { d4 d d d }
}

\new Staff {
  \keepWithTag #'A
  \music
}


Ok, I got it:

\version "2.19.31"

music = \relative c'' {
 \tagGroup #'(A B C)
 \tag #'A { a4 a a a }
 \tag #'B { b4 b b b }
 \tag #'C { c4 c c c }
 \tag #'D { d4 d d d }
}

\new Staff {
 \keepWithTag #'A
 \music
}

will print #'A and #'D but not #'B and #'C


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


Instrument names disappear when using \partcombine and grace notes.

2015-12-02 Thread thorne
Hi.  With the following example, the instrument name doesn't appear on
the rendered pdf on the second staff (the one that uses \partcombine).
I suspect it has something to do with the use of \grace in the notes,
because when I remove the grace notes the effect disappears.

I have done \grace {s16} in all the parts that don't have the grace
notes, because I have read that it is necessary when you are beginning
with a grace note or changing clefs. (The actual score I am working on
begins with a grace note in one instrument as here.

Am I doing something wrong?




\version "2.19.3"

catOne = {\grace {b'16} a'2 d'}
catTwo = {\grace {s16} c'2 b}
dogOne = {\grace {s16} a'2 b'}
dogTwo = {\grace {s16} c'2 d'}

\score {
  <<
\new Staff = "cats" {
  \set Staff.instrumentName = #"2 Cats"
   << \catOne \\ \catTwo >>
}

\new Staff = "dogs" {
  \set Staff.instrumentName = #"2 Dogs"
   \partcombine \dogOne \dogTwo
}
  >>
}


-- 
þ

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


Re: Instrument names disappear when using \partcombine and grace notes.

2015-12-02 Thread Jacques Menu
Harm,

Your examples displays both instrument names as of 2.19.32.

JM

> Le 2 déc. 2015 à 20:43, Thomas Morley  a écrit :
> 
> 2015-12-02 20:01 GMT+01:00 thorne :
>> Hi.  With the following example, the instrument name doesn't appear on
>> the rendered pdf on the second staff (the one that uses \partcombine).
>> I suspect it has something to do with the use of \grace in the notes,
>> because when I remove the grace notes the effect disappears.
>> 
>> I have done \grace {s16} in all the parts that don't have the grace
>> notes, because I have read that it is necessary when you are beginning
>> with a grace note or changing clefs. (The actual score I am working on
>> begins with a grace note in one instrument as here.
>> 
>> Am I doing something wrong?
>> 
>> 
>> 
>> 
>> \version "2.19.3"
>> 
>> catOne = {\grace {b'16} a'2 d'}
>> catTwo = {\grace {s16} c'2 b}
>> dogOne = {\grace {s16} a'2 b'}
>> dogTwo = {\grace {s16} c'2 d'}
>> 
>> \score {
>>  <<
>>\new Staff = "cats" {
>>  \set Staff.instrumentName = #"2 Cats"
>>   << \catOne \\ \catTwo >>
>>}
>> 
>>\new Staff = "dogs" {
>>  \set Staff.instrumentName = #"2 Dogs"
>>   \partcombine \dogOne \dogTwo
>>}
 
>> }
> 
> 
> 
> Can't confirm with 2.19.32
> Though, in general it's issue 34
> https://sourceforge.net/p/testlilyissues/issues/34/
> At least related.
> 
> Try:
> 
> \version "2.19.3"
> 
> catOne = {\grace {b'16} a'2 d'}
> catTwo = {\grace {s16} c'2 b}
> dogOne = {\grace {s16} a'2 b'}
> dogTwo = {\grace {s16} c'2 d'}
> 
> \score {
>  <<
>\new Staff = "cats"
>\with { instrumentName = #"2 Cats" }
>{
>   << \catOne \\ \catTwo >>
>}
> 
>\new Staff = "dogs"
>\with { instrumentName = #"2 Dogs" }
>{
>   \partcombine \dogOne \dogTwo
>}
>>> 
> }
> 
> IMHO, we should really get rid of advertising \set
> Staff.instrumentName = ... and go for \with { instrumentName = ... }
> everywhere.
> 
> 
> Cheers,
>  Harm
> 
> ___
> 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: Instrument names disappear when using \partcombine and grace notes.

2015-12-02 Thread Thomas Morley
2015-12-02 20:01 GMT+01:00 thorne :
> Hi.  With the following example, the instrument name doesn't appear on
> the rendered pdf on the second staff (the one that uses \partcombine).
> I suspect it has something to do with the use of \grace in the notes,
> because when I remove the grace notes the effect disappears.
>
> I have done \grace {s16} in all the parts that don't have the grace
> notes, because I have read that it is necessary when you are beginning
> with a grace note or changing clefs. (The actual score I am working on
> begins with a grace note in one instrument as here.
>
> Am I doing something wrong?
>
>
>
>
> \version "2.19.3"
>
> catOne = {\grace {b'16} a'2 d'}
> catTwo = {\grace {s16} c'2 b}
> dogOne = {\grace {s16} a'2 b'}
> dogTwo = {\grace {s16} c'2 d'}
>
> \score {
>   <<
> \new Staff = "cats" {
>   \set Staff.instrumentName = #"2 Cats"
><< \catOne \\ \catTwo >>
> }
>
> \new Staff = "dogs" {
>   \set Staff.instrumentName = #"2 Dogs"
>\partcombine \dogOne \dogTwo
> }
>   >>
> }



Can't confirm with 2.19.32
Though, in general it's issue 34
https://sourceforge.net/p/testlilyissues/issues/34/
At least related.

Try:

\version "2.19.3"

catOne = {\grace {b'16} a'2 d'}
catTwo = {\grace {s16} c'2 b}
dogOne = {\grace {s16} a'2 b'}
dogTwo = {\grace {s16} c'2 d'}

\score {
  <<
\new Staff = "cats"
\with { instrumentName = #"2 Cats" }
{
   << \catOne \\ \catTwo >>
}

\new Staff = "dogs"
\with { instrumentName = #"2 Dogs" }
{
   \partcombine \dogOne \dogTwo
}
  >>
}

IMHO, we should really get rid of advertising \set
Staff.instrumentName = ... and go for \with { instrumentName = ... }
everywhere.


Cheers,
  Harm

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


Re: Better slashed graces

2015-12-02 Thread Peter Bjuhr



On 2015-11-30 18:01, tisimst wrote:
I know that beamed grace notes don't /need/ a slash, so maybe there 
could be a hook to turn it on or off?




There already is \slashedGrace. But it doesn't work for multiple notes.

Best
Peter

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


Re: OCR to lilypond

2015-12-02 Thread Helge Kruse
2015-12-02 15:28 GMT+01:00 jerry :
> I find a  free online ocr   , it can
> recognize text from jpg, png, tiff, bmp and gif image.

Do you have lilypond code printed at paper that you want to scan?
As you wrote, this "Free Online OCR" recognizes text. It doesn't
recognizes score Elements.

Regards
Helge

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


Re: fingerings added to tabs?

2015-12-02 Thread David Kastrup
Blöchl Bernhard  writes:

> Thanks for the code.
> Just now I am on a PC with LP version 16.2 only.

That can be changed.  2.18 has been out for years.

> I am on a PC with version 19 some hours later. With version 16 I get
> errors with the 3 lines, red in
>
> \override Fingering.side-axis = #Y
> \override Fingering.outside-staff-priority = #200
> \relative c' {
>
> Messages (sorry, in German)
>
> /tmp/frescobaldi-xjZ9Dx/tmpiOk7H4/document.ly:10:23: Fehler: syntax
> error, unexpected '.', expecting SCM_FUNCTION or SCM_IDENTIFIER or
> SCM_TOKEN
> \override Fingering
>.side-axis = #Y
> /tmp/frescobaldi-xjZ9Dx/tmpiOk7H4/document.ly:11:4: Fehler: syntax
> error, unexpected \override

Sure.  The syntax was

  \override Fingering #'side-axis = #Y

in 2.16.

-- 
David Kastrup

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


Re: fingerings added to tabs?

2015-12-02 Thread David Kastrup
Thomas Morley  writes:

> Usually, a TabStaff _is_ the fingering, thus the confusion.

No.  The TabStaff tells me what fret to use on what string.  It does not
tell me which finger to use.
-- 
David Kastrup

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


Re: fingerings added to tabs?

2015-12-02 Thread David Kastrup
Blöchl Bernhard  writes:

> Am 01.12.2015 20:05, schrieb David Kastrup:
>> Blöchl Bernhard  writes:
>>
>>> Am 01.12.2015 18:55, schrieb David Kastrup:
 BB  writes:

 Exactly like the manual describes adding fingerings.

 It is irritating that they are not printed by default.  I'm not sure
 what the rationale for that is.
>>>
>>> I tried it this way, as the manual describes:
>>>
>>> %%%
>>> \new TabStaff \relative c' {
>>>   a,8 a'-2  a-2
>>>   d,8 a'-2  a-2
>>> }
>>> %%%
>>>
>>> What is wrong?
>>
>> Uh, the fingerings are not printed?  Are you confusing fret numbers
>> with
>> fingerings?  The fret numbers are calculated as 2 for your a' notes,
>> but
>> that has nothing whatsoever to do with the -2 fingering you add to the
>> notes.  You could write -4 and get the same result.
>
>
>> Are you confusing fret numbers with
>> fingerings?
> No I DO NOT!
> I have explained distictively what I expect and illustrated by an
> added example graphics.


You do realize that my posting at

contained an attached LilyPond example matching your scan?

-- 
David Kastrup

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


Re: accidentals for just intonation

2015-12-02 Thread ciconia
> Harry Partch writes music that tops out at the 13th overtone, but La Monte
Young has pieces with primes in the upper 300s.

How does Partch notate his music? If I remember correctly he does put ratios
over his notes, but I'm not sure how it works. As for La Monte Young - I
don't think any of his music that *is* notated uses any form of conventional
notation. Please correct me if I'm wrong.

Sharon



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/accidentals-for-just-intonation-tp184322p184393.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Introducing "LilyPond HTML Live Score"

2015-12-02 Thread David Bellows
Hey Mathieu

> I just updated the project's repository. I refactored and simplified a
lot of things.

A new problem. I'm able to successfully run the script on both your
example and my test file. But now whenever I open it up in a browser
(Firefox, Chrome, Rekonq) I get the message that I need to update my
Flash player. I'm running Kubuntu 15.10 and everything is up-to-date
but still no go.

The example you linked to at the head of this thread still works.

Dave Bellows


On Wed, Dec 2, 2015 at 8:09 AM, Mathieu Demange
 wrote:
> Hi David,
>
> I just updated the project's repository. I refactored and simplified a
> lot of things.
>
> There's now a single python script (make-live-score) which takes care of
> everything. Also, you don't need to edit your .ly file anymore.
>
> Please note that the script except audio files to be specified (at least
> one format) or it'll break the js part. This'll be fixed in the next
> release and will allow to have visual rhythmic feedback even with no
> sound played back.
>
> See the README.md file for details (and command usage, it has been
> reworked).
>
> Please tell me how it goes now.
>
> Cheers,
>
> Mathieu
>
> Le lundi 30 novembre 2015 à 16:27 -0800, David Bellows a écrit :
>> > The jPlayer plugin for jQuery excepts (if possible) two audio formats :
>> > Ogg Vorbis (.ogg) and AAC (.m4a). Please make sure you have your audio
>> > source file converted into those two formats.
>>
>> Hey Mathieu,
>>
>> So here is my Lilypond test file.
>>
>> \include "live-score.ily"
>> \score{
>>   {c e g c'}
>>   \layout {}
>>   \midi {}
>> }
>>
>> I then convert that to an ogg file with Timidity:
>>
>> timidity -Ov score.midi
>>
>> If I run make-live-score.sh as is then I get the score in index.html
>> but no sound or animation.
>>
>> If I comment out line 81, the m4a part, then I get the score and the
>> sound but no animation.
>>
>> I'm using Lilypond 2.19.32
>>
>> On Mon, Nov 30, 2015 at 1:52 AM, Mathieu Demange
>>  wrote:
>> > Hi David,
>> >
>> > The jPlayer plugin for jQuery excepts (if possible) two audio formats :
>> > Ogg Vorbis (.ogg) and AAC (.m4a). Please make sure you have your audio
>> > source file converted into those two formats.
>> >
>> > I'll update the make-live-script.sh file today so it can accept command
>> > line arguments to specify the .ly source file and the audio files (if
>> > any).
>> >
>> > I'll urge myself to write some documentation too!
>> >
>> > Yours,
>> >
>> > Mathieu
>> >
>> >
>> > Le dimanche 29 novembre 2015 à 13:15 -0800, David Bellows a écrit :
>> >> > Ow! That's because I clearly didn't except anyone to try the script 
>> >> > that quick :D
>> >>
>> >> Ha! I've been looking for something like this for a while. There's
>> >> another out there but I've had no luck getting it working and I think
>> >> it's been abandoned.
>> >>
>> >> > - make sure you adapt the paper format so that your score fits into one 
>> >> > single page (see the \paper block in the original score.ly file)
>> >> > - adapt the Javascript code in the index.tpl file (lines 80, 81, 82) to 
>> >> > the audio files you want to use (if any)
>> >>
>> >> Ok, I switched to a score that uses only one page.
>> >>
>> >> I changed line 80 to reflect the name of the piece ("name").
>> >> I changed line 82 to point to the correct ogg file ("name.ogg").
>> >> I'm not sure what to do with line 81:
>> >>A) If I change it to "name.m4a" then everything seems to compile
>> >> and the score is shown in index.html but there's no sound or
>> >> animation.
>> >>B) If I comment out that line then I get the score and the music
>> >> but no animation. So close!
>> >>
>> >> So I'm almost there!
>> >>
>> >> And I would very much like to include this in a super huge project I'm
>> >> working once it reaches maturity and to that end I'll help out
>> >> wherever I can (though I'm not much of a programmer).
>> >>
>> >> Thanks!
>> >> Dave
>> >>
>> >> On Sun, Nov 29, 2015 at 12:03 PM, Mathieu Demange
>> >>  wrote:
>> >> > Ow! That's because I clearly didn't except anyone to try the script that
>> >> > quick :D It's not fail-proof, yet, but here are some hints (before all 
>> >> > this
>> >> > gets managed automatically):
>> >> >
>> >> > - make sure you adapt the paper format so that your score fits into one
>> >> > single page (see the \paper block in the original score.ly file)
>> >> > - adapt the Javascript code in the index.tpl file (lines 80, 81, 82) to 
>> >> > the
>> >> > audio files you want to use (if any)
>> >> >
>> >> > Thanks for you interest! The tool is currently at an early stage of
>> >> > development (more like a proof-of-concept actually). There's still 
>> >> > quite a
>> >> > lot of work to do :)
>> >> >
>> >> > Yours,
>> >> >
>> >> > Mathieu
>> >> >
>> >> >
>> >> > Le 2015-11-29 20:10, David Bellows a écrit :
>> >> >>
>> >> >> This seems like it might be exceedingly cool, but I'm running into a
>> >> 

Re: Introducing "LilyPond HTML Live Score"

2015-12-02 Thread Mathieu Demange

Hi David,

Can you send me the generated HTML output file ? If you see such a 
message, this means that the JavaScript code contains errors. I'll fix 
that if I can see your file.


Thanks,

Mathieu

Le 2015-12-02 22:35, David Bellows a écrit :

Hey Mathieu

I just updated the project's repository. I refactored and simplified 
a

lot of things.

A new problem. I'm able to successfully run the script on both your
example and my test file. But now whenever I open it up in a browser
(Firefox, Chrome, Rekonq) I get the message that I need to update my
Flash player. I'm running Kubuntu 15.10 and everything is up-to-date
but still no go.

The example you linked to at the head of this thread still works.

Dave Bellows


On Wed, Dec 2, 2015 at 8:09 AM, Mathieu Demange
 wrote:

Hi David,

I just updated the project's repository. I refactored and simplified 
a

lot of things.

There's now a single python script (make-live-score) which takes care 
of

everything. Also, you don't need to edit your .ly file anymore.

Please note that the script except audio files to be specified (at 
least

one format) or it'll break the js part. This'll be fixed in the next
release and will allow to have visual rhythmic feedback even with no
sound played back.

See the README.md file for details (and command usage, it has been
reworked).

Please tell me how it goes now.

Cheers,

Mathieu

Le lundi 30 novembre 2015 à 16:27 -0800, David Bellows a écrit :
The jPlayer plugin for jQuery excepts (if possible) two audio 
formats :
Ogg Vorbis (.ogg) and AAC (.m4a). Please make sure you have your 
audio

source file converted into those two formats.


Hey Mathieu,

So here is my Lilypond test file.

\include "live-score.ily"
\score{
  {c e g c'}
  \layout {}
  \midi {}
}

I then convert that to an ogg file with Timidity:

timidity -Ov score.midi

If I run make-live-score.sh as is then I get the score in index.html
but no sound or animation.

If I comment out line 81, the m4a part, then I get the score and the
sound but no animation.

I'm using Lilypond 2.19.32

On Mon, Nov 30, 2015 at 1:52 AM, Mathieu Demange
 wrote:

Hi David,

The jPlayer plugin for jQuery excepts (if possible) two audio 
formats :
Ogg Vorbis (.ogg) and AAC (.m4a). Please make sure you have your 
audio

source file converted into those two formats.

I'll update the make-live-script.sh file today so it can accept 
command
line arguments to specify the .ly source file and the audio files 
(if

any).

I'll urge myself to write some documentation too!

Yours,

Mathieu


Le dimanche 29 novembre 2015 à 13:15 -0800, David Bellows a écrit :
Ow! That's because I clearly didn't except anyone to try the 
script that quick :D


Ha! I've been looking for something like this for a while. There's
another out there but I've had no luck getting it working and I 
think

it's been abandoned.

- make sure you adapt the paper format so that your score fits 
into one single page (see the \paper block in the original 
score.ly file)
- adapt the Javascript code in the index.tpl file (lines 80, 81, 
82) to the audio files you want to use (if any)


Ok, I switched to a score that uses only one page.

I changed line 80 to reflect the name of the piece ("name").
I changed line 82 to point to the correct ogg file ("name.ogg").
I'm not sure what to do with line 81:
   A) If I change it to "name.m4a" then everything seems to 
compile

and the score is shown in index.html but there's no sound or
animation.
   B) If I comment out that line then I get the score and the 
music

but no animation. So close!

So I'm almost there!

And I would very much like to include this in a super huge project 
I'm

working once it reaches maturity and to that end I'll help out
wherever I can (though I'm not much of a programmer).

Thanks!
Dave

On Sun, Nov 29, 2015 at 12:03 PM, Mathieu Demange
 wrote:
Ow! That's because I clearly didn't except anyone to try the 
script that
quick :D It's not fail-proof, yet, but here are some hints 
(before all this

gets managed automatically):

- make sure you adapt the paper format so that your score fits 
into one

single page (see the \paper block in the original score.ly file)
- adapt the Javascript code in the index.tpl file (lines 80, 81, 
82) to the

audio files you want to use (if any)

Thanks for you interest! The tool is currently at an early stage 
of
development (more like a proof-of-concept actually). There's 
still quite a

lot of work to do :)

Yours,

Mathieu


Le 2015-11-29 20:10, David Bellows a écrit :


This seems like it might be exceedingly cool, but I'm running 
into a

problem. When running make-live-score.sh I get this:

Drawing systems...
Layout output to `score-page-1.svg'...
Layout output to `score-page-2.svg'...
Layout output to `score-page-3.svg'...
Success: compilation successfully completed
Adding #score id to  tag...
sed: can't read score.svg: No such file or directory

Re: Introducing "LilyPond HTML Live Score"

2015-12-02 Thread MarcM
This looks really nice. It would nicely complement http://lilybin.com/



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Introducing-LilyPond-HTML-Live-Score-tp184247p184394.html
Sent from the User mailing list archive at Nabble.com.

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


Can \barNumberCheck be set to error?

2015-12-02 Thread thorne
I am just wondering if there is any way to set only \barNumberCheck to
generate an error instead of a warning.

I am using a Makefile to handle a project.  I am using \barNumberCheck
on every bar on every part.  It is convenient to have Lilypond error
any time a bar number check fails so that the render fails and I know
right away.

I tried doing -dwarning-as-error, which works, but then makes the
render fail any time anything generates a warning, which is probably
not something I can have.

Or, is there a better approach in general?

-- 
þ

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


Re: Can \barNumberCheck be set to error?

2015-12-02 Thread David Kastrup
thorne  writes:

> I am just wondering if there is any way to set only \barNumberCheck to
> generate an error instead of a warning.
>
> I am using a Makefile to handle a project.  I am using \barNumberCheck
> on every bar on every part.  It is convenient to have Lilypond error
> any time a bar number check fails so that the render fails and I know
> right away.
>
> I tried doing -dwarning-as-error, which works, but then makes the
> render fail any time anything generates a warning, which is probably
> not something I can have.
>
> Or, is there a better approach in general?

\barNumberCheck is defined in ly/music-functions-init.ly.  It's less
than a dozen lines.  Just copy that definition and replace the call to
ly:input-warning with something else.

-- 
David Kastrup

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


Re: Vertically centering a song text.

2015-12-02 Thread David Kastrup
tisimst  writes:

> \skip in the Lyrics context is necessary for skipping beats without
> creating a melisma (which can be manually created with a single underscore
> for each beat in the melisma). I'm not sure why it's insensitive to the
> number after it. I have wondered the same thing, but that's the way it
> works at the moment.

Because the whole point of \addlyrics/\lyricsto is to ignore durations
and instead take items one-by-one irrespective of their length?

> Outside the Lyrics context in normal note entry, it is sensitive to
> the number.

You can write Lyrics perfectly well without \addlyrics/\lyricsto and
durations both of syllables and skips and other musical material will be
heeded.

-- 
David Kastrup

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


Re: Vertically centering a song text.

2015-12-02 Thread tisimst
Bill,

On Wednesday, December 2, 2015, William Marchant [via Lilypond] <
ml-node+s1069038n184395...@n5.nabble.com> wrote:

> In the example snippet quoted below, there is a line:
> skipFour = \repeat unfold 4 { \skip 8 }
>
> I have found this useful on its own, and have saved it for future use.
> The { \skip 8 } part has me baffled.   What does it do?  I have changed
> the number to 4, or 16 but there is no perceptible difference in its
> operation.  Yet, if I remove it, the snippet does not work. Can someone
> explain its function?
> Bill
>
> On 15-12-02 07:02 AM, Robin Bannister wrote:
>
> > Robert Blackstone wrote:
> >
> >> How can I shift the lyrics of the second part vertically
> > > so that it is centered with respect to the first part
> >
> > LSR503 shows one way of doing this:
> > http://lsr.di.unimi.it/LSR/Item?id=503
> >
> > I use Y-offset instead of extra-offset
> >
> >
> > Cheers,
> > Robin
> >
>

\skip in the Lyrics context is necessary for skipping beats without
creating a melisma (which can be manually created with a single underscore
for each beat in the melisma). I'm not sure why it's insensitive to the
number after it. I have wondered the same thing, but that's the way it
works at the moment. Outside the Lyrics context in normal note entry, it is
sensitive to the number. So, doing something like

\repeat unfold 6 { \skip 4 }

is usually the quickest way to jump more than a couple of beats when you
don't want to attach any lyrics to notes.

On a related, but side, note, I wrote a post a while back about a way
to deal with vertically centering lyrics with the help of a music function.
Anyway, it may be helpful to someone:

http://leighverlag.blogspot.com/2014/11/vertically-centering-lyrics.html

Best,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Vertically-centering-a-song-text-tp184375p184396.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Instrument names disappear when using \partcombine and grace notes.

2015-12-02 Thread thorne
Thank you, sir.  The "\with" construct seems to have fixed it.

On Wed, Dec 2, 2015 at 12:43 PM, Thomas Morley  wrote:
> 2015-12-02 20:01 GMT+01:00 thorne :
>> Hi.  With the following example, the instrument name doesn't appear on
>> the rendered pdf on the second staff (the one that uses \partcombine).
>> I suspect it has something to do with the use of \grace in the notes,
>> because when I remove the grace notes the effect disappears.
>>
>> I have done \grace {s16} in all the parts that don't have the grace
>> notes, because I have read that it is necessary when you are beginning
>> with a grace note or changing clefs. (The actual score I am working on
>> begins with a grace note in one instrument as here.
>>
>> Am I doing something wrong?
>>
>>
>>
>>
>> \version "2.19.3"
>>
>> catOne = {\grace {b'16} a'2 d'}
>> catTwo = {\grace {s16} c'2 b}
>> dogOne = {\grace {s16} a'2 b'}
>> dogTwo = {\grace {s16} c'2 d'}
>>
>> \score {
>>   <<
>> \new Staff = "cats" {
>>   \set Staff.instrumentName = #"2 Cats"
>><< \catOne \\ \catTwo >>
>> }
>>
>> \new Staff = "dogs" {
>>   \set Staff.instrumentName = #"2 Dogs"
>>\partcombine \dogOne \dogTwo
>> }
>>   >>
>> }
>
>
>
> Can't confirm with 2.19.32
> Though, in general it's issue 34
> https://sourceforge.net/p/testlilyissues/issues/34/
> At least related.
>
> Try:
>
> \version "2.19.3"
>
> catOne = {\grace {b'16} a'2 d'}
> catTwo = {\grace {s16} c'2 b}
> dogOne = {\grace {s16} a'2 b'}
> dogTwo = {\grace {s16} c'2 d'}
>
> \score {
>   <<
> \new Staff = "cats"
> \with { instrumentName = #"2 Cats" }
> {
><< \catOne \\ \catTwo >>
> }
>
> \new Staff = "dogs"
> \with { instrumentName = #"2 Dogs" }
> {
>\partcombine \dogOne \dogTwo
> }
>   >>
> }
>
> IMHO, we should really get rid of advertising \set
> Staff.instrumentName = ... and go for \with { instrumentName = ... }
> everywhere.
>
>
> Cheers,
>   Harm



-- 
þ

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


Re: fingerings added to tabs?

2015-12-02 Thread BB

Many thanks for all taht helped!

Indeed with LP version 2.19 the code works without any problems. I tried 
with


version 2.18 and it works as well. (Sorry with 2.16, it is on an old 
machine of my friend at another place I normally do not use for working 
with LP.)



The result with newe LP version is as I desired. Many thanks again!


On 02.12.2015 09:24, David Kastrup wrote:

Blöchl Bernhard  writes:


Thanks for the code.
Just now I am on a PC with LP version 16.2 only.

That can be changed.  2.18 has been out for years.


I am on a PC with version 19 some hours later. With version 16 I get
errors with the 3 lines, red in

 \override Fingering.side-axis = #Y
 \override Fingering.outside-staff-priority = #200
\relative c' {

Messages (sorry, in German)

/tmp/frescobaldi-xjZ9Dx/tmpiOk7H4/document.ly:10:23: Fehler: syntax
error, unexpected '.', expecting SCM_FUNCTION or SCM_IDENTIFIER or
SCM_TOKEN
 \override Fingering
.side-axis = #Y
/tmp/frescobaldi-xjZ9Dx/tmpiOk7H4/document.ly:11:4: Fehler: syntax
error, unexpected \override

Sure.  The syntax was

   \override Fingering #'side-axis = #Y

in 2.16.



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


Re: Vertically centering a song text.

2015-12-02 Thread Robin Bannister

Robert Blackstone wrote:


How can I shift the lyrics of the second part vertically

> so that it is centered with respect to the first part

LSR503 shows one way of doing this:
http://lsr.di.unimi.it/LSR/Item?id=503

I use Y-offset instead of extra-offset


Cheers,
Robin

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


RE: Kneed beams and changes of staff

2015-12-02 Thread Gilberto Agostinho
One more thing: this problem is related to the kneed beams behaviour only and
is not affected by changes of staff or \autochange, see:

\autochange {
  \override Score.Beam.auto-knee-gap = #3
  \tuplet 5/4 {g''32[e'' g''64 d a,32 gis]}
}

{
  \override Score.Beam.auto-knee-gap = #1
  \tuplet 5/4 {g''32[e'' g''64 d a,32 gis]}
}

producing the same beam structure:
 



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Kneed-beams-and-changes-of-staff-tp184339p184378.html
Sent from the User mailing list archive at Nabble.com.

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


Vertically centering a song text.

2015-12-02 Thread Robert Blackstone
Dear List,

Could anybody help me (a newby) with the following issue:

I am setting a song, vocal line and keyboard, with two sections, the first of 
which has two verses, the second only one, as in the ME, copied, and slightly 
modified, from 
http://www.lilypond.org/doc/v2.18/Documentation/notation/techniques-specific-to-lyrics
  

%%%\score {
  <<
\new Staff {
  \new Voice = "melody" {
\relative {
   
  \repeat volta 2 { b'4 b b b }
   \repeat volta 2 {a4 a a a }
}
  }
}
\new Lyrics \lyricsto "melody" {
 <<
{ The first time words. }
\new Lyrics {
  \set associatedVoice = "melody"
  Sec -- ond time words.
}
  >>
  O- ther Ly- rics.
}
  >>
}
%

How can I shift the lyrics of the second part vertically so that it is centered 
with respect to the first part, instead of  being in line with "The first time 
words".

Thanks in advance.

Best regards,
Robert Blackstone___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: fingerings added to tabs?

2015-12-02 Thread Noeck
Hi Bernhard,

Am 02.12.2015 um 08:54 schrieb Blöchl Bernhard:
> Thanks for the code.
> Just now I am on a PC with LP version 16.2 only. I am on a PC with
> version 19 some hours later. With version 16 I get errors with the 3
> lines, red in
> 
> \override Fingering.side-axis = #Y
> \override Fingering.outside-staff-priority = #200

It might be sufficient to use the old #' syntax instead of the dots:

\override Fingering #'side-axis = #Y
\override Fingering #'outside-staff-priority = #200

To me the output looks very much like what I think you are looking for.

Cheers,
Joram

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


RE: Kneed beams and changes of staff

2015-12-02 Thread Gilberto Agostinho
Mark Stephen Mrotek wrote
> A rather tedious, yet precise method, is:
> 
> \once \set stemRightBeamCount = #x
> \once \set stemLeftBeamCount = #x

One one more thing, this method actually does not work. Think like this: the
problem isn't the number of beams for each note (these are correct) but
their overall positions.

E.g., both codes below produce identical scores:

\autochange {
  \override Score.Beam.auto-knee-gap = #3
  \tuplet 5/4 {g''32[e'' g''64 d a,32 gis]}
}

\autochange {
  \override Score.Beam.auto-knee-gap = #3
  \tuplet 5/4 {
g''32[e'' 
\once \set stemLeftBeamCount = #3
\once \set stemRightBeamCount = #4
g''64 
\once \set stemLeftBeamCount = #4
\once \set stemRightBeamCount = #3
d a,32 gis]
  }
}




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Kneed-beams-and-changes-of-staff-tp184339p184379.html
Sent from the User mailing list archive at Nabble.com.

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


Re: accidentals for just intonation

2015-12-02 Thread Graham Breed

From: "N. Andrew Walsh"
To: lilypond-user



If you've been watching the OpenLilyLib repository, you'll see that Urs has
been working on a set of tools for rendering music in just intonation. He
(quite modestly) says that it isn't ready for production, but there are
already some impressive things it can do: for one, the interface allows to
input a fraction and get back a nearest-semitone pitch with a deviation in
cents*automatically*, which is something the commercial programs don't
offer in any way (every composer I know who works with JI just inputs text
entries manually for every note, with no change in, for example, MIDI
output for ability to handle transpositions).


I haven't been watching that ... I don't know what it is.  But it sounds 
similar to my Sagittal support.  Latest code here, works for me but 
something broken on Windows:


https://bitbucket.org/x31eq/microlily

It's possible to turn off the Sagittal accidentals to get output using 
standard accidentals, given essentially the AFMM output.  I don't 
remember if I ever got that working though.  You have to specify the 
staff position as well as the ratio.



I'd like to be able to put these into Lily, and Urs tells me it can be done
by calling a draw function to draw a path. I can relatively easily make up
some paths with Inkscape and save them as SVGs, but is there a better way
to do this? The NR describes (here:
http://lilypond.org/doc/v2.19/Documentation/notation/formatting-text#graphic-notation-inside-markup)
the means to include eps files into a markup, which presumably could be
used to replace the accidental.

There are some potential complicating factors here. First, the accidentals
I use change depending on the prime factorization of the ratio involved:
for example, the ratio 9/8 (a type of whole tone) would comprise two of the
symbol for 3 (because "9/8" is really "(3*3)/8" ), which means that Urs'
interface for JI ratios would need an add-on to do prime factorization of
the ratios (which is also computationally intensive, even for relatively
simple numbers) or a means to encode ratios as lists of primes that are
then calculated to return the value in cents (that is, do the process in
reverse, starting from "(3*3)/8" and getting 9/8, which might be easier to
do).


I've thought about this with respect to the Extended Helmholtz-JI 
notation, for which there are already fonts that would work with my 
system.  Generating accidentals from pitches is problematic, and would 
really mean generating your gamut in advance, with some implied equal 
temperament that doesn't give any ambiguity, and the accidentals would 
disappear if you exceed that gamut.


Another idea is for commands to add the accidental glyphs, and also do 
the correct pitch shift.  I think this was prototyped without the pitch 
shifting (so ignoring MIDI output) before I implemented my Sagittal 
approach.  Where it's problematic to get tuning and display working 
together, you can define separate functions for the "midi" and "score" 
blocks.


Another idea I had, though, is to shove annotations into the list 
describing each note.  (I think the new parser makes this easier than it 
used to be, because each note in a chord is a list.)  You can then run a 
function over the whole music block to strip out the annotations, set 
the pitch, and override the accidental.  You can also apply different 
functions to the same music block in the midi and score blocks to make 
that approach easier.  I did a proof of concept of this, which I can't 
find now, but I haven't followed it up.



The advantage here, though, would be this: one of the interesting things
about just intonation is that there is no theoretical limit to what kinds
of ratios you use. You could theoretically have unique signs for all the
primes you want, and then the draw function could build them on the fly.
The accidentals become modular, scaling to whatever level of complexity the
composer wants. Harry Partch writes music that tops out at the 13th
overtone, but La Monte Young has pieces with primes in the upper 300s.


You can also make a font with a fixed level of complexity, and it will 
be easier to get working for now.  An issue with drawing the glyphs in 
is that you have to be sure to inform LilyPond of the correct amount of 
space to allow for them.


You could also look at the Extended Helmholtz-Ellis JI set, where the 
advantage is that the font already exists.  It's on this page, along 
with some PDFs explaining it:


http://www.marcsabat.com/


So, List: this is, as I said, a somewhat long-term project, but would any
of you be willing to help me learn/do the programming necessary to develop
a system like this? I also have in mind a more general add-on to the OLL
just-intonation library: I'd like to see a set of different .ily files,
each with different sets of accidentals, which a composer could \include
into the score as needed. For example, I could 

Re: Vertically centering a song text.

2015-12-02 Thread William Marchant

In the example snippet quoted below, there is a line:
skipFour = \repeat unfold 4 { \skip 8 }

I have found this useful on its own, and have saved it for future use.  
The { \skip 8 } part has me baffled.   What does it do?  I have changed 
the number to 4, or 16 but there is no perceptible difference in its 
operation.  Yet, if I remove it, the snippet does not work. Can someone 
explain its function?

Bill

On 15-12-02 07:02 AM, Robin Bannister wrote:

Robert Blackstone wrote:


How can I shift the lyrics of the second part vertically

> so that it is centered with respect to the first part

LSR503 shows one way of doing this:
http://lsr.di.unimi.it/LSR/Item?id=503

I use Y-offset instead of extra-offset


Cheers,
Robin

___
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