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
Francisco Vila-5 wrote: > > 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. Wednesd

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
Gilles THIBAULT wrote: > > >> \displayLilyMusic \skipMusic \notes > > i promised to give some feedback some day and having made a few > experiences i can summarize: > > - this procedure is very useful > - in my small collection of snippets i renamed it to "musicToSkips" > (thinking this des

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
That *is* a real beauty now - thanks a lot! i must confess that i never believed i would - by throwing in a vague idea - get such a fast solution! Gilles THIBAULT wrote: > > NB > If we go on with this discussion i think we have to open a new topic > because we are far from the original one ...

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
Gilles THIBAULT wrote: > > > In scheme, it can be quite short : > > Maybe I wasn't to clear in my formulation - you're a step ahead. I need a voice with spacers only (+durations) which I can edit and to which I attach the different attributes. I tried to use your nice little function with

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
Kieren MacMillan wrote: > > > What about putting it in a custom context which doesn't have a note > engraver? > > Hope this helps! > Not really - I have no idea what you mean with a custom context: is that in Lilypond or somewhere else? I thought of using a find and replace action in a com

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
Neil Thornock wrote: > > The more utilities the better - we'll keep our > bases covered. > Absolutely! 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

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