Re: An easy way to convert from absolute to \relative?

2011-12-22 Thread Johan Vromans
[Quoting Father Gordon Gilbert, on December 21 2011, 20:51, in "Re: An easy way to c"] > Can you send me that Perl program and some instructions for using it? > My dialup connexion doesn't give me any good info to find it at the LY > site. Attached. Provided you have Perl installed, in a command

Re: An easy way to convert from absolute to \relative?

2011-12-21 Thread Father Gordon Gilbert
On 21/12/2011, lilypond-user-requ...@gnu.org wrote: > -- > > Message: 7 > Date: Wed, 21 Dec 2011 17:32:08 +0100 > From: Johan Vromans > To: lilypond-user@gnu.org > Subject: Re: An easy way to convert from absolute to \relative? > Message-I

Re: An easy way to convert from absolute to \relative?

2011-12-21 Thread Johan Vromans
David Kastrup writes: > I am afraid that converting to relative mode is more complex than > that. Attached a small standalone Perl program that does abs to rel conversion. -- Johan lyabsrel.pl Description: Perl program ___ lilypond-user mailing lis

Re: An easy way to convert from absolute to \relative?

2011-12-21 Thread PMA
David Kastrup wrote: PMA writes: David Kastrup wrote: Father Gordon Gilbert writes: Hi all, I have a number of pieces I entered quite a while ago (2.5.x, etc) in absolute pitch -- being the easiest for me at the time. But now I'd like to update them (2.15.x), and while convert-ly does

Re: An easy way to convert from absolute to \relative?

2011-12-21 Thread David Kastrup
Colin Campbell writes: > On 11-12-21 05:00 AM, David Kastrup wrote: >> Father Gordon Gilbert writes: >> >>> Hi all, >>> >>> I have a number of pieces I entered quite a while ago (2.5.x, etc) in >>> absolute pitch -- being the easiest for me at the time. >>> >>> But now I'd like to update them (2

Re: An easy way to convert from absolute to \relative?

2011-12-21 Thread David Kastrup
PMA writes: > David Kastrup wrote: >> Father Gordon Gilbert writes: >> >>> Hi all, >>> >>> I have a number of pieces I entered quite a while ago (2.5.x, etc) in >>> absolute pitch -- being the easiest for me at the time. >>> >>> But now I'd like to update them (2.15.x), and while convert-ly does

Re: An easy way to convert from absolute to \relative?

2011-12-21 Thread PMA
David Kastrup wrote: Father Gordon Gilbert writes: Hi all, I have a number of pieces I entered quite a while ago (2.5.x, etc) in absolute pitch -- being the easiest for me at the time. But now I'd like to update them (2.15.x), and while convert-ly does a good job of changing up the basic syn

Re: An easy way to convert from absolute to \relative?

2011-12-21 Thread Colin Campbell
On 11-12-21 05:00 AM, David Kastrup wrote: Father Gordon Gilbert writes: Hi all, I have a number of pieces I entered quite a while ago (2.5.x, etc) in absolute pitch -- being the easiest for me at the time. But now I'd like to update them (2.15.x), and while convert-ly does a good job of cha

Re: An easy way to convert from absolute to \relative?

2011-12-21 Thread David Kastrup
Father Gordon Gilbert writes: > Hi all, > > I have a number of pieces I entered quite a while ago (2.5.x, etc) in > absolute pitch -- being the easiest for me at the time. > > But now I'd like to update them (2.15.x), and while convert-ly does a > good job of changing up the basic syntax, I'd lik

An easy way to convert from absolute to \relative?

2011-12-21 Thread Father Gordon Gilbert
Hi all, I have a number of pieces I entered quite a while ago (2.5.x, etc) in absolute pitch -- being the easiest for me at the time. But now I'd like to update them (2.15.x), and while convert-ly does a good job of changing up the basic syntax, I'd like to know if there's an easy way of getting

Re: convert from absolute to relative

2008-09-17 Thread Valentin Villenave
2008/9/17 Francisco Vila <[EMAIL PROTECTED]>: > Again it doesn't. Wednesday 13:18 UTC Now it does again (30 minutes later). Cheers, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: convert from absolute to relative

2008-09-17 Thread Eluze
ttp://lsr.dsi.unimi.it/LSR/Item?id=507 > > Again it doesn't. Wednesday 13:18 UTC > > It did a few hours ago - now again it doesn't! -- View this message in context: http://www.nabble.com/convert-from-absolute-to-relative-tp19097174p19

Re: convert from absolute to relative

2008-09-17 Thread Francisco Vila
2008/9/17 Valentin Villenave <[EMAIL PROTECTED]>: > 2008/9/10 Eluze <[EMAIL PROTECTED]>: > >>> it is a pity the snippet repository is still not working!!! > > It is now, and the snippet is: > http://lsr.dsi.unimi.it/LSR/Item?id=507 Again it doesn't. Wednesday 13:18 UTC -- Francisco Vila. Badajoz

