arranger.ly : update to Lilypond 2.25.7

2023-09-14 Thread Gilles Thibault
The arranger.ly update for the latest Lilypond versions has been released. Download links at the bottom of the page. It's mainly an update, but there is a new feature for managing Lilypond "modes" (\drummode, \lyricmode etc...). It makes it possible to lighten the syntax, for example for

Re: chord.ly to extract notes from chords breaks with new Guile

2023-05-30 Thread Gilles Thibault
in the hope of separating MIDI notes that don't have identical timing. That is, if my input is << { a1 } \\ { b2 2 } >> it would be nice to be able to separate it out into three separate outputs for separate MIDI channels, like: { a1 } { b2 c2 } { r2 d2 } Not hardly tested but

Re: chord.ly to extract notes from chords breaks with new Guile

2023-05-29 Thread Gilles Thibault
Le 2023-05-27 22:31, msk...@ansuz.sooke.bc.ca a écrit : Back in 2015 people on the list helped me with extracting notes from chords, in this thread: https://lists.gnu.org/archive/html/lilypond-user/2015-09/msg00394.html chord.ly has been renamed to chordsAndVoices.ly (it deals also now

Re: Count the number of notes

2023-01-05 Thread Gilles Thibault
Le 2022-12-20 22:20, | || | | a écrit : I need to count the number of notes between to functions. For Example: \new Staff{ c4-- \startCount d8-> e8-> f8-> g8-> \stopCount #(display how-much-notes-selected) } This will be develop for more complex function that will change

arranger:ly: update for Lilypond 2.24.0 and Guile 2.2

2022-12-17 Thread Gilles Thibault
Hello everyone. All is in the title. Good download. -> Github: https://github.com/gilles-th/arranger.ly -> Direct access: http://gillesth.free.fr/Lilypond/arranger-GIT-copy/arranger.ly.zip -> In command line with wget (the main files of arranger.ly in an arranger.ly directory in

Re: question about arranger.ly, export notes as text.

2022-08-01 Thread Gilles Thibault
Le 2022-08-01 20:08, Eef Weenink a écrit : I could solve my issue with the workaround: \displayLilyMusic { \viola } Yes. arranger.ly uses display-lily-music which is the scheme version of \displayLilyMusic but has an additionnal parameter : the port which can be a file #(let ((port

Re: question about arranger.ly, export notes as text.

2022-08-01 Thread Gilles Thibault
Le 2022-07-30 22:46, Eef Weenink a écrit : It gives error; Ah yes damn, the latest version of arranger.ly has a bug on line 112. [(= n 0) crashes when n is not a number)] I had reorganized this portion of code but I did not see this error because it only impacts a very small number of

Re: question about arranger.ly, export notes as text.

