Re: Header title problem or convert-ly problem

2009-06-30 Thread -Eluze

one more argument for the easy way to convert-ly 9'999 files (all with the
same content):

  convert-ly -e typ2*.ly  --  36 sec.
  FOR %%x IN (typ1*.ly) DO convert-ly -e %%x  -- 35 minutes

btw i realized that convert-ly always (?) makes a backup - at least on
windows - of the original file (called ….ly~) - i did never see any note
about this very nice behaviour in the docs! can you confirm it does, so i
can rely on it?!

and finally I saw in the docs (AU):

  -e,--edit
Do an inline edit of the input file. Overrides --output

which is a bit confusing since the output option does not seem to exist!




-- 
View this message in context: 
http://www.nabble.com/Re%3A-Header-title-problem-or-convert-ly-problem-tp24210674p24275637.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: Header title problem or convert-ly problem

2009-06-30 Thread Trevor Daniels


Eluze wrote Tuesday, June 30, 2009 5:55 PM

one more argument for the easy way to convert-ly 9'999 files 
(all with the

same content):

 convert-ly -e typ2*.ly  --  36 
sec.

 FOR %%x IN (typ1*.ly) DO convert-ly -e %%x  -- 35 minutes

btw i realized that convert-ly always (?) makes a backup - at 
least on
windows - of the original file (called ….ly~) - i did never see 
any note
about this very nice behaviour in the docs! can you confirm it 
does, so i

can rely on it?!


I believe so.  I already changed to docs (AU) to say this.  You can 
see all

my changes in the AU on the kainhofer server.


and finally I saw in the docs (AU):

-e,--edit
   Do an inline edit of the input file. Overrides --output

which is a bit confusing since the output option does not seem to 
exist!


Right.  This I also changed some days ago.

Trevor




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


Re: Header title problem or convert-ly problem

2009-06-29 Thread Trevor Daniels


Eluze wrote Monday, June 29, 2009 12:19 AM


Mats Bengtsson-4 wrote:



There already is an example in the manual showing the use of *.
I think that is probably sufficient.
Yes, but it uses a for ... in ... do syntax that only works in 
BASH,


there is a similar syntax in batch processing for windows: for  %x 
in (*.ly)

DO convert-ly -e %x
and you could use the option for /R  … to include subfolders!


whereas
convert-ly -e *.ly
works in all OS:s that I know of.
The main reason to include the more complicated version in the 
manual is
that convert-ly -e *.ly may fail in situations where you have a 
large
number of files in the same directory, since then the expanded 
command

line may get too long. However, this is such a rare case

i just (successfully) run convert-ly -e *.ly in a folder with more 
than
100'000 .ly files… - probably the ram (i had 4GB) determines how 
many files

can be processed!
altogether i would suggest to simply recommend convert-ly -e *.ly 
in the

docs


OK, thanks, both.  I've made further changes to include these 
suggestions.


Graham, I know the AU is scheduled to be hacked, but it's easier and
more efficient to get these changes into the docs as they are being
discussed, rather than having to fish out all the emails later and
re-familiarise yourself with them.  The changed text will still be 
valid

and useful.

Trevor



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


Re: Header title problem or convert-ly problem

2009-06-28 Thread -Eluze


Mats Bengtsson-4 wrote:
 
 There already is an example in the manual showing the use of *.
 I think that is probably sufficient.
 Yes, but it uses a for ... in ... do syntax that only works in BASH, 
 
there is a similar syntax in batch processing for windows: for  %x in (*.ly)
DO convert-ly -e %x
and you could use the option for /R  … to include subfolders!



 whereas
 convert-ly -e *.ly
 works in all OS:s that I know of.
 The main reason to include the more complicated version in the manual is 
 that convert-ly -e *.ly may fail in situations where you have a large 
 number of files in the same directory, since then the expanded command 
 line may get too long. However, this is such a rare case 
 
i just (successfully) run convert-ly -e *.ly in a folder with more than
100'000 .ly files… - probably the ram (i had 4GB) determines how many files
can be processed!

altogether i would suggest to simply recommend convert-ly -e *.ly in the
docs

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Header-title-problem-or-convert-ly-problem-tp24210674p24246527.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: Header title problem or convert-ly problem

2009-06-27 Thread Mats Bengtsson

Trevor Daniels wrote:


Eluze wrote Friday, June 26, 2009 7:19 PM


Trevor Daniels wrote:

maybe it should be added in the docs:


I'll do that.  I'll also fix the documentation
to avoid misleading people in the Jay was misled.


i think the whole issue comes from the two lines 279  280 in 
convert-ly.py:

   opt_parser = get_option_parser()
   (options, args) = opt_parser.parse_args ()
which return the filename split at each blank if it is not enclosed in
triple quotes.
you can verify this by printing these arguments:
 print (options, args)

