Re: Asking midi2ly to output pitch names in another language

2016-07-28 Thread Mojca Miklavec
On 28 July 2016 at 12:06, Mojca Miklavec wrote:
> On 28 July 2016 at 11:38, Federico Bruni wrote:
>> Il giorno gio 28 lug 2016 alle 11:01, Mojca Miklavec ha scritto:
>>>
>>> Is it possible to convince midi2ly to output pitch names in, say
>>> \language "deutsch"
>>> ?
>>>
>>> I prefer using "b" to "bes".
>>
>>
>> You can use python-ly to postprocess the .ly file:
>>
>> https://github.com/wbsoft/python-ly
>> http://python-ly.readthedocs.io/en/latest/command.html#commands
>
> Wnderful!!!
>
> I started with my own pyPEG2-based simple parser that I didn't get
> working yet. I'll look into this package. I would need this
> functionality for other ("more advanced") features than just
> transposing & renaming anyway. I hope I get it working according to my
> needs :)

After wasting some time writing a new package for python-ly (just to
realize that the package already existed), translation of pitches
works wonderfully out of the box:

ly-3.5 "translate deutsch" -o new.ly old.ly

So even if Frescobaldi is broken for me at the moment, at least the
command-line tool does the job.

Parsing and doing my own acrobatics by adding buttons will take a bit
longer until I'm able to go into the depths of the documentation.

Thank you,
Mojca

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Asking midi2ly to output pitch names in another language

2016-07-28 Thread Mojca Miklavec
On 28 July 2016 at 12:20, Federico Bruni wrote:
> Il giorno gio 28 lug 2016 alle 12:06, Mojca Miklavec ha scritto:
>> On 28 July 2016 at 11:46, David Kastrup wrote:
>>>
>>>
>>>  I believe that this sort of pitch/representation manipulation is
>>>  something that the LilyPond editor Frescobaldi is supposed to be pretty
>>>  good at.
>>
>> Thank you, installing it now ...
>> For simple cases like this one and short scores it might be faster
>> than hand-crafing python code. So both advices are useful, thank you.
>
> It's actually the same advice, as Frescobaldi uses python-ly to perform
> those tasks (both are written by the same author.. python-ly was originally
> an internal module of Frescobaldi then it was moved out, as it can be useful
> as an independent tool).

Thanks a lot for explanation.

In any case I'm currently unable to run Frescobaldi. I opened a ticket
https://github.com/wbsoft/frescobaldi/issues/843

I'm just reading

http://www.wefearchange.org/2012/06/the-right-way-to-internationalize-your.html

Mojca

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Asking midi2ly to output pitch names in another language

2016-07-28 Thread Federico Bruni
Il giorno gio 28 lug 2016 alle 12:06, Mojca Miklavec 
 ha scritto:

On 28 July 2016 at 11:46, David Kastrup wrote:


 I believe that this sort of pitch/representation manipulation is
 something that the LilyPond editor Frescobaldi is supposed to be 
pretty

 good at.


Thank you, installing it now ...
For simple cases like this one and short scores it might be faster
than hand-crafing python code. So both advices are useful, thank you.


It's actually the same advice, as Frescobaldi uses python-ly to perform 
those tasks (both are written by the same author.. python-ly was 
originally an internal module of Frescobaldi then it was moved out, as 
it can be useful as an independent tool).



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Asking midi2ly to output pitch names in another language

2016-07-28 Thread David Kastrup
Mojca Miklavec  writes:

> Hi,
>
> Is it possible to convince midi2ly to output pitch names in, say
> \language "deutsch"
> ?
>
> I prefer using "b" to "bes".
>
>
> Also, is it possible to get the output in something like
> \fixed c'
> ?
>
> Those problems are not something that I couldn't solve by either
> manually editing the scores or writing a simple script to do it for me
> or by transposing the melody one octave lower and run the scores
> through another cycle of lilypond->midi->lilypond cycle. It's just a
> convenience.

I believe that this sort of pitch/representation manipulation is
something that the LilyPond editor Frescobaldi is supposed to be pretty
good at.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Asking midi2ly to output pitch names in another language

2016-07-28 Thread Mojca Miklavec
Hi,

Is it possible to convince midi2ly to output pitch names in, say
\language "deutsch"
?

I prefer using "b" to "bes".


Also, is it possible to get the output in something like
\fixed c'
?

Those problems are not something that I couldn't solve by either
manually editing the scores or writing a simple script to do it for me
or by transposing the melody one octave lower and run the scores
through another cycle of lilypond->midi->lilypond cycle. It's just a
convenience.

Thank you,
Mojca

(Please CC me.)

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user