Re: music patterns and octave

2016-03-09 Thread David Wright
On Wed 09 Mar 2016 at 17:57:25 (+0100), Gianmaria Lari wrote: >Last "relative" applies only to the whole musical expression generated by >"changePitch". You can see it clearly here: >\version "2.19.35" >\include "changePitch.ly" >pattern =  >{ >   r2 a16 a8 a8 a16 >

Re: music patterns and octave

2016-03-09 Thread Gianmaria Lari
I'm sorry I have not been clear in my old messages, hope my last one it is clearer. Regarding: \relative c' >{ >... > \setOctave c' > \relative c' \changePitch \rhythmPattern { ... > > I'm not even sure of how LP interprets that last \relative. > > Last "relative" applies only t

Re: music patterns and octave

2016-03-09 Thread David Kastrup
Gianmaria Lari writes: > Thank you David for your help. I think the behaviour of "\relative" and > "\resetRelativeOctave" are clear. If the latter is not deprecated IMHO > there are cases where it can be very useful. That one you mention > (preventing up > and down octave when changing code) it i

Re: music patterns and octave

2016-03-09 Thread Gianmaria Lari
Ciao Patric, to use "changePitch.ly" with Lilypond 2.19 you need to convert it. In case you need you can check at the end of this old thread: http://lilypond.1069038.n5.nabble.com/changepitch-compilation-error-td187658.html g. ___ lilypond-user mailing

Re: music patterns and octave

2016-03-09 Thread Gianmaria Lari
Thank you David for your help. I think the behaviour of "\relative" and "\resetRelativeOctave" are clear. If the latter is not deprecated IMHO there are cases where it can be very useful. That one you mention (preventing up and down octave when changing code) it is just one. For instance, suppose I

Re: music patterns and octave

2016-03-09 Thread David Wright
On Wed 09 Mar 2016 at 07:56:21 (-0600), Patrick Karl wrote: > > > Message: 1 > > Date: Wed, 9 Mar 2016 01:07:47 +0100 > > From: Gianmaria Lari > > To: lilypond-user > > Subject: Re: music patterns and octave > > > > > > Then please have a lo

Re: music patterns and octave

2016-03-09 Thread Patrick Karl
> Message: 1 > Date: Wed, 9 Mar 2016 01:07:47 +0100 > From: Gianmaria Lari > To: lilypond-user > Subject: Re: music patterns and octave > > > Then please have a look to the code I *would* like to write to obtain it. > Do you know if does exist anything similar to &

Re: music patterns and octave

2016-03-09 Thread David Wright
On Wed 09 Mar 2016 at 01:07:47 (+0100), Gianmaria Lari wrote: >Ciao David, >let's put it in another way. Have a look to the attached image and please >suggest me how you would write the code to generate it. That is attached. I adopted a subtractive approach, using your source as a base

Re: music patterns and octave

2016-03-09 Thread Gianmaria Lari
Thank you Patrick, this works exactly as I expected. Why it is not documented? Can we use it or do we risk that it will deprecated? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: music patterns and octave

2016-03-09 Thread Gianmaria Lari
Dear Carl, thank you for pointing me out the octave check, didn't know it and now I'm testing it (even if it looks it doesn't work as I need). Thanks, g. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypon

Re: music patterns and octave

2016-03-09 Thread Blöchl Bernhard
Am 09.03.2016 09:52, schrieb Blöchl Bernhard: Obviously does changePitch.ly not understand the construct \tuplet 3/2 { a8 a a }. The use of patterns is completely wrong. Check the documentation how to use the construct correctly. http://gillesth.free.fr/Lilypond/changePitch/changePitch-doc.pd

Re: music patterns and octave

2016-03-09 Thread Blöchl Bernhard
Obviously does changePitch.ly not understand the construct \tuplet 3/2 { a8 a a }. \include "changePitch.ly" rhythmPattern = {a16 %\tuplet 3/2 { a8 a a } a16 a8 a4 a4} % a complex rhythm scoreViolinI = \relative c' { % \setOctave c' %this command is just an example and it does not exist! \c

Re: music patterns and octave

2016-03-08 Thread Patrick Karl
> \ > Message: 2 > Date: Wed, 9 Mar 2016 01:20:47 +0100 > From: Gianmaria Lari > To: Thomas Morley > Cc: lilypond-user > Subject: Re: music patterns and octave > > Do you know if does exist something to set > the absolute "octave"? > g. %%% How abo

Re: music patterns and octave

2016-03-08 Thread Carl Sorensen
On 3/8/16 5:20 PM, "Gianmaria Lari" wrote: >Ciao Thomas, >thank you for your suggestion about inline-images etc. > >"changePitch" is an external function. This is a link to it: >http://gillesth.free.fr/Lilypond/changePitch/ > >Regarding you function setOtherPitchOctave, this is similar to what I

Re: music patterns and octave

2016-03-08 Thread Gianmaria Lari
Ciao Thomas, thank you for your suggestion about inline-images etc. "changePitch" is an external function. This is a link to it: http://gillesth.free.fr/Lilypond/changePitch/ Regarding you function setOtherPitchOctave, this is similar to what I was thinking except that the parameter is not the "

Re: music patterns and octave

2016-03-08 Thread Gianmaria Lari
Ciao David, let's put it in another way. Have a look to the attached image and please suggest me how you would write the code to generate it. Then please have a look to the code I *would* like to write to obtain it. Do you know if does exist anything similar to "\setOctave"? Do you see any logica

Re: music patterns and octave

2016-03-08 Thread Thomas Morley
2016-03-08 17:45 GMT+01:00 Gianmaria Lari : > Suppose you have this: > > [image: Inline image 2] > > This is something like > > \fragment d d > \fragment c e > \fragment e c > > > So, more precisely I would write: > > \version "2.19.35" > > pattern = > { >c16 d e f g a b c > } > > \relative c'

Re: music patterns and octave

2016-03-08 Thread David Wright
On Tue 08 Mar 2016 at 17:45:35 (+0100), Gianmaria Lari wrote: >[...] >So, more precisely I would write: > > \version "2.19.35" > pattern = > { >    c16 d e f g a b c > } > \relative c'  > { >   \pattern d4 d4 >   \pattern c4 e4 >   \pattern

Re: music patterns and octave

2016-03-08 Thread BB
pattern = \relative c' { { c16 d e f g a b c } } \relative c' { \pattern d'4 d4 \pattern c4 e4 \pattern e4 c4 } On 08.03.2016 17:45, Gianmaria Lari wrote: Suppose you have this: Inline image 2 This is something like \fragment d d

music patterns and octave

2016-03-08 Thread Gianmaria Lari
Suppose you have this: [image: Inline image 2] This is something like \fragment d d \fragment c e \fragment e c So, more precisely I would write: \version "2.19.35" pattern = { c16 d e f g a b c } \relative c' { \pattern d4 d4 \pattern c4 e4 \pattern e4 c4 } But the previous code