these two lines also appear in the other converting routines (midi2ly,
musicxml2ly, abc2ly, etf2ly) and i have verified that midi2ly also works
when using triple double quotes!

i don't know if anybody could change the behaviour of this routine…?!


Probably not.  Splitting at spaces is how the args are parsed.
Yes, but it's also standard convention that it's possible to specify 
arguments with spaces in them, by enclosing them in quotes and the 
problem here is that this information is lost along the way within the 
script.



finally IMO it's worth to mention that calling these routines with a
wildcard is also working (as long as no blank is involved in your 
calling

statement):
 convert-ly -e *.ly
 convert-ly -e myfiles*.ly

this will convert all corresponding .ly files, even if they have 
blanks in

their name!


There already is an example in the manual showing the use of *.
I think that is probably sufficient.
Yes, but it uses a for ... in ... do syntax that only works in BASH, 
whereas

convert-ly -e *.ly
works in all OS:s that I know of.
The main reason to include the more complicated version in the manual is 
that convert-ly -e *.ly may fail in situations where you have a large 
number of files in the same directory, since then the expanded command 
line may get too long. However, this is such a rare case that I find it 
questionable to include in the manual (at least to have it as the only 
option for *.ly).


   /Mats


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


Re: Header title problem or convert-ly problem

2009-06-26 Thread Trevor Daniels


Eluze wrote Friday, June 26, 2009 5:47 AM


Trevor Daniels wrote:


 If
the path to the file contains spaces you'll need to surround the
full path
with double quotes.

i just found that triple double quotes are needed: 
convert-ly.py -e my

file.ly
this works for me in windows vista


That's amazing, but you're right.  Single double quotes
don't work around file names in Command Prompt; neither
do double double quotes; but triple double quotes do!


maybe it should be added in the docs:
http://lilypond.org/doc/v2.13/Documentation/user/lilypond-program-big-page#Updating-files-with-convert_002dly


I'll do that.  I'll also fix the documentation
to avoid misleading people in the Jay was misled.

Trevor




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


Re: Header title problem or convert-ly problem

2009-06-26 Thread Mats Bengtsson



Trevor Daniels wrote:



maybe it should be added in the docs:
http://lilypond.org/doc/v2.13/Documentation/user/lilypond-program-big-page#Updating-files-with-convert_002dly 



I'll do that.  I'll also fix the documentation
to avoid misleading people in the Jay was misled.
My proposal is to change in 
http://lilypond.org/doc/v2.13/Documentation/user/lilypond-program-big-page#Command-line-options-for-convert_002dly

so that the first examples show a concrete example like

convert-ly --from=2.10.5 --no-version *.itely

since it's far from obvious exactly what syntax to use for a flag like 
--from, unless you are used to working with GNU programs from the 
command line. (For example, it's not very intuitive that you cannot 
include a space like

convert-ly --from= 2.10.5
whereas it works perfectly well to use the syntax
convert-ly -f 2.10.5
as well as
convert-ly -f2.10.5

In this first example, I also do not see any reason to use the --to flag.
On the other hand, the second example could include both the --from and 
--to flags and again I propose to

include some concrete examples of version numbers.

However, these --from and --to flags should perhaps not be advertised 
too much, since they should almost never be needed by a normal user who 
has ordinary .ly files with a \version statement in them. You may want 
to move them to the end of the list of examples.



I also spotted an incomplete sentence the last line above 3.4.1 and I 
don't really understand what it should say. If you use the -e flag, the 
old version of the file will be saved with suffix .ly~, which should be 
explained either directly in 3.4 or in the documentation of the -e flag. 
is the .NEW suffix something that the MacOS menu command does, or is it 
just a misunderstanding that has made it into the documentation?


   /Mats


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


Re: Header title problem or convert-ly problem

2009-06-26 Thread Mats Bengtsson

I don't see any reason why you would need the --to or --from flags, though.

   /Mats

Jay Hamilton wrote:

Carl- Really clear instructions and finally I got it to work. whew!
Thank you.
Jay

On Thu, Jun 25, 2009 at 2:58 PM, Carl D. Sorensen c_soren...@byu.edu 
mailto:c_soren...@byu.edu wrote:





On 6/25/09 2:37 PM, Jay Hamilton jay...@linuxquestions.net
mailto:jay...@linuxquestions.net wrote:

 A: I have tried over and over to follow the docs.  AND I have
copy and pasted
 both Mats suggestions and now Simon's .
 Mats has never worked.  Yes the version info is in the file.  No
it did not
 work.
 Simon's suggestion, I renamed the file without the space and in
fact after
 that copy/pasted his version into run and it can't find
convert-ly so I
 browsed to my applications file (on my desktop which is where I
install lily
 from) and convert-ly flashes and there is no new version or file
that I can
 find anywhere and the problem continues to exist.

 So I need more hints as either
 1] how to change the header so it works the way it did in 2.10
 or
 2] how to get convert-ly to work on my machine.
 Thanks

