Re: possible bug: putting accordion register symbol in title section leads to an error

2021-01-31 Thread Davide Bonetti
Thanks Harm for the workaround. As you pointed it works only putting #(use-modules (scm accreg)) in every header where is needed, so in a book with multiple scores it's a quite tedious. I think accordion registers is the only markup that need use-modules. Is there a way to get rid of

possible bug: putting accordion register symbol in title section leads to an error

2021-01-31 Thread Davide Bonetti
Hi! we know that accordion register symbols works as markup and also as a music function. One can put accordion symbols everywhere in a markup block, but if you try to put accordion symbol in a title section this leads to an error: \version "2.22.0" #(use-modules (scm accreg)) \score {  

Re: Fwd: list of accordion registers as a single markup

2021-01-23 Thread Davide Bonetti
Thanks to both of you! Davide Il 23/01/2021 21:01, Jean Abou Samra ha scritto: Hi! I need to obtain a list of accordion registers. I know I can engrave them using: #(use-modules (scm accreg)) \markup \line { \discant "1" \discant "10" \discant "101" \discant "121" \discant "21" \discant

Fwd: list of accordion registers as a single markup

2021-01-23 Thread Davide Bonetti
Hi! I need to obtain a list of accordion registers. I know I can engrave them using: #(use-modules (scm accreg)) \markup \line { \discant "1" \discant "10" \discant "101" \discant "121" \discant "21" \discant "11" \discant "120" \discant "110" \discant "1+0" \discant "100" \discant "11+0" }

Re: help needed with horizontal spacing between notes

2021-01-19 Thread Davide Bonetti
Yes, I solved with: \score{    \new Staff{ \time 3/4 \repeat unfold 16 {c'2*1/2 c'4 4} }    \layout{ \context { \Staff \omit TimeSignature }    } } Il 19/01/2021 16:44, Carl Sorensen ha scritto: On Tue, Jan 19, 2021 at 4:35 AM Davide Bonetti <mailt

help needed with horizontal spacing between notes

2021-01-19 Thread Davide Bonetti
Hello! I have some music with half - quarter - quarter sequence. I want the horizontal spacing of the halves to be equal of the quarters. I tried: \version "2.22.0" pippo = \repeat unfold 16 {c'2 c'4 4} {\pippo} { \override Score.SpacingSpanner.spacing-increment = #.1 \pippo } but at the

print italian NoteNames context in Uppercase

2021-01-15 Thread Davide Bonetti
Hi everybody. I'm trying to find a way to print italian note names in uppercase. \new NoteNames {   \set printNotesLanguage = "italiano"   c d e   } prints: do re mi I wish to have: Do Re Mi Thank you Davide -- Questa e-mail è stata controllata per individuare virus con

Re: Automatic cross-staff chords - testing help

2021-01-10 Thread Davide Bonetti
h? (ly:make-pitch 0 0)) ly:music? )    (split-music dir music ref)) Il 10/01/2021 22:12, Davide Bonetti ha scritto: I did it! the code works, but produces warnings. Cheers Davide \version "2.20.0" #(define (split-music dir music ref)    (let ((es (ly:music-property music 'ele

Re: Automatic cross-staff chords - testing help