Re: convert from absolute to relative

2008-09-17 Thread Valentin Villenave
2008/9/10 Eluze <[EMAIL PROTECTED]>: >> it is a pity the snippet repository is still not working!!! It is now, and the snippet is: http://lsr.dsi.unimi.it/LSR/Item?id=507 Cheers, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://li

Re: convert from absolute to relative

2008-09-10 Thread Eluze
> > it is a pity the snippet repository is still not working!!! > > thanks again > Eluze > > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: convert from absolute to relative

2008-08-23 Thread Gilles THIBAULT
\displayLilyMusic \skipMusic \notes Pleeease remember to add it to the LSR when it's up again :) I have tried several times before your message but ... cannot access to the site :-( Gilles ___ lilypond-user mailing list lilypond-user@gnu.or

Re: convert from absolute to relative

2008-08-23 Thread Valentin Villenave
2008/8/22 Gilles THIBAULT <[EMAIL PROTECTED]>: > \displayLilyMusic \skipMusic \notes Pleeease remember to add it to the LSR when it's up again :) Cheers, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/list

Re: convert from absolute to relative

2008-08-23 Thread Johan Vromans
Yota <[EMAIL PROTECTED]> writes: > Well, I worked for nothing then :) Your tool is different: it operates on a complete file. Mine just transforms a section of notes. And it only deals with c d e .. b notes, not with do re mi and so on. I've posted it as an attachment to another reply in this th

Re: convert from absolute to relative

2008-08-23 Thread Johan Vromans
Jonathan Kulp <[EMAIL PROTECTED]> writes: > Sure, I'd like to try it :) I've attached the program to this message. I use it from my editor: I select the section that I want to transform, and process that section through the program, something like |perl lyabsrel.pl --relative "c''" Note that

Re: convert from absolute to relative

2008-08-22 Thread Eluze
original one ... > for me it's done now, maybe i'll come back later with some feedback or new wishes...or should a new forum be opened where such utilities and snippets would be presented?! -Eluze -- View this message in context: http://www.nabble.com/convert-from-absolute-to-relative

Re: convert from absolute to relative

2008-08-22 Thread Gilles THIBAULT
notes = { a2-"hello" b4 r b2 a-"bye" < c e g c'>1-"oho" } { \displayLilyMusic \skipMusic \notes } results in { s2-"hello" s4 s s2 s-"bye" s s s s -"oho" } note the 4 "s" where it should be s1! You 're right. So it's a bit longer that i thought : %%% sk

Re: convert from absolute to relative

2008-08-22 Thread Yota
Johan Vromans wrote: I have a small tool (yes, me too) that transforms a section of notes from absolute into relative. Well, I worked for nothing then :) could you share the code for the absolute to relative stuff, quick quick quick :) thank yo Yota ___

Re: convert from absolute to relative

2008-08-22 Thread Jonathan Kulp
Sure, I'd like to try it :) Jonathan Johan Vromans wrote: Eluze <[EMAIL PROTECTED]> writes: Talking about utilities: Has anybody ever seen one that transforms a simple voice (pitches and durations) into a "ghost voice" consisting of spacers and durations only (e.g. c2 d e ==> s2 s s). This i

Re: convert from absolute to relative

2008-08-22 Thread Johan Vromans
Eluze <[EMAIL PROTECTED]> writes: > Talking about utilities: Has anybody ever seen one that transforms a simple > voice (pitches and durations) into a "ghost voice" consisting of spacers and > durations only (e.g. c2 d e ==> s2 s s). This is very useful for writing > simultaneous voice parts wher

Re: convert from absolute to relative

2008-08-22 Thread Eluze
t; s s s s -"oho" } note the 4 "s" where it should be s1! -Eluze -- View this message in context: http://www.nabble.com/convert-from-absolute-to-relative-tp19097174p19113021.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___

Re: convert from absolute to relative

2008-08-22 Thread James E. Bailey
Am 22.08.2008 um 19:21 schrieb Gilles THIBAULT: Talking about utilities: Has anybody ever seen one that transforms a simple voice (pitches and durations) into a "ghost voice" consisting of spacers and durations only (e.g. c2 d e ==> s2 s s). In scheme, it can be quite short :

Re: convert from absolute to relative

2008-08-22 Thread Eluze
w this message in context: http://www.nabble.com/convert-from-absolute-to-relative-tp19097174p19112075.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: convert from absolute to relative

2008-08-22 Thread Gilles THIBAULT
Talking about utilities: Has anybody ever seen one that transforms a simple voice (pitches and durations) into a "ghost voice" consisting of spacers and durations only (e.g. c2 d e ==> s2 s s). In scheme, it can be quite short : %%% skipMusic = #(define-