Go to Start menu, select Run.., and type cmd in the box.

This will open a command window.

Then change directory to the directory containing your .ly file.
 You change
directory with the cd command.  It's hard to give you exact
instructions,
because I don't know where things are.

But to use the cd command, you type

cd c:\Documents and Settings\Frybyte\Desktop\Hamilton\


You'll know you're in the right directory when you type

dir

and you can see your .ly file in the resulting list.


Then you want to type

convert-ly

which should give you a help message about convert-ly.

Then you will type

convert-ly --from=2.10.25 --to=2.12.2 my template.ly
http://template.ly  template2.12.2.ly http://template2.12.2.ly

That should make it work.

You may also be able to make it work by typing in the run box
under the
start menu

convert-ly --from=2.10.25 --to=2.12.2 C:\Documents and
Settings\Frybyte\Desktop\Hamilton\mytemplate.ly
http://mytemplate.ly  C:\Documents and
Settings\Frybyte\Desktop\Hamilton\mytemplate-new.ly
http://mytemplate-new.ly

The format of a convert-ly command is

convert-ly --from=FROM-VERSION --to=TO-VERSION FROM-FILE-NAME 
TO-FILE-NAME

The command you typed in was not in this format, if what you
reported below
is correct.

HTH,

Carl



 Unfortunately, I have never been able to get convert-ly to
work.  It's
 mostly my computer ignorance.  My files don't seem to be in
simple places
 and I never get the parameters correct.
 so I have the file in C:\Documents and
Settings\Frybyte\Desktop\Hamilton
 it's called
 my template.ly http://template.ly
 it's version 2.10.25
 I just tried to follow the instructions from the docs here's
what I think
 it says to do in run under xp
 convert-ly --from C:\Documents and
Settings\Frybyte\Desktop\Hamilton\
 mytemplate.ly http://mytemplate.ly\version 2.10.25 --to
C:\Documents and
 Settings\Frybyte\Desktop\Hamilton\my template.ly
http://template.ly version 2.12.2
 That didn't work so what am I not understanding?






--
Jay Hamilton Sound and Silence www.soundand.com 
http://www.soundand.com 206-328-7694



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


--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: mats.bengts...@ee.kth.se
WWW: http://www.s3.kth.se/~mabe
=



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


Re: Header title problem or convert-ly problem

2009-06-26 Thread Trevor Daniels

Hi Mats

I've already made some changes - see git.

More comments below.

Trevor

- Original Message - 
From: Mats Bengtsson mats.bengts...@ee.kth.se

To: Trevor Daniels t.dani...@treda.co.uk
Cc: -Eluze elu...@gmail.com; lilypond-user@gnu.org
Sent: Friday, June 26, 2009 10:12 AM
Subject: Re: Header title problem or convert-ly problem





Trevor Daniels wrote:



maybe it should be added in the docs:
http://lilypond.org/doc/v2.13/Documentation/user/lilypond-program-big-page#Updating-files-with-convert_002dly


I'll do that.  I'll also fix the documentation
to avoid misleading people in the Jay was misled.
My proposal is to change in 
http://lilypond.org/doc/v2.13/Documentation/user/lilypond-program-big-page#Command-line-options-for-convert_002dly

so that the first examples show a concrete example like

convert-ly --from=2.10.5 --no-version *.itely