2021-01-10 Thread Davide Bonetti
aff {     \clef tenor     \splitMusic #DOWN a \splitMusic #UP d \someMusic   }   \new Staff {     \clef baritone     \splitMusic #DOWN d \someMusic   } >> Il 08/01/2021 00:55, Thomas Morley ha scritto: Am Do., 7. Jan. 2021 um 13:08 Uhr schrieb Davide Bonetti : Hi, Great work. I've done some tes

split chord in two staves, split multiple voices in two staves

2021-01-10 Thread Davide Bonetti
I did it! the code works but produces warnings. Testers are welcome! Cheers Davide \version "2.20.0" #(define (split-music dir music ref)    (let ((es (ly:music-property music 'elements)) (e (ly:music-property music 'element)) (p (ly:music-property music 'pitch))) (if

re: Automatic cross-staff chords - testing help

2021-01-09 Thread Davide Bonetti
Update: \autoSplitChord \chordmode { c:/g} doesn't work, but: \chordmode { \autoSplitChord c:/g} works. So, if we can make \autoSplitChord accept sequences of music, that can include chords or succession of chords, we'll have  our goal. Cheers Davide -- Questa e-mail è stata

Re: Automatic cross-staff chords - testing help

2021-01-08 Thread Davide Bonetti
Hi Harm, many thanks for testing. thanks to you for the reply. Below is an improved function which will simply returns the input, if it's not an event-chord, avoiding the blank space. \autoSplitChord << b \\ e' \\ g'' >> will stop working as well, all notes are returned unchanged. I see

Automatic cross-staff chords - testing help

2021-01-07 Thread Davide Bonetti
Hi, Great work. I've done some testing and found some bugs. Below the code I've tested, attached the PDF with the result (on second page, first page are your examples). \autoSplitChord doesn't works with curly braces, it returns blank output (like a blank space in the score), so it's not

split chord in two staves, split multiple voices in two staves

2021-01-07 Thread Davide Bonetti
    \autochange {c'}   >> } % desidered result \markup "desidered result" \score{   \new PianoStaff   \with {instrumentName = #"3"}   \autochange   <<     \autochange     \\     \autochange {g}   >> } Thank you and best regards. Davide Bonetti -- Questa e-mail

Re: select a note in a chord

2019-01-29 Thread Davide Bonetti
Ok, now it works well! D. Il 28/01/2019 21:11, Valentin Villenave ha scritto: On 1/28/19, Davide Bonetti wrote: It reminds me something that happens when a variable in lilypond is called with $ instead of # , but in scheme I don't see this difference. Could it be something like that? Nope

Re: select a note in a chord

2019-01-28 Thread Davide Bonetti
. Could it be something like that? BTW I prefeer \riseNote instead of \raiseNote . Regards Davide Il 23/01/2019 23:10, Valentin Villenave ha scritto: On 1/19/19, Davide Bonetti wrote: For the sake of the discussion, I copy there the code as it now is: Greetings Davide and everybody, although

Re: select a note in a chord

2019-01-19 Thread Davide Bonetti
For the sake of the discussion, I copy there the code as it now is: (thanks to Valentin and David) D. %% #(define-public (move-chord-note n direction)    (_i "Transpose a note (numbered as @var{n}) by one octave in @var{direction}." )    (lambda (music) (let*

Re: select a note in a chord

2019-01-19 Thread Davide Bonetti
Il 19/01/2019 08:36, Valentin Villenave ha scritto: On 1/18/19, David Kastrup wrote: Music functions share the same namespace as all other Scheme functions and variables OK, perhaps a better name would be \dropNote then (much like \hideNotes etc.). Good choice. Anyway, I like these

Re: select a note in a chord

2019-01-18 Thread Davide Bonetti
Great! Everything very interesting. In this case, drop is a lilypond music function, so I assume it will not interfere with slri (but I don't know what slri is) Cheers D. Il 18 gennaio 2019 01:21:31 CET, David Kastrup ha scritto: >David Kastrup writes: > >> Valentin Villenave writes: >>

Re: select a note in a chord

2019-01-17 Thread Davide Bonetti
t;||"   <>^\markup "rise 1"   \rise 1 \ac   \bar "||"   <>^\markup "rise 3"   \rise 3 \ac   \bar "||"   <>^\markup "2nd inversion"   \inversion 2 \ac   \bar "||"   <>^\markup "\"down\" inversion

Re: select a note in a chord

2019-01-15 Thread Davide Bonetti
Hello! Il 15/01/2019 11:46, Davide Bonetti ha scritto: But I noticed that it doesn't work on the lowest pitch of a chord (drop 4 on a four note chord, drop 3 on a three note chord) I modified    (if (and (music-is-of-type? music 'event-chord)     (>

Re: select a note in a chord

2019-01-15 Thread Davide Bonetti
Now it sorts the pitches too! It can be easily converted to transpose a pitch an octave up changing (ly:make-pitch -1 0) to (ly:make-pitch +1 0) But I noticed that it doesn't work on the lowest pitch of a chord (drop 4 on a four note chord, drop 3 on a three note chord) Cheers Davide Il

select a note in a chord

2019-01-14 Thread Davide Bonetti
Hello everyone. I'm looking for a function to select a note in a chord. This can be useful for automatic inversions, or to change the voicing (like the drop 2 in a four note chord). Cheers. Davide --- Questa e-mail è stata controllata per individuare virus con Avast antivirus.

Re: note collision when in a chord there is a second above or below an unison

2019-01-13 Thread Davide Bonetti
Il 13/01/2019 00:46, Carl Sorensen ha scritto: I think that Lilypond does the right thing. Thank you for your opinion, but I think a collision is not a right thing. There should never be a unison and a second in a chord. I know that is not a very common situation. I'll show you two

Re: note collision when in a chord there is a second above or below an unison

2019-01-13 Thread Davide Bonetti
)       1   } } Good luck. Paolo Il sab 12 gen 2019, 22:00 Davide Bonetti <mailto:d...@davidebonetti.it>> ha scritto: Thank you Paolo, it works well for whole note without alteration. If the note is altered, however, there is a collision with the alteration, as yo

Re: note collision when in a chord there is a second above or below an unison

2019-01-12 Thread Davide Bonetti
il_medium=signature_campaign=signaturevirality5;> 09/01/19, 13:18:35 Il giorno mer 9 gen 2019 alle ore 12:43 Davide Bonetti mailto:d...@davidebonetti.it>> ha scritto: Hi Malte, The output could be like in the attached image. I obtained it in Musescore, manuall

Re: note collision when in a chord there is a second above or below an unison

2019-01-09 Thread Davide Bonetti
Hi Malte, The output could be like in the attached image. I obtained it in Musescore, manually moving the notes. Cheers. Davide Il 08/01/2019 08:15, Malte Meyn ha scritto: Hi Davide, please tell us what output you expected. Am 06.01.19 um 18:41 schrieb Malte Meyn: Long answer: You can do

note collision when in a chord there is a second above or below an unison

2019-01-06 Thread Davide Bonetti
Hello everyone! Is there a way to avoid the note collision that appears in this example? \score {   1 } thanks. Davide --- Questa e-mail è stata controllata per individuare virus con Avast antivirus. https://www.avast.com/antivirus ___