Re: Transpose tab into label forms

2024-03-06 Thread Carl Sorensen
On Mon, Mar 4, 2024 at 5:37 AM achar wrote: > Indeed I use fret-diagram. Too bad. > THANKS Xavier. > > If you use Lilypond's automatic fret diagram functionality, the fret diagrams will be transposable, but the transposition may not be exactly what you would manually do for a transposition. You

Re: Transpose tab into label forms

2024-03-04 Thread achar
Indeed I use fret-diagram. Too bad. THANKS Xavier. Le 04/03/2024 à 11:33, Xavier Scheuer a écrit : On Mon, 4 Mar 2024 at 11:05, achar wrote: > > Thank you for the answer. Label form may not be the correct translation. We could say "diagram" for guitar. > See an example attached. Good day. jea

Re: Transpose tab into label forms

2024-03-04 Thread Xavier Scheuer
On Mon, 4 Mar 2024 at 11:05, achar wrote: > > Thank you for the answer. Label form may not be the correct translation. We could say "diagram" for guitar. > See an example attached. Good day. jean-Pierre > It would save me time. > Does anyone have any ideas or is this simply impossible? > Thank you

Re: Transpose tab into label forms

2024-03-04 Thread achar
Thank you for the answer. Label form may not be the correct translation. We could say "diagram" for guitar. See an example attached.Good day. jean-Pierre Le 04/03/2024 à 00:27, Carl Sorensen a écrit : What is "label form" for tablature?  I've never heard of it and couldn't find any information

Re: Transpose tab into label forms

2024-03-03 Thread Carl Sorensen
What is "label form" for tablature? I've never heard of it and couldn't find any information about it using Google. So I don't know how to answer your question. Carl Get Outlook for Android From: lilypond-user-bounces+carl.d.sorensen=

Re: Transpose from major to minor key

2024-01-12 Thread Lukas-Fabian Moser via LilyPond user discussion
Hi Matthew, Am 12.01.24 um 00:29 schrieb msk...@ansuz.sooke.bc.ca: You need to remember lilypond thinks in terms of pitch, not note names. Unlike some (most?) other music software. So "\transpose g e" says "transpose EVERY note up A TONE". I'm not sure it's quite right to say that Lilypond thin

Re: Transpose from major to minor key

2024-01-11 Thread mskala
On Thu, 11 Jan 2024, Wol wrote: > You need to remember lilypond thinks in terms of pitch, not note names. Unlike > some (most?) other music software. So "\transpose g e" says "transpose EVERY > note up A TONE". I'm not sure it's quite right to say that Lilypond thinks in terms of pitch, not note

Re: Transpose from major to minor key

2024-01-11 Thread Wol
On 10/01/2024 21:26, Butter Cream wrote: Hi, I have a piece of music written in the key of G major and I want the pitches to transpose to e minor. How do I do this. When I use the command \transpose g e it changes to E major (all g notes are sharped) You need to remember lilypond thinks in t

Re: Transpose from major to minor key

2024-01-10 Thread Aaron Hill via LilyPond user discussion
On 2024-01-10 6:30 pm, Freeman Gilmore wrote: Aaron Does LP have that?That would be a trick for modes other than between major and minor and that may not work well. Thank you, ƒg Sorry for not linking the docs directly. https://lilypond.org/doc/v2.25/Documentation/notation/modal-transforma

Re: Transpose from major to minor key

2024-01-10 Thread Aaron Hill via LilyPond user discussion
On 2024-01-10 1:26 pm, Butter Cream wrote: Hi, I have a piece of music written in the key of G major and I want the pitches to transpose to e minor. How do I do this. When I use the command \transpose g e it changes to E major (all g notes are sharped) I think you'll need to use \modalTransp

Re: \transpose question

2021-10-08 Thread Mark Probert
Valentin wrote: > > How about this? > Wow! Thank you. That really is what I was after, and now I need to understand what you've done! Much appreciated .. mark.

Re: \transpose question

2021-10-08 Thread Flaming Hakama by Elaine
> > > -- Forwarded message -- > From: Mark Probert > To: Lily Pond > Cc: > Bcc: > Date: Fri, 8 Oct 2021 10:36:37 +1100 > Subject: \transpose question > > Hi. > > A question on transpose: I understand that "\transpose distinguishes > between enharmonic pitches," however is there an

Re: \transpose question

2021-10-08 Thread Valentin Petzel
Hi Mark, How about this? Here we basically pass along a list of numbers for each key. This contains informations about the enharmonic correctness: If the value is 0 the part is kept as is, if it is positive it is corrected upwards, if it is negative it is corrected downwards. Cheers, Valentin\