since it's far from obvious exactly what syntax to use for a flag 
like --from, unless you are used to working with GNU programs from 
the command line. (For example, it's not very intuitive that you 
cannot include a space like

convert-ly --from= 2.10.5
whereas it works perfectly well to use the syntax
convert-ly -f 2.10.5
as well as
convert-ly -f2.10.5


I added examples of --from and --to to the option list.

In this first example, I also do not see any reason to use 
the --to flag.


There is an earlier example - in 3.4 - which I've
extended to show how to specify an output file.  This
was partly Jay's problem.

I've also moved this example, which really relates to
just textinfo files, and the following ones, to later,
after listing the options.

On the other hand, the second example could include both 
the --from and --to flags and again I propose to

include some concrete examples of version numbers.


Yup - I did this.

However, these --from and --to flags should perhaps not be 
advertised too much, since they should almost never be needed by a 
normal user who has ordinary .ly files with a \version statement 
in them. You may want to move them to the end of the list of 
examples.


Agreed.  I already did this.

I also spotted an incomplete sentence the last line above 3.4.1 
and I don't really understand what it should say.


Me neither.  I deleted it.

If you use the -e flag, the old version of the file will be saved 
with suffix .ly~, which should be explained either directly in 3.4 
or in the documentation of the -e flag.


Aah - that I missed.  I'll revisit it.

is the .NEW suffix something that the MacOS menu command does, or 
is it just a misunderstanding that has made it into the 
documentation?


I think the latter, but I'm not sure.  Maybe someone else
can comment.

Trevor



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


Re: Header title problem or convert-ly problem

2009-06-26 Thread Graham Percival
The entire AU is in need of being ripped apart and completely
rewritten, albeit not quite as urgently as the website or the
release uploading.  I've tentatively booked the second week of
July to do this.

Cheers,
- Graham

On Fri, Jun 26, 2009 at 10:46:25AM +0100, Trevor Daniels wrote:
 Hi Mats

 I've already made some changes - see git.

 More comments below.

 Trevor




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


Re: Header title problem or convert-ly problem

2009-06-26 Thread -Eluze


Trevor Daniels wrote:
 
 
 
 maybe it should be added in the docs:
 
 I'll do that.  I'll also fix the documentation
 to avoid misleading people in the Jay was misled.
 
 

thanks!

i think the whole issue comes from the two lines 279  280 in convert-ly.py:
opt_parser = get_option_parser()
(options, args) = opt_parser.parse_args ()
which return the filename split at each blank if it is not enclosed in
triple quotes.
you can verify this by printing these arguments:
  print (options, args)

these two lines also appear in the other converting routines (midi2ly, 
musicxml2ly, abc2ly, etf2ly) and i have verified that midi2ly also works
when using triple double quotes!

i don't know if anybody could change the behaviour of this routine…?!

finally IMO it's worth to mention that calling these routines with a
wildcard is also working (as long as no blank is involved in your calling
statement):
  convert-ly -e *.ly
  convert-ly -e myfiles*.ly

this will convert all corresponding .ly files, even if they have blanks in
their name!



-- 
View this message in context: 
http://www.nabble.com/Re%3A-Header-title-problem-or-convert-ly-problem-tp24210674p24225072.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: Header title problem or convert-ly problem

2009-06-26 Thread Trevor Daniels


Eluze wrote Friday, June 26, 2009 7:19 PM


Trevor Daniels wrote:

maybe it should be added in the docs:


I'll do that.  I'll also fix the documentation
to avoid misleading people in the Jay was misled.


i think the whole issue comes from the two lines 279  280 in 
convert-ly.py:

   opt_parser = get_option_parser()
   (options, args) = opt_parser.parse_args ()
which return the filename split at each blank if it is not 
enclosed in

triple quotes.
you can verify this by printing these arguments:
 print (options, args)

these two lines also appear in the other converting routines 
(midi2ly,
musicxml2ly, abc2ly, etf2ly) and i have verified that midi2ly also 
works

when using triple double quotes!

i don't know if anybody could change the behaviour of this 
routine…?!


Probably not.  Splitting at spaces is how the args are parsed.

finally IMO it's worth to mention that calling these routines with 
a
wildcard is also working (as long as no blank is involved in your 
calling

statement):
 convert-ly -e *.ly
 convert-ly -e myfiles*.ly

this will convert all corresponding .ly files, even if they have 
blanks in

their name!


There already is an example in the manual showing the use of *.
I think that is probably sufficient.  Thanks for your help, though.

Trevor



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


Re: Header title problem or convert-ly problem

2009-06-25 Thread Jay Hamilton
A: I have tried over and over to follow the docs.  AND I have copy and pasted 
both Mats suggestions and now Simon's .
Mats has never worked.  Yes the version info is in the file.  No it did not 
work.
Simon's suggestion, I renamed the file without the space and in fact after that 
copy/pasted his version into run and it can't find convert-ly so I browsed to 
my applications file (on my desktop which is where I install lily from) and 
convert-ly flashes and there is no new version or file that I can find anywhere 
and the problem continues to exist.

So I need more hints as either 
1] how to change the header so it works the way it did in 2.10 
or
2] how to get convert-ly to work on my machine.
Thanks
Jay

Date: Thu, 25 Jun 2009 12:18:55 +0300
From: Simon Dahlbacka simon.dahlba...@gmail.com
Subject: Re: Problem with header/copyright in new 2.12 version
To: i...@soundand.com
Cc: lilypond user group lilypond-user@gnu.org,Mats Bengtsson
   mats.bengts...@ee.kth.se
Message-ID:
   57124720906250218y147049adl25aea014295f8...@mail.gmail.com
Content-Type: text/plain; charset=iso-8859-1

On Thu, Jun 25, 2009 at 1:52 AM, Jay Hamilton jay...@linuxquestions.netwrote:

 Unfortunately, I have never been able to get convert-ly to work.  It's
 mostly my computer ignorance.  My files don't seem to be in simple places
 and I never get the parameters correct.
 so I have the file in C:\Documents and Settings\Frybyte\Desktop\Hamilton
 it's called
 my template.ly
 it's version 2.10.25
 I just tried to follow the instructions from the docs here's what I think
 it says to do in run under xp
 convert-ly --from C:\Documents and Settings\Frybyte\Desktop\Hamilton\
 mytemplate.ly\version 2.10.25 --to C:\Documents and
 Settings\Frybyte\Desktop\Hamilton\my template.ly version 2.12.2
 That didn't work so what am I not understanding?


