OLL forum

2022-08-15 Thread Andrew Bernard
Reminding users that there is a Discourse forum for OLL discussion and 
support and suggestions now. All are welcome to sign up.


https://discourse.openlilylib.space/

This is no way obviates the ability to ask OLL questions on this list, 
but the idea is OLL Discourse is more specifically focused.


Andrew





Re: MIDI & repeats

2022-08-15 Thread Benjamin Tordoff
Just to close the loop on this, the snippet below seems to work and doesn't 
directly modify the midi limits 9which might be hard to set back). I suspect 
this can still be simplified by someone more knowledgable than me. Along the 
way I discovered two things:
Changing the midiMaximumVolume / midiMinimumVolume only takes effect when the 
next dynamic is hit (maybe answers the question in Lukas's suggested snippet?).
The documentation for controlling midi dynamics suggests the mapping of 
dynamics to midi volumes is in midi.scm, but that file doesn't really mention 
dynamics. Unless I've missed something it is actually defined in midi-init.ly 
 (lines 21-35). If the documentation really is wrong I'd 
be happy to try and contribute a fix for that link, but I would need someone to 
hold my hand through the process.
Thanks for all the help.

Ben

---
\version "2.23.10"

music = \fixed c' {
  f1
  \repeat volta 2 {

% Implement the ff - pp dynamic
<>_\markup{\dynamic ff - \dynamic pp}
  \once \hide DynamicText
  \tag MIDI \volta 1 <>-\ff
  \tag MIDI \volta 2 <>-\pp

g1
a1
  }
}

\score { 
\removeWithTag MIDI \music 
}
\score { 
\unfoldRepeats \music 
\midi {}
}
---


> On 3 Aug 2022, at 07:03, Benjamin Tordoff  wrote:
> 
> I’ll give that a go - thanks for both suggestions.
> 
> Ben
> 
>> 
>> On 2 Aug 2022, at 19:25, Lukas-Fabian Moser  wrote:
>> 
>> Hi Benjamin,
>> 
>>> Am 02.08.22 um 18:10 schrieb Benjamin Tordoff:
>>> Hi all, I’m wondering if there’s a smart way to make the midi output for a 
>>> particular part do the following two things (both common in Sousa marches):
>>> 
>>> 1. Have a part play only on 2nd time through the repeat.
>>> 2. Have different dynamic for 1st and 2nd times through repeat.
>>> 
>>> A minimal example of how I would typically typeset this is below but 
>>> produces midi output that plays all repeats with uniform volume. I've had a 
>>> good hunt around the internet for examples of doing this but either I'm 
>>> searching for the wrong things or this is a somewhat obscure request!
>>> 
>>> Thanks in advance.
>> 
>> Some of this can be achieved using the \volta command:
>> 
>> \version "2.23.7"
>> 
>> myScore =
>> \relative {
>>  <>^"2nd time left, 3rd time right!"
>>  \repeat volta 3
>>  {
>>\tag MIDI \volta 2 \set midiPanPosition = -1
>>% \tag MIDI \volta 2 \set midiMaximumVolume = 0 % does not do anything; 
>> why?
>>\tag MIDI \volta 3 \set midiPanPosition = 1
>>c'4 d \tag MIDI \volta 3 <>\pp e f
>>  }
>> }
>> 
>> \score {
>>  \removeWithTag MIDI \myScore
>> }
>> 
>> \score {
>>  \unfoldRepeats \myScore
>>  \midi {}
>>  \layout {} % for debugging only
>> }
>> 
>> Here I used a tag to keep the print version of the score clean from all the 
>> MIDI stuff.
>> 
>> I just do not know why the setting of midiMaximumVolume does not do anything 
>> if put inside a \volta construction. For the pan position, it works like a 
>> charm...
>> 
>> Lukas
>> 
> 



Amharic

2022-08-15 Thread Hans Åberg
Amharic does not display when using:
\header{
  composer = "Mulatu Astatke (ሙላቱ አስታጥቄ)"
}
Instead, showing a series of PRIVATE USE AREA-10FC18 U+10FC18.

On MacOS, there is a system font Kefa for Amharic.

So what is missing here?





Re: Amharic

2022-08-15 Thread Werner LEMBERG