Re: convert from absolute to relative

2008-08-22 Thread Kieren MacMillan
Hi Eluze, Talking about utilities: Has anybody ever seen one that transforms a simple voice (pitches and durations) into a "ghost voice" consisting of spacers and durations only (e.g. c2 d e ==> s2 s s). What about putting it in a custom context which doesn't have a note engraver? (I'm

Re: convert from absolute to relative

2008-08-22 Thread Eluze
lso transpose from absolute to relative (and vice versa) creating midi output and convert this back to ly (midi2ly) with the appropriate options! -- View this message in context: http://www.nabble.com/convert-from-absolute-to-relative-tp19097174p19110644.html Sent from the Gnu - Lilypond - User mail

Re: convert from absolute to relative

2008-08-22 Thread Neil Thornock
> Anyway - what is the benefit of transforming absolute to relative pitches? > I work much better with relative - it is much faster to input the notes and easier for me to see the line contour. At this point I rarely make octavation errors (although only after 18 months of countless mistakes!), b

Re: convert from absolute to relative

2008-08-22 Thread Eluze Weehaeli
Am 22.08.2008, 16:46 Uhr, schrieb Steve Dunlop <[EMAIL PROTECTED]>: I shall eagerly await the development of a script that will work in the reverse direction. Using \displayLilyMusic should give you the wanted absolute transformation! (while writing this answer, I just saw Mats repsonse) I

Re: convert from absolute to relative

2008-08-22 Thread Mats Bengtsson
time required to correct the inevitable octavation errors is so much greater when working in relative mode. Steve Original Message ---- Subject: Re: convert from absolute to relative From: Jonathan Kulp <[EMAIL PROTECTED]> Date: Fri, August 22, 2008 7:27 am To: [EMAIL PROTE

RE: convert from absolute to relative

2008-08-22 Thread Steve Dunlop
able octavation errors is so much greater when working in relative mode. Steve > Original Message ---- > Subject: Re: convert from absolute to relative > From: Jonathan Kulp <[EMAIL PROTECTED]> > Date: Fri, August 22, 2008 7:27 am > To: [EMAIL PROTECTED] > Cc:

Re: convert from absolute to relative

2008-08-22 Thread Jonathan Kulp
Ok I tried it after changing italiano to nederlands in the python script (btw, you also have to change it on line 85 of lilymusic.py), and I removed the head, layout, and paper blocks. This all helps considerably. Remaining problems: 1. did not handle \clef indication--it changed "bass" to "b

Re: convert from absolute to relative

2008-08-22 Thread Yota
Jonathan > thank you for the remarks and for the samples too. Neil > I corrected this small bug, indeed the script didn't care of the options you fed it with. And if you prefer nederlands default output, just change in lilymusic.py line 38 lily_out_style = "italiano" into lily_out_style = "ned

Re: convert from absolute to relative

2008-08-22 Thread Carl Sorensen
Jonathan Kulp gmail.com> writes: > Here's the > format I tried: > > cat file.ly | python lilymusic.py --out_style="nederlands" > file-new.ly > Here's a slightly easier (IMO) method of invoking this routine: python lilymusic.py --out_style="nederlands" < file.ly > file-new.ly Instead of usi

Re: convert from absolute to relative

2008-08-21 Thread Jonathan Kulp
My apologies, Yota. One of the things I said below wasn't correct. Your script *did* change my file from absolute to relative pitch correctly. I only realized later that I needed to add the "\relative do" indication for the changes to work properly. I still did have to fix a few other things

Re: convert from absolute to relative

2008-08-21 Thread Jonathan Kulp
Hi Neil, I tried setting it to Nederlands just now but the output didn't change. It was still Italiano. Did I use the option correctly? Here's the format I tried: cat file.ly | python lilymusic.py --out_style="nederlands" > file-new.ly When I looked at the script that's what it looked lik

Re: convert from absolute to relative

2008-08-21 Thread Neil Thornock
Yota, I will definitely have to have a close look at this, since I've attempted the same thing in Python. But like the comment above, I gave up after trying to deal with all the various syntactical rules. This might encourage me to keep working at the effort, seeing you've gotten this far. Jonat

Re: convert from absolute to relative

2008-08-21 Thread Jonathan Kulp
This is a good idea, Yota. I was going through some of my first Lilypond files today and found that I had written them in absolute mode and wished I'd had a script to convert them to relative. I did them by hand since they were very short, but for anything longer, a script like yours would be

convert from absolute to relative

2008-08-21 Thread Yota
Good evening everybody, Being unable to find a nice tool to handle lilypond sources, I designed mine. I worked on this little script which (even if its buggy) should perform some essential tasks: - convert absolute music to relative music - transpose the source (from bes to c for example) -