As you seem to have spaces in directory and/or filenames the arguments need
to be quoted. Maybe that is your issue?

e.g. convert-ly -e C:\Documents and Settings\Frybyte\Desktop\Hamilton\
mytemplate.ly


Sorry for total ignorance.
 Jay

 On Wed, Jun 24, 2009 at 3:04 PM, Mats Bengtsson 
 mats.bengts...@ee.kth.sewrote:

 The standard solution to all such compatibility problems is to run the
 file through convert-ly, to automatically update the syntax.
 (Just remember to specify \version 2.10.0 or something like that in the
 file header, so that convert-ly knows what to do.)

  /Mats

 Jay Hamilton wrote:

 Mats sent me this solution for multiple lines in the copyright and now
 the bottom is overlapping and in one line.  How do I make it work like it
 did in 2.10

 \version 2.12.2
 \header {
  title = Positioning your finding
  composer = Jay Hamilton
copyright = \markup { \tiny \override #'(baseline-skip . 0.5)
 \center-align
{  CC lic 2.5 some rights reserved Jay Hamilton 2009
see http://creativecommons.org/licenses/by-nd/2.5/;
   } }
   }
 melody = \relative c'
 {
 \clef treble
 \key c \major
 \time 4/4
 #(set-global-staff-size 30)
 \override Staff.TimeSignature #' style = #' ()
 \tempo 4=60
 c1
  \bar |.
 }

 \score {
 \new Staff \melody
 \layout { }
 \midi { \tempo 4=60 }
 }



 Yours-
 Jay

 Jay Hamilton
 www.soundand.com
 206-328-7694


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




 --
 =
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
   Fax:   (+46) 8 790 7260
Email: mats.bengts...@ee.kth.se
WWW: http://www.s3.kth.se/~mabe http://www.s3.kth.se/%7Emabe
 =




 --
 Jay Hamilton Sound and Silence www.soundand.com 206-328-7694

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




Yours-
Jay

Jay Hamilton
www.soundand.com
206-328-7694


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


Re: Header title problem or convert-ly problem

2009-06-25 Thread Simon Dahlbacka
as per mats suggestion, change directory to where your .ly file is located
e.g.

On my machine just typing convert-ly and hit enter brings up usage
instructions. If that does not work for you, try specifying everything
explicitely

c:\program files\lilypond\usr\bin\convert-ly.py -e mytemplate.ly

or if that still fails

c:\program files\lilypond\usr\bin\python.exe c:\program
files\lilypond\usr\bin\convert-ly.py -e mytemplate.ly



On Thu, Jun 25, 2009 at 11:37 PM, Jay Hamilton jay...@linuxquestions.netwrote:

 A: I have tried over and over to follow the docs.  AND I have copy and
 pasted both Mats suggestions and now Simon's .
 Mats has never worked.  Yes the version info is in the file.  No it did not
 work.
 Simon's suggestion, I renamed the file without the space and in fact after
 that copy/pasted his version into run and it can't find convert-ly so I
 browsed to my applications file (on my desktop which is where I install lily
 from) and convert-ly flashes and there is no new version or file that I can
 find anywhere and the problem continues to exist.

 So I need more hints as either
 1] how to change the header so it works the way it did in 2.10
 or
 2] how to get convert-ly to work on my machine.
 Thanks
 Jay

 Date: Thu, 25 Jun 2009 12:18:55 +0300
 From: Simon Dahlbacka simon.dahlba...@gmail.com
 Subject: Re: Problem with header/copyright in new 2.12 version
 To: i...@soundand.com
 Cc: lilypond user group lilypond-user@gnu.org,Mats Bengtsson
   mats.bengts...@ee.kth.se
 Message-ID:
   57124720906250218y147049adl25aea014295f8...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1

 On Thu, Jun 25, 2009 at 1:52 AM, Jay Hamilton jay...@linuxquestions.net
 wrote:

  Unfortunately, I have never been able to get convert-ly to work.  It's
  mostly my computer ignorance.  My files don't seem to be in simple places
  and I never get the parameters correct.
  so I have the file in C:\Documents and Settings\Frybyte\Desktop\Hamilton
  it's called
  my template.ly
  it's version 2.10.25
  I just tried to follow the instructions from the docs here's what I think
  it says to do in run under xp
  convert-ly --from C:\Documents and Settings\Frybyte\Desktop\Hamilton\
  mytemplate.ly\version 2.10.25 --to C:\Documents and
  Settings\Frybyte\Desktop\Hamilton\my template.ly version 2.12.2
  That didn't work so what am I not understanding?
 

 As you seem to have spaces in directory and/or filenames the arguments need
 to be quoted. Maybe that is your issue?

 e.g. convert-ly -e C:\Documents and Settings\Frybyte\Desktop\Hamilton\
 mytemplate.ly


 Sorry for total ignorance.
  Jay
 
  On Wed, Jun 24, 2009 at 3:04 PM, Mats Bengtsson 
 mats.bengts...@ee.kth.sewrote:
 
  The standard solution to all such compatibility problems is to run the
  file through convert-ly, to automatically update the syntax.
  (Just remember to specify \version 2.10.0 or something like that in
 the
  file header, so that convert-ly knows what to do.)
 
   /Mats
 
  Jay Hamilton wrote:
 
  Mats sent me this solution for multiple lines in the copyright and now
  the bottom is overlapping and in one line.  How do I make it work like
 it
  did in 2.10
 
  \version 2.12.2
  \header {
   title = Positioning your finding
   composer = Jay Hamilton
 copyright = \markup { \tiny \override #'(baseline-skip . 0.5)
  \center-align
 {  CC lic 2.5 some rights reserved Jay Hamilton 2009
 see http://creativecommons.org/licenses/by-nd/2.5/;
} }
}
  melody = \relative c'
  {
  \clef treble
  \key c \major
  \time 4/4
  #(set-global-staff-size 30)
  \override Staff.TimeSignature #' style = #' ()
  \tempo 4=60
  c1
   \bar |.
  }
 
  \score {
  \new Staff \melody
  \layout { }
  \midi { \tempo 4=60 }
  }
 
 
 
  Yours-
  Jay
 
  Jay Hamilton
  www.soundand.com
  206-328-7694
 
 
  ___
  lilypond-user mailing list
  lilypond-user@gnu.org
  http://lists.gnu.org/mailman/listinfo/lilypond-user
 
 
 
 
  --
  =
 Mats Bengtsson
 Signal Processing
 School of Electrical Engineering
 Royal Institute of Technology (KTH)
 SE-100 44  STOCKHOLM
 Sweden
 Phone: (+46) 8 790 8463