Re: \transpose question

2021-10-07 Thread Mark Probert
David wrote: >> >> Is there a way to do this? > > Transpose the two halves of the melody separately, > the first half c to d, the second half cis to ees. > This is part of the problem with the "pared down snippet" approach, or rather, my original explanation of the problem. In reality, my probl

Re: \transpose question

2021-10-07 Thread David Wright
On Fri 08 Oct 2021 at 10:36:37 (+1100), Mark Probert wrote: > > A question on transpose: I understand that "\transpose distinguishes > between enharmonic pitches," however is there anyway to force a > particular behaviour? For example, in the snippet below, when I have a > movement from C to C#

Re: transpose for baritone sax

2019-09-27 Thread Malte Meyn
Am 27.09.19 um 02:33 schrieb Francesco Petrogalli: I understand that the correct way of doing this is first write the notes in the tonality of the instrument, and _then_ use \transposition to get the correct pitches in the midi, but I already have the notes in the ly file with the orchestral pi

Re: transpose for baritone sax

2019-09-26 Thread Tim McNamara
Read up on \transpose which should do what you want, combined with octaves. > On Sep 26, 2019, at 7:33 PM, Francesco Petrogalli > wrote: > > Hi, > > I have written a part using the orchestral pitch (real note) of an > instrument, the baritone sax (and other instruments, like trumpets, > alto,

Re: Transpose

2019-09-16 Thread Pierre Perol-Schneider
Nice coding Gilles, Cheers, Pierre Le lun. 16 sept. 2019 à 19:51, Gilles Thibault a écrit : > Sorry. Very late answer > Here is a scheme way to proceed. (see attached file). > > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lis

Re: Transpose

2019-09-16 Thread Gilles Thibault
Sorry. Very late answer Here is a scheme way to proceed. (see attached file). %% For version 2.18 change the first line by : %% makeExercice = #(define-music-function (parser location p0 p1 p2 p3 highest-pitch lowest-pitch) makeExercice = #(define-music-function (p0 p1 p2 p3 highest-pitch low

Re: Transpose

2019-09-11 Thread David Wright
On Wed 11 Sep 2019 at 20:36:22 (+0200), John McWilliam wrote: >I appreciate your thoughts on this one. I was looking for ways to > avoid repeating my code and therebye reduce the size of the LP file - I have > 26 scales to cover! I thought it might be possible to have a basic brocken > c

Re: Transpose

2019-09-11 Thread David Wright
On Tue 10 Sep 2019 at 16:34:56 (+0200), John McWilliam wrote: > The reason for the adjusted first Group (a4~ a16 e, g a) is due to the fact > that the lowest note on a Bb clarinet is e. Thereafter, the broken chords > follow the set pattern until reaching the last group. I have extended my > sni

RE: Transpose

2019-09-10 Thread foxfanfare
I think the problem is that you're trying to engrave an a\minor chord in the root position from a c\major in second inversion. Lilypond won't guess how to adjust that with the transpose tool. But it should work smoothly if you use the same chord position for each tonality. -- Sent from: http://

Re: Transpose

2019-09-10 Thread David Wright
On Tue 10 Sep 2019 at 13:19:52 (+0200), John McWilliam wrote: > Hi again, > I attach my attempt to use \modalTranspose in order to save code when > rewriting broken chords in C major and A minor. The idea is to go ahead and > repeat the exercise in G major, Eminor etc., however, it looks a

RE: Transpose

2019-09-10 Thread John McWilliam
Subject: Re: Transpose John McWilliam writes: > Hi, > I am rewriting Baermanns repetitive exercises for clarinet and > am trying to rationalise my code. For example broken chords: they > start in C major then A minor followed by G major, E minor etc. To > avoid rewriting the co

Re: Transpose

2019-09-07 Thread David Kastrup
John McWilliam writes: > Hi, > I am rewriting Baermanns repetitive exercises for clarinet and > am trying to rationalise my code. For example broken chords: they > start in C major then A minor followed by G major, E minor etc. To > avoid rewriting the code every time I tried using ”\trans

Re: Transpose

2019-09-07 Thread bobr...@centrum.is
Hi John, I suspect you'll have to write out your pattern in C major and then A minor first, and then transpose the pair all the way through the other keys. Be aware that you should be able to use '\key c \major' for the C maj. and A min. pattern. Hope this helps, David - Original Messag

Re: transpose several key signature

2018-05-30 Thread Torsten Hämmerle
David Kastrup wrote > Excuse me? Ah, yes, sorry, of course… I just looked at Ming's example, had (for an unknown reason) something *\naturalizeMusic* in mind and completely ignored what I had said before about intervals. When transposing F major down a minor second, we will get E major quite natu

Re: transpose several key signature

2018-05-30 Thread David Kastrup
Torsten Hämmerle writes: > Apart from that, LilyPond will use suitable enharmonic key signatures if > things (i.e. accidentals) are getting too weird. > In your example, the second key signature (F major) will *not* be converted > into Fb major (with 6 flats and even one double-flat!) but into E

Re: transpose several key signature

2018-05-30 Thread Torsten Hämmerle
Hi Ming, I think there is a general misunderstanding: When saying "\transpose ef d", ef and d do *not* mean key signatures but reference pitches defining an interval, nothing more, nothing less. For specifying a key signature, by the way, you'd also have to state the mode (e.g. minor, major, dori

Re: transpose to a set of pitches

2018-02-28 Thread Sirius Barras
On 27 February 2018 at 22:24, Thomas Morley wrote: > 2018-02-27 19:12 GMT+01:00 Sirius Barras : > > I would like to transpose a motif (using \modalTranspose) to a _set_ of > > different pitches. At the moment this is what I do: > > > > scale = {c d e f g a b} > > motif = {c' e' g' c'} > > { > >

Re: transpose to a set of pitches

2018-02-27 Thread Thomas Morley
2018-02-27 19:12 GMT+01:00 Sirius Barras : > I would like to transpose a motif (using \modalTranspose) to a _set_ of > different pitches. At the moment this is what I do: > > scale = {c d e f g a b} > motif = {c' e' g' c'} > { > \modalTranspose c e \scale \motif > \modalTranspose c g \scale \mo

Re: \transpose and quoted music

2017-08-07 Thread David Kastrup
Jérôme Plût writes: > Let's say I am typesetting some orchestra music written for a horn in > D and want to output it for some other, more reasonably-pitched > instrument. > > I entered the music in this way: > > global = { \key d \minor } > cues = \relative { c'4^"Cue" c c c } \addQuote "cues" \

Re: : Re: transpose range

2017-06-30 Thread Gianmaria Lari
Dear Peter, I only spent one hour on it and I have not been able to make it working as I need. It is not clear to me the value I have to set to set the instrument range from c, to b,. But I think that when I will have more time I should be able to modify your code for that. * * * By the way th

Re: : Re: transpose range

2017-06-29 Thread David Kastrup
"Peter Gentry" writes: > Gianmaria > > > > I have modified the procedure to use pitch-tones to define the > instrument range. It makes little difference to the result. > > > > I haven’t looked at the possibility of rebuilding the pitch just using > pitch-tones (yet) You would not want to d

RE: : Re: transpose range

2017-06-29 Thread Peter Gentry
Gianmaria I have modified the procedure to use pitch-tones to define the instrument range. It makes little difference to the result. I haven’t looked at the possibility of rebuilding the pitch just using pitch-tones (yet) Have you had any luck yet? \version "2.19.15" % -

Re: : Re: transpose range

2017-06-27 Thread Anthony Youngman
On 26/06/17 22:56, Peter Gentry wrote: dak@lola:/usr/local/tmp/lilypond$ lilypond scheme-sandbox GNU LilyPond 2.19.59 Processing `/usr/local/share/lilypond/2.19.59/ly/scheme-sandbox.ly' Parsing... guile> (apply - (map ly:pitch-tones (list #{ eis #} #{ fes #}))) 1/2 guile> -- David Kastrup A

Re: Transpose range Apology

2017-06-27 Thread David Kastrup
"Peter Gentry" writes: > Apologies you must think me some kind of retarded idiot. It's not uncommon for my attempts at joking to bounce. > I must learn to think a bit before mistyping rubbish but at 76 these > niceties seem a lost cause. I've given up much earlier than that. -- David Kastrup

Re: Transpose range Apology

2017-06-27 Thread Peter Gentry
Apologies you must think me some kind of retarded idiot. I must learn to think a bit before mistyping rubbish but at 76 these niceties seem a lost cause. Yes yes yes there is a problem with the tone tone semitone tone tone tone semitone notation and the octave note alteration calculation.

Re: : Re: transpose range

2017-06-26 Thread David Kastrup
"Peter Gentry" writes: > A semi tone difference is indeed noticeable but surely there is no > semitone between e sharp and f flat? There is. > It’s the same key on the piano! It isn't. > Where is the semitone? e sharp (a white key) is a semitone above f flat (another white key) and your prop

Re: : Re: transpose range

2017-06-26 Thread Gianmaria Lari
Thank you Peter and David for your help. I'll make some tests in the followings hours. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: : Re: transpose range

2017-06-26 Thread Thomas Morley
2017-06-26 23:56 GMT+02:00 Peter Gentry : > > > -Original Message- > From: David Kastrup [mailto:d...@gnu.org] > Sent: 26 June 2017 15:31 > To: Peter Gentry > Cc: Lilypond > Subject: Re: : Re: transpose range > > "Peter Gentry" writes: >

RE: : Re: transpose range

2017-06-26 Thread David Nalesnik
Hi, On Jun 26, 2017 4:57 PM, "Peter Gentry" wrote: -Original Message- From: David Kastrup [mailto:d...@gnu.org] Sent: 26 June 2017 15:31 To: Peter Gentry Cc: Lilypond Subject: Re: : Re: transpose range "Peter Gentry" writes: > From: David Kastrup [mailto:d

RE: : Re: transpose range

2017-06-26 Thread Peter Gentry
-Original Message- From: David Kastrup [mailto:d...@gnu.org] Sent: 26 June 2017 15:31 To: Peter Gentry Cc: Lilypond Subject: Re: : Re: transpose range "Peter Gentry" writes: > From: David Kastrup [mailto:d...@gnu.org] > > "Peter Gentry" writes: &g

Re: : Re: transpose range

2017-06-26 Thread David Kastrup
"Peter Gentry" writes: > From: David Kastrup [mailto:d...@gnu.org] > > "Peter Gentry" writes: >> >> The numeric pitch (op) is calculated by (define op (+ (* 14 o) (* n >> 2) (/ a 2))) “op is a unique number representing the pitch of the >> note” > >> Uh, that's pretty bad since it sees eis as e

RE: : Re: transpose range

2017-06-26 Thread Peter Gentry
-Original Message- From: David Kastrup [mailto:d...@gnu.org] Sent: 26 June 2017 13:43 To: Peter Gentry Cc: 'Gianmaria Lari' ; Lilypond Subject: Re: : Re: transpose range "Peter Gentry" writes: > You will need to modify the attach file (instrument_ranges.ly

Re: : Re: transpose range

2017-06-26 Thread David Kastrup
"Peter Gentry" writes: > You will need to modify the attach file (instrument_ranges.ly) since you are > only interested in one instrument. > > > > A numeric pitch can be constructed from three components of the lilypond > pitch p > > > > 1.The octave o obtained from (ly:pitch-octave p

RE: : Re: transpose range

2017-06-26 Thread Peter Gentry
ck I hope this helps. From: Gianmaria Lari [mailto:gianmarial...@gmail.com] Sent: 25 June 2017 16:25 To: Peter Gentry Cc: Lilypond Subject: Re: : Re: transpose range Yes, I'm very much interested. I will use it with left hand bass note for standard bass accordion notation; for that w

: Re: transpose range

2017-06-25 Thread Peter Gentry
Yes there is a way but it has disadvantages. Often the result is awkward jumps. I indicate changed notes by note head style and colour so that it is easier to edit the results. If you are still interested let me know and I will send you the scheme procedure and an example. I allow for diff

Re: transpose range

2017-06-25 Thread Manuela Gößnitzer
You need to split the music expression, I cannot think of a different solution because \transpose c e, \music would be too low. 2017-06-25 10:29 GMT+02:00 Gianmaria Lari : > The result of a transpose operation sometimes generate notes that are too > high (or too low) for my needs. In this case

Re: \transpose and \quoteDuring

2017-04-17 Thread caagr98
Looks a bit silly, but I suppose it'll have to do. Thanks. On 04/17/17 17:55, Kieren MacMillan wrote: Hi, It appears \transpose has no effect on \quoteDuring. Yes, this is the reality. (There’s a technical explanation somewhere on the list, but it does seem a puzzling restriction.) How ca

Re: \transpose and \quoteDuring

2017-04-17 Thread Paul Scott
On Mon, Apr 17, 2017 at 05:49:36PM +0200, caag...@gmail.com wrote: > It appears \transpose has no effect on \quoteDuring. \transposition can be > abused to fix it, but that doesn't affect midi playback. How can I work > around this? > Add another quote for each transposition. See additions below

Re: \transpose and \quoteDuring

2017-04-17 Thread Kieren MacMillan
Hi, > It appears \transpose has no effect on \quoteDuring. Yes, this is the reality. (There’s a technical explanation somewhere on the list, but it does seem a puzzling restriction.) > How can I work around this? \version "2.18.2" foo = { c' d' e' f' } \addQuote "foo" \foo \addQuote "foo^8" \

Re: transpose a score from mutopia

2016-12-01 Thread Simon Albrecht
On 01.12.2016 21:06, mj wrote: Thinking about it... it might actually be faster to just transpose from the sheetmusic. It's just two voices and soprano... What Nicolas Sceaux has done here, is one way of coping with a large LilyPond project. On one hand, this makes management much easier _if_

Re: transpose a score from mutopia

2016-12-01 Thread karl
MJ: ... > Thinking about it... it might actually be faster to just transpose from > the sheetmusic. It's just two voices and soprano... ... If you want to do a subset of the work, you can write your own score file and include the relevant voices. (cd to top dir of file structure) The chorus p

Re: transpose a score from mutopia

2016-12-01 Thread mj
Hi Karl, There is a lot of information in your email, I'll need t bit of time to digest it all. Thinking about it... it might actually be faster to just transpose from the sheetmusic. It's just two voices and soprano... Thanks for your big reply! MJ On 12/01/2016 06:18 PM, k...@aspodata.

Re: transpose a score from mutopia

2016-12-01 Thread karl
mj: ... > Michael: > >> I am trying to transpose a Messiah lilypond file from mutopia: > >> http://www.mutopiaproject.org/ftp/HandelGF/HWV56/Messiah/Messiah-lys.zip > >> > >> However I'm not getting very far, could use a bit of help > >> > >> Extracting the zip gives a folder structure like: >

Re: transpose a score from mutopia

2016-12-01 Thread Gerdau, Michael
> Hi MJ, > > > Thanks for your suggestion, it improves matters a lot, but there are > > still *MANY* (different kinds) errors. The complete output is here: > > > > http://codepad.org/Qc93Rvyu > > I see lots of errors. I then had a look at the Messiah ly files and saw most > of > them have no \v

Re: transpose a score from mutopia

2016-12-01 Thread Gerdau, Michael
Hi MJ, > Thanks for your suggestion, it improves matters a lot, but there are > still *MANY* (different kinds) errors. The complete output is here: > > http://codepad.org/Qc93Rvyu I see lots of errors. I then had a look at the Messiah ly files and saw most of them have no \version in them, whic

Re: transpose a score from mutopia

2016-12-01 Thread mj
Hi Michael, Thanks for your suggestion, it improves matters a lot, but there are still *MANY* (different kinds) errors. The complete output is here: http://codepad.org/Qc93Rvyu Are there some basic settings/things that would perhaps help..? (and generally speaking... would main.ly be the fi

Re: transpose a score from mutopia

2016-11-30 Thread Gerdau, Michael
Hi MJ, > I am trying to transpose a Messiah lilypond file from mutopia: > http://www.mutopiaproject.org/ftp/HandelGF/HWV56/Messiah/Messiah-lys.zip > > However I'm not getting very far, could use a bit of help > > Extracting the zip gives a folder structure like: > > > |-common >

Re: Transpose down a perfect fifth

2016-04-11 Thread David Kastrup
Ryan Michael writes: >> On Monday, April 11, 2016, David Kastrup wrote: >> >>> Ryan Michael > writes: >>> >>> > Sorry all . I was doing \transpose but on something demarcated as >>> > \relative >>> > c'{} >>> > >>> > Which meant it was an octave higher after transposition >>> >>> \transpose wor

Re: Transpose down a perfect fifth

2016-04-11 Thread Ryan Michael
Why is that a bad idea? On Monday, April 11, 2016, David Kastrup wrote: > Ryan Michael > writes: > > > Sorry all . I was doing \transpose but on something demarcated as > \relative > > c'{} > > > > Which meant it was an octave higher after transposition > > \transpose works fine on the result of

Re: Transpose down a perfect fifth

2016-04-11 Thread David Kastrup
Ryan Michael writes: > Sorry all . I was doing \transpose but on something demarcated as \relative > c'{} > > Which meant it was an octave higher after transposition \transpose works fine on the result of \relative. More likely than not you are not using \transpose on the result of \relative bu

Re: Transpose down a perfect fifth

2016-04-10 Thread Ryan Michael
Sorry all . I was doing \transpose but on something demarcated as \relative c'{} Which meant it was an octave higher after transposition On Sunday, April 10, 2016, Tim McNamara wrote: > > > Sent from my iPad > > > On Apr 10, 2016, at 5:21 PM, Ryan Michael > wrote: > > > > Hello . I have a scor

Re: Transpose down a perfect fifth

2016-04-10 Thread Tim McNamara
Sent from my iPad > On Apr 10, 2016, at 5:21 PM, Ryan Michael wrote: > > Hello . I have a score that I would the entirety of to be transposed down a > perfect fifth. > I tried > > \Transpose c f,{ > > E4 e f g g f e d c c d e e4. D8 d2 r2 > } Out of curiosity, did \Transpose really work?

Re: Transpose down a perfect fifth

2016-04-10 Thread Thomas Morley
2016-04-11 0:21 GMT+02:00 Ryan Michael : > Hello . I have a score that I would the entirety of to be transposed down a > perfect fifth. > I tried > > \Transpose c f,{ > > E4 e f g g f e d c c d e e4. D8 d2 r2 > } > > But that was greater than a fifth. > > Then I tried > > \transpose c f{ > > %ibid

Re: \transpose not work working inside define-music-function

2015-12-28 Thread David Kastrup
"Phil Holmes" writes: > This was answered yesterday. Please check the list. > > -- > Phil Holmes > > > - Original Message - > From: John Smith > To: lilypond-user@gnu.org > Sent: Saturday, December 26, 2015 11:01 PM > Subject: \transpose not work working inside define-music-

Re: \transpose not work working inside define-music-function

2015-12-28 Thread David Kastrup
Wols Lists writes: > On 27/12/15 16:32, J Smith wrote: >> I'm trying to define a music function that transposes a chord and a >> melody multiple times. But for some reason, the transposition is done >> only once. >> >> Here's my attempt: >> >> repeatpattern = >> #(define-music-function (pa

Re: \transpose not work working inside define-music-function

2015-12-28 Thread Phil Holmes
This was answered yesterday. Please check the list. -- Phil Holmes - Original Message - From: John Smith To: lilypond-user@gnu.org Sent: Saturday, December 26, 2015 11:01 PM Subject: \transpose not work working inside define-music-function I'm trying to define a music f

Re: \transpose not work working inside define-music-function

2015-12-27 Thread Thomas Morley
2015-12-27 17:32 GMT+01:00 J Smith : > I'm trying to define a music function that transposes a chord and a > melody multiple times. But for some reason, the transposition is done > only once. > > Here's my attempt: > > repeatpattern = > #(define-music-function (parser location chord pattern) (ly:m

Re: \transpose not work working inside define-music-function

2015-12-27 Thread Wols Lists
On 27/12/15 16:32, J Smith wrote: > I'm trying to define a music function that transposes a chord and a > melody multiple times. But for some reason, the transposition is done > only once. > > Here's my attempt: > > repeatpattern = > #(define-music-function (parser location chord pattern) (l

Re: transpose pitch by semitones

2015-12-20 Thread David Kastrup
Urs Liska writes: > Am 01.12.2015 um 15:48 schrieb Gilles THIBAULT: >>> OK, this one is more straightforward... >> ...but your idea was probably the best : > > :-) > > Thank you for your input and sorry I didn't have time to reply earlier. > Maybe "best" is also a matter of use case here, but I h

Re: transpose pitch by semitones

2015-12-01 Thread David Kastrup
Urs Liska writes: > Am 01.12.2015 um 15:48 schrieb Gilles THIBAULT: >>> OK, this one is more straightforward... >> ...but your idea was probably the best : > > :-) > > Thank you for your input and sorry I didn't have time to reply earlier. > Maybe "best" is also a matter of use case here, but I h

Re: transpose pitch by semitones

2015-12-01 Thread David Kastrup
Gilles THIBAULT writes: >> OK, this one is more straightforward... > ...but your idea was probably the best : > > > #(define (semitones->pitch semitone) >(let ((index (modulo semitone 12)) > (octave (quotient semitone 12))) > (apply ly:make-pitch (cons >

Re: transpose pitch by semitones

2015-12-01 Thread Urs Liska
Am 01.12.2015 um 15:48 schrieb Gilles THIBAULT: >> OK, this one is more straightforward... > ...but your idea was probably the best : :-) Thank you for your input and sorry I didn't have time to reply earlier. Maybe "best" is also a matter of use case here, but I have the impression that in thi

Re: transpose pitch by semitones

2015-12-01 Thread Gilles THIBAULT
> OK, this one is more straightforward... ...but your idea was probably the best : #(define (semitones->pitch semitone) (let ((index (modulo semitone 12)) (octave (quotient semitone 12))) (apply ly:make-pitch (cons octave (list-ref '((0 0)

Re: transpose pitch by semitones

2015-12-01 Thread Gilles THIBAULT
> I made this function some times ago, but don't know if is enough > straightforward :-) OK, this one is more straightforward... %% sharp #(define (semitones->pitch n) (let ((a (quotient n 12)) (b 0) (c (modulo n 12))) (cond ;; 2 semitones in a tone but

Re: transpose pitch by semitones

2015-11-30 Thread Gilles THIBAULT
> #(define (semitones->pitch semitone) >(let ((index (modulo semitone 12)) > (octave (floor (/ semitone 12 > (list > octave > (list-ref >'((0 0) ; c > (0 1/2) ; cis > (1 0) ; d > (1 1/2) ; dis > (2 0) ; e >

Re: Transpose without collapsing double accidentals

2015-09-19 Thread David Kastrup
msk...@ansuz.sooke.bc.ca writes: > On Sat, 19 Sep 2015, Michael Gerdau wrote: >> > > Issue 1009, fixed in version 2.19.0. >> > >> > LilyPond 2.19 (installation of which is non-trivial, since it seems to be >> > only available through Git >> >> Have you checked out >> http://lilypond.org/developmen

Re: Transpose without collapsing double accidentals

2015-09-19 Thread mskala
On Sat, 19 Sep 2015, Michael Gerdau wrote: > > > Issue 1009, fixed in version 2.19.0. > > > > LilyPond 2.19 (installation of which is non-trivial, since it seems to be > > only available through Git > > Have you checked out > http://lilypond.org/development.de.html > > Of course it is not 2.19.0 bu

Re: Transpose without collapsing double accidentals

2015-09-19 Thread Michael Gerdau
> > Issue 1009, fixed in version 2.19.0. > > LilyPond 2.19 (installation of which is non-trivial, since it seems to be > only available through Git Have you checked out http://lilypond.org/development.de.html Of course it is not 2.19.0 but 2.19.27 HTH, Michael -- Michael Gerdau email: m

Re: Transpose without collapsing double accidentals

2015-09-19 Thread mskala
On Sat, 19 Sep 2015, David Kastrup wrote: > msk...@ansuz.sooke.bc.ca writes: > > > If transposing music produces notes with alteration of more than a whole > > tone, \transpose will produce a warning and change the note name. I would > > like to be able to transpose notes up or down an octave with

Re: Transpose without collapsing double accidentals

2015-09-19 Thread David Kastrup
msk...@ansuz.sooke.bc.ca writes: > If transposing music produces notes with alteration of more than a whole > tone, \transpose will produce a warning and change the note name. I would > like to be able to transpose notes up or down an octave without changing > their names or alteration at all, ev

Re: \transpose and quoting

2015-08-15 Thread Simon Albrecht
Thanks, Kieren and Paul. Pre-transposing works. Best, Simon Am 15.08.2015 um 17:31 schrieb Kieren MacMillan: Hi Simon, I’m looking for a way to quote another voice, but in a different octave. I ran into this, too. Don’t know if it’s the best way, but I used \addQuote “melody_8vb” \tran

Re: \transpose and quoting

2015-08-15 Thread Kieren MacMillan
Hi Simon, > I’m looking for a way to quote another voice, but in a different octave. I ran into this, too. Don’t know if it’s the best way, but I used \addQuote “melody_8vb” \transpose c c, { \melody } and then directly quoted the [pre-transposed] quote. Of course, it would be much better

Re: \transpose and quoting

2015-08-15 Thread Paul Scott
On Sat, Aug 15, 2015 at 04:09:37PM +0100, Wols Lists wrote: > On 15/08/15 15:55, Simon Albrecht wrote: > > Hello, > > > > I’m looking for a way to quote another voice, but in a different octave. > > My thinking was: ‘\quoteDuring is a music function, so it returns music, > > so I can wrap it into

Re: \transpose and quoting

2015-08-15 Thread Paul Scott
On Sat, Aug 15, 2015 at 04:55:19PM +0200, Simon Albrecht wrote: > Hello, > > I’m looking for a way to quote another voice, but in a different octave. My > thinking was: ‘\quoteDuring is a music function, so it returns music, so I > can wrap it into \transpose c c, {} and all’s fine.’ However, \tra

Re: \transpose and quoting

2015-08-15 Thread Wols Lists
On 15/08/15 15:55, Simon Albrecht wrote: > Hello, > > I’m looking for a way to quote another voice, but in a different octave. > My thinking was: ‘\quoteDuring is a music function, so it returns music, > so I can wrap it into \transpose c c, {} and all’s fine.’ However, > \transpose has no effect.

Re: Transpose not the resulting notes, but the codes that produced the notes

2014-12-24 Thread Urs Liska
Please ask that on Frescobaldi's issue tracker. Am 24. Dezember 2014 16:21:49 MEZ, schrieb Phil Burfitt : >- Original Message - >From: "Urs Liska" > >>>Is there a way to transpose the underlying lilypond codes? >>> Yes: using Frescobaldi >>> Tools -> pitches > > >Nice! I hadn'

Re: Transpose not the resulting notes, but the codes that produced the notes

2014-12-24 Thread Phil Burfitt
- Original Message - From: "Urs Liska" Is there a way to transpose the underlying lilypond codes? Yes: using Frescobaldi Tools -> pitches Nice! I hadn't realised that Frescobaldi transposed the code. However, it also transposes string tunings. \set Staff.stringTunings = \str

Re: Transpose not the resulting notes, but the codes that produced the notes

2014-12-21 Thread Urs Liska
Am 22. Dezember 2014 00:23:11 MEZ, schrieb Stan Mulder : >Urs Liska openlilylib.org> writes: > >> Am 21. Dezember 2014 23:31:52 MEZ, schrieb Stan Mulder >earthlink.net>: >> >So let's say I started writing a song in Ab and then I decide it >really >> >should have been written in Eb. Is there a

Re: Transpose not the resulting notes, but the codes that produced the notes

2014-12-21 Thread Stan Mulder
Urs Liska openlilylib.org> writes: > Am 21. Dezember 2014 23:31:52 MEZ, schrieb Stan Mulder earthlink.net>: > >So let's say I started writing a song in Ab and then I decide it really > >should have been written in Eb. Is there a way to transpose the > >underlying > >lilypond codes? > > Yes: usi

Re: Transpose not the resulting notes, but the codes that produced the notes

2014-12-21 Thread Urs Liska
Am 21. Dezember 2014 23:31:52 MEZ, schrieb Stan Mulder : >So let's say I started writing a song in Ab and then I decide it really >should have been written in Eb. Is there a way to transpose the >underlying >lilypond codes? Yes: using Frescobaldi ;-) Urs > > >_

Re: Transpose a lilypond file

2014-10-05 Thread Jay Vara
Urs > >#(define transposeTo #{ d #}) > >\include "song.ly" > > > > > > Cool solution, I'll take this into my repertoire. > > You can then factor out the function into a library file. And you could pass the variable on the commandline > instead of adding a new file. > Being able to call from

Re: Transpose a lilypond file

2014-10-05 Thread Jay Vara
Marc > > #(define transposeTo > (if (defined? 'transposeTo) > transposeTo > #{ c #})) > > melody = { ... } > chords = {... } > > \score { > \transpose c $transposeTo > << > ...chords ... > ...melody ... > >> > } > > Then you simply make a new file so

Re: Transpose a lilypond file

2014-10-05 Thread Richard Shann
On Sun, 2014-10-05 at 11:27 +0200, Urs Liska wrote: > > Am 5. Oktober 2014 11:18:42 MESZ, schrieb Marc Hohl : > >Am 05.10.2014 um 10:03 schrieb Jay Vara: > >> I have a song.ly file which prints a song. Is it possible for someone > >to > >> print the song with a transposition, say c to d, without e

Re: Transpose a lilypond file

2014-10-05 Thread Urs Liska
Am 5. Oktober 2014 11:18:42 MESZ, schrieb Marc Hohl : >Am 05.10.2014 um 10:03 schrieb Jay Vara: >> I have a song.ly file which prints a song. Is it possible for someone >to >> print the song with a transposition, say c to d, without editing the >.ly >> file? Something like: >> >> \transpose c d {

Re: Transpose a lilypond file

2014-10-05 Thread Marc Hohl
Am 05.10.2014 um 10:03 schrieb Jay Vara: I have a song.ly file which prints a song. Is it possible for someone to print the song with a transposition, say c to d, without editing the .ly file? Something like: \transpose c d {\include song.ly} I had a similar problem some time ago. I included

Re: Transpose a lilypond file

2014-10-05 Thread Urs Liska
Not directly. You should somehiw pull the music variables out of song.ly and compile a second file. Or you use version control and either create a transposed branch or simply edit, compile and discard the transposition. HTH Urs Am 5. Oktober 2014 10:03:29 MESZ, schrieb Jay Vara : >I have a so

Re: Transpose a lilypond file

2014-10-05 Thread Malte Meyn
You can do something like the following and move the “foo = …” into song.ly: \version "2.19.13" foo = \new Score { << { c' d' e' f' } >> } { \foo } \transpose c d \foo Am 05.10.2014 um 10:03 schrieb Jay Vara: I have a song.ly file which prints a song. Is it possible for someone to pr

  1   2   3   >