2022-07-30 Thread Gilles Thibault
In the manual is says" " Once the arrangement is finished, it can be exported to usual LilyPond source: flute = {...} clar = {...} From arrangerDoc.pdf : export-instruments syntax (export-instruments instruments filename #:optional overwrite?) So something like

Re: Help needed with arranger.ly

2022-07-25 Thread Gilles Thibault
Le 2022-07-24 13:38, Eef Weenink a écrit : I need some help to get this nice program really running. I read the manual several times,studied NOTES.ly etcetera and now able to get the first parts of music on the correct place. :-) (I am using a score with 6 instruments and I am

Re: question concerning arranger tool

2022-07-21 Thread Gilles Thibault
Is there an easy way in arranger.ly to quote a theme or motive with one command in different or voices? What would be e.g. if You have a fugue with the dux in soprano, alto, etc. in different voices at different places in the score? Well, in one command, not directly because a lot of

arranger.ly update

2022-07-11 Thread Gilles Thibault
Hello everyone. A new arranger.ly version has been released ( version Y/M/D = 2022/07/11 ). Below are the download links. Arranger.ly help can be accessed directly here: http://gillesth.free.fr/Lilypond/arranger-docs/arrangerDoc-en.pdf New features: - add-dynamics function support for

Re: filter the nth note

2022-07-04 Thread Gilles Thibault
Le 2022-06-19 10:58, Stefan Thomas a écrit : allNotes= { c'8 g' e' g' d' g' f' g' c' g' e' g' } someNotes = { c' d' c' } In other words: I would like to filter out every 4th note of allNotes, so that I could do in combination with changePitch (see

Re: question concerning arranger tool

2022-07-04 Thread Gilles Thibault
Le 2022-06-20 14:12, Stefan Thomas a écrit : Dear community, I try to understand more of the arranger tool, have a look at https://github.com/gilles-th/arranger.ly Could someone give an instructional example, what the functions copy-out can do and how it works? I generally think taht there

Re: how to split into two parts

2022-04-23 Thread Gilles Thibault
I would like to ask You two questions concerning the code, You've sended: 1. How does the function noteToRest "know", that the f sharp has to be converted to a rest? It is not an EventChord, only a NoteEvent 2. Is it possible to to convert fis'8 r8 to r4 You can then use

Re: how to split into two parts

2022-04-23 Thread Gilles Thibault
Is there an easy way to get this result automatically? Sorry Stephan, to answer so late. % \version "2.22.0" \include "chordsAndVoices.ly" global = { \time 7/8 } flutes = { \global 8 r fis' 8 r 8 r8 r 8 r fis' 8 r r4 } noteToRest = #(define-music-function (music)

Re: arranger, context voice

2021-11-10 Thread Gilles Thibault
I would like to understand what is the difference beetween \new Staff \new Voice \A and \new Staff \A This is not related to arranger.ly : This snippet works : %%% \version "2.22.0" music = { c'1 c' c' c' } skips = { s1*2 s1*2^"Hello" } \new Staff << \skips \music

Re: arranger, context voice

2021-11-06 Thread Gilles Thibault
Le 2021-11-01 18:26, Stefan Thomas a écrit : Dear community, I would like to do with arranger.ly something similar to Key = { \key f \major } music = { \Key c'4 d' e' f'2.} artiA = { s2.( s) } music = { \context Voice << {\music} {\artiA } >> } I tried in in the following way, without

arranger.ly update

2021-06-21 Thread Gilles Thibault
Everything is said in the title (download links at the bottom of the message). On the menu, mostly a lot of code cleaning, but also new functions and new features. They are all explained in the documentation which is directly accessible here:

Re: trying arranger and extract music

2021-06-15 Thread Gilles Thibault
Unfortunately, I'm not able to manage some of the functions in the right way. Oh, I'm so sorry, I've been so busy this week, I haven't taken the time to read any messages of the Lilypond list. This example doesn't work and I can't find out the mistake: The guilty line seems to be this one

Re: first trial with arranger.ly

2021-05-03 Thread Gilles Thibault
Unbound variable: expand-notes-and-chords-copy-of I have changed something in file changePitch.ly. The function expand-notes-and-chords-copy-of is defined in this new version https://github.com/gilles-th/arranger.ly/blob/master/changePitch.ly Um, I have to make some progress to

Re: first trial with arranger.ly

2021-04-08 Thread Gilles Thibault
Le 2021-04-08 11:12, Stefan Thomas a écrit : Dear gilles, thanks very much for Your reply and Your kind help. I'm using version 2.22.0 now. Unfortunately, with this version, I can't see neither metronome-marks nor time signature nor anything else. I have just installed version 2.22.

Re: first trial with arranger.ly

2021-04-06 Thread Gilles Thibault
Before i make a new push Push done : Github https://github.com/gilles-th/arranger.ly Direct access : http://gillesth.free.fr/Lilypond/arranger-GIT-copy/arranger.ly.zip It seems that in my last push, I've changed the signature of the tempos function ! I don't understand why or how i did

Re: first trial with arranger.ly

2021-04-06 Thread Gilles Thibault
Le 2021-04-06 17:34, Stefan Thomas a écrit : Interpreting music...[8][16][24][32][40][48][56][64] Deleting `/tmp/lilypond-JkJ8B6'... Wrong type (expecting pair): () fatal error: failed files: "/tmp/lyp/wrappers/arangertest.ly" Oh sorry. It's my bad It seems that in my last push, I've changed

Re: partcombine does not print rests

2021-02-01 Thread Gilles Thibault
Do I have to abandon partcombine and use the << {} \\ {} >> construct to obtain what I want? You can insert a \partcombineApart in the beginning of lh_one and restore the default behaviour m25 with a \partcombineAutomatic, when there are no more rests. lh_one = \relative f {

Re: arranger.ly and lilypond 2.21+: error with the \note markup command

2021-01-20 Thread Gilles Thibault
Le 2021-01-15 23:26, Stefano Troncaro a écrit : Hi everyone, I started learning to use the spectacular arranger.ly library that was mentioned in the list a while ago. While most of it works great, I found that internally it sometimes uses the \note

Re: Spreadsheet - Python – Ly

2020-11-22 Thread Gilles Thibault
Over last last couple of days I have been thinking about possible ways to organize the engraving of a rather large piece (~45+ staves) in Lilypond. My problem is that the piece in question might undergo significant changes in the future, so I need access to both instrument-wise and

Re: arranger.ly (new library)

2020-10-22 Thread Gilles Thibault
at 11:04, Gilles Thibault wrote: I have been using a Lilypond library called "arranger.ly" for several years. It has made it much easier for me to create arrangements for large ensembles and it is time for me to share this new approach with the community. W Oh yes. Very good idea.

arranger.ly (new library)

2020-10-22 Thread Gilles Thibault
I have been using a Lilypond library called "arranger.ly" for several years. It has made it much easier for me to create arrangements for large ensembles and it is time for me to share this new approach with the community. What I call "arrangement" here is for example the transcription for

Re: Replace the notes in a phrase (drum notation) with scheme?

2020-04-28 Thread Gilles Thibault
I appreciate the suggestion, but I don't think that helps.  I can see that you are replacing whole bars of music, which is kinda cool in fact.  However, it doesn't help me with my goal which is to not have to define groovec at all. Yes ok. Below a solution replacing only one note, all 4

Re: Replace the notes in a phrase (drum notation) with scheme?

2020-04-27 Thread Gilles Thibault
groove = \drummode { << \voiceOne { \repeat unfold 8 {hh8}} \\ \voiceOne { s4 sn4 s4 sn4 } \\ \voiceTwo { bd8 bd8 r4 bd8 bd8 bd8 bd8 } >> } Hello Stafano. Perhaps you can try \multiReplaceMusic, a function from extractMusic.ly described

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

Re: Extract the first notes from a musical expression

2018-11-16 Thread Gilles Thibault
Le 2018-11-15 09:17, Gianmaria Lari a écrit : http://lsr.di.unimi.it/LSR/Item?id=542 For Lilypond 2.19.XX, you'll need this updated version : http://gillesth.free.fr/Lilypond/extractMusic/2.19/extractMusic.ly Note that there is a doc here :

Re: concatenating notes with a music expression

2018-05-14 Thread Gilles Thibault
Le 2018-05-12 00:16, Sirius Barras a écrit : I have a sequence of notes and a music expression. How could be done a function concatenating each element of the sequence with the music expression? For instance, if the sequence is {c b a } and the music expression is { f g } I would like to

Re: addFingering

2017-01-13 Thread Gilles THIBAULT
Le vendredi 13 janvier 2017, 14:06:23 Gianmaria Lari a écrit : > I have a problem with (the fantastic) addFingering snippet. > > Here it is my simple code. > > \version "2.19.54" > \include "addFingering.ly" > > { > \addFingering {a b a b} #"12" > } > > { > \addFingering {\repeat unfold

Re: "unroll code"

2016-05-15 Thread Gilles THIBAULT
Le vendredi 13 mai 2016, 23:01:12 Gianmaria Lari a écrit : > Is there any tool to "unroll" the code. For instance, suppose you have > something like this... > music = > { > \repeat unfold 3 {\fragment.1} > \repeat unfold 2 {\fragment.1 \fragment.2} > } It is note possible with \repeat Use

Re: rhythm shift

2016-03-28 Thread Gilles THIBAULT
> %% TODO: this function [twoTiedNotesToOneNote] probably does not work with chords -:( No it doesn't and it is probably better : music = { 4~ } is correct in Lilypond. So what would be a good result for { \twoTiedNotesToOneNote \music } ? Not smart enough to answer. -- Gilles

Re: rhythm shift

2016-03-28 Thread Gilles THIBAULT
> \time 2/4 > r4 a4 ~ | > a4 b4 ~| > b4 r4 > How can I shift (convert) it to: > \time 2/4 > a2 | > b2 | > r4 For "shifting" rhythm, you can use this snippet : http://lsr.di.unimi.it/LSR/Item?id=542 To transform 2 tied notes into a single note, you have to make your own function...

Re: changePitch and ties

2016-01-03 Thread Gilles THIBAULT
> I'll try to include it in a next release of changePitch.ly Done. http://gillesth.free.fr/Lilypond/changePitch/ Note that, you can deactivate the new automatic tie grouping, for pieces done with previous version of changePitch.ly. Please, see the (also new) doc, changePitch-doc.pdf (end of

Re: changePitch and ties

2015-12-27 Thread Gilles THIBAULT
> Would it be possible to tell changePitch to automatically repeat the pitch > of a tied note? Well, i have just read your message just yesterday. Sorry. Here is a function that automatically repeats the pitch of a tied note. I'll try to include it in a next release of changePitch.ly --

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

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: Strange Scheme problem

2015-11-17 Thread Gilles THIBAULT
> Recently however, some of them got refused by Guile, can’t explain why. > In particular, « siz » computes the size of the filename « filen ». But > here, the filename is Foo.ly, without anything special… Directory name with spaces problem, probably (See message "don't find such directory")

Re: Markup for repeated notes or phrases

2015-11-13 Thread Gilles THIBAULT
> And let's say I want to add fingering instructions, but only to the > first , as if I had written > > \relative c' { 8 8 8 8 8 8 8 > 8 } > Sorry to answer so late. This snippet can perhaps make your life easier : http://lsr.di.unimi.it/LSR/Item?id=768 But it will not work as you expect if

Re: Extract notes from chords, with silence when there are none

2015-09-17 Thread Gilles THIBAULT
> Wrap the whole expression in event-chord-wrap! before handling it. The > LSR issue is probably from before issue 2240 changed the representation > of single notes. > No, it is because "chord.ly" deals only with chords and keeps notes unchanged. But yes, event-chord-wrap! is a quick way here

RE : Extract notes from chords, with silence when there are none

2015-09-16 Thread Gilles Thibault
Provenance : Courrier pour Windows 10 > That's right. I just want any two notes that play simultaneously to be > returned by separate index values into the extraction function, and any > other index values to return something that will be silent (either a skip > or a rest). I don't want

Re: Lining up notes in staves with different rhythms and time signatures

2015-08-21 Thread Gilles THIBAULT
Le vendredi 21 août 2015, 04:13:03 Jack Taylor a écrit : Thank you all very much for your help! I'm now spoiled for choice as to a solution. :) And one another ... -:) %% \layout { ragged-last = ##t % %{ \context { \Score \remove Timing_translator \remove

Re: guile-question: how to do (apply ly:stencil-combine-at-edge args)?

2015-08-18 Thread Gilles THIBAULT
Le mardi 18 août 2015, 23:57:36 Gilles THIBAULT a écrit : I wasn't able to find the correct syntax how to do: (apply ly:stencil-combine-at-edge what-ever-args) Any hints? Perhaps you need to redefine ly:stencil-combine-at-edge according to your needs . Perhaps something like

Re: guile-question: how to do (apply ly:stencil-combine-at-edge args)?

2015-08-18 Thread Gilles THIBAULT
I wasn't able to find the correct syntax how to do: (apply ly:stencil-combine-at-edge what-ever-args) Any hints? Perhaps you need to redefine ly:stencil-combine-at-edge according to your needs . Perhaps something like that : #(define (my-stencil-combine-at-edge stil1 stil2 . args)

Re: ostinato rhythm

2015-06-07 Thread Gilles THIBAULT
Le dimanche 7 juin 2015, 13:52:20 Dan Eble a écrit : % complete the bass ostinato on the same pitch as the preceding % quarter note ost = \notemode { r8 8~ 4 4 } Used like: | g4 \ost | a4 \ost | … Hello Dan. Perhaps that : http://lsr.di.unimi.it/LSR/Item?id=654 %

Re: Generate multiple score from a single music expression

2015-06-04 Thread Gilles THIBAULT
I didn't think to the solution proposed by Mark that looks very interesting. I'm checking :) It was not something like that, you wanted ? % \include extractMusic.ly fullMusic = \new StaffGroup \new Staff \relative c' { c2 d4 e f g a b c2 d4 e f g a b c1} \new

Re: Color note heads outside nominal instrument range

2015-05-31 Thread Gilles THIBAULT
I modified it. Is the output ok now? http://lsr.di.unimi.it/LSR/Item?u=1id=773 Perfect. The staff 6 is the same as staff 3. (It tests the scheme version of \correctOctaveOutOfRange ). As in the old LSR, only one score could be outputted, this test 6 can perhaps be commented now.

Re: Color note heads outside nominal instrument range

2015-05-31 Thread Gilles THIBAULT
Le dimanche 31 mai 2015, 22:07:09 Gilles THIBAULT a écrit : The staff 6 is the same as staff 3 .. as staff 4 -- Gilles ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Color note heads outside nominal instrument range

2015-05-31 Thread Gilles THIBAULT
Le samedi 30 mai 2015, 12:22:45 David Nalesnik a écrit : Have you seen http://lsr.di.unimi.it/LSR/Item?id=773? Just note that if you want to understand this snippet, you have to change the code : music = \relative { c4 d e f g^g' a b c d e f g^g'' a b c2 } % by music =

Re: Define markup with iteration

2015-04-14 Thread Gilles THIBAULT
;;untested (#:path 0.15 (map (lambda(i) (moveto 0 (* pad i))(lineto long (* pad i)) (iota n) Perhaps (iota (1+ n)) Ok sorry, (moveto 0 (* pad i))(lineto long (* pad i)) was not one instruction but two : (#:path 0.15 (fold (lambda(i,prev)

Re: Define markup with iteration

2015-04-14 Thread Gilles THIBAULT
Le mardi 14 avril 2015, 14:22:58 Pierre Perol-Schneider a écrit : (#:path 0.15 `( (moveto 0 ,(* pad n))(lineto ,long ,(* pad n)) ; n ;;iteration: ;(moveto 0 ,(* pad 0))(lineto

Re: documenting public Scheme functions

2015-04-07 Thread Gilles THIBAULT
Le mardi 7 avril 2015, 06:12:12 Pierre Perol-Schneider a écrit : Hi David, Simply thank you very, very much!! +1 It works also with Lilypond 2.18.2 -- Gilles ___ lilypond-user mailing list lilypond-user@gnu.org

Re: How do I extract individual voices from chords

2015-03-22 Thread Gilles THIBAULT
Le dimanche 22 mars 2015, 00:54:08 Johan Vromans a écrit : On Sat, 21 Mar 2015 23:47:35 +0100 Kaj 70147pers...@telia.com wrote: Or: How do I extract the first, second and third voice from the chord score to use as input to the midi? I once wrote a small tool (perl module) to split a

Re: map-some-music question

2014-10-10 Thread Gilles THIBAULT
So the following does what you want because the lambda returns #f You may also want to look at music-map, also defined in music-functions.scm. +1 but music-map will not show the tied event, because music-map doesn't care of 'articulation property (in my memory, in the past, it does). So you

Re: Include a file if it exists

2014-09-08 Thread Gilles THIBAULT
I found out that using #(ly:parser-parse-string (ly:parser-clone parser) \\include \01.ily\) _does_ actually work, but not when the included file contains variable definitions (e.g. music = ...). Still no ideas? Perhaps something like that : %% \version 2.18.2 file =

Re: Include a file if it exists

2014-09-08 Thread Gilles THIBAULT
Le lundi 8 septembre 2014, 23:14:34 Gilles THIBAULT a écrit : but you will get an advertisement for the \include Oh sorry ! i meant a *warning* for the \include -- Gilles ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org

Re: Convert semitones to pitch?

2014-08-17 Thread Gilles THIBAULT
Le samedi 16 août 2014, 23:16:15 rm damerell a écrit : pitch-semitones converts a pitch to semitones. Please does the inverse function exist? Don't know exactly what you need. Perhaps you think at something like that : (The function takes c' as reference note, and shows all altered notes with

Re: \copyArticulations copies not only articulations

2012-10-03 Thread gilles . thibault
%%% \version 2.16.0 \include copyArticulations.ly { \copyArticulations % no articulation included but music has tied notes { c ~ c c ~ c } % ties (not slurs!) get copied here { a' a' a' b' } } %%% 2 solutions : 1- change the pattern

Re: convert from .mus to .ly (Bach BWV 1073: Canon )

2011-05-27 Thread Gilles THIBAULT
i need to generate the actual lilypond notes and not just use the transpose because I'd like to be able to add fingerings. Note that you can add fingerings outside of the music : http://lsr.dsi.unimi.it/LSR/Item?u=1id=768 Gilles ___ lilypond-user

Re: optimising typesetting 2 voices with same notes

2011-05-22 Thread Gilles THIBAULT
my question is how to proceed to have a minimal effort You can use this snippet http://lsr.dsi.unimi.it/LSR/Item?id=654 %% \include changePitch.ly patI = \context Voice {\voiceOne \repeat unfold 4 { s8 c }} patII = \samePitch {\voiceOne c8 s8 } \new Voice {\voiceTwo c4} \new

Re: parenthesize groups of notes

2011-05-08 Thread Gilles THIBAULT
I tried to parenthesize a whole group of notes by enclosing them in braces, as: \parenthesize { a b c } but no parentheses appear. You can try that : %% startParenthesis = { \once \override ParenthesesItem #'stencils = #(lambda (grob) (let ((par-list

Re: parenthesize groups of notes

2011-05-08 Thread Gilles THIBAULT
It's probably possible to automate a bit more but that is the general idea. Something like that : #(define ((my-stencils start) grob) (let* ((par-list (parentheses-item::calc-parenthesis-stencils grob)) (null-par (grob-interpret-markup grob (markup #:null (if start (list (car

Re: Comparing durations in Scheme

2011-05-06 Thread Gilles THIBAULT
Seems a bit of an oversight to me, then, that there is ly:duration? but not ly:duration=? I’ll write my own... well, i know i come too late, but somethig like that should work #(define (ly:duration=? dur1 dur2) (not (or (ly:duration? dur1 dur2) (ly:duration? dur2 dur1

Re: Comparing durations in Scheme

2011-05-06 Thread Gilles THIBAULT
I am not sure what information is stored inside of durations, but it is possible that equal? will do the trick (it does a recursive compare). #(display (equal? (ly:make-duration 1 2 0 0)(ly:make-duration 2 4 0 0))) return #f ( the duration of an half note vs 2 quarter notes) [ Same thing

Re: Suppress NoteNames output on ties ?

2011-03-21 Thread Gilles THIBAULT
Could/did you add this to the LSR? Done http://lsr.dsi.unimi.it/LSR/Item?id=760 Gilles ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Suppress NoteNames output on ties ?

2011-03-20 Thread Gilles THIBAULT
Is it possible to tell the NoteNames engraver to print the name for only the first note of a sequence of tied notes? mymusic = { c'4 c' ~ c'2 } \score { \new Voice \mymusic \context NoteNames \mymusic } Try that %%% tiedNoteToSkip = #(define-music-function (parser

Re: Suppress NoteNames output on ties ?

2011-03-20 Thread Gilles THIBAULT
Could/did you add this to the LSR? Why not, but not before 1 or 2 days, I have to finish a score before tomorow. (Working on this snippet was already not very reasonable ...). I have however change a bit the snippet. It is now cleaner because it deletes all tie events.

Re: Suppress NoteNames output on ties ?

2011-03-20 Thread Gilles THIBAULT
The \noBreak is necessary to prevent system breaks at the dashed bar. I noticed that the function was not suppressing the NoteNames output for notes tied across the dashed bar lines. It appears that the \noBreak is the culprit. mymusic = { \time 7/4 c'2 c'2 ~ \bar dashed c'2.^ok | c'2 c'2 ~ {

Re: Suppress NoteNames output on ties ?

2011-03-20 Thread Gilles THIBAULT
I have not tested but it propably list to errors messages if you use several several notes for each chord. I meant : it propably *leads* to errors messages Gilles ___ lilypond-user mailing list lilypond-user@gnu.org

Re: Roman numerals in my number sequence

2011-03-18 Thread Gilles THIBAULT
fancy-format becomes the name for the ice-9 format function. format becomes the name for ergonomic-simple-format. So you can see that format is redefined to be simple-format. Thanks Carl. All is clearer. So, by default, you should use format and reserve fancy-format for specific uses (ie

Re: Roman numerals in my number sequence

2011-03-17 Thread Gilles THIBAULT
Right -- markFormatter needs to be a procedure, so you define it as a lambda procedure: \set Score.markFormatter = #(lambda (mark) (fancy-format #f ~@r. mark)) Haven't tested, but this is the general idea. This lambda procedure needs 2 arguments. With : \set Score.markFormatter = #(lambda

Re: left-aligning grobs to other grobs

2011-03-14 Thread Gilles THIBAULT
Attached is a function . . . Wahoo. Seems to be a very powerfull function. I keep it in my favorites. Thanks David. Gilles NB If the user enters the value 2 for example as the dir parameter, the function fails. Using = and in the last cond expression avoids that.

Re: changePitch and ties

2011-03-13 Thread Gilles THIBAULT
changePitch at http://gillesth.free.fr/Lilypond/changePitch/changePitch.ly defineTransform in LSR 346 However, each has its deficiencies, and I now need to code some music which neither of these utils can handle. The rhythmic pattern to be repeated involves ties. 346 handles these but

Re: Turning off visible dynamics on lower piano staff

2011-02-21 Thread Gilles THIBAULT
\score { \new PianoStaff { \new Staff { d'2\p f'4 g'\f } \new Staff \with { \remove Dynamic_engraver } { b4\f g\ff a2\p } } } it doesn't do anything at all, and i have no idea why. Anyone? No ideas for that. But here is just a little function

Re: New voices in scheme?

2011-02-20 Thread Gilles THIBAULT
process of converting them manually to two separate voices: c e8 d f e g f a becomes { e8 f g a} \\ { c8 d e f } With the function \extractNote of the snippet you have given ( http://lsr.dsi.unimi.it/LSR/Item?id=545 ), you can have something like that :

Re: Get the pitch as number

2011-02-15 Thread Gilles THIBAULT
I see now what the problem was. however, I'm not quite sure yet how to avoid doing similar mistakes in the future, but maybe I'll get used to it (For example, how do I know that I should start looking for EventChord rather than NoteEvents?) You can start looking for NoteEvent but remenber you

Re: Error in running Lilypond

2011-02-14 Thread Gilles THIBAULT
To tell you the truth, convert-ly doesn'n work for me in lilypondTool. The whole concept of the configuration is windows-oriented Not works for me also in Windows : % Sourced file: jeditresource:/LilyPondTool.jar!/lilytool/macros/convertToLily.bsh : Error in method invocation:

Re: Get the pitch as number

2011-02-11 Thread Gilles THIBAULT
It appears to me that I'm getting a list rather than an integer, but if I run (get-text texts (ly:pitch-semitones (ly:make-pitch 0 1 0))) So get-pitch was probably the culprit ... % #(define (make-text-script x) (make-music 'TextScriptEvent 'direction DOWN

Re: showing counterpoint in solo music

2010-11-21 Thread Gilles THIBAULT
{ f16 d' b g e c | d b' g e c a' } \\ { f16[ s s s e s] | d[ s s s c s] } that means the score has to be typed twice. Well, if you really want to repeat this construct a lot of time, changing only notes, you can use the snippet shortly described here :

Re: Scheme sandbox

2010-06-13 Thread Gilles THIBAULT
If I run guile without GUILE_LOAD_PATH I get the following... C:\Users\Philguile ERROR: In procedure primitive-load-path: ERROR: Unable to find file ice-9/boot-9.scm in load path The following runGuile.bat works in XP without using GUILE_LOAD_PATH, perhaps it will work for Vista. ;

Re: Scheme sandbox

2010-06-13 Thread Gilles THIBAULT
Oh no sorry ! I have posted the wrong file. This one works in XP, without GUILE_LOAD_PATH. Hope it can be a work-around for Vista. ; runGuile.bat %% @echo off start /B /D c:\Program Files\Lilypond\usr guile Gilles ___ lilypond-user

Re: scheme function to extract a specific grob property from a music event?

2010-06-06 Thread Gilles THIBAULT
numx(number?) numy(number?) What I want to do is to eliminate the last argument by setting it to be equal to the same 'Y-offset (or 'staff-position, it is not clear to me yet) of the notehead Hello José. Perhaps that snippet http://lsr.dsi.unimi.it/LSR/Item?id=637 can help you. Ok, it

Re: scheme function to extract a specific grob property from a musicevent?

2010-06-06 Thread Gilles THIBAULT
see attached file. Oh sorry. I send a not cleaned file. Please, take this one instead. Gillesmyfunction = #(define-music-function (parser location event-chord numx) (ly:music? number?) #{ \once \override TextScript

Re: comment faire marcher lily 2.10.33 sur un pc windows xp ?

2010-06-03 Thread Gilles THIBAULT
comment faire marcher lily 2.10.33 sur un pc windows xp ? je l'ai téléchargé(mingw)mais ça ne marche pas; ça afiche # -*-compilation-*- impossible de changer le répertoire de travail pour : C:/Documents... Si tu veux de l'aide en langue française, je t'invite à venir nous rejoindre sur la

Re: Change appearance of the SpanBar

2010-05-17 Thread Gilles THIBAULT
I'm new to lilypond Welcome ! Does anyone know whether it's possible to manually force a SpanBar to appear as |? \override StaffGroup.SpanBar #'glyph-name = #| seems to work. Not easy at all to find. You can also add in your \layout \context { \StaffGroup \override SpanBar #'glyph-name

Re: Page layout for piano four hands

2010-05-09 Thread Gilles THIBAULT
Is there a way to produce such a kind of parallel page breaking automatically? Alas no. Perhaps you can get some tricks in the archives http://lists.gnu.org/archive/html/lilypond-user/ with search-key piano four hands You 'll probably need some tools like that :

Re: \extractMusic documentation.

2010-04-20 Thread Gilles THIBAULT
http://gillesth.free.fr/Lilypond/extractMusic/extractMusic.ly http://gillesth.free.fr/Lilypond/extractMusic/extractMusic-doc.pdf French remplacer - English replace (no m before the p), likewise French remplacement - English replacement. I have replaced :-) all [remplace*] by [replace*] in

\extractMusic documentation.

2010-04-18 Thread Gilles THIBAULT
Hello everybody ! It has been a while since i wanted to provide deeper informations about the function discribed here : http://lsr.dsi.unimi.it/LSR/Item?id=542 This is done now. You can get this pdf of information and the last version of extractMusic.ly in this directory :

Re: Re:Re: 2.13.13 and previous devel versions has such error

2010-02-15 Thread Gilles THIBAULT
Then Here's the source file. Very simple piano score. Does it have errors itself? No errors with \version 2.12.1 Gilles___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: How to glue markup with parameter passed note indefine-music-function environment?

2010-02-03 Thread Gilles THIBAULT
how to achieve $note_\markup{ s } in define-music-function definition.. because $note_ can't be parsed correctly. Well, you can try this work-around with a \skip and a construct. % fun = #(define-music-function (parser location note)(ly:music?) #{ $note s1*0_\markup { s } #})

Re: transposing and changePitch

2010-01-31 Thread Gilles THIBAULT
in the below quoted snippet the change-Pitch-command does not work as expected. It doesn't produce the second pitch one octave higher! Try this (if i have understood what you wanted) % \version 2.12 \include changePitch.ly brokenoctaves = #(define-music-function

Re: transposing and changePitch

2010-01-31 Thread Gilles THIBAULT
I wanted to get the output: { c'8 c'' d' d'' e' e'' } %etc. by typing: { \changePitch \test { c' d' e' } } Ok, i understand now. Well, i think the \brokenOctaves has to be a little more complex. % \version 2.12 \include changePitch.ly brokenOctaves =

Re: show chord symbol in each bar

2010-01-27 Thread Gilles THIBAULT
Sorry, Peter, I don't have a solution for you. But I am quite sure someone else has :-) Well, i don't know if it is excatly what Peter needs, but with the last version of changePitch.ly, available here : http://lsr.dsi.unimi.it/LSR/Item?u=1id=654 you can avoid to repeat several times a chord

Re: [lily4jedit-user] ANN BETA 2: LilyPondTool 2.12.892 available fortesting

2010-01-06 Thread Gilles THIBAULT
I released new Release Candidate version of LilyPondTool (for jEdit). Please test it. It is mainly a bug fix release, with many bugs fixed, most notably - the PDF preview problems - the French localization problems - document wizard localizations - MIDI input problems (dupicate notes) For the

Re: Editing notes in a separate file

2010-01-03 Thread Gilles THIBAULT
I don't foresee anything happening for months if not years, but I've added it to the tracker. If I wasn't doing release and manager tasks, I'd like to tackle it myself: http://code.google.com/p/lilypond/issues/detail?id=955 You can do something like this with the last version of

  1   2   3   >