Fax:   (+46) 8 790 7260
 Email: mats.bengts...@ee.kth.se
 WWW: http://www.s3.kth.se/~mabe http://www.s3.kth.se/%7Emabe 
 http://www.s3.kth.se/%7Emabe
  =
 
 
 
 
  --
  Jay Hamilton Sound and Silence www.soundand.com 206-328-7694
 
  ___
  lilypond-user mailing list
  lilypond-user@gnu.org
  http://lists.gnu.org/mailman/listinfo/lilypond-user
 
 


 Yours-
 Jay

 Jay Hamilton
 www.soundand.com
 206-328-7694

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


Re: Header title problem or convert-ly problem

2009-06-25 Thread Trevor Daniels

Jay

If you enter the name into Run the name of the program is 
convert-ly.py.

Are you missing the .py?

But both convert-ly and convert-ly.py should work in a Command 
Prompt
window.  At least they do here (Windows Vista).  This is better than 
Run

as the window stays open so you can read the output.

Is the convert program being found correctly?  If you open a Command
Prompt window and type just convert-ly you should see a few lines
returned giving the usage and options.

If that works ok try again specifying the file and options as 
before.  If
the path to the file contains spaces you'll need to surround the 
full path
with double quotes.  If your file contains the correct \version you 
don't

need to specify any options at all.

Trevor

- Original Message - 
From: Jay Hamilton jay...@linuxquestions.net

To: lilypond user group lilypond-user@gnu.org
Sent: Thursday, June 25, 2009 9:37 PM
Subject: Re: Header title problem or convert-ly problem


A: I have tried over and over to follow the docs.  AND I have copy 
and pasted both Mats suggestions and now Simon's .
Mats has never worked.  Yes the version info is in the file.  No 
it did not work.
Simon's suggestion, I renamed the file without the space and in 
fact after that copy/pasted his version into run and it can't find 
convert-ly so I browsed to my applications file (on my desktop 
which is where I install lily from) and convert-ly flashes and 
there is no new version or file that I can find anywhere and the 
problem continues to exist.


So I need more hints as either
1] how to change the header so it works the way it did in 2.10
or
2] how to get convert-ly to work on my machine.
Thanks
Jay

Date: Thu, 25 Jun 2009 12:18:55 +0300
From: Simon Dahlbacka simon.dahlba...@gmail.com
Subject: Re: Problem with header/copyright in new 2.12 version
To: i...@soundand.com
Cc: lilypond user group lilypond-user@gnu.org,Mats 
Bengtsson

  mats.bengts...@ee.kth.se
Message-ID:
  57124720906250218y147049adl25aea014295f8...@mail.gmail.com
Content-Type: text/plain; charset=iso-8859-1

On Thu, Jun 25, 2009 at 1:52 AM, Jay Hamilton 
jay...@linuxquestions.netwrote:


Unfortunately, I have never been able to get convert-ly to work. 
It's
mostly my computer ignorance.  My files don't seem to be in 
simple places