> Amharic does not display when using:
> \header{
>   composer = "Mulatu Astatke (ሙላቱ አስታጥቄ)"
> }
> Instead, showing a series of PRIVATE USE AREA-10FC18 U+10FC18.
> 
> On MacOS, there is a system font Kefa for Amharic.
> 
> So what is missing here?

No idea.  On my GNU/Linux box using current git, this works just fine.


Werner


Re: Amharic

2022-08-15 Thread Silvain Dupertuis

On my system (Ubuntu), your amharic characters are encoded in the *Ethiopan 
pane*
(U+1200-U+137C)
and they are displayed with the FreeSerif Font
For example ቱ (the third character) is defined as
U+1271 ETHIOPIC SYLLABLE TU

So they are _not_ in any private area.

I tested them in a LilyPond file, and your amharic charaters show up normally.
Looking at the properties of the PDF files, it gives these fonts :

name type  encoding emb sub uni object ID
 -  --- --- 
--- -
ETFDGR+C059-Roman    Type 1C Custom   yes yes no   
7  0
MNLSBV+Emmentaler-20 Type 1C Custom   yes yes no  
13  0
VLWNVH+FreeSerif TrueType WinAnsi  yes yes yes  
9  0

So I would suggest you try and install FreeSerif on your system
Look for example and fonts here 



Le 15.08.22 à 17:55, Hans Åberg a écrit :

composer = "Mulatu Astatke (ሙላቱ አስታጥቄ)"



--
Silvain Dupertuis
Route de Lausanne 335
1293 Bellevue (Switzerland)
tél. +41-(0)22-774.20.67
portable +41-(0)79-604.87.52
web: silvain-dupertuis.org 

Re: Amharic

2022-08-15 Thread Hans Åberg


> On 15 Aug 2022, at 18:19, Werner LEMBERG  wrote:
> 
>> Amharic does not display when using:
>> \header{
>>  composer = "Mulatu Astatke (ሙላቱ አስታጥቄ)"
>> }
>> Instead, showing a series of PRIVATE USE AREA-10FC18 U+10FC18.
>> 
>> On MacOS, there is a system font Kefa for Amharic.
>> 
>> So what is missing here?
> 
> No idea.  On my GNU/Linux box using current git, this works just fine.

I am using MacPorts lilypond 2.23.11. Should the font name somehow be indicated?

Also, when passing from lilypond 2.23.10 to 2.23.11, there are a syntax changes 
that convert-ly cannot amend:
Script #'script-priority → Script.script-priority
TextScript #'script-priority → TextScript.script-priority
Score.RehearsalMark #'break-visibility → Score.RehearsalMark.break-visibility




Re: Amharic

2022-08-15 Thread Hans Åberg
On my system both input text and font use the Unicode range for Amharic. So the 
question is why it is changed to a private area character in the PDF. If 
Lilypond does not see the font, one would think the code point should not be 
changed.


> On 15 Aug 2022, at 19:02, Silvain Dupertuis  
> wrote:
> 
> On my system (Ubuntu), your amharic characters are encoded in the Ethiopan 
> pane
> (U+1200-U+137C)
> and they are displayed with the FreeSerif Font
> For example ቱ (the third character) is defined as
> U+1271 ETHIOPIC SYLLABLE TU
> 
> So they are not in any private area.
> 
> I tested them in a LilyPond file, and your amharic charaters show up normally.
> Looking at the properties of the PDF files, it gives these fonts :
> 
> name type  encoding emb 
> sub uni object ID
>  -  --- 
> --- --- -
> ETFDGR+C059-RomanType 1C   Custom   yes 
> yes no   7  0
> MNLSBV+Emmentaler-20 Type 1C   Custom   yes 
> yes no  13  0
> VLWNVH+FreeSerif TrueType  WinAnsi  yes 
> yes yes  9  0
> 
> So I would suggest you try and install FreeSerif on your system
> Look for example and fonts here
> 
> Le 15.08.22 à 17:55, Hans Åberg a écrit :
>> composer = "Mulatu Astatke (ሙላቱ አስታጥቄ)"
> 
> 
> -- 
> Silvain Dupertuis
> Route de Lausanne 335
> 1293 Bellevue (Switzerland)
> tél. +41-(0)22-774.20.67
> portable +41-(0)79-604.87.52
> web: silvain-dupertuis.org




Re: Amharic

2022-08-15 Thread Hans Åberg


