Re: A snippet for editing Beams using the mouse

2019-12-16 Thread Paolo Prete
Here's the fixed version: waiting for feedbacks! (Again and again: I write these snippets really in a hurry, in these days. A more "structured" collaboration is getting necessary for me, at this point) Any Javascript volunteer? On Tue, Dec 17, 2019 at 1:24 AM Paolo Prete wrote:

Re: A snippet for editing Beams using the mouse

2019-12-16 Thread Paolo Prete
I'm just noting that there's a bug with more than one Beam. I'm fixing it. Have a bit of patience please ;-) On Mon, Dec 16, 2019 at 11:55 PM Paolo Prete wrote: > Hello everybody, > > here is another snippet that uses the system that I previously > implemented. This time fo

A snippet for editing Beams using the mouse

2019-12-16 Thread Paolo Prete
Hello everybody, here is another snippet that uses the system that I previously implemented. This time for the tuning of the beams. This is too a very tedious operation to do with just the code and for this I believe that this tool is also useful. As you can see, the code is not only shorter than

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-15 Thread Paolo Prete
Good idea Kieren, if they approve it, I'll suggest the nomenclature you proposed. Best, P On Mon, Dec 16, 2019 at 2:03 AM Kieren MacMillan < kieren_macmil...@sympatico.ca> wrote: > Hi Paolo, > > > After that, can we add this on the snippets repository? > > Might I suggest a nomenclature

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-15 Thread Paolo Prete
Ok, let's move the discussion on the dev ml, then. Cheers, P On Mon, Dec 16, 2019 at 2:07 AM Thomas Morley wrote: > Am Mo., 16. Dez. 2019 um 01:50 Uhr schrieb Paolo Prete < > paolopr...@gmail.com>: > > > > Hello Thomas, > > > > this is a bit discouraging

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-15 Thread Paolo Prete
Hello Thomas, this is a bit discouraging for me, TBH. Hope someone could write a proper Scheme procedure, then, and port the snippet on 2.18.2. Best, P On Mon, Dec 16, 2019 at 12:24 AM Thomas Morley wrote: > Am Mo., 16. Dez. 2019 um 00:06 Uhr schrieb Paolo Prete < > paolopr...@

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-15 Thread Paolo Prete
Attached to this post there's the improved version (fixed indentation and lines' max length). Note too that this version includes a function that prevents opening the default menu with the right mouse button. Can someone fix the scheme code indentation? After that, can we add this on the snippets

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Paolo Prete
At this point, here's the complete all-in-one .ly template. Much cleaner and without risks to mess the code, for the user. In addition, it has not to be patched: just open and use the generated .svg file. Hope it could be included in the snippets repo. Thanks all for your collaboration!

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Paolo Prete
hieve that honestly, but that'd be incredible. > > HTH, > Stéfano > > El sáb., 14 dic. 2019 a las 20:08, Paolo Prete () > escribió: > >> Hi Stefano, >> >> your suggestion produces the script for every page, but it requires to >> manually add a property i

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Paolo Prete
think? On Sun, Dec 15, 2019 at 12:38 AM Aaron Hill wrote: > On 2019-12-14 6:16 am, Paolo Prete wrote: > > However, how can I make it work for multiple pages output? > > Another approach would be to modify how LilyPond generates SVG output, > so that the script in question is in

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Paolo Prete
ery-page > evenFooterMarkup = \script-for-every-page > } > > { g'4 a' \tweak Accidental.output-attributes #'((id . "flat")) bes'2 > \pageBreak > g'4 a' \tweak Accidental.output-attributes #'((id . "flat")) bes'2 } > %%% > > L

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Paolo Prete
script-for-every-page > } > > { g'4 a' \tweak Accidental.output-attributes #'((id . "flat")) bes'2 > \pageBreak > g'4 a' \tweak Accidental.output-attributes #'((id . "flat")) bes'2 } > %%% > > Love what your script is do

Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Paolo Prete
Thanks Aaron, it did the trick. However, how can I make it work for multiple pages output? On Sat, Dec 14, 2019 at 4:26 AM Aaron Hill wrote: > On 2019-12-13 5:59 pm, Paolo Pr wrote: > > First of all, I need to add with Lilypond a tag to the svg > > file > > just before the ending tag

Request for a cross-staff easy function

2019-12-14 Thread Paolo Prete
Hi all, I think this function would be very useful for solving the limitations of the current cross-staff interface: crossStaffExpr = #(define-music-function (parser location staffUpMusic staffDownMusic beamPosition) (ly:music? ly:music? number?) . Example: \crossStaffExpr = { c '[ d'

Re: Size of the arpeggio's arrow

2019-12-05 Thread Paolo Prete
Hi Thomas.Yes, I'm interested. I could not find any snippet for that, nor a corresponding property for "Arpeggio" in the "Lilypond Internals Reference"Thanks. Il giovedì 5 dicembre 2019, 16:22:12 GMT, Thomas Morley ha scritto: Am Do., 5. Dez. 2019 um 15:07 Uhr schrieb Paolo Pr : > >

Set the size of the arrow of an arpeggio

2019-12-05 Thread Paolo Prete
Hello, how can I modify the size of the arrow of an \arpeggioArrowUp/Down object? Thanks

Display the name of the staff of a note/rest/chord/skip-event

2019-11-30 Thread Paolo Prete
Hello,  given a note/rest/chord/skip-event is there a way to display the name of its staff? I need to check if it belongs to staff "UP" or "DOWN" of a piano-staff.What if I use map-some-music() function?       (map-some-music (lambda (evt)          (let ((name

Generate pitches between pitches

2019-11-28 Thread Paolo Prete
Hello, given two pitches, for example: c' and c'',   is there a way to automatically generate all the pitches between them? In three different ways: 1) all the "white keys" between them:   d' e' f' g' a' b'2) all the "black keys" between them:   des' ees' ges' aes' bes'3) all the pitches:  des'

replace a notehead with a centered text

2019-11-27 Thread Paolo Prete
Hello, how can I replace a notehead with "some text" centered on the stem? If I use: customNotehead  = {\once \override NoteHead.stencil = #ly:text-interface::print  \once \override NoteHead.text = \markup {  \fontsize #6 "some text" }} the notehead is always at the left or at the right of its

Re: How to obtain the same midi channel for both the staves of a PianoStaff

2019-11-21 Thread Paolo Prete
>>    \layout { }    \midi {        \context {            \Score            midiChannelMapping = #'instrument        }       }  } Il giovedì 21 novembre 2019, 01:22:18 CET, Paolo Prete ha scritto: Hello, in the following snippet the same midi channel is assigned to both t

How to obtain the same midi channel for both the staves of a PianoStaff

2019-11-20 Thread Paolo Prete
Hello, in the following snippet the same midi channel is assigned to both the voices inside the same staff % upper = {    a'4 b' r r} lower = {    r\ppp r\fff c''4 d''} \score {    \new Staff <<        \new Voice { \upper }        \new Voice { \lower }    >>    \layout {

Re: Problem on the dynamics of the midi output

2019-11-18 Thread Paolo Prete
place below the upper or the lower one. ThanksIl lunedì 18 novembre 2019, 22:01:00 CET, Thomas Morley ha scritto: Am Mo., 18. Nov. 2019 um 02:37 Uhr schrieb Paolo Prete : > > Hello. > > I can't find a way to have a single sequence of dynamics that affects both > upper and

Re: Bug on MIDI dynamics

2019-11-18 Thread Paolo Prete
ippets use another default behaviour, it seemed a bug. Il lunedì 18 novembre 2019, 22:09:49 CET, Thomas Morley ha scritto: Am Mo., 18. Nov. 2019 um 17:00 Uhr schrieb Paolo Prete : > > Hello, > > Regarding my previous question, Please link to it. > I just checked that ther

Re: Bug on MIDI dynamics

2019-11-18 Thread Paolo Prete
, but I wonder if is there something better for fixing the problem, even as a workaround... Il lunedì 18 novembre 2019, 17:00:36 CET, Paolo Prete ha scritto: Hello, Regarding my previous question, I just checked that there's a bug on the dynamics of the produced midi output for a piano

Bug on MIDI dynamics

2019-11-18 Thread Paolo Prete
Hello, Regarding my previous question, I just checked that there's a bug on the dynamics of the produced midi output for a piano staff.The bug can be reproduced on the 2.19  version. Please, check this snippet ( from  http://lsr.di.unimi.it/LSR/Item?id=357 ), with Lilybin

Re: Set a temporary tempo change

2019-11-17 Thread Paolo Prete
Aaron, that's great.I propose to the ML to add the function to the official release. It's very helpful when you want to make the midi output more realistic, with frequent tempo changes Il lunedì 18 novembre 2019, 00:11:29 CET, Aaron Hill ha scritto: On 2019-11-17 12:38 pm, Paolo

Problem on the dynamics of the midi output

2019-11-17 Thread Paolo Prete
Hello. I can't find a way to have a single sequence of dynamics that affects both upper and lower piano staves in the MIDI output.I tried the following snippet but I can't hear any variation of the dynamics in the midi file. %%% \score {<<   \new PianoStaff <<      \new

Set a temporary tempo change

2019-11-17 Thread Paolo Prete
Hello, is it possible to revert a tempo change to the previous tempo setting, without explicitly writing this previous one?  Something like (pseudo-code): \tempo 4 = 120  { ...some music } \temporaryTempo 4 = 160 { ... some other music } \unset \temporaryTempo This would be useful for

Re: How to color objects that cause collision

2019-11-15 Thread Paolo Prete
: 4.6.3 Real music example | | | A function that helps in discovering these things would be really useful... Il venerdì 15 novembre 2019, 11:01:14 CET, Malte Meyn ha scritto: Am 15.11.19 um 01:50 schrieb Paolo Prete: > > I think that a very useful function would be

How to color objects that cause collision

2019-11-14 Thread Paolo Prete
Hello, I think that a very useful function would be a way to highlight or change the color for all the objects that are causing a collision.Is there already some code for that?Look for example at the two slurs in the following snippet: LilyPond Score | | | | LilyPond Score LilyPond Score

system-system-spacing

2019-11-14 Thread Paolo Prete
Hello, the following syntax was good for some old version of lilypond but obsolete for 2.19: \paper {    system-system-spacing #'basic-distance = #28 ... How can I replace it? Thanks

Re: Display the control points of a slur

2019-11-14 Thread Paolo Prete
Thanks very much Aaron, I propose to include your snippet in a new release of Lilypond because it's very useful. Il mercoledì 13 novembre 2019, 16:19:29 CET, Aaron Hill ha scritto: On 2019-11-13 7:00 am, Aaron Hill wrote: > On 2019-11-13 6:32 am, Paolo Prete wrote: >> He

Re: Display the control points of a slur

2019-11-13 Thread Paolo Prete
ble to you. Urs Am 13. November 2019 15:22:05 MEZ schrieb Paolo Prete : Hello, please consider this snippet: \relative c'' {  \shape #'((0 . -1) (5.5 . -0.5) (-5.5 . -10.5) (0 . -5.5)) PhrasingSlur  c8\( e b f d' a e g\)} Is there a helper function or some script for displaying the control poi

Display the control points of a slur

2019-11-13 Thread Paolo Prete
Hello, please consider this snippet: \relative c'' {  \shape #'((0 . -1) (5.5 . -0.5) (-5.5 . -10.5) (0 . -5.5)) PhrasingSlur  c8\( e b f d' a e g\)} Is there a helper function or some script for displaying the control points of the slur (for example with a red color)? Is it possible to

Cross-staff notes using only one music expression

2019-11-12 Thread Paolo Prete
Hello, in the following snippet, I can obtain a cross-staff tremolo: http://lilybin.com/y4csd8/1 However, in this way, I'm forced to fill the "up" staff with invisible rests ( in this case:  s4. ) for the duration of the tremolo. Is there a way to avoid this and use only one music expression for

Re: Invisible midi layer for specific measures

2019-11-11 Thread Paolo Prete
Thanks Aaron, it worked perfectly. Il lunedì 11 novembre 2019, 21:29:36 CET, Aaron Hill ha scritto: On 2019-11-11 12:16 pm, Paolo Prete wrote: > Thank you Karl for your help. > However, in the way you suggested, I have to repeat the music of the > first \score block into t

Re: Invisible midi layer for specific measures

2019-11-11 Thread Paolo Prete
Thank you Karl for your help. However, in the way you suggested, I have to repeat the music of the first \score block into the second \score block for the first and third measure of my snippet. I would like to avoid this redundancy, and I would like to specify the notes of "custom" generated

Invisible midi layer for specific measures

2019-11-11 Thread Paolo Prete
Hello, please, consider this snippet: http://lilybin.com/ttlid3/1 I would like to add an invisible midi layer of notes to the previous ones so that I can obtain, when required, effects (for example: the tremolo) that are not provided by default, without using the "articulate" script. In the

Using articulate.ly without modifying the visual output

2018-04-04 Thread Paolo Prete
Hello, I would like to produce from the same .ly file, a .midi file with the articulate.ly script and a .pdf WITHOUT the articulate.ly script. How can I do that? Thanks ___ lilypond-user mailing list lilypond-user@gnu.org

Re: Extra space at the beginning of the bar

2018-03-25 Thread Paolo Prete
.unimi.it/LSR/ > > > > Mark > > > > *From:* lilypond-user [mailto:lilypond-user-bounces+carsonmark= > ca.rr@gnu.org] *On Behalf Of *Paolo Prete > *Sent:* Sunday, March 25, 2018 10:40 AM > *To:* Thomas Morley <thomasmorle...@gmail.com> > *Cc:* Lilypond-U

Re: Extra space at the beginning of the bar

2018-03-25 Thread Paolo Prete
Hello Thomas, thanks for the tweak, which is massive. I think it would be useful to group in one snippet all these howtos and work-arounds for solving horizontal spacing issues. Then I created this snippet, which has to be completed and can be enriched. http://lilybin.com/p2whaw/4 Any

Re: Extra space at the beginning of the bar

2018-03-25 Thread Paolo Prete
Hello Thomas, Given that the post events attached to a SkipEvent get parents like PaperColumn and VerticalAxisGroup, I expect that overriding some of these parents' properties shifts the dynamic placed on a skip event, consequently. But this doesn't happen. Better said: I don't know which parent

Re: Extra space at the beginning of the bar

2018-03-25 Thread Paolo Prete
Hi Kieren 2018-03-25 13:41 GMT+02:00 Kieren MacMillan : > Hi Paolo, > > > You’d have to add an equivalent tweak for any prefatory material (Clef, > KeySignature, etc.). > > Doesn't work for skip events too... > > and the second option doesn't add space if the

Re: Extra space at the beginning of the bar

2018-03-25 Thread paolo prete
it is placed in a precise position in the staff and dynamics, markup etc. can be added to it. Any feedback about that? 2018-03-25 12:18 GMT+02:00 paolo prete <paoloprete...@gmail.com>: > Hello Kieren, > > thanks for your help. > Unfortunately yhe first option adds space on

Re: Extra space at the beginning of the bar

2018-03-25 Thread paolo prete
Hello Kieren, thanks for your help. Unfortunately yhe first option adds space only after a barline, and not at the measure on the left of the staff, and the second option doesn't add space if the measure starts with a rest or skip event. I could use "\tweak Rest.extra-spacing-width ... " for

Re: SustainPedal on shifted notes (possible bug?)

2018-03-24 Thread paolo prete
he default behaviour should be reported as bug in the ml, though... 2018-03-24 22:38 GMT+01:00 Thomas Morley <thomasmorle...@gmail.com>: > 2018-03-24 17:19 GMT+01:00 paolo prete <paoloprete...@gmail.com>: > > Hello, > > > > as you can see from the belo

Extra space at the beginning of the bar

2018-03-24 Thread paolo prete
Hello, Is there a way to add extra space at the beginning of a bar without overriding the X-offset of the starting notes/rests/chords? { how to add space here? . c' c' c' c' } Thanks ___ lilypond-user mailing list lilypond-user@gnu.org

Re: SustainPedal on shifted notes (possible bug?)

2018-03-24 Thread paolo prete
Hello Kieren, sorry to insist again but IMHO this is a bug. Look at the snippet below: all the objects are aligned to the shifted NoteColumn. Only the pedal is not aligned. There's no reason for which it has not to be aligned, and this forces to apply work-arounds in order to put the end of the

Re: SustainPedal on shifted notes (possible bug?)

2018-03-24 Thread paolo prete
y piano scores. > > I am trying to see how it would work with you example. > > > > Mark > > > > *From:* paolo prete [mailto:paoloprete...@gmail.com] > *Sent:* Saturday, March 24, 2018 10:25 AM > *To:* Mark Stephen Mrotek <carsonm...@ca.rr.com> > *C

Re: SustainPedal on shifted notes (possible bug?)

2018-03-24 Thread paolo prete
Sorry to insist: there's no way to put the end of the bracket at the wanted note. In the snippet below, I want to end the bracket at the note " f' " Is this a bug? %% \score { { c'\sustainOn c' \once \override NoteColumn #'X-offset = 10 f'\sustainOff r4\break

Re: SustainPedal on shifted notes (possible bug?)

2018-03-24 Thread paolo prete
I suspect this is a bug. Please see my previous snippet... 2018-03-24 18:22 GMT+01:00 Mark Stephen Mrotek : > Welcome, Paolo > > > > “overriding” is out of my knowledge. > > Someone else might. > > > > Mark > > > > > ___

Re: SustainPedal on shifted notes (possible bug?)

2018-03-24 Thread paolo prete
Mark, I would like to override the default behviour of the pedal bracket. is it possible to end that bracket at the position of the note's column, instead of extending it for the whole note's duration? Thanks. 2018-03-24 17:32 GMT+01:00 Mark Stephen Mrotek : > Paolo, >

SustainPedal on shifted notes (possible bug?)

2018-03-24 Thread paolo prete
Hello, as you can see from the below snippet, the bracket of the sustain pedal is not properly extended when the last note is shifted. Is this a bug? Is there a way to fix it or a work-around ? Thanks % \score { \tuplet 3/2 {c'\sustainOn f' \once \override NoteColumn

Re: Combine tied notes

2018-03-18 Thread paolo prete
You are right, it should be c1.. But I wonder if is there a predefined function for doing the job, instead of writing a custom Scheme code. 2018-03-18 13:05 GMT+01:00 Malte Meyn <lilyp...@maltemeyn.de>: > > > Am 18.03.2018 um 12:58 schrieb paolo prete: > >> Hello, >&g

Combine tied notes

2018-03-18 Thread paolo prete
Hello, given a sequence of tied notes/chords, is there a way to automatically combine them into a minimal sequence of long notes obtained with the sum of the sequence's durations? Something like: c4~ c4~ c4~ > c2. c4~ c4~ c4~ c4~ c4 ---> c1~ c4 c4~ c4~ c4~ c4~ c4~ c4~ c4 > c1~

Set a fixed width for a bar

2018-03-12 Thread paolo prete
Hello, In the snippet below, is there a way to force bar 2 (e' e' e' e') to have 1) a fixed width with a given number 2) a fixed width = 40% of the entire staff ...? Thanks { c' c' c' c' | \noBreak e' e' e' e' | \noBreak f' f' f' f' | \break r1 }

Re: Modify a NoteEvent to RestEvent

2018-03-11 Thread paolo prete
2018-03-11 8:26 GMT+01:00 David Kastrup <d...@gnu.org>: > paolo prete <paoloprete...@gmail.com> writes: > > > Hello. > > Do you know how to modify a NoteEvent so that it becomes a RestEvent, or > > (vice-versa) in Scheme? > > You can't. > Why d

Modify a NoteEvent to RestEvent

2018-03-10 Thread paolo prete
Hello. Do you know how to modify a NoteEvent so that it becomes a RestEvent, or (vice-versa) in Scheme? I tried: (ly:music-set-property! x 'name 'RestEvent) The note actually becomes a rest, but I don't know if it's the proper way to obtain that, because if I display the scheme object with

Can't ignore-collisions on a tuplet

2018-03-06 Thread paolo prete
Hello, in the below snippet I would like to keep the same distance between all the notes of the 2/6 tuplet. Instead, e' and e' in \voiceOne have a bigger distance because of the note between them, in \voiceTwo. How can I avoid that? No problem if there will be collisions. I tried to set several

Re: Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
David, I wonder if is there another solution for obtaining the same result, because the discussed one is too much unstable. Here's the template, below. I googled how to change a chord duration, but I found nothing. chord = 4 -> \mp newChord = { % add \chord with a

Re: Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
2018-03-06 13:32 GMT+01:00 David Kastrup : > Take a look at the PDF. They are there. > David, I can't see them with my version (master) I tried with lilybin too (both stable and unstable) and it doesn't even compile: http://lilybin.com/rotn1l/1

Re: Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
Hi David, in the snippet below, is it possible to set a new duration of \newChord in the variable definition? Thanks chord = <f' a'>4 newChord = #(make-event-chord (ly:music-property chord 'elements)) { \newChord } 2018-03-06 12:14 GMT+01:00 David Kastrup <d...@gnu.org>: &

Re: Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
2018-03-06 13:15 GMT+01:00 David Kastrup : > > Have you even tried what happens with articulations? > Yes, I tried with: %%% chord = \mp newChord = { <$@(ly:music-property chord 'elements) >8 $@(ly:music-property chord 'articulations ) } #(display

Re: Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
Great. Is there also way to add the articulations of chord to newChord ? 2018-03-06 12:46 GMT+01:00 David Kastrup <d...@gnu.org>: > paolo prete <paoloprete...@gmail.com> writes: > > > Hi David, > > in the snippet below, is it possible to set a new duration of \

Change the duration of a chord defined as a variable

2018-03-06 Thread paolo prete
Hello. How can I change the duration of a chord defined as a variable? I want to obtain something like: chord = { \chord 8 } Thanks. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Replace ly:music elements in a Scheme function

2018-03-05 Thread paolo prete
Thanks David, one last question: is it possible to _check_ if x is a rest or a note? (if... ) I just made an easier implementation of the function, but I need this check... 2018-03-05 18:12 GMT+01:00 David Kastrup <d...@gnu.org>: > paolo prete <paoloprete...@gmail.com>

Re: Replace ly:music elements in a Scheme function

2018-03-05 Thread paolo prete
I see. Then I ask if is it possible at least, by placing a simple instruction inside lambda (x y) ( ...) while iterating, to: 1) replace x with a rest 2) add a list of articulations (for example: "->", "\mp") to x 2018-03-05 17:28 GMT+01:00 David Kastrup <d..

Re: Replace ly:music elements in a Scheme function

2018-03-05 Thread paolo prete
in their corresponding lists) ; ) musicList1 musicList2 ) ) #{ $music1 #}) { \fun {c' r e'} {f' g' a'} } 2018-03-05 13:42 GMT+01:00 David Kastrup <d...@gnu.org>: > paolo prete <paoloprete...@gmail.com> writes: > > > in the snippet below I want to replace, w

Replace ly:music elements in a Scheme function

2018-03-05 Thread paolo prete
Hello, in the snippet below I want to replace, while iterating two lists, the elements of music1 with the elements of music2. The code shows how to do that for pitches, but how can I replace the whole element? (for example, a rest or a note with its articulation) Thanks fun =

Re: How to have a cross-staff stem on a spacer rest

2018-03-04 Thread paolo prete
Yes, I want the notes all beamed together, exactly like the result of the snippet. But I don't want to do that with the change staff command on some of the notes of the upper staff: I want to write ALL the notes of the upper staff in the upper block and all the notes of the lower staff in the

How to have a cross-staff stem on a spacer rest

2018-03-03 Thread paolo prete
(I re-post a previous message, in a new form and from a new e-mail address, hoping it will not be automatically filtered as it happened for some posts from the yahoo server) Hello, I would like to obtain the same graphical result of the below snippet (a cross-staff stem for the second note on

Re: Put the rests in cross-staff between staves

2018-03-03 Thread Paolo Prete
e . 2)     (minimum-distance . 2)     (padding . 2))         }       }     } Joshua. On 01/03/18 21:59, Mark Stephen Mrotek wrote: > > Paolo, > > Does the attached accomplish what you want? > > Mark > > *From:*lilypond-user > [mailto:lilypond-user-bounces+cars

Cross-staff stem on a spacer rest

2018-03-03 Thread Paolo Prete
Hello, I would like to obtain the same graphical result of the below snippet  (a cross-staff stem for the second note on the lower staff) without the bad hack "\override NoteHead.transparent = ##t d' " and using a spacer rest Instead,  How can I do?Thanks %{  \new PianoStaff <<   

Re: Missing messages [was: Stem forced to be at the right (or left) of the notehead]

2018-03-03 Thread Paolo Prete
I registered for lilypond-user@gnu.org. As said before, this is not the first time I have this issue with mailing lists: some of them even refuse subscriptions from yahoo mail addresses. Il Sabato 3 Marzo 2018 1:06, Karlin High <karlinh...@gmail.com> ha scritto: Paolo Prete: D

Re: Missing messages [was: Stem forced to be at the right (or left) of the notehead]

2018-03-02 Thread Paolo Prete
Barker <b.m.bar...@btinternet.com>: > At 13:25 02/03/2018 -0700, Thomas Morley wrote: >> >> Paolo Prete wrote >>> >>> ... >> >> >> For unknown reasons I don't see your posts on the mailing-list, ... > > > Neither do I. But I can help

Re: Obtain the number of notes and rests from "ly:music?" parameter passed to a function

2018-03-02 Thread Paolo Prete
noteCount) $notes#})) {\createTuplet {<c' g'> e' s g r}} Il Venerdì 2 Marzo 2018 18:33, Paolo Prete <p4olo_pr...@yahoo.it> ha scritto: Hello, in the snippet below how can I replace "4" (in the denominator of "\times") with the number of notes+rests (i

Re: Stem forced to be at the right (or left) of the notehead

2018-03-02 Thread Paolo Prete
Thanks very much Il Venerdì 2 Marzo 2018 21:26, Thomas Morley-2 <thomasmorle...@gmail.com> ha scritto: Paolo Prete wrote > From what I see, the result of the snippet is that the notehead is moved, > but the stem remains fixed. Instead, I need that the notehead remains in &g

Obtain the number of notes and rests from "ly:music?" parameter passed to a function

2018-03-02 Thread Paolo Prete
Hello, in the snippet below how can I replace "4" (in the denominator of "\times") with the number of notes+rests (including "s") in $notes ? Thanks createTuplet = #(define-music-function (parser location notes) (ly:music?)#{  \times 2/4 $notes#}) {  \createTuplet {c' e' r g'}}

Re: Display control points of a slur

2018-03-02 Thread Paolo Prete
critto: On Fri, 2018-03-02 at 12:03 +, Paolo Prete wrote: > Thanks for your replies. > I wonder if is there also a graphic tool which I can use for > adjusting these control points by clicking on them with the mouse. > It would be very useful... Perhaps you didn't examine https://vimeo.

Flipping a note

2018-03-02 Thread Paolo Prete
I repost my previous question in a more generic way: is it possible to flip horizontally a note preserving the notehead in its original position?___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Display control points of a slur

2018-03-02 Thread Paolo Prete
52 MEZ schrieb Urs Liska <li...@openlilylib.org>: > > >Am 2. März 2018 12:17:19 MEZ schrieb Paolo Prete ><p4olo_pr...@yahoo.it>: >>Hello, >>is it possible to display (for example, with red color) the control >>points (bezier) of a Slur, so that it's easier to

Re: Stem forced to be at the right (or left) of the notehead

2018-03-02 Thread Paolo Prete
soundsfromso...@gmail.com> ha scritto: Paolo Prete wrote > hello,  > how can I force the stem to be at the right of the notehead ? Hello, You can alter the stem / opposite side of notehead using this snippet: http://lsr.di.unimi.it/LSR/Item?id=861 stem_sides.png <http://lilypond.10

Stem forced to be at the right (or left) of the notehead

2018-03-02 Thread Paolo Prete
hello,  how can I force the stem to be at the right of the notehead ? ThanksPaolo___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Display control points of a slur

2018-03-02 Thread Paolo Prete
Hello, is it possible to display (for example, with red color) the control points (bezier) of a Slur, so that it's easier to adjust them? Thanks___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Put the rests in cross-staff between staves

2018-03-01 Thread Paolo Prete
Hello, in a cross-staff bar, is there a simple way to put the rests in the middle between the two staves? Currently, I use that: \override Rest #'staff-position = #-12 ...but I wonder if is there a better way to obtain the same result Thanks___

Cross-staff question

2018-03-01 Thread Paolo Prete
Hello, is there another (easy) way to obtain the same result of this snippet: LilyPond Score | | | LilyPond Score LilyPond Score made using LilyBin. | | | without overriding the stem's length (\override Stem #'length = #30)  ? Thanks,

Re: List of articulations into a scheme variable

2018-02-25 Thread Paolo Prete
. Il Domenica 25 Febbraio 2018 19:13, Simon Albrecht <simon.albre...@mail.de> ha scritto: Hi Paolo, as more questions like these pour in, it would indeed be interesting to know what you are trying to achieve/why you need this function. :-) Best, Simon On 25.02.2018 18:44, Paolo Pre

List of articulations into a scheme variable

2018-02-25 Thread Paolo Prete
I'm sorry if I re-post a previous question, but I try to be more precise.How can I extract and print the list of articulations, keeping them into a new variable, from an argument passed as ly:music to a scheme function?I tried with the snippet below: it compiles but the articulations are not

extract and print all the items after duration from ly:music

2018-02-24 Thread Paolo Prete
Hello, how can I extract and print all the items ( \mp and slur)  after the duration parameter in the function below?Thanks. %%% identityFunction = #(define-music-function (parser location note) (ly:music?)  (let    ((mypitch (ly:music-property note 'pitch '()))     (myduration

Re: Error in a very short snippet

2018-02-23 Thread Paolo Prete
Thanks for your reply.In which date (more or less) do you think that a new version with this feature will be released as a Linux binary ? Il Venerdì 23 Febbraio 2018 23:09, David Kastrup <d...@gnu.org> ha scritto: Paolo Prete <p4olo_pr...@yahoo.it> writes: >

Error in a very short snippet

2018-02-23 Thread Paolo Prete
Hi,what's wrong in the snippet below and how can I fix it?It compiles if I remove the tie ~ from the variable, but I need this tie... x = c'~  {    \x\mp } ___ lilypond-user mailing list lilypond-user@gnu.org

Re: Slur after a function

2018-02-23 Thread Paolo Prete
You were faster than light, Simon, thanks ;-) Il Venerdì 23 Febbraio 2018 19:12, Simon Albrecht <simon.albre...@mail.de> ha scritto: On 23.02.2018 19:02, Paolo Prete wrote: > The following code doesn't compile and I wonder if I can solve that by > using another syntax...

Slur after a function

2018-02-23 Thread Paolo Prete
Hello,is there a way to add a slur after the parameters given to \fun in the snippet below ?The following code doesn't compile and I wonder if I can solve that by using another syntax... fun = #(define-music-function (parser location num note) (number? ly:duration?)#{ c' 4 #}) \score{ { \fun

Re: Local scheme variables used inside a Lilypond code block

2018-02-22 Thread Paolo Prete
ot; scope ((mypitch (ly:music-property note 'pitch '()))    (myduration  (ly:music-property note 'duration '( Il Giovedì 22 Febbraio 2018 12:25, David Kastrup <d...@gnu.org> ha scritto: Paolo Prete <p4olo_pr...@yahoo.it> writes: > Hello, > I try to re-post my previ

Local scheme variables used inside a Lilypond code block

2018-02-22 Thread Paolo Prete
Hello, I try to re-post my previous question in a more generic way: is it possible to define local variables in a scheme function and use them in a lilypond code block?Something like (pseudo-code: it doesn't compile): func = #(define-music-function (parser location note) (ly:music)    ((mypitch

Re: Extract pitch and duration from ly:music

2018-02-21 Thread Paolo Prete
In my previous message I specified that I want to extract pitch and duration from ly:music,  not from ly:pitch + ly:duration. func = #(define-music-function (parser location note dur)  (ly:music) #{   $mypitch $myduration .  #}  ) That is because I want the possibility to call this kind

Extract pitch and duration from ly:music

2018-02-21 Thread Paolo Prete
Hello, is it possible to extract pitch and duration, inside a function, from a ly:music (a simple note) parameter? I would like to obtain something like: func = #(define-music-function (parser location note dur) (ly:music) #{   $mypitch $myduration .  #}  ) ... But I don't understand if

ottava text and offset

2012-04-15 Thread Paolo Prete
Hi all, How can I make the ottava text similar to that: http://i44.tinypic.com/14vpgud.png (note the big fat 8 and the smaller va) In addition, how can I move the ottava text+bracket so that the X position of the note head is exactly placed where the number 8 finishes? (note the red segment

parenthesize a dotted note

2012-04-15 Thread Paolo Prete
Hello, has this bug been fixed in lilypond 2.15.xx ? http://old.nabble.com/Fix-155%3A-parentheses-include-accidentals-and-dots.-(issue-5047048)-td32485933.html If so, which Lilypond version could I use? Artenatively, how can I fix that without patching and recompiling the source code? thanks

flageolets near noteheads

2012-04-10 Thread Paolo Prete
Hi all, is there a way to place the flageolet symbol always NEAR (above or below) the notehead? I can see that if the notehead is within the staff, the flageolet is placed far from the notehead, above or below the staff. thanks Paolo ___

<    1   2   3   4   5   6   >