and I never get the parameters correct.
so I have the file in C:\Documents and 
Settings\Frybyte\Desktop\Hamilton

it's called
my template.ly
it's version 2.10.25
I just tried to follow the instructions from the docs here's what 
I think

it says to do in run under xp
convert-ly --from C:\Documents and 
Settings\Frybyte\Desktop\Hamilton\

mytemplate.ly\version 2.10.25 --to C:\Documents and
Settings\Frybyte\Desktop\Hamilton\my template.ly version 2.12.2
That didn't work so what am I not understanding?



As you seem to have spaces in directory and/or filenames the 
arguments need

to be quoted. Maybe that is your issue?

e.g. convert-ly -e C:\Documents and 
Settings\Frybyte\Desktop\Hamilton\

mytemplate.ly


Sorry for total ignorance.

Jay

On Wed, Jun 24, 2009 at 3:04 PM, Mats Bengtsson 
mats.bengts...@ee.kth.sewrote:


The standard solution to all such compatibility problems is to 
run the

file through convert-ly, to automatically update the syntax.
(Just remember to specify \version 2.10.0 or something like 
that in the

file header, so that convert-ly knows what to do.)

 /Mats

Jay Hamilton wrote:

Mats sent me this solution for multiple lines in the copyright 
and now
the bottom is overlapping and in one line.  How do I make it 
work like it

did in 2.10

\version 2.12.2
\header {
 title = Positioning your finding
 composer = Jay Hamilton
   copyright = \markup { \tiny \override #'(baseline-skip . 
0.5)

\center-align
   {  CC lic 2.5 some rights reserved Jay Hamilton 2009
   see http://creativecommons.org/licenses/by-nd/2.5/;
  } }
  }
melody = \relative c'
{
\clef treble
\key c \major
\time 4/4
#(set-global-staff-size 30)
\override Staff.TimeSignature #' style = #' ()
\tempo 4=60
c1
 \bar |.
}

\score {
\new Staff \melody
\layout { }
\midi { \tempo 4=60 }
}



Yours-
Jay

Jay Hamilton
www.soundand.com
206-328-7694


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





--
=
   Mats Bengtsson
   Signal Processing
   School of Electrical Engineering
   Royal Institute of Technology (KTH)
   SE-100 44  STOCKHOLM
   Sweden
   Phone: (+46) 8 790 8463
  Fax:   (+46) 8 790 7260
   Email: mats.bengts...@ee.kth.se
   WWW: http://www.s3.kth.se/~mabe 
http://www.s3.kth.se/%7Emabe

=





--
Jay Hamilton Sound and Silence www.soundand.com 206-328-7694

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

Re: Header title problem or convert-ly problem

2009-06-25 Thread Jonathan Kulp

Trevor Daniels wrote:

Jay

If you enter the name into Run the name of the program is convert-ly.py.
Are you missing the .py?

But both convert-ly and convert-ly.py should work in a Command Prompt
window.  At least they do here (Windows Vista).  This is better than Run
as the window stays open so you can read the output.



I just tried it on Windows for the first time (XP), and it worked 
perfectly on a test file here, too, using the cmd prompt. I did 
the same commands as I use on Linux:


  convert-ly foobar.ly  noofoobar.ly

and also

  convert-ly -e foobar.ly

and both worked as expected.

Jon
--
Jonathan Kulp
http://www.jonathankulp.com


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


Re: Header title problem or convert-ly problem

2009-06-25 Thread Carl D. Sorensen



On 6/25/09 2:37 PM, Jay Hamilton jay...@linuxquestions.net wrote:

 A: I have tried over and over to follow the docs.  AND I have copy and pasted
 both Mats suggestions and now Simon's .
 Mats has never worked.  Yes the version info is in the file.  No it did not
 work.
 Simon's suggestion, I renamed the file without the space and in fact after
 that copy/pasted his version into run and it can't find convert-ly so I
 browsed to my applications file (on my desktop which is where I install lily
 from) and convert-ly flashes and there is no new version or file that I can
 find anywhere and the problem continues to exist.
 
 So I need more hints as either
 1] how to change the header so it works the way it did in 2.10
 or
 2] how to get convert-ly to work on my machine.
 Thanks

Go to Start menu, select Run.., and type cmd in the box.

This will open a command window.

Then change directory to the directory containing your .ly file.  You change
directory with the cd command.  It's hard to give you exact instructions,
because I don't know where things are.

But to use the cd command, you type

cd c:\Documents and Settings\Frybyte\Desktop\Hamilton\


You'll know you're in the right directory when you type

dir

and you can see your .ly file in the resulting list.


Then you want to type

convert-ly

which should give you a help message about convert-ly.

Then you will type

convert-ly --from=2.10.25 --to=2.12.2 my template.ly  template2.12.2.ly

That should make it work.

You may also be able to make it work by typing in the run box under the
start menu