> On 15 Aug 2022, at 19:02, Silvain Dupertuis  
> wrote:
> 
> On my system (Ubuntu), your amharic characters are encoded in the Ethiopan 
> pane
> (U+1200-U+137C)
> and they are displayed with the FreeSerif Font

This works. I tried copy-pasting the Kefa font into the same location this font 
ends up in*), but it did not work. So somehow is Lilypond not able to see this 
font.

One should make sure to download from the GNU site, as there are a lot of 
modified versions out there.

https://www.gnu.org/software/freefont/

*) /Library/Fonts/ as opposed to the original location in /System/Library/Fonts/





Re: ANN: Frescobaldi 3.2

2022-08-15 Thread Jean Abou Samra

Hello Jean-Louis,

Le 15/08/2022 à 00:28, Jean Louis THIRY a écrit :

Hello friends,

Sorry for the inconvenience and thank you for your answers even if 
they don't really answer mine.
In fact, to ask my question I just replied to an existing thread on 
this list, several months old (May 2022) and whose subject line is: 
"Re: ANN: Frescobaldi 3.2". Nothing exciting in this title which is a 
response to the announcement of version 3.2 of Frescobaldi which has 
existed since May 2022.


On the other hand I have already exposed my problem before on this 
list and I asked my question again because I had not had any answer, 
neither from the list nor from Wilbert Berendsen to whom my question 
was also intended.



It's a bit tricky to answer questions like this remotely because it
depends so much on many details like your system, what versions of
Python you have, how exactly you installed Frescobaldi ...

OK, so what did you do exactly from the INSTALL file? I see several
different options mentioned there.

Also, what command are you using to run Frescobaldi? Is it just 
"frescobaldi"?

In that case, what does "which frescobaldi" give you?



At no time did I think that the "subject" line of my message would be 
more important than the "subject" of the message. I didn't expect to 
be greeted so rudely either.



Communication on mailing lists tends to be ambiguous, unfortunately.
I don't think anyone meant to be rude to you.




Apparently I'm in the wrong place to ask my question.



I believe it is the right place, but your question is simply not
an easy question.

Best,
Jean




Re: Amharic

2022-08-15 Thread Werner LEMBERG


>> On my system (Ubuntu), your amharic characters are encoded in the
>> Ethiopan pane (U+1200-U+137C) and they are displayed with the
>> FreeSerif Font
> 
> This works.

Maybe your Mac OS Amharic font is using Apple-specific SFNT tables
(not covered by the OpenType standard) that are not understood and/or
supported by Pango...


Werner



Controlling stem lengths in a global way

2022-08-15 Thread Knute Snortum
I am engraving a piece where there are many groups of 16th notes where
the first note is normal size and the rest should look like grace
notes.  I'm using \scaledDurations, \magnifyMusic and \normalsize to
do this, but I'm running into a systemic problem: the stems of the
normal size notes are mostly too short (they'd be fine if they were
grace notes).  To get around this I'm using beam position overrides
and tweaks, but this gets tedious quickly.  Is there a) a systemic way
to tweak the stem lengths, and/or b) better way for me to do this?

%%%
\version "2.22.2"
\language "english"

ns = \once \normalsize

% Short stems on the normalsize notes
\relative d'' {
  \magnifyMusic #2/3 {
\scaleDurations 2/3 {
  \ns d16 f, g c, f g  \ns c e, g c, e g
  \ns c d, g c, d g  \ns c e, g c, e g |
}
  }
}

beamPositionA = \tweak Beam.positions #'(4 . 2) \etc
beamPositionB = \override Beam.positions = #'(3 . 1)

% Need to tweak or override many, many notes
\relative d'' {
  \magnifyMusic #2/3 {
\scaleDurations 2/3 {
  \ns \beamPositionA d16 f, g c, f g  \ns \beamPositionB c e, g c, e g
  \ns c d, g c, d g  \ns c e, g c, e g \revert Beam.positions |
}
  }
}
%%%

--
Knute Snortum



Pointing Aiken Fa up in partCombine

2022-08-15 Thread Benjamin Bruce
Hello all,

I feel like there should be a simple answer to this question, but I can't 
figure it out.  I am using Lilypond 2.22.

My setup is Aiken shape notes, with two voices combined using partCombine. In 
one place, both the voices have the same note, which is a half-note Fa (right 
triangle). Since it is the same note, the output has two stems, one pointing up 
and one pointing down.

