Re: format source code

2016-11-10 Thread Gianmaria Lari
> > the ly file you provide had not been created by midi2ly.py (lilypond's > MIDI to > ly converter) > However Karl's Perl script is working specifically with files created by > midi2ly.py, not with ly files in general. > ahhh My apologies, you're totally right, I completely forgot it! Thanks

Re: format source code

2016-11-10 Thread Gerdau, Michael
Hi Gianmaria, > Here it is the midi and the violin part I extracted. > > I would like to better format the violin part (that I already extracted) > and also to extract the piano part. > > Let me know what you're able to do :) and thank you anyway for your > help and interest. the ly file y

Re: format source code

2016-11-10 Thread Gianmaria Lari
Here it is the midi and the violin part I extracted. I would like to better format the violin part (that I already extracted) and also to extract the piano part. Let me know what you're able to do :) and thank you anyway for your help and interest. Ciao, Gianmaria On 10 November 2016 at 11

Re: format source code

2016-11-10 Thread karl
Micheal Gerdau: ... > > C:\Test>perl .\tidy_midi.pl Irish.ly > i.ly > > and a 0 bytes file length is created. Any hints? I you send me the file I can have a look to see if I can adjust the program to handle it, or if you send me the midi file I can have a look to see if I can do a converter that m

Re: format source code

2016-11-10 Thread karl
Michael Gerdau: > Sirius Barras: ... > > C:\Test>perl .\tidy_midi.pl Irish.ly > i.ly ... > perl .\tidy_midi.pl LottiAminAgnus-midi.ly > LottiAminAgnus.out2.ly I you are running "perl" as the first thing on the command line, you can omit the ".\" part. Regards, /Karl Hammar -

Re: format source code

2016-11-10 Thread Gerdau, Michael
> I installed ActivePerl (windows pc). > "Perl -v " runs correctly and it shows "This is perl 5, version " etc. > > Now tried to do: > > C:\Test>perl .\tidy_midi.pl Irish.ly > i.ly > > > and a 0 bytes file length is created. Any hints? I'm using Strawberry Perl (http://strawberryperl.com/)

Re: format source code

2016-11-10 Thread karl
Sirius Barras: > I installed ActivePerl (windows pc). > "Perl -v " runs correctly and it shows "This is perl 5, version " etc. > > Now tried to do: > > C:\Test>perl .\tidy_midi.pl Irish.ly > i.ly > > > and a 0 bytes file length is created. Any hints? Ohh, I don't have any MS-windows machin

Re: format source code

2016-11-10 Thread Sirius Barras
Ciao Karl, I installed ActivePerl (windows pc). "Perl -v " runs correctly and it shows "This is perl 5, version " etc. Now tried to do: C:\Test>perl .\tidy_midi.pl Irish.ly > i.ly and a 0 bytes file length is created. Any hints? Thank you, g. On 10 November 2016 at 09:11, Sirius Bar

Re: format source code

2016-11-10 Thread Sirius Barras
Thank you Karl, I'm checking it. But I could take some time, I don't have experience with Perl etc. etc. Ciao, g. On 10 November 2016 at 00:59, wrote: > In http://turkos.aspodata.se/noter/tmp/ I have tidi_midi.pl that might > help you doing a preliminary step. Take below as an example: > > $ m

Re: format source code

2016-11-09 Thread karl
In http://turkos.aspodata.se/noter/tmp/ I have tidi_midi.pl that might help you doing a preliminary step. Take below as an example: $ midi2ly LottiAminAgnus.mid LY output to `LottiAminAgnus-midi.ly'... $ ./tidy_midi.pl LottiAminAgnus-midi.ly > LottiAminAgnus.out.ly There is a lot of things that

format source code

2016-11-09 Thread Gianmaria Lari
I have some lilypond code imported by a midi file that is not well formatted. Is there any way using Frescobaldi or any other tool to format the code so that each musical measure stays on a different line? ___ lilypond-user mailing list lilypond-user@gnu