convert-ly --from=2.10.25 --to=2.12.2 C:\Documents and
Settings\Frybyte\Desktop\Hamilton\mytemplate.ly  C:\Documents and
Settings\Frybyte\Desktop\Hamilton\mytemplate-new.ly

The format of a convert-ly command is

convert-ly --from=FROM-VERSION --to=TO-VERSION FROM-FILE-NAME  TO-FILE-NAME

The command you typed in was not in this format, if what you reported below
is correct.

HTH,

Carl


 
 Unfortunately, I have never been able to get convert-ly to work.  It's
 mostly my computer ignorance.  My files don't seem to be in simple places
 and I never get the parameters correct.
 so I have the file in C:\Documents and Settings\Frybyte\Desktop\Hamilton
 it's called
 my template.ly
 it's version 2.10.25
 I just tried to follow the instructions from the docs here's what I think
 it says to do in run under xp
 convert-ly --from C:\Documents and Settings\Frybyte\Desktop\Hamilton\
 mytemplate.ly\version 2.10.25 --to C:\Documents and
 Settings\Frybyte\Desktop\Hamilton\my template.ly version 2.12.2
 That didn't work so what am I not understanding?
 
 



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


Re: Header title problem or convert-ly problem

2009-06-25 Thread Jay Hamilton
Carl- Really clear instructions and finally I got it to work. whew!
Thank you.
Jay

On Thu, Jun 25, 2009 at 2:58 PM, Carl D. Sorensen c_soren...@byu.eduwrote:




 On 6/25/09 2:37 PM, Jay Hamilton jay...@linuxquestions.net wrote:

  A: I have tried over and over to follow the docs.  AND I have copy and
 pasted
  both Mats suggestions and now Simon's .
  Mats has never worked.  Yes the version info is in the file.  No it did
 not
  work.
  Simon's suggestion, I renamed the file without the space and in fact
 after
  that copy/pasted his version into run and it can't find convert-ly so I
  browsed to my applications file (on my desktop which is where I install
 lily
  from) and convert-ly flashes and there is no new version or file that I
 can
  find anywhere and the problem continues to exist.
 
  So I need more hints as either
  1] how to change the header so it works the way it did in 2.10
  or
  2] how to get convert-ly to work on my machine.
  Thanks

 Go to Start menu, select Run.., and type cmd in the box.

 This will open a command window.

 Then change directory to the directory containing your .ly file.  You
 change
 directory with the cd command.  It's hard to give you exact instructions,
 because I don't know where things are.

 But to use the cd command, you type

 cd c:\Documents and Settings\Frybyte\Desktop\Hamilton\


 You'll know you're in the right directory when you type

 dir

 and you can see your .ly file in the resulting list.


 Then you want to type

 convert-ly

 which should give you a help message about convert-ly.

 Then you will type

 convert-ly --from=2.10.25 --to=2.12.2 my template.ly  
 template2.12.2.ly

 That should make it work.

 You may also be able to make it work by typing in the run box under the
 start menu

 convert-ly --from=2.10.25 --to=2.12.2 C:\Documents and
 Settings\Frybyte\Desktop\Hamilton\mytemplate.ly  C:\Documents and
 Settings\Frybyte\Desktop\Hamilton\mytemplate-new.ly

 The format of a convert-ly command is

 convert-ly --from=FROM-VERSION --to=TO-VERSION FROM-FILE-NAME 
 TO-FILE-NAME

 The command you typed in was not in this format, if what you reported below
 is correct.

 HTH,

 Carl


 
  Unfortunately, I have never been able to get convert-ly to work.  It's
  mostly my computer ignorance.  My files don't seem to be in simple
 places
  and I never get the parameters correct.
  so I have the file in C:\Documents and Settings\Frybyte\Desktop\Hamilton
  it's called
  my template.ly
  it's version 2.10.25
  I just tried to follow the instructions from the docs here's what I
 think
  it says to do in run under xp
  convert-ly --from C:\Documents and Settings\Frybyte\Desktop\Hamilton\
  mytemplate.ly\version 2.10.25 --to C:\Documents and
  Settings\Frybyte\Desktop\Hamilton\my template.ly version 2.12.2
  That didn't work so what am I not understanding?
 
 




-- 
Jay Hamilton Sound and Silence www.soundand.com 206-328-7694
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Header title problem or convert-ly problem

2009-06-25 Thread -Eluze


Trevor Daniels wrote:
 
  If
 the path to the file contains spaces you'll need to surround the 
 full path
 with double quotes.  
 
i just found that triple double quotes are needed: convert-ly.py -e my
file.ly
this works for me in windows vista 

maybe it should be added in the docs:
http://lilypond.org/doc/v2.13/Documentation/user/lilypond-program-big-page#Updating-files-with-convert_002dly

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Header-title-problem-or-convert-ly-problem-tp24210674p24214920.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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