The issue is that the Fa triangle is arranged with one side stuck to the 
downward pointing stem, whereas I want that side to stick to the upward 
pointing stem. In other words, I want to rotate the notehead 180º.

Does that make sense? Thanks in advance for your help.

Benjamin Bruce

Re: Controlling stem lengths in a global way

2022-08-15 Thread Aaron Hill

On 2022-08-15 3:11 pm, Knute Snortum wrote:

I am engraving a piece where there are many groups of 16th notes where
the first note is normal size and the rest should look like grace
notes.  I'm using \scaledDurations, \magnifyMusic and \normalsize to
do this, but I'm running into a systemic problem: the stems of the
normal size notes are mostly too short (they'd be fine if they were
grace notes).  To get around this I'm using beam position overrides
and tweaks, but this gets tedious quickly.  Is there a) a systemic way
to tweak the stem lengths, and/or b) better way for me to do this?

%%%
\version "2.22.2"
\language "english"

ns = \once \normalsize

% Short stems on the normalsize notes
\relative d'' {
  \magnifyMusic #2/3 {
\scaleDurations 2/3 {
  \ns d16 f, g c, f g  \ns c e, g c, e g
  \ns c d, g c, d g  \ns c e, g c, e g |
}
  }
}

beamPositionA = \tweak Beam.positions #'(4 . 2) \etc
beamPositionB = \override Beam.positions = #'(3 . 1)

% Need to tweak or override many, many notes
\relative d'' {
  \magnifyMusic #2/3 {
\scaleDurations 2/3 {
  \ns \beamPositionA d16 f, g c, f g  \ns \beamPositionB c e, g c, 
e g

  \ns c d, g c, d g  \ns c e, g c, e g \revert Beam.positions |
}
  }
}
%%%

--
Knute Snortum


Would \offsetting positions make more sense?  For instance, you could do 
this:



ns = \once {
  \normalsize
  % Stem needs a little bit more length
  % to counteract magnifyMusic...
  \offset positions #'(1 . 0) Beam
}

\relative d'' {
  \magnifyMusic #2/3 {
\scaleDurations 2/3 {
  \ns d16 f, g c, f g
  \ns c e, g c, e g
  \ns c d, g c, d g
  \ns c e, g c, e g |
}
  }
}


This does assume that the amount of lengthening required is uniform.


-- Aaron Hill



Re: Controlling stem lengths in a global way

2022-08-15 Thread Knute Snortum
On Mon, Aug 15, 2022 at 4:00 PM Aaron Hill  wrote:
>
> On 2022-08-15 3:11 pm, Knute Snortum wrote:
> > I am engraving a piece where there are many groups of 16th notes where
> > the first note is normal size and the rest should look like grace
> > notes.  I'm using \scaledDurations, \magnifyMusic and \normalsize to
> > do this, but I'm running into a systemic problem: the stems of the
> > normal size notes are mostly too short (they'd be fine if they were
> > grace notes).  To get around this I'm using beam position overrides
> > and tweaks, but this gets tedious quickly.  Is there a) a systemic way
> > to tweak the stem lengths, and/or b) better way for me to do this?
> >
> > %%%
> > \version "2.22.2"
> > \language "english"
> >
> > ns = \once \normalsize
> >
> > % Short stems on the normalsize notes
> > \relative d'' {
> >   \magnifyMusic #2/3 {
> > \scaleDurations 2/3 {
> >   \ns d16 f, g c, f g  \ns c e, g c, e g
> >   \ns c d, g c, d g  \ns c e, g c, e g |
> > }
> >   }
> > }
> >
> > beamPositionA = \tweak Beam.positions #'(4 . 2) \etc
> > beamPositionB = \override Beam.positions = #'(3 . 1)
> >
> > % Need to tweak or override many, many notes
> > \relative d'' {
> >   \magnifyMusic #2/3 {
> > \scaleDurations 2/3 {
> >   \ns \beamPositionA d16 f, g c, f g  \ns \beamPositionB c e, g c,
> > e g
> >   \ns c d, g c, d g  \ns c e, g c, e g \revert Beam.positions |
> > }
> >   }
> > }
> > %%%
> >
> > --
> > Knute Snortum
>
> Would \offsetting positions make more sense?  For instance, you could do
> this:
>
> 
> ns = \once {
>\normalsize
>% Stem needs a little bit more length
>% to counteract magnifyMusic...
>\offset positions #'(1 . 0) Beam
> }
>
> \relative d'' {
>\magnifyMusic #2/3 {
>  \scaleDurations 2/3 {
>\ns d16 f, g c, f g
>\ns c e, g c, e g
>\ns c d, g c, d g
>\ns c e, g c, e g |
>  }
>}
> }
> 
>
> This does assume that the amount of lengthening required is uniform.
>
>
> -- Aaron Hill

Works like a charm.  Now I can have a couple of variables instead of
dozens.  Thanks!

--
Knute Snortum



Re: Controlling stem lengths in a global way

2022-08-15 Thread Aaron Hill

On 2022-08-15 4:15 pm, Knute Snortum wrote:
On Mon, Aug 15, 2022 at 4:00 PM Aaron Hill  
wrote:


On 2022-08-15 3:11 pm, Knute Snortum wrote:
> I am engraving a piece where there are many groups of 16th notes where
> the first note is normal size and the rest should look like grace
> notes.  I'm using \scaledDurations, \magnifyMusic and \normalsize to
> do this, but I'm running into a systemic problem: the stems of the
> normal size notes are mostly too short (they'd be fine if they were
> grace notes).  To get around this I'm using beam position overrides
> and tweaks, but this gets tedious quickly.  Is there a) a systemic way
> to tweak the stem lengths, and/or b) better way for me to do this?
>
> %%%
> \version "2.22.2"
> \language "english"
>
> ns = \once \normalsize
>
> % Short stems on the normalsize notes
> \relative d'' {
>   \magnifyMusic #2/3 {
> \scaleDurations 2/3 {
>   \ns d16 f, g c, f g  \ns c e, g c, e g
>   \ns c d, g c, d g  \ns c e, g c, e g |
> }
>   }
> }
>
> beamPositionA = \tweak Beam.positions #'(4 . 2) \etc
> beamPositionB = \override Beam.positions = #'(3 . 1)
>
> % Need to tweak or override many, many notes
> \relative d'' {
>   \magnifyMusic #2/3 {
> \scaleDurations 2/3 {
>   \ns \beamPositionA d16 f, g c, f g  \ns \beamPositionB c e, g c,
> e g
>   \ns c d, g c, d g  \ns c e, g c, e g \revert Beam.positions |
> }
>   }
> }
> %%%
>
> --
> Knute Snortum

Would \offsetting positions make more sense?  For instance, you could 
do

this:


ns = \once {
   \normalsize
   % Stem needs a little bit more length
   % to counteract magnifyMusic...
   \offset positions #'(1 . 0) Beam
}

\relative d'' {
   \magnifyMusic #2/3 {
 \scaleDurations 2/3 {
   \ns d16 f, g c, f g
   \ns c e, g c, e g
   \ns c d, g c, d g
   \ns c e, g c, e g |
 }
   }
}


This does assume that the amount of lengthening required is uniform.


-- Aaron Hill


Works like a charm.  Now I can have a couple of variables instead of
dozens.  Thanks!


Another option is to use grob-transformer, which allows for smarter 
logic such as handling stem direction:



ns = \once {
  \normalsize
  \override Beam.positions =
  #(grob-transformer 'positions (lambda (grob orig)
(let ((dir (ly:grob-property grob 'direction)))
 (cons (+ (car orig) (* dir 0.75)) (cdr orig)
}

\relative d'' {
  \magnifyMusic #2/3 {
\scaleDurations 2/3 {
  %% Some upward stem examples...
  \ns d16 f, g c, f g
  \ns c e, g c, e g
  %% Some downward stem examples...
  \ns f d' c e d c
  \ns g d' b f' d b |
}
  }
}



-- Aaron Hill



Re: Controlling stem lengths in a global way

2022-08-15 Thread Knute Snortum
On Mon, Aug 15, 2022 at 4:27 PM Aaron Hill  wrote:
>
> Another option is to use grob-transformer, which allows for smarter
> logic such as handling stem direction:
>
> 
> ns = \once {
>\normalsize
>\override Beam.positions =
>#(grob-transformer 'positions (lambda (grob orig)
>  (let ((dir (ly:grob-property grob 'direction)))
>   (cons (+ (car orig) (* dir 0.75)) (cdr orig)
> }
>
> \relative d'' {
>\magnifyMusic #2/3 {
>  \scaleDurations 2/3 {
>%% Some upward stem examples...
>\ns d16 f, g c, f g
>\ns c e, g c, e g
>%% Some downward stem examples...
>\ns f d' c e d c
>\ns g d' b f' d b |
>  }
>}
> }
> 
>
>
> -- Aaron Hill

Amazing.  Thanks!

--
Knute Snortum



[was: Re: ANN: Frescobaldi 3.2]

2022-08-15 Thread Jean Louis Thiry
Hello Jean and thank you for your answer.

I understand that it must be complicated to understand what I want to explain, 
so much I find it difficult to explain things that are beyond my understanding. 
Let's try briefly, knowing that I am to my great regret quite ignorant in terms 
of computer language:

On my machine I use Frescobaldi 3.0 (which works pretty well and suits my needs 
perfectly except “convert.ly" and “musicxml2ly" which don't work beyond 
lilypond 2.20.). Upgrading to 3.1 is impossible (issue: Crash: "Could not find 
QtWebEngineProcess" #1244 on Frescobaldi's site, unresolved). The main 3.0 
infos are: Python: 3.7.0 - python-ly: 0.9.5 - Qt: 5.11.1 - PyQt: 5.11.2 - sip: 
4.19.12 - poppler: 0.57.0 - python-poppler-qt: 0.24.2.

Now about Fresco 3.2: the procedure given in the “install" file does not work 
and returns messages like 
"/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python:
 can't open file 'setup.py': [Errno 2] No such file or directory – heroes:~ 
thiryjeanlouis$ python3 setup.py install —user 
/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python:
 can't open file 'setup.py': [Errno 2] No such file or directory" etc. etc.

If I type "frescobaldi" in the terminal, I get an app called "Python" exactly 
similar to Frescobaldi, using the same preferences and the same sessions but 
which is not version 3.2 and whose info is: Frescobaldi: 2.20.0 (!!) - Python: 
3.5.9 - python-ly: 0.9.5 - Qty: 4.8.7 - PyQt: 4.12.1 - sip: 4.19.20 - poppler: 
0.61.1 - python- poppler-qt: 0.24.0. A detail however, the application crashes 
systematically when leaving.
We can assume that there is a sneaky Python too many somewhere in the system, 
it's possible but where does this Frescobaldi 2.20 come from?
Hello Jean and thank you for your answer.
I understand that it must be complicated to understand what I want to explain, 
so much I find it difficult to explain things that are beyond my understanding. 
Let's briefly try:

On my machine I use Frescobaldi 3.0 (which works pretty well except convert.ly 
and musicxml2ly which don't work beyond lilypond 2.20.). Upgrading to 3.1 does 
not work (issue: Crash: "Could not find QtWebEngineProcess" #1244 on 
Frescobaldi's site, unresolved). The main 3.0 infos are: Python: 3.7.0 - 
python-ly: 0.9.5 - Qt: 5.11.1 - PyQt: 5.11.2 - sip: 4.19.12 - poppler: 0.57.0 - 
python-poppler-qt: 0.24.2.

Now Fresco 3.2: the procedure given in the "install" file does not work and 
returns messages like: 
"/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python:
 can't open file 'setup.py': [Errno 2] No such file or directory
heroes:~ thiryjeanlouis$ python3 setup.py install --user
/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python:
 can't open file 'setup.py': [Errno 2] No such file or directory" etc. etc.

If I type "frescobaldi" in the terminal, I get an app called "Python" exactly 
similar to Frescobaldi, using the same preferences and the same sessions but 
which is not version 3.2 and whose info is: Frescobaldi: 2.20.0 (!!) - Python: 
3.5.9 - python-ly: 0.9.5 - Qty: 4.8.7 - PyQt: 4.12.1 - sip: 4.19.20 - poppler: 
0.61.1 - python- poppler-qt: 0.24.0. A detail however, the application crashes 
systematically when leaving.

I found all these pythons in my Mac: Python: 3.7.6, 2.7.16 , 3.7.4, 3.5.9, 
3.7.1 - Python Launcher: 3.7.6, 3.7.1, 3.7.4.
We can assume that there is a sneaky Python too many somewhere in the system 
it's possible but where does this Frescobaldi 2.20 come from? 


All the best,
JL






Jean Louis Thiry
06 68 80 64 50
thir...@ramierou.eu


390A rue du Ramiérou à Montauban

Re: The problem of Lilypond changing instrument and the issue of .ly converting to MIDI with a custom setting

2022-08-15 Thread Jacques Menu
Hello Angie,

> Le 4 août 2022 à 04:48, 柊希里子  > a écrit :
> 
> My workflow is needed to be an automation script, cause I want to create a 
> tool to generate the annotation of each note automatically. The process is 
> like the below:
> 
> Turn the .xml file into .ly,
> Ideally, I want to eliminate all the decorations, like accent, staccato, any 
> kind of ornament, and tempo-related expression.
> Such as --nd, do not convert directions (^, _ or -) for articulations, 
> dynamics, etc.
> Command example: musicxml2ly -v --nd --midi --output="1_Bach_Prelude1.ly 
> " ./1_Bach_Prelude1.xml
> In the .ly file, convert the instrument into Violin or Cello, no matter what 
> kind of instrument the score was originally made for, because the String 
> instrument will get a more stable note duration of MIDI file than the 
> Woodwind or Piano.
> 
> In the .ly file, eliminate all the tempo expressions, and set the tempo to 
> BPM=60.
> For the same reason as 2nd step, this step aims to get a more stable note 
> duration.
> 
> The steps 2 and 3 I wrote a python code to replace the tempo and want to 
> change the instrument clef, see the attachment “replace_tempo.py”.
> Command example: `python replace_tempo.py --path ./1_Bach_Prelude1.ly 
> `, then output the file named just add the 
> `_replace` afterward, like: `1_Bach_Prelude1_replace.ly 
> `

Automatising such steps thru options is what xml2ly, a part of the MusicFormats 
library, is about, maybe it can help you.

The user doc is at 
https://github.com/jacques-menu/musicformats/blob/master/documentation/MusicFormatsUserGuide/MusicFormatsUserGuide.pdf
 

 .

HTH!

JM



Re: [was: Re: ANN: Frescobaldi 3.2]

2022-08-15 Thread Jean Abou Samra

Le 16/08/2022 à 02:48, Jean Louis Thiry a écrit :

Hello Jean and thank you for your answer.

I understand that it must be complicated to understand what I want to 
explain, so much I find it difficult to explain things that are beyond 
my understanding. Let's try briefly, knowing that I am to my great 
regret quite ignorant in terms of computer language:


On my machine I use Frescobaldi 3.0 (which works pretty well and suits 
my needs perfectly except “convert.ly " and 
“musicxml2ly" which don't work beyond lilypond 2.20.). Upgrading to 
3.1 is impossible (issue: Crash: "Could not find QtWebEngineProcess" 
#1244 on Frescobaldi's site, unresolved). The main 3.0 infos are: 
Python: 3.7.0 - python-ly: 0.9.5 - Qt: 5.11.1 - PyQt: 5.11.2 - sip: 
4.19.12 - poppler: 0.57.0 - python-poppler-qt: 0.24.2.


Now about Fresco 3.2: the procedure given in the “install" file does 
not work and returns messages like 
"/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: 
can't open file 'setup.py': [Errno 2] No such file or directory – 
heroes:~ thiryjeanlouis$ python3 setup.py install —user 
/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: 
can't open file 'setup.py': [Errno 2] No such file or directory" etc. etc.



Where are you running this command from? It sounds like you are not in 
the right directory. You need to be inside the 'frescobaldi' directory. 
If you do 'ls', you should see a setup.py file.


Before trying to install, what do you get if, inside the 'frescobaldi' 
folder, you follow the procedure for running Frescobaldi from this 
folder without installing, namely 'python3 frescobaldi'?



If I type "frescobaldi" in the terminal, I get an app called "Python" 
exactly similar to Frescobaldi, using the same preferences and the 
same sessions but which is not version 3.2 and whose info is: 
Frescobaldi: 2.20.0 (!!) - Python: 3.5.9 - python-ly: 0.9.5 - Qty: 
4.8.7 - PyQt: 4.12.1 - sip: 4.19.20 - poppler: 0.61.1 - python- 
poppler-qt: 0.24.0. A detail however, the application crashes 
systematically when leaving.
We can assume that there is a sneaky Python too many somewhere in the 
system,



Mandatory XKCD: https://xkcd.com/1987/



it's possible but where does this Frescobaldi 2.20 come from?


I don't know, but let's try to properly run 3.2 first.

Best,
Jean