Re: midi2ly

2022-05-04 Thread nkerr--- via LilyPond user discussion
That's done it. Thank you so very much


Best regards,

Nathan Kerr





May 4, 2022, 14:58 by ksnor...@gmail.com:

> (Remember to reply-all, or put the LilyPond user group in the CC:)
>
> I think the easiest thing to do at this point is to rename midi2ly -> 
> midi2ly.py.  Windows may ask you how to execute py files, then choose Python. 
>  Now try:
>
> misi2ly.py --version
>
> --
> Knute Snortum
>
>
>
> On Wed, May 4, 2022 at 2:40 PM <> nk...@tutanota.com> > wrote:
>
>> Aha, that seems to have done the trick! One final question, if I may... How 
>> to perform the conversion on a midi file from another directory?
>>
>>
>> Nathan Kerr
>>
>>
>>
>>
>>
>> May 4, 2022, 14:35 by >> ksnor...@gmail.com>> :
>>
>>> Try typing this:
>>>
>>> python midi2ly
>>>
>>> or
>>>
>>> python3 midi2ly
>>>
>>> -- 
>>> Knute Snortum
>>>
>>> On Wed, May 4, 2022, 2:32 PM  <>>> nk...@tutanota.com>>> > wrote:
>>>
>>>> Hi, thanks for the reply! The following is the response for that cmd:
>>>>
>>>> GNU LilyPond 2.22.1
>>>>
>>>> Copyright (c) 1996--2021 by
>>>>   Han-Wen Nienhuys <>>>> han...@xs4all.nl>>>> >
>>>>   Jan Nieuwenhuizen <>>>> jann...@gnu.org>>>> >
>>>>   and others.
>>>>
>>>> This program is free software.  It is covered by the GNU General Public
>>>> License and you are welcome to change it and/or distribute copies of it
>>>> under certain conditions.  Invoke as `lilypond --warranty' for more
>>>> information.
>>>>
>>>>
>>>> I see the midi2ly file in my LilyPond\usr\bin directory. Even when opening 
>>>> cmd from within the directory, midi2ly is still 'not recognized.' I'm not 
>>>> sure how to proceed from here.
>>>>
>>>>
>>>>
>>>> Nathan Kerr
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> May 4, 2022, 14:22 by >>>> ksnor...@gmail.com>>>> :
>>>>
>>>>> I'm wondering if this could be a PATH issue. Can you type
>>>>>
>>>>> lilypond --version
>>>>>
>>>>> and get a meaningful response? If not, you may have to put the LilyPond 
>>>>> bin directory on your PATH. Or use the full pathname midi2ly.
>>>>>
>>>>> -- 
>>>>> Knute Snortum
>>>>>
>>>>> On Wed, May 4, 2022, 1:42 PM nkerr--- via LilyPond user discussion <>>>>> 
>>>>> lilypond-user@gnu.org>>>>> > wrote:
>>>>>
>>>>>> Hi, thank you. I tried that, and no, that also comes up as 'not 
>>>>>> recognized.' 
>>>>>>
>>>>>> I don't see a separate installer for midi2ly, so how can I install it?
>>>>>>
>>>>>>
>>>>>> Nathan Kerr
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> May 4, 2022, 12:19 by >>>>>> jann...@gnu.org>>>>>> :
>>>>>>
>>>>>>> [sent to lilypond-user; please use the mailing list]
>>>>>>>
>>>>>>>> Hi, I'm trying to convert a midi file to a Lilypond string. From the
>>>>>>>> website
>>>>>>>> (>>>>>>>> 
>>>>>>>> https://lilypond.org/doc/v2.21/Documentation/usage/invoking-midi2ly>>>>>>>>
>>>>>>>>  )
>>>>>>>> I understand I'm supposed to use the following in cmd:
>>>>>>>>
>>>>>>>> midi2ly [option]… midi-file
>>>>>>>>
>>>>>>>> but I get "not recognized." I can successfully use Lilypond from
>>>>>>>> cmd. I don't see a separate installer for midi2ly and see no
>>>>>>>> documentation indicating how to get passed this issue.
>>>>>>>>
>>>>>>>> Any help you can provide is much appreciated.
>>>>>>>>
>>>>>>>
>>>>>>> You can try:
>>>>>>>
>>>>>>> midi2ly --version
>>>>>>>
>>>>>>> to see if midi2ly has been installed correctly.  If it is, possibly
>>>>>>> midi2ly cannot handle your midi file.
>>>>>>>
>>>>>>> Greetings,
>>>>>>> Janneke
>>>>>>>
>>>>>>> -- 
>>>>>>> Jan Nieuwenhuizen <>>>>>>> jann...@gnu.org>>>>>>> >  | GNU LilyPond 
>>>>>>> >>>>>>> https://lilypond.org
>>>>>>> Freelance IT >>>>>>> https://JoyOfSource.com>>>>>>>  | Avatar® >>>>>>> 
>>>>>>> https://AvatarAcademy.com
>>>>>>>
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>



Re: midi2ly

2022-05-04 Thread Knute Snortum
(Remember to reply-all, or put the LilyPond user group in the CC:)

I think the easiest thing to do at this point is to rename midi2ly ->
midi2ly.py.  Windows may ask you how to execute py files, then choose
Python.  Now try:

misi2ly.py --version

--
Knute Snortum



On Wed, May 4, 2022 at 2:40 PM  wrote:

> Aha, that seems to have done the trick! One final question, if I may...
> How to perform the conversion on a midi file from another directory?
>
>
> Nathan Kerr
>
>
>
>
>
> May 4, 2022, 14:35 by ksnor...@gmail.com:
>
> Try typing this:
>
> python midi2ly
>
> or
>
> python3 midi2ly
>
> --
> Knute Snortum
>
> On Wed, May 4, 2022, 2:32 PM  wrote:
>
> Hi, thanks for the reply! The following is the response for that cmd:
>
> GNU LilyPond 2.22.1
>
> Copyright (c) 1996--2021 by
>   Han-Wen Nienhuys 
>   Jan Nieuwenhuizen 
>   and others.
>
> This program is free software.  It is covered by the GNU General Public
> License and you are welcome to change it and/or distribute copies of it
> under certain conditions.  Invoke as `lilypond --warranty' for more
> information.
>
>
> I see the midi2ly file in my LilyPond\usr\bin directory. Even when opening
> cmd from within the directory, midi2ly is still 'not recognized.' I'm not
> sure how to proceed from here.
>
>
>
> Nathan Kerr
>
>
>
>
>
> May 4, 2022, 14:22 by ksnor...@gmail.com:
>
> I'm wondering if this could be a PATH issue. Can you type
>
> lilypond --version
>
> and get a meaningful response? If not, you may have to put the LilyPond
> bin directory on your PATH. Or use the full pathname midi2ly.
>
> --
> Knute Snortum
>
> On Wed, May 4, 2022, 1:42 PM nkerr--- via LilyPond user discussion <
> lilypond-user@gnu.org> wrote:
>
> Hi, thank you. I tried that, and no, that also comes up as 'not
> recognized.'
>
> I don't see a separate installer for midi2ly, so how can I install it?
>
>
> Nathan Kerr
>
>
>
>
>
> May 4, 2022, 12:19 by jann...@gnu.org:
>
> [sent to lilypond-user; please use the mailing list]
>
> Hi, I'm trying to convert a midi file to a Lilypond string. From the
> website
> (https://lilypond.org/doc/v2.21/Documentation/usage/invoking-midi2ly)
> I understand I'm supposed to use the following in cmd:
>
> midi2ly [option]… midi-file
>
> but I get "not recognized." I can successfully use Lilypond from
> cmd. I don't see a separate installer for midi2ly and see no
> documentation indicating how to get passed this issue.
>
> Any help you can provide is much appreciated.
>
>
> You can try:
>
> midi2ly --version
>
> to see if midi2ly has been installed correctly. If it is, possibly
> midi2ly cannot handle your midi file.
>
> Greetings,
> Janneke
>
> --
> Jan Nieuwenhuizen  | GNU LilyPond https://lilypond.org
> Freelance IT https://JoyOfSource.com | Avatar® https://AvatarAcademy.com
>
>
>
>
>


Re: midi2ly

2022-05-04 Thread Knute Snortum
I'm wondering if this could be a PATH issue. Can you type

lilypond --version

and get a meaningful response? If not, you may have to put the LilyPond bin
directory on your PATH. Or use the full pathname midi2ly.

-- 
Knute Snortum

On Wed, May 4, 2022, 1:42 PM nkerr--- via LilyPond user discussion <
lilypond-user@gnu.org> wrote:

> Hi, thank you. I tried that, and no, that also comes up as 'not
> recognized.'
>
> I don't see a separate installer for midi2ly, so how can I install it?
>
>
> Nathan Kerr
>
>
>
>
>
> May 4, 2022, 12:19 by jann...@gnu.org:
>
> [sent to lilypond-user; please use the mailing list]
>
> Hi, I'm trying to convert a midi file to a Lilypond string. From the
> website
> (https://lilypond.org/doc/v2.21/Documentation/usage/invoking-midi2ly)
> I understand I'm supposed to use the following in cmd:
>
> midi2ly [option]… midi-file
>
> but I get "not recognized." I can successfully use Lilypond from
> cmd. I don't see a separate installer for midi2ly and see no
> documentation indicating how to get passed this issue.
>
> Any help you can provide is much appreciated.
>
>
> You can try:
>
> midi2ly --version
>
> to see if midi2ly has been installed correctly. If it is, possibly
> midi2ly cannot handle your midi file.
>
> Greetings,
> Janneke
>
> --
> Jan Nieuwenhuizen  | GNU LilyPond https://lilypond.org
> Freelance IT https://JoyOfSource.com | Avatar® https://AvatarAcademy.com
>
>
>


Re: midi2ly

2022-05-04 Thread nkerr--- via LilyPond user discussion
Hi, thank you. I tried that, and no, that also comes up as 'not recognized.' 

I don't see a separate installer for midi2ly, so how can I install it?


Nathan Kerr





May 4, 2022, 12:19 by jann...@gnu.org:

> [sent to lilypond-user; please use the mailing list]
>
>> Hi, I'm trying to convert a midi file to a Lilypond string. From the
>> website
>> (https://lilypond.org/doc/v2.21/Documentation/usage/invoking-midi2ly)
>> I understand I'm supposed to use the following in cmd:
>>
>> midi2ly [option]… midi-file
>>
>> but I get "not recognized." I can successfully use Lilypond from
>> cmd. I don't see a separate installer for midi2ly and see no
>> documentation indicating how to get passed this issue.
>>
>> Any help you can provide is much appreciated.
>>
>
> You can try:
>
>  midi2ly --version
>
> to see if midi2ly has been installed correctly.  If it is, possibly
> midi2ly cannot handle your midi file.
>
> Greetings,
> Janneke
>
> -- 
> Jan Nieuwenhuizen   | GNU LilyPond https://lilypond.org
> Freelance IT https://JoyOfSource.com | Avatar® https://AvatarAcademy.com
>



Re: midi2ly

2022-05-04 Thread Jan Nieuwenhuizen
[sent to lilypond-user; please use the mailing list]

> Hi, I'm trying to convert a midi file to a Lilypond string. From the
> website
> (https://lilypond.org/doc/v2.21/Documentation/usage/invoking-midi2ly)
> I understand I'm supposed to use the following in cmd:
>
> midi2ly [option]… midi-file

> but I get "not recognized." I can successfully use Lilypond from
> cmd. I don't see a separate installer for midi2ly and see no
> documentation indicating how to get passed this issue.

> Any help you can provide is much appreciated.

You can try:

   midi2ly --version

to see if midi2ly has been installed correctly.  If it is, possibly
midi2ly cannot handle your midi file.

Greetings,
Janneke

-- 
Jan Nieuwenhuizen   | GNU LilyPond https://lilypond.org
Freelance IT https://JoyOfSource.com | Avatar® https://AvatarAcademy.com



Re: midi2ly

2021-06-17 Thread Kees van den Doel
Hi again David,

I didn't understand what you wrote, but I did a bunch of things to make it
work. I think this will solve the convert-ly problem as well, though I
haven't checked. This is in mintty shell using Cygwin on Windows 10.

$ ls -l  /cygdrive/d/Program\ Files\ \(x86\)/LilyPond/usr/bin/midi2ly

-rwxrwx---+ 1 Administrators None 39034 Apr 24 07:05 '/cygdrive/d/Program
Files (x86)/LilyPond/usr/bin/midi2ly'

$ which python3

which: no python3 in ...

$ which python
/cygdrive/d/ProgramData/Anaconda2/python

$ python --version
Python 2.7.15 :: Anaconda, Inc.

$ /cygdrive/d/Program\ Files\ \(x86\)/LilyPond/usr/bin/python --version

Python 3.7.4

$ /cygdrive/d/Program\ Files\ \(x86\)/LilyPond/usr/bin/python
/cygdrive/d/Program\ Files\ \(x86\)/LilyPond/usr/bin/midi2ly --version

D:\Program Files (x86)\LilyPond\usr\bin\python.exe: can't open file
'/cygdrive/d/Program Files (x86)/LilyPond/usr/bin/midi2ly': [Errno 2] No
such file or directory

$ cp /cygdrive/d/Program\ Files\ \(x86\)/LilyPond/usr/bin/midi2ly .
$ mv midi2ly midi2ly.py
$ /cygdrive/d/Program\ Files\ \(x86\)/LilyPond/usr/bin/python midi2ly.py
--version

midi2ly (LilyPond) 2.22.1

$ /cygdrive/d/Program\ Files\ \(x86\)/LilyPond/usr/bin/python midi2ly.py
bwv0026_04.mid

LY output to `bwv0026_04-midi.ly'...

$ echo works!

works!

Cheers,
Kees

On Thu, Jun 17, 2021 at 6:17 PM David Wright 
wrote:

> On Thu 17 Jun 2021 at 17:06:22 (-0700), Kees van den Doel wrote:
> > Thanks David, I have followed the convert-ly posts but my take-away was
> > that convert-ly is not usable for Windows users as no solution was
> offered.
> > I guess it's the same with this midi2ly.
>
> [Please keep the discussion on-list where others might see it,
> particularly Windows-users.]
>
> Have you tried just invoking python3 itself, placing the name of the
> script next, and then whatever arguments you were using, ie:
>
> $ path-to-midi2ly arguments …
>
>   ↓
>
> $ python3 path-to-midi2ly arguments …
>
> This is effectively all that a shebang does: you can execute a script
> by name without having to care about which interpreter it needs.
> (You may need path-to-python3 as well.)
>
> Cheers,
> David.
>


Re: midi2ly

2021-06-17 Thread David Wright
On Thu 17 Jun 2021 at 17:06:22 (-0700), Kees van den Doel wrote:
> Thanks David, I have followed the convert-ly posts but my take-away was
> that convert-ly is not usable for Windows users as no solution was offered.
> I guess it's the same with this midi2ly.

[Please keep the discussion on-list where others might see it,
particularly Windows-users.]

Have you tried just invoking python3 itself, placing the name of the
script next, and then whatever arguments you were using, ie:

$ path-to-midi2ly arguments …

  ↓

$ python3 path-to-midi2ly arguments …

This is effectively all that a shebang does: you can execute a script
by name without having to care about which interpreter it needs.
(You may need path-to-python3 as well.)

Cheers,
David.



Re: midi2ly

2021-06-17 Thread David Wright
On Thu 17 Jun 2021 at 14:20:52 (-0700), Kees van den Doel wrote:
> On windows 10, a fresh install of lilypond.
> On Windows "powershell"
> > midi2ly -V
> brings up a window "how do you want to open this file".
> On mintty (another CMD shell)
> mintty screen dump
> 
> bash: /cygdrive/d/Program Files (x86)/LilyPond/usr/bin/midi2ly:
> /usr/bin/python3: bad interpreter: No such file or directory
> 
> Can anyone tell me what's wrong?

Two possibilities strike me, not being a Windows user:

1) The first line of midi2ly is a shebang, ie
   #!/usr/bin/python3
   which is the recommended way to run Python 3 scripts.

Even where "python" alone now invokes python3 rather than
python2, python3 should still be defined.

2) The third line of midi2ly gives the script's name as
   # midi2ly.py -- LilyPond midi import script

The .py suffix should allow OSes like Windows to invoke
the appropriate interpreter. For help with this, perhaps
look at this post and this thread (both for convert-ly):

https://lists.gnu.org/archive/html/lilypond-user/2021-01/msg00140.html
https://lists.gnu.org/archive/html/lilypond-user/2021-05/msg00301.html

Cheers,
David.



midi2ly

2021-06-17 Thread Kees van den Doel
On windows 10, a fresh install of lilypond.
On Windows "powershell"
> midi2ly -V
brings up a window "how do you want to open this file".
On mintty (another CMD shell)
mintty screen dump

bash: /cygdrive/d/Program Files (x86)/LilyPond/usr/bin/midi2ly:
/usr/bin/python3: bad interpreter: No such file or directory


Can anyone tell me what's wrong?


Re: Restrict midi2ly to one voice (partly off-topic)

2021-01-08 Thread Stephan Schöll
Thanks for your reply, Hans.

I can confirm that the source was a single (Cubase) part and all notes
were on the same MIDI channel.

I checked the source data of the MIDI file (in Cubase) again and in
fact: I found a few places where two or more simultaneous notes did not
have the same length which I had overseen in earlier. My fault, sorry ;-)

With several round-trips Cubase-midi2ly-Lilypond/Frescobaldi I was able
to locate all these unfavourable constellations.

What I have learned: As soon as midi2ly meets more than one (overlapping
note with divergent start/end midi2ly interprets it as polyphonic music,
 thus creates additional voices and fills the score up to this
"polyphonic" position with rests in the additional voice/s.

Regards
Stephan

Am 06.01.2021 um 00:54 schrieb Hans Aikema:
> "|midi2ly| converts tracks into Staff
> <https://lilypond.org/doc/v2.18/Documentation/internals/staff> and
> channels into Voice
> <https://lilypond.org/doc/v2.18/Documentation/internals/voice> contexts"
>
> so make your midi-file contain all music on a single channel should
> result in a single voice
>
> apparently, given the results, your midi is currently 4 channels with music
>
> regards,
> Hans
>
>> On 5 Jan 2021, at 12:26, Stephan Schöll  wrote:
>>
>> Hi
>>
>> I have a self-recorded/-created midi file which I have quantized and
>> simplified to death (lengths and durations to 1/16, no overlaps). Let's
>> assume it's the the left hand part of a piano score. Now I want to
>> convert it to a lilypond file using
>>
>> midi2ly.py -d 16 -s 16 -o "\MITM_Piano_LH.ly" "> file>\MITM_Piano_LH.mid"
>>
>> This works without errors on the command line. But lilypond generates 4
>> voices and distributes the notes all over these voices which is a mess.
>> I optimized the midi file in a way that midi2ly might simply produce one
>> voice.
>>
>> How can I tell midi2ly to create only one voice? I couldn't find any
>> helping hint in the documentation
>> https://lilypond.org/doc/v2.18/Documentation/usage/invoking-midi2ly.en.html.
>>
>> Best Regards
>> Stephan
>>



Re: Restrict midi2ly to one voice

2021-01-05 Thread Hans Aikema
"midi2ly converts tracks into Staff and channels into Voice contexts"

so make your midi-file contain all music on a single channel should result in a 
single voice

apparently, given the results, your midi is currently 4 channels with music

regards,
Hans

> On 5 Jan 2021, at 12:26, Stephan Schöll  wrote:
> 
> Hi
> 
> I have a self-recorded/-created midi file which I have quantized and
> simplified to death (lengths and durations to 1/16, no overlaps). Let's
> assume it's the the left hand part of a piano score. Now I want to
> convert it to a lilypond file using
> 
> midi2ly.py -d 16 -s 16 -o "\MITM_Piano_LH.ly" " file>\MITM_Piano_LH.mid"
> 
> This works without errors on the command line. But lilypond generates 4
> voices and distributes the notes all over these voices which is a mess.
> I optimized the midi file in a way that midi2ly might simply produce one
> voice.
> 
> How can I tell midi2ly to create only one voice? I couldn't find any
> helping hint in the documentation
> https://lilypond.org/doc/v2.18/Documentation/usage/invoking-midi2ly.en.html.
> 
> Best Regards
> Stephan
> 


Restrict midi2ly to one voice

2021-01-05 Thread Stephan Schöll
Hi

I have a self-recorded/-created midi file which I have quantized and
simplified to death (lengths and durations to 1/16, no overlaps). Let's
assume it's the the left hand part of a piano score. Now I want to
convert it to a lilypond file using

midi2ly.py -d 16 -s 16 -o "\MITM_Piano_LH.ly" "\MITM_Piano_LH.mid"

This works without errors on the command line. But lilypond generates 4
voices and distributes the notes all over these voices which is a mess.
I optimized the midi file in a way that midi2ly might simply produce one
voice.

How can I tell midi2ly to create only one voice? I couldn't find any
helping hint in the documentation
https://lilypond.org/doc/v2.18/Documentation/usage/invoking-midi2ly.en.html.

Best Regards
Stephan



Re: Is anyone maintaining midi2ly?

2018-01-04 Thread David Wright
On Sat 30 Dec 2017 at 23:11:04 (+), Michael Ellis wrote:
> David Kastrup wrote:
> 
>- I get correct PDF output on 2.21.0 but a nonsensical wash of bar
>checks that appear to cater to 2/4 throughout.
> 
> Thanks for testing it, David.  What options did you use for midi2ly and
> lilypond?  My command lines were:
> 
> ./midi2ly.py -o meter.ly -n -V 1 meter.midi

What's odd to me is that all the midi2ly programs I have
are lacking the .py extension. They also object to being
fed a -n option. (Also, the program wouldn't normally be
found in the same directory as users' data files.)

> lilypond meter.ly
> 
> I only got one bar check complaint when LP processed meter.ly which
> contains:
> 
> TrackA = {
>   \numericTimeSignature\time 4/4  c'4 d'4 e'4 f'4  |  % orig
>   \numericTimeSignature\time 2/4  g'8 a'8 g'8 g'8 a'8 g'8 c''4  |  % orig
>   \numericTimeSignature\time 6/8  c''4 g'8 a'8 g'8 g'8 a'8 g'8  |  % orig
>   \numericTimeSignature\time 2/4  c''4 c''4 r2  |  % orig
> }

…whose format doesn't resemble the output I get from midi2ly with
$ ~/lilypond-2.19.80-1/bin/midi2ly -o /tmp/meter1980.ly /tmp/meter.midi 

Cheers,
David.
% Lily was here -- automatically converted by 
/home/david/lilypond-2.19.80-1/lilypond/usr/bin/midi2ly from /tmp/meter.midi
\version "2.14.0"

\layout {
  \context {
\Voice
\remove "Note_heads_engraver"
\consists "Completion_heads_engraver"
\remove "Rest_engraver"
\consists "Completion_rest_engraver"
  }
}

trackAchannelA = {
  
  \time 4/4 
  
  \tempo 4 = 120 
  \skip 1 
  | % 2
  
  \time 6/8 
  \skip 2. 
  | % 3
  
  \time 2/4 
  \skip 2 
  | % 4
  
  \time 6/8 
  \skip 2. 
  | % 5
  
  \time 2/4 
  
}

trackA = <<
  \context Voice = voiceA \trackAchannelA
>>


trackBchannelB = \relative c {
  c'4 d 
  | % 2
  e f 
  | % 3
  g8 a g g 
  | % 4
  a g c4 
  | % 5
  c g8 a 
  | % 6
  g g a g 
  | % 7
  c4 c 
  | % 8
  
}

trackB = <<
  \context Voice = voiceA \trackBchannelB
>>


\score {
  <<
\context Staff=trackB \trackA
\context Staff=trackB \trackB
  >>
  \layout {}
  \midi {}
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Is anyone maintaining midi2ly?

2018-01-01 Thread Michael Ellis
On Mon, Jan 1, 2018 at 5:08 PM Gianmaria Lari 
wrote:

> Ciao Michael,
>
> Thank you for your help, now it works!!
>
Great. I added some more explanatory text to help others not stumble over
it.


> Some suggestion about your test page:
> - The text box where you can write the music is too large. My screeen
> resolution is 1920x1080 but I cannot see at the same time this text box and
> the submit/play etc. buttons
>
I agree about the height when viewed in a wide window.  There are a couple
of ways you can control it.

   1. The text area is resizable. You should be able to drag it from the
   lower right corner to whatever feels comfortable.
   2. The font sizes are all specified in viewport width units so mobile
   users will have at least a fighting chance to read it.  On a desktop, if
   you shrink the width of your browser window the fonts and the rest of the
   layout will shrink to expose more of the vertical page.

The reason for the tall text area is to support users who want to enter
extended music samples.

- The panel with "Choose pitch characters" should be put in the same panel
> with the others buttons (submit, play etc.); IMHO it is too far from the
> rest.
>
That's worth considering.  Thanks!

I've just added a couple of new examples you can paste and try. One is a
few bars of a two part duet voiced for flute and guitar. The other is a
little percussion pattern for bass drum,  snare and ride cymbal.

Cheers,
Mike
-- 
Write music faster with Tbon.

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


Re: Is anyone maintaining midi2ly?

2018-01-01 Thread Michael Ellis
On Sat, Dec 30, 2017 at 6:08 PM  wrote:

> David Kastrup:
> > Michael Ellis  writes:
> ...
> > > The MuseScore output is correct and matches the tempo and meter items
> > > embedded in the original midi file (attached).  I've also verified
> with 2 different
> > > DAW's (Reaper and Logic X) that the midi file is imported correctly.
>
> The midi file matches your msc2-meter-example.png, I can show you
> (Michael) a dump if you like.

Thanks, Karl. Always good to have a sanity check.


> Nice idea to have c--c mean c8. c16 which is much more error prone to
> type.
>
 Also easier to edit if you change your mind.  To make it a triplet rhythm,
just delete a dash to get c-c, or add a dash to get a quintuplet 60/40
swing, i.e. c--c-

You could probably change your python program to output lilypond code
> directly.
>
I'm hoping an enthusiastic contributor will send a pull request. Ditto for
musicXML.  :-)
Seriously, I decided to focus on midi output because it's the only thing
that almost all the other music software will import, more or less.

Thanks for the interest and feedback and sorry to take a couple of days to
respond.  I'll plead New Years celebrations (and also adding GM instrument
support to tbon.)
Cheers,
Mike
-- 
Write music faster with Tbon.

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


Re: Is anyone maintaining midi2ly?

2018-01-01 Thread Michael Ellis
On Sat, Dec 30, 2017 at 6:11 PM Michael Ellis 
wrote:

> David Kastrup wrote:
>
>- I get correct PDF output on 2.21.0 but a nonsensical wash of bar
>checks that appear to cater to 2/4 throughout.
>
>
> I'll try upgrading to 2.21 and see if that makes any difference.
>

Hmmm, I don't see a 2.21 binary for OS X.  I downloaded 2.19.80.  Got
bogged down trying to run mid2ly as a standalone under python 3.5.
-- 
Write music faster with Tbon.

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


Re: Is anyone maintaining midi2ly?

2017-12-30 Thread David Kastrup
Michael Ellis  writes:

> David Kastrup wrote:
>
>- I get correct PDF output on 2.21.0 but a nonsensical wash of bar
>checks that appear to cater to 2/4 throughout.
>
> Thanks for testing it, David.  What options did you use for midi2ly and
> lilypond?

None.

-- 
David Kastrup

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


Re: Is anyone maintaining midi2ly?

2017-12-30 Thread Michael Ellis
David Kastrup wrote:

   - I get correct PDF output on 2.21.0 but a nonsensical wash of bar
   checks that appear to cater to 2/4 throughout.

Thanks for testing it, David.  What options did you use for midi2ly and
lilypond?  My command lines were:

./midi2ly.py -o meter.ly -n -V 1 meter.midi
lilypond meter.ly

I only got one bar check complaint when LP processed meter.ly which
contains:

TrackA = {
  \numericTimeSignature\time 4/4  c'4 d'4 e'4 f'4  |  % orig
  \numericTimeSignature\time 2/4  g'8 a'8 g'8 g'8 a'8 g'8 c''4  |  % orig
  \numericTimeSignature\time 6/8  c''4 g'8 a'8 g'8 g'8 a'8 g'8  |  % orig
  \numericTimeSignature\time 2/4  c''4 c''4 r2  |  % orig
}

It was on the 6/8 line in the above which contains 8 eighth-notes.

I'll try upgrading to 2.21 and see if that makes any difference.


On Sat, Dec 30, 2017 at 5:15 PM David Kastrup  wrote:

> Michael Ellis  writes:
>
> > Hi, It's been a few years since my last post here.  I'm wondering about
> the status of
> > midi2ly.  I just tried the version that came with 2.18.2 and it seems to
> handle meter
> > changes incorrectly.  Here's a short example produced from a midi file
> imported into
> > MuseScore 2.1
> >
> > msc2-meter-example.png
> >
> > and here's the result of processing what midi2ly produced from the same
> file
> >
> > ly-meter-example.png
> >
> > The MuseScore output is correct and matches the tempo and meter items
> > embedded in the original midi file (attached).  I've also verified with
> 2 different
> > DAW's (Reaper and Logic X) that the midi file is imported correctly.
> >
> > The application that produced the midi file is called tbon. It's a
> shorthand notation
> > language I wrote for projects where fast notation entry is more
> important than
> > having the full capabilities of LilyPond.  If you're curious about tbon,
> go to
> > https://github.com/Michael-F-Ellis/tbon . The README has a link to a
> live online
> > demo.
> >
> > I'd really rather use LP than MuseScore for the times when I want to
> engrave the
> > output from tbon since LP still produces better looking scores, imo, but
> not being
> > able to handle meter changes is a showstopper.
>
> I get correct PDF output on 2.21.0 but a nonsensical wash of bar checks
> that appear to cater to 2/4 throughout.
>
> --
> David Kastrup
>
-- 
Write music faster with Tbon.
<https://github.com/Michael-F-Ellis/tbon/#tbon>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Is anyone maintaining midi2ly?

2017-12-30 Thread karl
David Kastrup:
> Michael Ellis  writes:
...
> > The MuseScore output is correct and matches the tempo and meter items
> > embedded in the original midi file (attached).  I've also verified with 2 
> > different
> > DAW's (Reaper and Logic X) that the midi file is imported correctly.

The midi file matches your msc2-meter-example.png, I can show you
(Michael) a dump if you like.

> > The application that produced the midi file is called tbon. It's a 
> > shorthand notation
> > language I wrote for projects where fast notation entry is more important 
> > than
> > having the full capabilities of LilyPond.  If you're curious about tbon, go 
> > to
> > https://github.com/Michael-F-Ellis/tbon . The README has a link to a live 
> > online
> > demo.

Nice idea to have c--c mean c8. c16 which is much more error prone to 
type.

You could probably change your python program to output lilypond code
directly.

> > I'd really rather use LP than MuseScore for the times when I want to 
> > engrave the
> > output from tbon since LP still produces better looking scores, imo, but 
> > not being
> > able to handle meter changes is a showstopper.
> 
> I get correct PDF output on 2.21.0 but a nonsensical wash of bar checks
> that appear to cater to 2/4 throughout.

And here with 2.19.16.

The bar checks fails because midi2ly puts in barchecks in the wrong 
places, don't know why.

///

Regarding your subject line question, I don't know.
I make my own midi -> ly converter though, currently in an experimental
leap...

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



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


Re: Is anyone maintaining midi2ly?

2017-12-30 Thread David Kastrup
Michael Ellis  writes:

> Hi, It's been a few years since my last post here.  I'm wondering about the 
> status of
> midi2ly.  I just tried the version that came with 2.18.2 and it seems to 
> handle meter
> changes incorrectly.  Here's a short example produced from a midi file 
> imported into
> MuseScore 2.1
>
> msc2-meter-example.png
>
> and here's the result of processing what midi2ly produced from the same file
>
> ly-meter-example.png
>
> The MuseScore output is correct and matches the tempo and meter items
> embedded in the original midi file (attached).  I've also verified with 2 
> different
> DAW's (Reaper and Logic X) that the midi file is imported correctly.
>
> The application that produced the midi file is called tbon. It's a shorthand 
> notation
> language I wrote for projects where fast notation entry is more important than
> having the full capabilities of LilyPond.  If you're curious about tbon, go to
> https://github.com/Michael-F-Ellis/tbon . The README has a link to a live 
> online
> demo.
>
> I'd really rather use LP than MuseScore for the times when I want to engrave 
> the
> output from tbon since LP still produces better looking scores, imo, but not 
> being
> able to handle meter changes is a showstopper.

I get correct PDF output on 2.21.0 but a nonsensical wash of bar checks
that appear to cater to 2/4 throughout.

-- 
David Kastrup

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


Is anyone maintaining midi2ly?

2017-12-30 Thread Michael Ellis
Hi, It's been a few years since my last post here.  I'm wondering about the
status of midi2ly.  I just tried the version that came with 2.18.2 and it
seems to handle meter changes incorrectly.  Here's a short example produced
from a midi file imported into MuseScore 2.1

[image: msc2-meter-example.png]

and here's the result of processing what midi2ly produced from the same file

[image: ly-meter-example.png]

The MuseScore output is correct and matches the tempo and meter items
embedded in the original midi file (attached).  I've also verified with 2
different DAW's (Reaper and Logic X) that the midi file is imported
correctly.

The application that produced the midi file is called *tbon*. It's a
shorthand notation language I wrote for projects where fast notation entry
is more important than having the full capabilities of LilyPond.  If you're
curious about tbon, go to https://github.com/Michael-F-Ellis/tbon . The
README has a link to a live online demo.

I'd really rather use LP than MuseScore for the times when I want to
engrave the output from tbon since LP still produces better looking scores,
imo, but not being able to handle meter changes is a showstopper.

Thanks,
Mike
-- 
Write music faster with Tbon.
<https://github.com/Michael-F-Ellis/tbon/#tbon>


meter.midi
Description: MIDI audio
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: running midi2ly in frecobaldi 3.0

2017-08-03 Thread Federico Bruni



Il giorno lun 31 lug 2017 alle 21:23, MING TSANG  
ha scritto:

hi lilyponders,

I did the following steps in frecobaldi - trying to import midi so as 
to produce lily text file


1. file - import - import midi
2. selection box appeard : select midi file (created by lily ) - hit 
"open" button
3. another box appeared - check "pitches in absolute mode" box - hit 
"run midi2ly" button
4. nothing happened - no log entry and no lily code generated - just 
return before step 1.


What must I do to have the "un midi2ly" work?




Hi Ming

I never use midi2ly, but I've just tested it in Frescobaldi using a 
MIDI generated by lilypond.

Everything works fine.
You should see a new file starting with something like this:

% Lily was here -- automatically converted by /usr/bin/midi2ly from 
/tmp/23-10-63.midi


You use Windows, right?
I don't think that it's a path problem. If lilypond runs in 
frescobaldi, also midi2ly should be able to run.
If midi2ly fails for some reason and Frescobaldi doesn't warn about 
this, then I'd say this is also a bug of Frescobaldi.


But I guess that the source of your problem is in midi2ly.
Please try debugging it using a command line:

midi2ly file.ly

and paste the output here

Keep me in Cc, as I'm going in holidays soon and I've disabled all the 
lilypond mailing lists.





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


running midi2ly in frecobaldi 3.0

2017-07-31 Thread MING TSANG
hi lilyponders,
I did the following steps in frecobaldi - trying to import midi so as to 
produce lily text file
1. file - import - import midi2. selection box appeard : select midi file 
(created by lily ) - hit "open" button3. another box appeared - check "pitches 
in absolute mode" box - hit "run midi2ly" button4. nothing happened - no log 
entry and no lily code generated - just return before step 1.
What must I do to have the "un midi2ly" work?
Thank you,Ming___
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: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


Re: midi2ly dll error

2016-04-05 Thread Gianmaria Lari
Ciao Martin,

- Which Lilypond version did you installed?
- If you installed Frescobaldi could you test if the "import midi" feature
works? To test it:  File/Import/Import midi and then specify a simple midi
file. In my tests it should not work IF you have Lilypond version 2.19.39
and 2.19.36 (didn't test with other version) AND you have Python 2.7 in the
path.


if you can, could you please check the folder
>>
>> \Program Files (x86)\LilyPond\usr\bin
>>
>> to see if you have python.exe inside it? I'm curious to know if the
>> lilypond installer installed the bundled python even if you unchecked it.
>>
>
>
> That's strange indeed: it's there, but (as far as I know) it isn't used.
> On the commandline "python --version" gives me 2.7
>
> To be sure I could delete or rename the file and reinstall LilyPond, to be
> sure it isn't left there during an old installation in the past when I did
> check the bundled-python option.


Maybe it's a bug of the Lilypond installer? In my case (I carefully tested
it twice) Lilypond installer installed bundled python compiler even if I
unchecked it.

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


Re: midi2ly dll error

2016-04-04 Thread Martin Tarenskeen



On Mon, 4 Apr 2016, Gianmaria Lari wrote:


Ciao Martin,

if you can, could you please check the folder

\Program Files (x86)\LilyPond\usr\bin

to see if you have python.exe inside it? I'm curious to know if the
lilypond installer installed the bundled python even if you unchecked it.



That's strange indeed: it's there, but (as far as I know) it isn't used. 
On the commandline "python --version" gives me 2.7


To be sure I could delete or rename the file and reinstall LilyPond, to be 
sure it isn't left there during an old installation in the past when I did 
check the bundled-python option.


--

MT

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


Re: midi2ly dll error

2016-04-04 Thread Anders Eriksson


On 2016-04-04 11:03, Gianmaria Lari wrote:

Ciao Federico,

regarding [configure Frescobaldi to reference a specific phyton 
compiler] you wrote:



You must add it to the path in system preferences, as explained here:
http://lilypond.org/windows.html


Yes, I can change the system path but this is something I wanted to 
avoid. I have other software that refer to "c:\Python27" and changing 
the system path will make them stop to working. I thought it was 
possible to specify the python compiler to use only for Frescobaldi.




Do you have PYTHONPATH environment variable defined?
If you do, remove it (you may want to save the value).

Do Lilypond work?
Do the other python27 programs work?

It works for me!

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


Re: midi2ly dll error

2016-04-04 Thread Gianmaria Lari
Ciao Federico,

regarding [configure Frescobaldi to reference a specific phyton compiler]
you wrote:


You must add it to the path in system preferences, as explained here:
> http://lilypond.org/windows.html


Yes, I can change the system path but this is something I wanted to avoid.
I have other software that refer to "c:\Python27" and changing the system
path will make them stop to working. I thought it was possible to specify
the python compiler to use only for Frescobaldi.

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


Re: midi2ly dll error

2016-04-04 Thread Federico Bruni
Il giorno lun 4 apr 2016 alle 8:19, Gianmaria Lari 
 ha scritto:
> You set it on the Frecobaldi Preferences page 
(Edit/Preferences/Helper

> Applications).

In the Frescobaldi Preferences page (Edit/Preferences/Helper 
Applications) I can set the path for the following applications: Pdf, 
Midi, SVG, Image, Browser, email, FileManager, Shell, Git. I don't 
see anything related to phyton compiler.


You must add it to the path in system preferences, as explained here:
http://lilypond.org/windows.html




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


Re: midi2ly dll error

2016-04-03 Thread Gianmaria Lari
Ciao Carl,

[configure Frescobaldi to reference a specific phyton compiler]

> You set it on the Frecobaldi Preferences page (Edit/Preferences/Helper
> Applications).

In the Frescobaldi Preferences page (Edit/Preferences/Helper Applications)
I can set the path for the following applications: Pdf, Midi, SVG, Image,
Browser, email, FileManager, Shell, Git. I don't see anything related to
phyton compiler.

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


Re: midi2ly dll error

2016-04-03 Thread Carl Sorensen
On 4/3/16 3:30 PM, "Gianmaria Lari"  wrote:

>I made some test and you're right! Using
>
>C:\Program Files (x86)\LilyPond\usr\bin\python2.4.exe midi2ly.py test.mid
>
>
>
>all work correctly.
>
>
>It would be nice to configure Frescobaldi to reference this executable,
>so if someone know how to do it would be great.


You set it on the Frecobaldi Preferences page (Edit/Preferences/Helper
Applications).

http://frescobaldi.org/uguide.html#help_preferences_helpers


HTH,

Carl


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


Re: midi2ly dll error

2016-04-03 Thread Gianmaria Lari
I made some test and you're right! Using

C:\Program Files (x86)\LilyPond\usr\bin\python2.4.exe midi2ly.py test.mid


all work correctly.

It would be nice to configure Frescobaldi to reference this executable, so
if someone know how to do it would be great.

Thanks for your help Thomas!
Ciao, g.

On Sun, Apr 3, 2016 at 2:44 PM, Thomas Morley 
wrote:

> 2016-04-03 1:03 GMT+02:00 Gianmaria Lari :
> > Ciao Thomas,
> >
> > I tried to run directly from the shell but I got same error:
> >
> > C:\Program Files (x86)\LilyPond\usr\bin>midi2ly.py
> > C:\Users\Gianmaria\Dropbox\Music-Study\Violin\Triolet.mid
> > Traceback (most recent call last):
> >   File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 54, in
> > 
> > import midi
> > ImportError: No module named midi
> >
> > I'm using lilypond 2.19.35.
> > g.
>
> It looks like a python problem.
> Thus, I'm not sure I can help here, I've neither windows nor do I know
> python.
>
> Some observations, though:
> On my Linux-machine I've Python 2.7.9, but "2.19.36" ships Python 2.4.5
>
> If I try to invoke midi2ly with system-python I get
> Traceback (most recent call last):
>   File "midi2ly", line 54, in 
> import midi
> ImportError:
> /home/hermann/lilydevel/usr/lib/lilypond/current/python/midi.so:
> undefined symbol: Py_InitModule4
>
> Using lilypond's python all works.
>
> HTH a bit,
>   Harm
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: midi2ly dll error

2016-04-03 Thread Thomas Morley
2016-04-03 1:03 GMT+02:00 Gianmaria Lari :
> Ciao Thomas,
>
> I tried to run directly from the shell but I got same error:
>
> C:\Program Files (x86)\LilyPond\usr\bin>midi2ly.py
> C:\Users\Gianmaria\Dropbox\Music-Study\Violin\Triolet.mid
> Traceback (most recent call last):
>   File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 54, in
> 
> import midi
> ImportError: No module named midi
>
> I'm using lilypond 2.19.35.
> g.

It looks like a python problem.
Thus, I'm not sure I can help here, I've neither windows nor do I know python.

Some observations, though:
On my Linux-machine I've Python 2.7.9, but "2.19.36" ships Python 2.4.5

If I try to invoke midi2ly with system-python I get
Traceback (most recent call last):
  File "midi2ly", line 54, in 
import midi
ImportError: /home/hermann/lilydevel/usr/lib/lilypond/current/python/midi.so:
undefined symbol: Py_InitModule4

Using lilypond's python all works.

HTH a bit,
  Harm

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


Re: midi2ly dll error

2016-04-02 Thread Gianmaria Lari
Ciao Thomas,

I tried to run directly from the shell but I got same error:

C:\Program Files (x86)\LilyPond\usr\bin>midi2ly.py
C:\Users\Gianmaria\Dropbox\Music-Study\Violin\Triolet.mid
Traceback (most recent call last):
  File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 54, in

import midi
ImportError: No module named midi

I'm using lilypond 2.19.35.
g.


On Sat, Apr 2, 2016 at 4:13 PM, Thomas Morley 
wrote:

> 2016-04-02 11:52 GMT+02:00 Gianmaria Lari :
> > Hello,
> >
> > When I try to convert from Midi to Lilypond using Frescobaldi I get the
> > following error:
> >
> > The file couldn't be converted Error message:
> > Traceback (Most recent call last):
> > File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 54, in ?
> > import midi
> > ImportError: DLL load failed: The specified module could not be found.
> >
> >
> > Any suggestion to fix it?
> >
> > Thank you, g.
>
>
> Please try without frescobaldi in terminal
> midi2ly file-name.midi
> in order to eliminate any frescobaldi related problems.
>
> Cheers,
>   Harm
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: midi2ly dll error

2016-04-02 Thread Thomas Morley
2016-04-02 11:52 GMT+02:00 Gianmaria Lari :
> Hello,
>
> When I try to convert from Midi to Lilypond using Frescobaldi I get the
> following error:
>
> The file couldn't be converted Error message:
> Traceback (Most recent call last):
> File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 54, in ?
> import midi
> ImportError: DLL load failed: The specified module could not be found.
>
>
> Any suggestion to fix it?
>
> Thank you, g.


Please try without frescobaldi in terminal
midi2ly file-name.midi
in order to eliminate any frescobaldi related problems.

Cheers,
  Harm

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


midi2ly dll error

2016-04-02 Thread Gianmaria Lari
Hello,

When I try to convert from Midi to Lilypond using Frescobaldi I get the
following error:

The file couldn't be converted Error message:
Traceback (Most recent call last):
File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 54, in ?
import midi
ImportError: DLL load failed: The specified module could not be found.


Any suggestion to fix it?

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


Re: problems with midi2ly

2016-03-23 Thread David Kastrup
mark damerell  writes:

> BUMP: please where is the manual?

http://www.lilypond.org/doc/v2.18/Documentation/usage/invoking-midi2ly

-- 
David Kastrup

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


problems with midi2ly

2016-03-23 Thread mark damerell
BUMP: please where is the manual?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: OT help with midi2ly on command line mac os blind user

2016-03-15 Thread Jacques Menu Muzhic
Hello David,

Thanks for pointing this out.

I don’t use bash often in fact, since my default shell is tcsh.

And it turns out I have a lot of bash left-overs from the machines I was in 
charge professionally some time ago…

JM

> Le 15 mars 2016 à 17:15, David Wright  a écrit :
> 
> On Tue 15 Mar 2016 at 09:09:38 (+0100), Jacques Menu Muzhic wrote:
>>   bash-3.2$ echo $PATH
>>   
>> /Library/Frameworks/Python.framework/Versions/3.2/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/texbin:/usr/local/llvm-3.0/clang+llvm-3.0-x86_64-apple-darwin11/bin:/usr/local/llvm-2.9/bin:/opt/local/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands:/usr/local/bin:/usr/local/LocalLaTeX:/usr/local/erlang/bin:/usr/local/nagios/bin:/usr/local/nagios/libexec:/usr/local/rsync/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/menu/bin:/usr/X11R6/bin:/opt/gnome/bin:/usr/X11R6/bin:/usr/local/scripts:/condor/release/bin:/condor/release/sbin:1.4.4/bin:/usr/local/latex2html-2008/bin:/usr/bin:/usr/sbin:/Developer/Tools:/usr/libexec:/usr/local/openssl/bin:/usr/X11R6/bin:/usr/local/cvs/bin:/usr/texbin:/opt/local/bin:/usr/local/mysql/bin:/Users/menu/yagarto/yagarto-4.6.0/bin:/Applications/LilyPond.app/Contents/Resources/bin:/Developer/usr/libexec:/Developer/usr/llvm-gcc-4.2/bin:/Users/menu/bin
> 
> That's a fearsome path! It seems to have almost a dozen duplicates in it.
> I guess it's as well that bash hashes the contents.
> 
> Cheers,
> David.


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


Re: OT help with midi2ly on command line mac os blind user

2016-03-15 Thread David Wright
On Tue 15 Mar 2016 at 09:09:38 (+0100), Jacques Menu Muzhic wrote:
>bash-3.2$ echo $PATH
>
> /Library/Frameworks/Python.framework/Versions/3.2/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/texbin:/usr/local/llvm-3.0/clang+llvm-3.0-x86_64-apple-darwin11/bin:/usr/local/llvm-2.9/bin:/opt/local/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands:/usr/local/bin:/usr/local/LocalLaTeX:/usr/local/erlang/bin:/usr/local/nagios/bin:/usr/local/nagios/libexec:/usr/local/rsync/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/menu/bin:/usr/X11R6/bin:/opt/gnome/bin:/usr/X11R6/bin:/usr/local/scripts:/condor/release/bin:/condor/release/sbin:1.4.4/bin:/usr/local/latex2html-2008/bin:/usr/bin:/usr/sbin:/Developer/Tools:/usr/libexec:/usr/local/openssl/bin:/usr/X11R6/bin:/usr/local/cvs/bin:/usr/texbin:/opt/local/bin:/usr/local/mysql/bin:/Users/menu/yagarto/yagarto-4.6.0/bin:/Applications/LilyPond.app/Contents/Resources/bin:/Developer/usr/libexec:/Developer/usr/llvm-gcc-4.2/bin:/Users/menu/bin

That's a fearsome path! It seems to have almost a dozen duplicates in it.
I guess it's as well that bash hashes the contents.

Cheers,
David.

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


Re: OT help with midi2ly on command line mac os blind user

2016-03-15 Thread David Wright
On Mon 14 Mar 2016 at 22:16:28 (-0500), Daniel Contreras wrote:
>Hello all, 
>I am trying to wrap my head around this whole command line terminal. I am
>attempting to follow the steps that are listed on the �Mac OS� section on
>the lilypond website. I ,think, I have followed each step correctly
>through step 4, which is to make the file executable. I am confused as to
>what step 5 is talking about. It is the following: 
> 
> 1. Now, add this directory to your path. Modify (or create) a file
>called .profile in your home directory such that it contains
> 
>  export PATH=$PATH:~/bin
> 
>This file should end with a blank line. 
>I guess my questions are the following: 
>    How will these steps help me in using midi2ly?

Starting at step 5 (called 1 in your quote above), when your bash
shell starts up as a login shell, it reads your ~/.profile file for
your personal initialisation.

(But only a login shell, so that these commands are not repeated every
time a subsequent shell starts.)

Users who write scripts and/or programs that they want to invoke just
by typing their name will typically place these scripts (or links to
them) in one directory conventionallly called ~/bin and step 1 of the
instructions shows you how to make that if it isn't already there.

(You can run scripts/programs from anywhere by giving a pathname,
ie something containing a /, but they must be in your $PATH if you
just want to be able to type a bare name without a slash.)

Steps 2 and 3 show how you can write scripts that you will execute
by typing their (short) name, which will in turn execute a program
that has a very long name. "$@" will pass on to that program any
options and arguments you give.

For you to be able to invoke a program in this way, your script must
be executable, and that's step 4. (You need to do it to each script.)
You will then be able to type, eg, midi2ly -h   or midi2ly --version
and bash will run that script, see that it starts with #!/bin/bash
and start a bash subshell which will execute the exec command on the
appropriate program.

So the final link in the chain is to put your ~/bin into your $PATH.
~/.profile does this with   export PATH=$PATH:~/bin

When this is executed in your ~/.profile, the righthandside is
expanded by the shell into

the-whole:of-the:preexisting:value-of-$PATH-in:a-list:~/bin

where you'll see lots of directories separated by : (colons) with
yours tacked onto the end. This string then becomes the new value of
$PATH. "export" is necessary to make bash pass it to all subsequent
commands and subshells.

>Also, can anyone give me an example of what to type in the terminal to
>convert a midi file to lilypond format? 

midi2ly name-of-midi-file.midi

On my system, it creates (or will overwrite without warning) a file in
the current directory called   name-of-midi-file-midi.ly   unless I
specify -o newfilename.

Cheers,
David.

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


Re: OT help with midi2ly on command line mac os blind user

2016-03-15 Thread Jacques Menu Muzhic
Hello Daniel,

The contents of variable PATH (i.e. $PATH) is a sequence of directories names 
separated by colons :

bash-3.2$ echo $PATH
/Library/Frameworks/Python.framework/Versions/3.2/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/texbin:/usr/local/llvm-3.0/clang+llvm-3.0-x86_64-apple-darwin11/bin:/usr/local/llvm-2.9/bin:/opt/local/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands:/usr/local/bin:/usr/local/LocalLaTeX:/usr/local/erlang/bin:/usr/local/nagios/bin:/usr/local/nagios/libexec:/usr/local/rsync/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/menu/bin:/usr/X11R6/bin:/opt/gnome/bin:/usr/X11R6/bin:/usr/local/scripts:/condor/release/bin:/condor/release/sbin:1.4.4/bin:/usr/local/latex2html-2008/bin:/usr/bin:/usr/sbin:/Developer/Tools:/usr/libexec:/usr/local/openssl/bin:/usr/X11R6/bin:/usr/local/cvs/bin:/usr/texbin:/opt/local/bin:/usr/local/mysql/bin:/Users/menu/yagarto/yagarto-4.6.0/bin:/Applications/LilyPond.app/Contents/Resources/bin:/Developer/usr/libexec:/Developer/usr/llvm-gcc-4.2/bin:/Users/menu/bin

When you submit a command to bash, it looks first among its built-in commands 
and then in $PATH, in the order  of the directories, to find how to 
execute it.

You can ask bash which command will be executed if you type a command:

bash-3.2$ type pwd
pwd is a shell builtin

bash-3.2$ type bash
bash is /bin/bash

bash-3.2$ type foo
bash: type: foo: not found

This command add directory bin in your home directory (~) at the end of the 
PATH:

export PATH=$PATH:~/bin

bash-3.2$ type midi2ly
midi2ly is /Applications/LilyPond.app/Contents/Resources/bin/midi2ly

ash-3.2$ midi2ly -h
Traceback (most recent call last):
  File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 54, in 

import midi
ImportError: 
dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
 2): no suitable image found.  Did find:

/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
 mach-o, but wrong architecture

This shows that Python module midi.so is not usable on my machine. I run OS X 
10.11.3:

bash-3.2$ uname -a
Darwin macbookprojm 15.3.0 Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 
PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64

Can’t help you more there unfortunately, I’ve got no experience in handling 
MIDI files beyond playing them for scores control.

JM


> Le 15 mars 2016 à 04:16, Daniel Contreras  a écrit :
> 
> Hello all, 
> I am trying to wrap my head around this whole command line terminal. I am 
> attempting to follow the steps that are listed on the “Mac OS” section on the 
> lilypond website. I ,think, I have followed each step correctly through step 
> 4, which is to make the file executable. I am confused as to what step 5 is 
> talking about. It is the following: 
> Now, add this directory to your path. Modify (or create) a file called 
> .profile in your home directory such that it contains
> export PATH=$PATH:~/bin
> This file should end with a blank line. 
> 
> I guess my questions are the following: 
> How will these steps help me in using midi2ly?
> Also, can anyone give me an example of what to type in the terminal to 
> convert a midi file to lilypond format? 
> 
> Thanks for any answers and/or suggestions. I apologize for the long off-topic 
> email. Daniel, 
> Also, ha I don’t know why my computer is putting 1’s at the beginning of each 
> line. 
>  <> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

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


OT help with midi2ly on command line mac os blind user

2016-03-14 Thread Daniel Contreras
Hello all, 
I am trying to wrap my head around this whole command line terminal. I am 
attempting to follow the steps that are listed on the “Mac OS” section on the 
lilypond website. I ,think, I have followed each step correctly through step 4, 
which is to make the file executable. I am confused as to what step 5 is 
talking about. It is the following: 
Now, add this directory to your path. Modify (or create) a file called .profile 
in your home directory such that it contains
export PATH=$PATH:~/bin
This file should end with a blank line. 

I guess my questions are the following: 
How will these steps help me in using midi2ly?
Also, can anyone give me an example of what to type in the terminal to convert 
a midi file to lilypond format? 

Thanks for any answers and/or suggestions. I apologize for the long off-topic 
email. Daniel, 
Also, ha I don’t know why my computer is putting 1’s at the beginning of each 
line. 
 ___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problems with midi2ly

2016-03-06 Thread Simon Albrecht

On 05.03.2016 18:37, mark damerell wrote:

3. Lyrics get mangled. To see this, go to

manuals > learning > 3.4.2 Four part SATB

and extract the Handel example. Add

\layout {}
\midi {}

just above the very last  }   which terminates the \score.

Save, say as handel.ly <http://handel.ly>   . Run  lilypond on this. 
The   pdf  looks exactly as it
says in the manual. But run  midi2ly  on the  midi  file. This gives 
handel-midi.ly <http://handel-midi.ly>
Now run  lilypond  on that file and 3 lines of lyrics have 
disappeared. With more

complicated lyrics, you get error messages about simultaneous lyrics.


midi2ly and other conversion tools are known to be incomplete, so you 
can’t expect such a workflow to return satisfying results in all 
cases/without manual adjustment.
And, for future cases: You are more likely to get help if you actually 
include example files, i.e. in this case the handel.midi and 
handel-midi.ly files as attachments.


Best, Simon

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


Re: Problems with midi2ly

2016-03-05 Thread Malte Meyn



Am 05.03.2016 um 18:37 schrieb mark damerell:

1. Where is the manual? The man page says it is a texinfo document, but
I cannot find it.


There is a section about midi2ly in the ‘Usage’ documentation: 
http://lilypond.org/doc/v2.18/Documentation/usage-big-page.html#invoking-midi2ly


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


Problems with midi2ly

2016-03-05 Thread mark damerell
Please:

1. Where is the manual? The man page says it is a texinfo document, but
I cannot find it.

2. Trying to convert a  Midi  file, nearly all notes have weird durations.
I
assume that I should add a  -d  or  -s  but the manpage gives no hint of
the units of  duratioon .

3. Lyrics get mangled. To see this, go to

manuals > learning > 3.4.2 Four part SATB

and extract the Handel example. Add

\layout {}
\midi {}

just above the very last  }   which terminates the  \score.

Save, say as  handel.ly   . Run  lilypond  on this. The   pdf  looks
exactly as it
says in the manual. But run  midi2ly  on the  midi  file. This gives
handel-midi.ly
Now run  lilypond  on that file and 3 lines of lyrics have disappeared.
With more
complicated lyrics, you get error messages about simultaneous lyrics.

Please any advice? thank you.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: architecture problem with midi2ly on a mac

2015-02-04 Thread Hans Aberg

> On 4 Feb 2015, at 18:50, Cynthia Karl  wrote:
> 
>>> 

>>> It works with a script, named say “midi2ly” and put in the PATH, with the 
>>> single line:
>>> exec /usr/bin/python 
>>> /Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@“
>> 
>> Thanks, but unfortunately I still have the problem with that:

The workarounds and recompile fixes are here:
  http://lists.gnu.org/archive/html/lilypond-user/2014-10/msg00799.html



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


Re: architecture problem with midi2ly on a mac

2015-02-04 Thread Davide Liessi

Il 04/02/15 16.26, Cynthia Karl ha scritto:

When I do:  midi2ly —help

I get:
Patricks-MacBook-Pro:mi2ly.0.12 pat$ midi2ly --help
Traceback (most recent call last):
   File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly",
line 54, in 
 import midi
ImportError:
dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
2): no suitable image found.  Did find:
/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
mach-o, but wrong architecture

This is on a MacBook Pro running OS X 10.10.2.


This is a known bug, see
https://code.google.com/p/lilypond/issues/detail?id=2208
in particular comment 5, which has a workaround.

Best wishes.
Davide

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


Re: architecture problem with midi2ly on a mac

2015-02-04 Thread Hans Aberg

> On 4 Feb 2015, at 18:50, Cynthia Karl  wrote:
> 
>>> 

>>> It works with a script, named say “midi2ly” and put in the PATH, with the 
>>> single line:
>>> exec /usr/bin/python 
>>> /Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@“
>> 
>> Thanks, but unfortunately I still have the problem with that:

I use LilyPond 2.19.15 - perhaps you use an older version:

>> It seems like a python problem.
...
> To be more precise, it seems to be a problem with the file 
> /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
> which, as python reports, is mach-o but wrong architecture.
...
> So perhaps i need a midi.so which is for i486 architecture, not i386 
> architecture?  (I’ve left my safety zone now.)

Right. There are several problems: midi2ly compiled 32-bit for an old Python 
API. I reported how to fix that, so perhaps it has beed done in latest LilyPond.

When I exclude /usr/bin/python, thus using LilyPonds’s own Python, I get
  Fatal Python error: PyThreadState_Get: no current thread
which is a new problem.



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


Re: architecture problem with midi2ly on a mac

2015-02-04 Thread Cynthia Karl

> On Feb 4, 2015, at 11:38 AM, Cynthia Karl  wrote:
> 
> 
>> On Feb 4, 2015, at 11:05 AM, Hans Aberg > <mailto:haber...@telia.com>> wrote:
>> 
>> 
>>> On 4 Feb 2015, at 16:26, Cynthia Karl >> <mailto:pck...@mac.com>> wrote:
>> 
>>> This is on a MacBook Pro running OS X 10.10.2.
>> 
>>> Is there any way I can get midi2ly running on this computer?
>> 
>> It works with a script, named say “midi2ly” and put in the PATH, with the 
>> single line:
>> exec /usr/bin/python 
>> /Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@“
> 
> Thanks, but unfortunately I still have the problem with that:
> 
> Patricks-MacBook-Pro:Larkin pat$ which midi2ly
> /Users/pat/bin/midi2ly
> Patricks-MacBook-Pro:Larkin pat$ cat /Users/pat/bin/midi2ly
> #!/bin/bash
> 
> exec /usr/bin/python 
> /Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@"
> Patricks-MacBook-Pro:Larkin pat$ /Users/pat/bin/midi2ly --help
> Traceback (most recent call last):
>   File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 54, 
> in 
> import midi
> ImportError: 
> dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
>  2): no suitable image found.  Did find:
>   
> /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
>  mach-o, but wrong architecture
> 
> 
> It seems like a python problem.
> 
> Patricks-MacBook-Pro:Larkin pat$ which python
> /usr/bin/python
> Patricks-MacBook-Pro:Larkin pat$ /usr/bin/python --version
> Python 2.7.6
> Patricks-MacBook-Pro:Larkin pat$ /usr/bin/env python --version
> Python 2.7.6

To be more precise, it seems to be a problem with the file 
/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
which, as python reports, is mach-o but wrong architecture.

Patricks-MacBook-Pro:~ pat$ file 
/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so
/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
 Mach-O bundle i386
Patricks-MacBook-Pro:~ pat$ machine
i486

So perhaps i need a midi.so which is for i486 architecture, not i386 
architecture?  (I’ve left my safety zone now.)



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


Re: architecture problem with midi2ly on a mac

2015-02-04 Thread Cynthia Karl

> On Feb 4, 2015, at 11:05 AM, Hans Aberg  wrote:
> 
> 
>> On 4 Feb 2015, at 16:26, Cynthia Karl  wrote:
> 
>> This is on a MacBook Pro running OS X 10.10.2.
> 
>> Is there any way I can get midi2ly running on this computer?
> 
> It works with a script, named say “midi2ly” and put in the PATH, with the 
> single line:
> exec /usr/bin/python 
> /Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@“

Thanks, but unfortunately I still have the problem with that:

Patricks-MacBook-Pro:Larkin pat$ which midi2ly
/Users/pat/bin/midi2ly
Patricks-MacBook-Pro:Larkin pat$ cat /Users/pat/bin/midi2ly
#!/bin/bash

exec /usr/bin/python /Applications/LilyPond.app/Contents/Resources/bin/midi2ly 
"$@"
Patricks-MacBook-Pro:Larkin pat$ /Users/pat/bin/midi2ly --help
Traceback (most recent call last):
  File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 54, in 

import midi
ImportError: 
dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
 2): no suitable image found.  Did find:

/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
 mach-o, but wrong architecture


It seems like a python problem.

Patricks-MacBook-Pro:Larkin pat$ which python
/usr/bin/python
Patricks-MacBook-Pro:Larkin pat$ /usr/bin/python --version
Python 2.7.6
Patricks-MacBook-Pro:Larkin pat$ /usr/bin/env python --version
Python 2.7.6



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


Re: architecture problem with midi2ly on a mac

2015-02-04 Thread Hans Aberg

> On 4 Feb 2015, at 16:26, Cynthia Karl  wrote:

> This is on a MacBook Pro running OS X 10.10.2.

> Is there any way I can get midi2ly running on this computer?

It works with a script, named say “midi2ly” and put in the PATH, with the 
single line:
exec /usr/bin/python /Applications/LilyPond.app/Contents/Resources/bin/midi2ly 
"$@"



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


architecture problem with midi2ly on a mac

2015-02-04 Thread Cynthia Karl
When I do:  midi2ly —help

I get:
Patricks-MacBook-Pro:mi2ly.0.12 pat$ midi2ly --help
Traceback (most recent call last):
  File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 54, in 

import midi
ImportError: 
dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
 2): no suitable image found.  Did find:

/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
 mach-o, but wrong architecture

This is on a MacBook Pro running OS X 10.10.2.

uname -a gives:

Darwin Patricks-MacBook-Pro 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 
23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64

I’m pretty sure that means 64-bit mode.

Is there any way I can get midi2ly running on this computer?___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: midi2ly

2014-10-31 Thread Hans Aberg
> On 30 Oct 2014, at 01:07, ole  wrote:
> 
> Am 29.10.2014 um 23:10 schrieb Hans Aberg :
> 
>> On 29 Oct 2014, at 21:53, ole  wrote:

>>> Sorry for the noise! 
>>> Just discovered that a .ly file has been made despite of the error warning..
>> 
>> Strictly speaking, it is a warning as it passes the compile, not an error 
>> which would abort. So it is a relevant issue, though it seems to work.
>> 
> So- as I understand it right- I can install python 2.4 into /opt/local/bin 
> via macports
> 
> and then change the line to
> 
> exec /usr/bin/arch -i386 /opt/local/bin/python2.4 
> /Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@"
> 
> Would that work?

One can recompile the file python_midi.c that is in the LilyPond GIT repository:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blob;f=python/midi.c;h=890798c66a4f022139013c81e641b743756aef15;hb=HEAD


For i386:
clang -dynamiclib -I/usr/include/python2.7/ python_midi.c -arch i386 
-lpython2.7 -o midi.so

For x86_64:
clang -dynamiclib -I/usr/include/python2.7/ python_midi.c -lpython2.7 -o midi.so


The script then seems to work if one writes:

For i386:
exec /usr/bin/arch -i386 /usr/bin/python2.7 
/Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@“

or 

exec /usr/bin/arch -i386 /usr/bin/python 
/Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@“


For x86_64:
exec /usr/bin/python2.7 
/Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@“

or

exec /usr/bin/python /Applications/LilyPond.app/Contents/Resources/bin/midi2ly 
"$@"


If the part ‘/usr/bin/python’ is excluded, it fails on my system, because it 
then tries MacPorts '/opt/local/bin/python’.



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


Re: midi2ly

2014-10-30 Thread Hans Aberg

> On 30 Oct 2014, at 01:07, ole  wrote:
> 
> Am 29.10.2014 um 23:10 schrieb Hans Aberg :
> 
>> On 29 Oct 2014, at 21:53, ole  wrote:

>>> Sorry for the noise! 
>>> Just discovered that a .ly file has been made despite of the error warning..
>> 
>> Strictly speaking, it is a warning as it passes the compile, not an error 
>> which would abort. So it is a relevant issue, though it seems to work.
>> 
> So- as I understand it right- I can install python 2.4 into /opt/local/bin 
> via macports
> 
> and then change the line to
> 
> exec /usr/bin/arch -i386 /opt/local/bin/python2.4 
> /Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@"
> 
> Would that work?

If you don’t like that pesky warning, you can always try. But the MIDI file I 
used it on seemed to work with Python 2.7.



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


Re: midi2ly

2014-10-29 Thread ole

Am 29.10.2014 um 23:10 schrieb Hans Aberg :

> 
>> On 29 Oct 2014, at 21:53, ole  wrote:
> 
>> I think I found the right place for your line.
>> And get the following error warning:
>> 
>> /Applications/LilyPond.app/Contents/Resources/bin/midi2ly:54: 
>> RuntimeWarning: Python C API version mismatch for module midi: This Python 
>> has API version 1013, module midi has version 1012.
> 
> The LilyPond midi2ly file has been compiled for the API in Python 2.4, so the 
> line should really be: 
> exec /usr/bin/arch -i386 /usr/bin/python2.4 
> /Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@“
> 
> But this version does not come with the system installation in /usr/bin/ of 
> later OS X.
> 
>> Sorry for the noise! 
>> Just discovered that a .ly file has been made despite of the error warning..
> 
> Strictly speaking, it is a warning as it passes the compile, not an error 
> which would abort. So it is a relevant issue, though it seems to work.
> 
> 
So- as I understand it right- I can install python 2.4 into /opt/local/bin via 
macports

and then change the line to

exec /usr/bin/arch -i386 /opt/local/bin/python2.4 
/Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@"

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


Re: midi2ly

2014-10-29 Thread Hans Aberg

> On 29 Oct 2014, at 21:53, ole  wrote:

> I think I found the right place for your line.
> And get the following error warning:
> 
> /Applications/LilyPond.app/Contents/Resources/bin/midi2ly:54: RuntimeWarning: 
> Python C API version mismatch for module midi: This Python has API version 
> 1013, module midi has version 1012.

The LilyPond midi2ly file has been compiled for the API in Python 2.4, so the 
line should really be: 
exec /usr/bin/arch -i386 /usr/bin/python2.4 
/Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@“

But this version does not come with the system installation in /usr/bin/ of 
later OS X.

> Sorry for the noise! 
> Just discovered that a .ly file has been made despite of the error warning..

Strictly speaking, it is a warning as it passes the compile, not an error which 
would abort. So it is a relevant issue, though it seems to work.



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


Re: midi2ly

2014-10-29 Thread Hans Aberg

> On 29 Oct 2014, at 20:13, ole  wrote:

> Can you please describe for me where exactly I have to put the line, in the 
> .profile file?

I make a script - an executable, which should be in the PATH (see below).

There are several ways to make a script:

One way is first making the text file in Terminal by
    touch midi2ly
If you want use a text editor like Xcode, go to Terminal and write
  open -a Xcode midi2ly
and paste in the line
  exec /usr/bin/arch -i386 /usr/bin/python2.7 
/Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@"
 and save.

Alternatively, make the file directly by writing
  cat > mid2ly
Paste in the same line as above followed by D to end ‘cat’.

The set the executable permissions by
  chmod a+x midi2ly
Check that it is right with
  ls -l midi2ly

Then put in somewhere in the PATH. In later OS X, /usr/local/bin/ is in the 
searchpath, but putting it there requires ‘sudo’ permissions (unless changed as 
some running homebrew do). But to do that write
  sudo cp midi2ly /usr/local/bin/
By using ‘cp’ rather than ‘mv’, the other file metadata becomes right.

Otherwise, you might make a directory ~/bin/, make sure it is in the PATH by 
changing .profile. Then ‘sudo’ isn’t needed. 


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


Re: midi2ly

2014-10-21 Thread Hans Åberg

> On 17 Aug 2014, at 01:40, Davide Liessi  wrote:
> 
> 2014-08-09 10:27 GMT+02:00 ole :
>> Am 09.08.2014 um 07:35 schrieb James :
>>> 
>>> http://code.google.com/p/lilypond/issues/detail?id=2208
>>> 
>>> There is a workaround in there I think.
>> 
>> Thank you, unfortunatly this workaround does not help for Mac OS 10.8.5. (as 
>> it is also mentioned in the linked thread..
> 
> The suggested workaround indeed does not work on any system I tried.
> I updated the issue with details and a functioning workaround.
> Of course the solution would be to build the library midi.so as a
> universal binary containing both 32 bit and 64 bit code.

I wrote a script ‘midi2ly', which should be put in the $PATH, containing the 
single line:
exec /usr/bin/arch -i386 /usr/bin/python2.7 
/Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@"



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


Re: midi2ly

2014-10-21 Thread Hans Aberg

> On 17 Aug 2014, at 01:40, Davide Liessi  wrote:
> 
> 2014-08-09 10:27 GMT+02:00 ole :
>> Am 09.08.2014 um 07:35 schrieb James :
>>> 
>>> http://code.google.com/p/lilypond/issues/detail?id=2208
>>> 
>>> There is a workaround in there I think.
>> 
>> Thank you, unfortunatly this workaround does not help for Mac OS 10.8.5. (as 
>> it is also mentioned in the linked thread..
> 
> The suggested workaround indeed does not work on any system I tried.
> I updated the issue with details and a functioning workaround.
> Of course the solution would be to build the library midi.so as a
> universal binary containing both 32 bit and 64 bit code.

I wrote a script ‘midi2ly', which should be put in the $PATH, containing the 
single line:
exec /usr/bin/arch -i386 /usr/bin/python2.7 
/Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@"



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


Re: midi2ly

2014-08-16 Thread Davide Liessi
2014-08-09 10:27 GMT+02:00 ole :
> Am 09.08.2014 um 07:35 schrieb James :
>>
>> http://code.google.com/p/lilypond/issues/detail?id=2208
>>
>> There is a workaround in there I think.
>
> Thank you, unfortunatly this workaround does not help for Mac OS 10.8.5. (as 
> it is also mentioned in the linked thread..

The suggested workaround indeed does not work on any system I tried.
I updated the issue with details and a functioning workaround.
Of course the solution would be to build the library midi.so as a
universal binary containing both 32 bit and 64 bit code.

Best wishes.
Davide

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


Re: midi2ly

2014-08-09 Thread Jacques Menu
Hello Ole,

I get that too on Mac OS X 10.9.4:

m...@dynamic.wline.6rd.res.cust.swisscom.ch:/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python
 > ls -sal
total 96
 0 drwxr-xr-x@ 3 menu  admin102 Mar 17 17:23 .
 0 drwxr-xr-x@ 3 menu  admin102 Mar 17 17:23 ..
96 -rw-r--r--@ 1 menu  admin  48600 Mar 17 17:23 midi.so

m...@dynamic.wline.6rd.res.cust.swisscom.ch:/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python
 > file midi.so 
midi.so: Mach-O bundle i386


So LP 18.2 provides only a 32bit (i386) version of midi.so, and our recent 
versions of OS X are 64 bits:

m...@dynamic.wline.6rd.res.cust.swisscom.ch:~/Documents/LaTeX/PartitionsLilypond
 > uname -a
Darwin dynamic.wline.6rd.res.cust.swisscom.ch 13.3.0 Darwin Kernel Version 
13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 
x86_64


I’m afraid I can’t help more there…

JM


Am 09.08.2014 um 14:45 schrieb ole :

> Hi Jacques,
> 
> Thanks for your help!
> 
> Attached is the .mid file (these are fairly complicated rhythms and I want to 
> test if midi2ly can handle them, so maybe even if it will work it will spit 
> out some nonsense..)
> 
> best
> 
> ole
> 
> [siehe angehängte Datei: rhythms.mid]
> 
> 
> 
> Am 09.08.2014 um 13:20 schrieb Jacques Menu :
> 
>> Hello Ole,
>> 
>> Dont’t forget to copy the LP user list.
>> 
>> Can you send you .mid file?
>> 
>> JM
>> 
>> Anfang der weitergeleiteten Nachricht:
>> 
>>> Von: ole 
>>> Betreff: Aw: midi2ly
>>> Datum: 9. August 2014 11:59:19 MESZ
>>> An: Jacques Menu 
>>> 
>>> Hi Jacques,
>>> 
>>> Thanks for your answer.
>>> 
>>> You mean like this (first line of the midi2ly file): 
>>> 
>>> #!/usr/bin/env /usr/bin/arch -x86_64
>>> 
>>> (I'am not very familiar with that things)
>>> 
>>> Then, after calling midi2ly file.mid in the terminal, nothing happens at 
>>> all..
>>> 
>>> best
>>> 
>>> ole
>>> 
>>> 
>>> 
>>> Am 09.08.2014 um 11:12 schrieb Jacques Menu :
>>> 
>>>> Hello Ole,
>>>> 
>>>> Can you try:
>>>> 
>>>>/usr/bin/arch -x86_64
>>>> 
>>>> instead?
>>>> 
>>>> JM
>>>> 
>>>> Am 09.08.2014 um 10:27 schrieb ole :
>>>> 
>>>>> Am 09.08.2014 um 07:35 schrieb James :
>>>>> 
>>>>>> On 08/08/14 20:37, ole wrote:
>>>>>>> Hi, 
>>>>>>> 
>>>>>>> I just want to import something from a midifile and get the following 
>>>>>>> errorwarning:
>>>>>>> 
>>>>>>> Last login: Sun Aug  3 17:46:40 on console
>>>>>>> ja?~$ midi2ly rhythms.mid 
>>>>>>> Traceback (most recent call last):
>>>>>>> File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 
>>>>>>> 54, in 
>>>>>>> import midi
>>>>>>> ImportError: 
>>>>>>> dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
>>>>>>>  2): no suitable image found.  Did find:
>>>>>>> 
>>>>>>> /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
>>>>>>>  mach-o, but wrong architecture
>>>>>>> 
>>>>>>> 
>>>>>>> Is that a known issue?
>>>>>> 
>>>>>> http://code.google.com/p/lilypond/issues/detail?id=2208
>>>>>> 
>>>>>> 
>>>>>> There is a workaround in there I think.
>>>>>> 
>>>>>> James
>>>>> 
>>>>> 
>>>>> Thank you, unfortunatly this workaround does not help for Mac OS 10.8.5. 
>>>>> (as it is also mentioned in the linked thread..
>>>>> 
>>>>> ole
>>>>>> 
>>>>> 
>>>>> 
>>>>> ___
>>>>> lilypond-user mailing list
>>>>> lilypond-user@gnu.org
>>>>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>>> 
>>> 
>>> 
>>> 
>> 
> 
> 

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


Re: midi2ly

2014-08-09 Thread ole
Hi Jacques,

Thanks for your help!

Attached is the .mid file (these are fairly complicated rhythms and I want to 
test if midi2ly can handle them, so maybe even if it will work it will spit out 
some nonsense..)

best

ole





Am 09.08.2014 um 13:20 schrieb Jacques Menu :

> Hello Ole,
> 
> Dont’t forget to copy the LP user list.
> 
> Can you send you .mid file?
> 
> JM
> 
> Anfang der weitergeleiteten Nachricht:
> 
>> Von: ole 
>> Betreff: Aw: midi2ly
>> Datum: 9. August 2014 11:59:19 MESZ
>> An: Jacques Menu 
>> 
>> Hi Jacques,
>> 
>> Thanks for your answer.
>> 
>> You mean like this (first line of the midi2ly file): 
>> 
>> #!/usr/bin/env /usr/bin/arch -x86_64
>> 
>> (I'am not very familiar with that things)
>> 
>> Then, after calling midi2ly file.mid in the terminal, nothing happens at 
>> all..
>> 
>> best
>> 
>> ole
>> 
>> 
>> 
>> Am 09.08.2014 um 11:12 schrieb Jacques Menu :
>> 
>>> Hello Ole,
>>> 
>>> Can you try:
>>> 
>>> /usr/bin/arch -x86_64
>>> 
>>> instead?
>>> 
>>> JM
>>> 
>>> Am 09.08.2014 um 10:27 schrieb ole :
>>> 
>>>> Am 09.08.2014 um 07:35 schrieb James :
>>>> 
>>>>> On 08/08/14 20:37, ole wrote:
>>>>>> Hi, 
>>>>>> 
>>>>>> I just want to import something from a midifile and get the following 
>>>>>> errorwarning:
>>>>>> 
>>>>>> Last login: Sun Aug  3 17:46:40 on console
>>>>>> ja?~$ midi2ly rhythms.mid 
>>>>>> Traceback (most recent call last):
>>>>>> File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 
>>>>>> 54, in 
>>>>>> import midi
>>>>>> ImportError: 
>>>>>> dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
>>>>>>  2): no suitable image found.  Did find:
>>>>>>  
>>>>>> /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
>>>>>>  mach-o, but wrong architecture
>>>>>> 
>>>>>> 
>>>>>> Is that a known issue?
>>>>> 
>>>>> http://code.google.com/p/lilypond/issues/detail?id=2208
>>>>> 
>>>>> 
>>>>> There is a workaround in there I think.
>>>>> 
>>>>> James
>>>> 
>>>> 
>>>> Thank you, unfortunatly this workaround does not help for Mac OS 10.8.5. 
>>>> (as it is also mentioned in the linked thread..
>>>> 
>>>> ole
>>>>> 
>>>> 
>>>> 
>>>> ___
>>>> lilypond-user mailing list
>>>> lilypond-user@gnu.org
>>>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>> 
>> 
>> 
>> 
> 



rhythms.mid
Description: MIDI audio
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Fwd: midi2ly

2014-08-09 Thread Jacques Menu
Hello Ole,

Dont’t forget to copy the LP user list.

Can you send you .mid file?

JM

Anfang der weitergeleiteten Nachricht:

> Von: ole 
> Betreff: Aw: midi2ly
> Datum: 9. August 2014 11:59:19 MESZ
> An: Jacques Menu 
> 
> Hi Jacques,
> 
> Thanks for your answer.
> 
> You mean like this (first line of the midi2ly file): 
> 
> #!/usr/bin/env /usr/bin/arch -x86_64
> 
> (I'am not very familiar with that things)
> 
> Then, after calling midi2ly file.mid in the terminal, nothing happens at all..
> 
> best
> 
> ole
> 
> 
> 
> Am 09.08.2014 um 11:12 schrieb Jacques Menu :
> 
>> Hello Ole,
>> 
>> Can you try:
>> 
>>  /usr/bin/arch -x86_64
>> 
>> instead?
>> 
>> JM
>> 
>> Am 09.08.2014 um 10:27 schrieb ole :
>> 
>>> Am 09.08.2014 um 07:35 schrieb James :
>>> 
>>>> On 08/08/14 20:37, ole wrote:
>>>>> Hi, 
>>>>> 
>>>>> I just want to import something from a midifile and get the following 
>>>>> errorwarning:
>>>>> 
>>>>> Last login: Sun Aug  3 17:46:40 on console
>>>>> ja?~$ midi2ly rhythms.mid 
>>>>> Traceback (most recent call last):
>>>>> File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 
>>>>> 54, in 
>>>>> import midi
>>>>> ImportError: 
>>>>> dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
>>>>>  2): no suitable image found.  Did find:
>>>>>   
>>>>> /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
>>>>>  mach-o, but wrong architecture
>>>>> 
>>>>> 
>>>>> Is that a known issue?
>>>> 
>>>> http://code.google.com/p/lilypond/issues/detail?id=2208
>>>> 
>>>> 
>>>> There is a workaround in there I think.
>>>> 
>>>> James
>>> 
>>> 
>>> Thank you, unfortunatly this workaround does not help for Mac OS 10.8.5. 
>>> (as it is also mentioned in the linked thread..
>>> 
>>> ole
>>>> 
>>> 
>>> 
>>> ___
>>> lilypond-user mailing list
>>> lilypond-user@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>> 
> 
> 
> 

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


Re: midi2ly

2014-08-09 Thread Jacques Menu
Hello Ole,

Can you try:

/usr/bin/arch -x86_64

instead?

JM

Am 09.08.2014 um 10:27 schrieb ole :

> Am 09.08.2014 um 07:35 schrieb James :
> 
>> On 08/08/14 20:37, ole wrote:
>>> Hi, 
>>> 
>>> I just want to import something from a midifile and get the following 
>>> errorwarning:
>>> 
>>> Last login: Sun Aug  3 17:46:40 on console
>>> ja?~$ midi2ly rhythms.mid 
>>> Traceback (most recent call last):
>>> File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 54, 
>>> in 
>>>  import midi
>>> ImportError: 
>>> dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
>>>  2): no suitable image found.  Did find:
>>> 
>>> /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
>>>  mach-o, but wrong architecture
>>> 
>>> 
>>> Is that a known issue?
>> 
>> http://code.google.com/p/lilypond/issues/detail?id=2208
>> 
>> 
>> There is a workaround in there I think.
>> 
>> James
> 
> 
> Thank you, unfortunatly this workaround does not help for Mac OS 10.8.5. (as 
> it is also mentioned in the linked thread..
> 
> ole
>> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


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


Re: midi2ly

2014-08-09 Thread ole
Am 09.08.2014 um 07:35 schrieb James :

> On 08/08/14 20:37, ole wrote:
>> Hi, 
>> 
>> I just want to import something from a midifile and get the following 
>> errorwarning:
>> 
>> Last login: Sun Aug  3 17:46:40 on console
>> ja?~$ midi2ly rhythms.mid 
>> Traceback (most recent call last):
>> File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 54, 
>> in 
>>   import midi
>> ImportError: 
>> dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
>>  2): no suitable image found.  Did find:
>>  
>> /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
>>  mach-o, but wrong architecture
>> 
>> 
>> Is that a known issue?
> 
> http://code.google.com/p/lilypond/issues/detail?id=2208
> 
> 
> There is a workaround in there I think.
> 
> James


Thank you, unfortunatly this workaround does not help for Mac OS 10.8.5. (as it 
is also mentioned in the linked thread..

ole
> 


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


Re: midi2ly

2014-08-08 Thread James
On 08/08/14 20:37, ole wrote:
> Hi, 
> 
> I just want to import something from a midifile and get the following 
> errorwarning:
> 
> Last login: Sun Aug  3 17:46:40 on console
> ja?~$ midi2ly rhythms.mid 
> Traceback (most recent call last):
>  File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 54, 
> in 
>import midi
> ImportError: 
> dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
>  2): no suitable image found.  Did find:
>   
> /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
>  mach-o, but wrong architecture
> 
> 
> Is that a known issue?

http://code.google.com/p/lilypond/issues/detail?id=2208


There is a workaround in there I think.

James


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


midi2ly

2014-08-08 Thread Ole Schmidt
Hi, 

I just want to import something from a midifile and get the following 
errorwarning:

Last login: Sun Aug  3 17:46:40 on console
ja?~$ midi2ly rhythms.mid 
Traceback (most recent call last):
  File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 54, in 

import midi
ImportError: 
dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
 2): no suitable image found.  Did find:

/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
 mach-o, but wrong architecture


Is that a known issue?

I'am using LP 2.18.2 on a Macbook, OS 10.8.5


thanks for help,

ole






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


midi2ly

2014-08-08 Thread ole
Hi, 

I just want to import something from a midifile and get the following 
errorwarning:

Last login: Sun Aug  3 17:46:40 on console
ja?~$ midi2ly rhythms.mid 
Traceback (most recent call last):
 File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 54, in 

   import midi
ImportError: 
dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
 2): no suitable image found.  Did find:

/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
 mach-o, but wrong architecture


Is that a known issue?

I'am using LP 2.18.2 on a Macbook, OS 10.8.5


thanks for help,

ole





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


Re: [SPAM] Re: midi2ly doesn't follow time signatures (beat divisions)

2014-02-20 Thread David Kastrup
Urs Liska  writes:

> Am 20.02.2014 10:22, schrieb David Kastrup:
>> Urs Liska  writes:
>>
>>> Am 20.02.2014 03:09, schrieb Paul Morris:
>>>> For what it's worth, if anyone is looking for ways to improve
>>>> midi2ly, the first footnote of this blog post:
>>>> http://blog.steinberg.net/2014/02/development-diary-part-the-fifth/#fn-523-1
>>>>
>>>> notes that midi2ly does not follow the beat divisions of the time
>>>> signature when it decides how to represent tied notes (or rests):
>>>
>>> Yes, the very best response to such a post would be to comment on it
>>> in a few weeks reporting that we have fixed the issue ;-)
>>
>> Indeed.  We don't have any people working dedicately on midi2ly
>> currently I think.
>>
>
> I opened midi2ly.py today for the first time, and it seems to be small
> enough to be understood. I hope to get the chance to take a closer
> look at it.

Go for it!

-- 
David Kastrup

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


Re: [SPAM] Re: midi2ly doesn't follow time signatures (beat divisions)

2014-02-20 Thread Urs Liska

Am 20.02.2014 10:22, schrieb David Kastrup:

Urs Liska  writes:


Am 20.02.2014 03:09, schrieb Paul Morris:

For what it's worth, if anyone is looking for ways to improve
midi2ly, the first footnote of this blog post:
http://blog.steinberg.net/2014/02/development-diary-part-the-fifth/#fn-523-1

notes that midi2ly does not follow the beat divisions of the time
signature when it decides how to represent tied notes (or rests):


Yes, the very best response to such a post would be to comment on it
in a few weeks reporting that we have fixed the issue ;-)


Indeed.  We don't have any people working dedicately on midi2ly
currently I think.



I opened midi2ly.py today for the first time, and it seems to be small 
enough to be understood. I hope to get the chance to take a closer look 
at it.


Urs


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


Re: midi2ly doesn't follow time signatures (beat divisions)

2014-02-20 Thread David Kastrup
Urs Liska  writes:

> Am 20.02.2014 03:09, schrieb Paul Morris:
>> For what it's worth, if anyone is looking for ways to improve
>> midi2ly, the first footnote of this blog post:
>> http://blog.steinberg.net/2014/02/development-diary-part-the-fifth/#fn-523-1
>>
>> notes that midi2ly does not follow the beat divisions of the time
>> signature when it decides how to represent tied notes (or rests):
>
> Yes, the very best response to such a post would be to comment on it
> in a few weeks reporting that we have fixed the issue ;-)

Indeed.  We don't have any people working dedicately on midi2ly
currently I think.

> But the rest of the post is also interesting. You surely noticed that
> Daniel states the obvious deficiencies of Finale and Sibelius with
> rest positioning, displays LilyPond's output as considerably better
> and states that they want to be even better than that.

It's easy to say "good luck with that", but there is an underlying
lesson in there: it's probably not easily doable to cast the rules of
good engraving into actual code with either Finale, Sibelius, _or_
LilyPond.  With Sibelius, their corporate parent apparently decided to
stop investing any more manpower in the improvement of typesetting and
gave the core developers the boot.  With Finale, one has the impression
that they have not made quality of typesetting a high priority anyway.

With LilyPond, we are working with volunteers and enthusiasts, and they
will often put in more work than one could justify to management for a
given result.  We are reaching the point of diminuishing and
self-defeating returns often already: improvements are hard to do, and
get in the way of doing further improvements.

So what is called for is an architecture that makes it rather
straightforward to specify good rules of typesetting rather than
spelling out code that conflicts with other code in ways that are an
artifact of the coding rather than based on a specification.

Starting from scratch, of course, provides a chance to design an
architecture suitable for the full requirements one is familiar with
rather than evolve an architecture while the requirements become more
and more apparent.

Or putting it more concisely: stealing good ideas requires good code.
You don't use rickshaws for a copper heist.

> I think this is a demonstration of respect (that is noticeable in most
> of what he writes anyway).
>
> So please don't start ratning in the comments (again). We had this at
> the beginning of its existence, and it's good that we've overcome the
> urge to abuse Steinberg's blog as a free "advertising platform".

Yup.

-- 
David Kastrup

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


Re: midi2ly doesn't follow time signatures (beat divisions)

2014-02-19 Thread Urs Liska

Am 20.02.2014 03:09, schrieb Paul Morris:

For what it's worth, if anyone is looking for ways to improve midi2ly, the 
first footnote of this blog post:
http://blog.steinberg.net/2014/02/development-diary-part-the-fifth/#fn-523-1

notes that midi2ly does not follow the beat divisions of the time signature 
when it decides how to represent tied notes (or rests):


Yes, the very best response to such a post would be to comment on it in 
a few weeks reporting that we have fixed the issue ;-)


But the rest of the post is also interesting. You surely noticed that 
Daniel states the obvious deficiencies of Finale and Sibelius with rest 
positioning, displays LilyPond's output as considerably better and 
states that they want to be even better than that.


I think this is a demonstration of respect (that is noticeable in most 
of what he writes anyway).


So please don't start ratning in the comments (again). We had this at 
the beginning of its existence, and it's good that we've overcome the 
urge to abuse Steinberg's blog as a free "advertising platform".



Urs

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


Re: midi2ly doesn't follow time signatures (beat divisions)

2014-02-19 Thread Shane Brandes
O.k.

 I ran it the 2.18 to midi through midi2ly does in fact fail miserably
in appearance of typeset result however if you inspect the durations
they are correct. However the odd thing is midi2ly makes a 2.14 type
file. So it for whatever reason seems to be producing durations in the
form of x8*y where x is the note a-h and y is the multiplier. so a
half note would be x8*4. So it looks as though this could be improved
by someone competent in the whole programming realm.

Shane

On Wed, Feb 19, 2014 at 9:09 PM, Paul Morris  wrote:
> For what it's worth, if anyone is looking for ways to improve midi2ly, the 
> first footnote of this blog post:
> http://blog.steinberg.net/2014/02/development-diary-part-the-fifth/#fn-523-1
>
> notes that midi2ly does not follow the beat divisions of the time signature 
> when it decides how to represent tied notes (or rests):
>
> "[midi2ly] takes the most simplistic approach possible when converting MIDI 
> data into notation, simply biting off as much of a long note as possible as 
> can be represented by a single note value (with augmentation dot if 
> necessary), and then handling any remaining duration in the same way, so 
> every long note is always split up using durations that proceed from longest 
> to shortest, completely ignoring the beat divisions implied by the prevailing 
> time signature."
>
> I haven't actually been able to test this as I couldn't get midi2ly to run...
> -Paul
>
> % TEST CASE
> \version "2.18.0"
>
> music = {
>   \time 3/4
>   r4 r r8 g'8
>   \time 6/8
>   r4. r8 r8 g'8
>   \time 3/4
>   g'2~g'8 g'8
>   \time 6/8
>   g'4.~g'4 g'8
> }
>
> \score {
>   { \music }
>   \layout { }
>   \midi { }
> }
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

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


midi2ly doesn't follow time signatures (beat divisions)

2014-02-19 Thread Paul Morris
For what it's worth, if anyone is looking for ways to improve midi2ly, the 
first footnote of this blog post:
http://blog.steinberg.net/2014/02/development-diary-part-the-fifth/#fn-523-1

notes that midi2ly does not follow the beat divisions of the time signature 
when it decides how to represent tied notes (or rests):

"[midi2ly] takes the most simplistic approach possible when converting MIDI 
data into notation, simply biting off as much of a long note as possible as can 
be represented by a single note value (with augmentation dot if necessary), and 
then handling any remaining duration in the same way, so every long note is 
always split up using durations that proceed from longest to shortest, 
completely ignoring the beat divisions implied by the prevailing time 
signature."

I haven't actually been able to test this as I couldn't get midi2ly to run... 
-Paul

% TEST CASE
\version "2.18.0"

music = {
  \time 3/4
  r4 r r8 g'8
  \time 6/8
  r4. r8 r8 g'8
  \time 3/4
  g'2~g'8 g'8
  \time 6/8
  g'4.~g'4 g'8
}

\score {
  { \music }
  \layout { }
  \midi { }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: midi2ly error

2011-03-22 Thread Jan Nieuwenhuizen
Martin Tarenskeen schreef op di 22-03-2011 om 08:47 [+0100]:

> But please try the attached example (testmidi.mid).

Nice bug.  Fixed in HEAD.

Thanks,

Jan

-- 
Jan Nieuwenhuizen  | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  


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


midi2ly error

2011-03-22 Thread Martin Tarenskeen



On Mon, 14 Mar 2011, Jan Nieuwenhuizen wrote:


Martin Tarenskeen schreef op ma 14-03-2011 om 13:10 [+0100]:



Which reminds me: midi2ly still needs a lot of work. In short: it is quite
useless.


Have a look at the latest version.  It's starting to work.


Great, it is already much better! I must admit I had not tried it since a 
long time ago.


But please try the attached example (testmidi.mid).

If I do
    midi2ly -d 16 testmidi.mid

something strange happens. The first note of the tune should be e'''16 but 
"16" is missing:


An excerpt from the resulting testmidi-midi.ly:

trackBchannelA = \relative c {
  e''' d fis,8 gis
  | % 2
  cis16 b d,8 e
  | % 3


I am quite sure the midi file is OK. It is read and converted perfectly by 
other programs like musescore and mtm (=mup to midi). If I change e''' to 
e'''16 manually, everything is fine.


--

Martin

testmidi.mid
Description: MIDI audio
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: midi2ly extracting velocity

2010-10-20 Thread Valentin Villenave
On Wed, Oct 20, 2010 at 4:15 PM, zbigb  wrote:
> I'm looking for a way to extract velocity information from the midi file and
> use it for dynamic marking,
> is there any midi2ly guru here that can point to the best way to hack the
> code?

Sadly, we don't have any midi2ly guru anymore, and the midi2ly script
is barely maintained at all.


If you have a precise feature request in mind, you may send it to our
bug list: http://lilypond.org/bug-reports.html

If you're interested in hacking the code, maybe you'd be interested in
subscribing to our special MIDI mailing list on
http://lists.lilynet.net/midi/

(Yes, this is very much of a low-volume mailing list. But perhaps you
can help us with that :-)

Cheers,
Valentin

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


midi2ly extracting velocity

2010-10-20 Thread zbigb

Hi 

I'm looking for a way to extract velocity information from the midi file and
use it for dynamic marking, 
is there any midi2ly guru here that can point to the best way to hack the
code? 

thanks in advance, 
zb
-- 
View this message in context: 
http://old.nabble.com/midi2ly-extracting-velocity-tp30010352p30010352.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: musicxml2ly, midi2ly etc. broken ?

2010-10-10 Thread Ole Schmidt
is this the same problem?
 
it happens with 2.12.3 as well as with 2.13.35

Last login: Sun Oct 10 17:05:44 on ttys001
ja?~$ midi2ly /Applications/SCOM\ 6.2.3/Output/Bcl\&p_1.mid 
Traceback (most recent call last):
  File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 50, in 

import midi
ImportError: 
dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
 2): no suitable image found.  Did find:

/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
 mach-o, but wrong architecture

thanks,

ole

Am 10.10.2010 um 16:28 schrieb Valentin Villenave:

> On Mon, May 17, 2010 at 12:05 AM, flup2  wrote:
>> Since a few versions (in the development branch, now 2.13.21), I get that
>> kind of message while running converters included in Lilypond. This is the
>> message shown when running midi2ly from the Terminal under Mac OS X
>> 
>> Could not find platform independent libraries 
>> Could not find platform dependent libraries 
>> Consider setting $PYTHONHOME to [:]
>> 'import site' failed; use -v for traceback
>> Traceback (most recent call last):
>>  File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 37,
>> in 
>>import os
>> ImportError: No module named os
> 
> CCing to the bug list.
> 
> Looks like there's a problem with Python libraries path variables on
> OSX, can anyone confirm?
> 
> Cheers,
> Valentin
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user


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


Re: musicxml2ly, midi2ly etc. broken ?

2010-10-10 Thread Valentin Villenave
On Mon, May 17, 2010 at 12:05 AM, flup2  wrote:
> Since a few versions (in the development branch, now 2.13.21), I get that
> kind of message while running converters included in Lilypond. This is the
> message shown when running midi2ly from the Terminal under Mac OS X
>
> Could not find platform independent libraries 
> Could not find platform dependent libraries 
> Consider setting $PYTHONHOME to [:]
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
>  File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 37,
> in 
>    import os
> ImportError: No module named os

CCing to the bug list.

Looks like there's a problem with Python libraries path variables on
OSX, can anyone confirm?

Cheers,
Valentin

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


RE: How do I Invoke midi2ly in windows?

2010-09-18 Thread philippe sicabaig

Probably there was some problem with my midi file. I created a 
  very simple midi file especially to test and it worked.
Still the ly file 
  created is quite unusuable, (old ly version, I had to convert it...). As a 
  result I wasnt able to export a pdf so easily.
Is there an update of 
  the  midi2ly.py file I have? I am doing piano sheet music on windows 7, 
  so do you know if there is a good program or way to create a midifile 
  compatible with midi2ly.
I would like for example to play the song, 
  quantize it, then separate on to channels the right and the left hand so that 
  lylipond is able to distinguish them.
If you have some tips and advices, I 
  would be glad to hear them, otherwise, have a good day 
  anyway!

Philippe

> From: m...@philholmes.net
> To: lilypond-user@gnu.org; philnsi...@hotmail.com
> Subject: Re: How do I Invoke midi2ly in windows?
> Date: Thu, 16 Sep 2010 16:17:00 +0100
> 
> - Original Message - 
> From: "Philippe" 
> To: 
> Sent: Thursday, September 16, 2010 3:22 PM
> Subject: How do I Invoke midi2ly in windows?
> 
> 
> > Hello everybody,
> >
> > I 've tried to use the midi2ly function in windows to convert a midi 1 
> > file into
> > a ly file.
> >
> > I typed in the command line something like:
> >
> > midi2ly.py --allow-tuplet=8*2/3 C:\Documents\test.mid
> >
> > Actually I tried many ways to invoke this command. But in the end, the 
> > command
> > line always answers something like that:
> >
> > Traceback (most recent call last):
> >  File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 991, in ?
> >main()
> >  File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 989, in 
> > main
> >convert_midi (f, o)
> >  File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 810, in 
> > conver
> > t_midi
> >for (dur, num, den) in global_options.allowed_tuplets:
> > SystemError: 
> > /main/src/gub/target/mingw/src/python-2.4.5/Objects/listobject.c:25
> > 5: bad argument to internal function
> >
> > I am not getting any ly file anywhere.
> >
> > I searched on the internet how to do, but I can't figure it out and I am
> > stucked. I noticed that many people had problems to understand how to use 
> > this
> > function.
> >
> > It would be great if some people who know how to invoke midi2ly and reach 
> > to use
> > it could tell what they exactly type into the command line to have a 
> > positive
> > result.
> > Could you please do that?
> >
> > Philippe
> 
> 
> Using the syntax you have provided works perfectly for me on a Windows Vista 
> machine.  Could there be a problem with your midi file?
> 
> --
> Phil Holmes
> 
> 
  ___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How do I Invoke midi2ly in windows?

2010-09-16 Thread Phil Holmes
- Original Message - 
From: "Philippe" 

To: 
Sent: Thursday, September 16, 2010 3:22 PM
Subject: How do I Invoke midi2ly in windows?



Hello everybody,

I 've tried to use the midi2ly function in windows to convert a midi 1 
file into

a ly file.

I typed in the command line something like:

midi2ly.py --allow-tuplet=8*2/3 C:\Documents\test.mid

Actually I tried many ways to invoke this command. But in the end, the 
command

line always answers something like that:

Traceback (most recent call last):
 File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 991, in ?
   main()
 File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 989, in 
main

   convert_midi (f, o)
 File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 810, in 
conver

t_midi
   for (dur, num, den) in global_options.allowed_tuplets:
SystemError: 
/main/src/gub/target/mingw/src/python-2.4.5/Objects/listobject.c:25

5: bad argument to internal function

I am not getting any ly file anywhere.

I searched on the internet how to do, but I can't figure it out and I am
stucked. I noticed that many people had problems to understand how to use 
this

function.

It would be great if some people who know how to invoke midi2ly and reach 
to use
it could tell what they exactly type into the command line to have a 
positive

result.
Could you please do that?

Philippe



Using the syntax you have provided works perfectly for me on a Windows Vista 
machine.  Could there be a problem with your midi file?


--
Phil Holmes



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


How do I Invoke midi2ly in windows?

2010-09-16 Thread Philippe
Hello everybody,

I 've tried to use the midi2ly function in windows to convert a midi 1 file into
a ly file.

I typed in the command line something like:

midi2ly.py --allow-tuplet=8*2/3 C:\Documents\test.mid

Actually I tried many ways to invoke this command. But in the end, the command
line always answers something like that:

Traceback (most recent call last):
  File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 991, in ?
main()
  File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 989, in main
convert_midi (f, o)
  File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 810, in conver
t_midi
for (dur, num, den) in global_options.allowed_tuplets:
SystemError: /main/src/gub/target/mingw/src/python-2.4.5/Objects/listobject.c:25
5: bad argument to internal function

I am not getting any ly file anywhere.

I searched on the internet how to do, but I can't figure it out and I am
stucked. I noticed that many people had problems to understand how to use this
function.

It would be great if some people who know how to invoke midi2ly and reach to use
it could tell what they exactly type into the command line to have a positive
result.
Could you please do that?

Philippe


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


Re: musicxml2ly, midi2ly etc. broken ?

2010-05-17 Thread grisu_76

hi flup,

i have a similar problem in converting an encore-file to lily using the
xml-python-tool;
i wrote into the group, but i do not have an answer yet;
see:
http://old.nabble.com/Music-xml_Problem-tt28428376.html#a28428376
here i described the problem i have got;
i use the windows version, but your problem seems to be similar
("trace-back" etc.) i attached a screenshot to demonstrate the altert
messages.

cheers, christian




flup2 wrote:
> 
> Hello,
> 
> Since a few versions (in the development branch, now 2.13.21), I get that
> kind of message while running converters included in Lilypond. This is the
> message shown when running midi2ly from the Terminal under Mac OS X
> 
> -
> Could not find platform independent libraries 
> Could not find platform dependent libraries 
> Consider setting $PYTHONHOME to [:]
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
>   File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line
> 37, in 
> import os
> ImportError: No module named os
> Hello,
> 
> Since a few versions (in the development branch, now 2.13.21), I get that
> kind of message while running converters included in Lilypond. This is the
> message shown when running midi2ly from the Terminal under Mac OS X
> 
> -
> Any idea about fixing that (aside running an older verison) ?
> 
> Do other people have the same problem ?
> 

-- 
View this message in context: 
http://old.nabble.com/musicxml2ly%2C-midi2ly-etc.-broken---tp28577716p28587518.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: Midi2ly Error

2010-05-16 Thread -Eluze


Jonathan Townes-2 wrote:
> 
> I'm encountering problems with midi2ly. I receive the error below when
> running midi2ly on midi files exported from Reaper, a DAW. I receive
> no error when converting midi files created by Lilypond or Anvil
> Studio, a midi only program. Any insight or suggestions for exporting
> midi would be greatly appreciated.
> 
> C:\Documents and Settings\jt\Desktop>midi2ly Test8.mid
> Traceback (most recent call last):
>   File "C:\Program Files\LilyPond\usr\bin\midi2ly.py", line 991, in ?
> main()
>   File "C:\Program Files\LilyPond\usr\bin\midi2ly.py", line 989, in main
> convert_midi (f, o)
>   File "C:\Program Files\LilyPond\usr\bin\midi2ly.py", line 823, in
> convert_midi
> for (dur, num, den) in global_options.allowed_tuplets:
> SystemError:
> /main/src/gub/target/mingw/src/python-2.4.5/Objects/listobject.c:255:
> bad argument to internal function
> 
> 
> Lilypond version 2.2.13-1 (Windows XP)
> 
> 

are you sure you're using the correct version?

problems with midi2ly often occur when

 - the filename contains blanks
 - the directory contains blanks

best is to make sure you run midi2ly from the directory where the file is.
(use CD … to go there) 
if the filename contains blanks, include it in quadruple double-quotes
("""")

hth
-- 
View this message in context: 
http://old.nabble.com/Midi2ly-Error-tp28577377p28577881.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


musicxml2ly, midi2ly etc. broken ?

2010-05-16 Thread flup2

Hello,

Since a few versions (in the development branch, now 2.13.21), I get that
kind of message while running converters included in Lilypond. This is the
message shown when running midi2ly from the Terminal under Mac OS X

-
Could not find platform independent libraries 
Could not find platform dependent libraries 
Consider setting $PYTHONHOME to [:]
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 37,
in 
import os
ImportError: No module named os
Hello,

Since a few versions (in the development branch, now 2.13.21), I get that
kind of message while running converters included in Lilypond. This is the
message shown when running midi2ly from the Terminal under Mac OS X

-
Any idea about fixing that (aside running an older verison) ?

Do other people have the same problem ?
-- 
View this message in context: 
http://old.nabble.com/musicxml2ly%2C-midi2ly-etc.-broken---tp28577716p28577716.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: Midi2ly Error

2010-05-16 Thread Graham Percival
Yes, and that's why I asked you to create tiny midi files with the
different programs, and to upload them to that particular bug
report.

If the files only contain one note, it'll be easier to examine
them for differences (if necessary, byte-by-byte).

- Graham


On Sun, May 16, 2010 at 02:15:51PM -0700, Jonathan Townes wrote:
> Graham,
> It must be something in the header of the files, because I don't see
> much difference in looking at the event lists of midi files created in
> Lilypond and other problems.
> -Jonathan
> 
> On Sun, May 16, 2010 at 2:11 PM, Graham Percival
>  wrote:
> > It's a known problem for windows.
> > http://code.google.com/p/lilypond/issues/detail?id=834
> >
> > The info about different midi programs is interesting, though, and
> > might help somebody fix it.  If you can duplicate the problem
> > using a very simply score (1 staff, 1 note, with 2 or 3 different
> > programs), could you attach those files to that bug report?
> >
> > Sorry,
> > - Graham
> >
> >
> > On Sun, May 16, 2010 at 02:07:11PM -0700, Jonathan Townes wrote:
> >> I'm encountering problems with midi2ly. I receive the error below when
> >> running midi2ly on midi files exported from Reaper, a DAW. I receive
> >> no error when converting midi files created by Lilypond or Anvil
> >> Studio, a midi only program. Any insight or suggestions for exporting
> >> midi would be greatly appreciated.
> >>
> >> C:\Documents and Settings\jt\Desktop>midi2ly Test8.mid
> >> Traceback (most recent call last):
> >>   File "C:\Program Files\LilyPond\usr\bin\midi2ly.py", line 991, in ?
> >>     main()
> >>   File "C:\Program Files\LilyPond\usr\bin\midi2ly.py", line 989, in main
> >>     convert_midi (f, o)
> >>   File "C:\Program Files\LilyPond\usr\bin\midi2ly.py", line 823, in 
> >> convert_midi
> >>     for (dur, num, den) in global_options.allowed_tuplets:
> >> SystemError: 
> >> /main/src/gub/target/mingw/src/python-2.4.5/Objects/listobject.c:255:
> >> bad argument to internal function
> >>
> >>
> >> Lilypond version 2.2.13-1 (Windows XP)
> >>
> >> ___
> >> lilypond-user mailing list
> >> lilypond-user@gnu.org
> >> http://lists.gnu.org/mailman/listinfo/lilypond-user
> >

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


Re: Midi2ly Error

2010-05-16 Thread Graham Percival
It's a known problem for windows.
http://code.google.com/p/lilypond/issues/detail?id=834

The info about different midi programs is interesting, though, and
might help somebody fix it.  If you can duplicate the problem
using a very simply score (1 staff, 1 note, with 2 or 3 different
programs), could you attach those files to that bug report?

Sorry,
- Graham


On Sun, May 16, 2010 at 02:07:11PM -0700, Jonathan Townes wrote:
> I'm encountering problems with midi2ly. I receive the error below when
> running midi2ly on midi files exported from Reaper, a DAW. I receive
> no error when converting midi files created by Lilypond or Anvil
> Studio, a midi only program. Any insight or suggestions for exporting
> midi would be greatly appreciated.
> 
> C:\Documents and Settings\jt\Desktop>midi2ly Test8.mid
> Traceback (most recent call last):
>   File "C:\Program Files\LilyPond\usr\bin\midi2ly.py", line 991, in ?
> main()
>   File "C:\Program Files\LilyPond\usr\bin\midi2ly.py", line 989, in main
> convert_midi (f, o)
>   File "C:\Program Files\LilyPond\usr\bin\midi2ly.py", line 823, in 
> convert_midi
> for (dur, num, den) in global_options.allowed_tuplets:
> SystemError: 
> /main/src/gub/target/mingw/src/python-2.4.5/Objects/listobject.c:255:
> bad argument to internal function
> 
> 
> Lilypond version 2.2.13-1 (Windows XP)
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user

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


Midi2ly Error

2010-05-16 Thread Jonathan Townes
I'm encountering problems with midi2ly. I receive the error below when
running midi2ly on midi files exported from Reaper, a DAW. I receive
no error when converting midi files created by Lilypond or Anvil
Studio, a midi only program. Any insight or suggestions for exporting
midi would be greatly appreciated.

C:\Documents and Settings\jt\Desktop>midi2ly Test8.mid
Traceback (most recent call last):
  File "C:\Program Files\LilyPond\usr\bin\midi2ly.py", line 991, in ?
main()
  File "C:\Program Files\LilyPond\usr\bin\midi2ly.py", line 989, in main
convert_midi (f, o)
  File "C:\Program Files\LilyPond\usr\bin\midi2ly.py", line 823, in convert_midi
for (dur, num, den) in global_options.allowed_tuplets:
SystemError: 
/main/src/gub/target/mingw/src/python-2.4.5/Objects/listobject.c:255:
bad argument to internal function


Lilypond version 2.2.13-1 (Windows XP)

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


Re: Midi2ly work for Windows?

2009-12-16 Thread Mats Bengtsson



Austin W wrote:
So I got it to work after realizing that midi2ly.py is just a big text 
file. You have to type python before midi2ly to load midi2ly in 
python. Is this in a help file somewhere? So it's:


c:\Program Files\Lilypond\usr\bin\python midi2ly.py type1midi.mid

That should definitely not be necessary! Just typing
midi2ly whateverfilename.midi
should do the same thing.

If you want to investigate, open a command prompt, type
set path
and copy the resulting output into an email to the mailing list.

In the email from Eluze, it's explained what you should look for in this 
output if you want to investigate it yourself.


/Mats


And if you have a midi editing program then you should be able to 
quantize everything to 100% note duration before converting it thus 
making a much better looking ly file without fraction lengths.


-Austin W



> Date: Fri, 11 Dec 2009 00:39:44 +0100
> From: mats.bengts...@ee.kth.se
> To: austinshotmail@hotmail.com
> CC: lilypond-user@gnu.org
> Subject: Re: Midi2ly work for Windows?
>
> Quoting Patrick McCarty :
>
> > On Thu, Dec 10, 2009 at 2:48 PM, Austin Wiegand
> >  wrote:
> >> Am I just not entering it right or does it not work for Windows? I
> >> open the dos
> >> prompt and type "...\midi2ly pi-type1.mid" and get the error:
> >> "'midi2ly' is not recognized as an internal or external command, 
operable

> >> program or batch file."
> >> Even when I just try running the program without a midi after it
> >> Windows doesn't
> >> know what it is.
>
> First of all, the PATH setting that was mentioned in a previous email
> should automatically be done by the LilyPond installation program, but
> you may have to log out and then log in again after the installation
> for it to work.
>
> Secondly, you should just specify the command name, not any full path.
> For example, if you just type the command
> midi2ly
> you should get a printout like:
> Usage: midi2ly [OPTION]... FILE
>
> Convert MIDI to LilyPond input.
> 
>
>
> >
> > Last time I tried, it did not work. See
> >
> > http://code.google.com/p/lilypond/issues/detail?id=834
>
> I just tried it right now with LilyPond version 2.13.8 and midi2ly
> certainly works on a small MIDI file that previously was generated by
> LilyPond, so the above mentioned problem does not happen for all MIDI
> files, so if you are lucky it will work with your MIDI file. However,
> don't expect too much from midi2ly since it has several limitations.
> Especially, if often results in weird note durations, since it
> interprets the MIDI file too literally.
>
> /Mats
>


Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign 
up now. <http://clk.atdmt.com/GBL/go/177141664/direct/01/>



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


--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: mats.bengts...@ee.kth.se
WWW: http://www.s3.kth.se/~mabe
=



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


RE: Midi2ly work for Windows?

2009-12-11 Thread Austin W

So I got it to work after realizing that midi2ly.py is just a big text file. 
You have to type python before midi2ly to load midi2ly in python. Is this in a 
help file somewhere? So it's:

c:\Program Files\Lilypond\usr\bin\python midi2ly.py type1midi.mid

And if you have a midi editing program then you should be able to quantize 
everything to 100% note duration before converting it thus making a much better 
looking ly file without fraction lengths.

-Austin W



> Date: Fri, 11 Dec 2009 00:39:44 +0100
> From: mats.bengts...@ee.kth.se
> To: austinshotmail@hotmail.com
> CC: lilypond-user@gnu.org
> Subject: Re: Midi2ly work for Windows?
> 
> Quoting Patrick McCarty :
> 
> > On Thu, Dec 10, 2009 at 2:48 PM, Austin Wiegand
> >  wrote:
> >> Am I just not entering it right or does it not work for Windows? I 
> >> open the dos
> >> prompt and type "...\midi2ly pi-type1.mid" and get the error:
> >> "'midi2ly' is not recognized as an internal or external command, operable
> >> program or batch file."
> >> Even when I just try running the program without a midi after it 
> >> Windows doesn't
> >> know what it is.
> 
> First of all, the PATH setting that was mentioned in a previous email 
> should automatically be done by the LilyPond installation program, but 
> you may  have to log out and then log in again after the installation 
> for it to work.
> 
> Secondly, you should just specify the command name, not any full path. 
> For example, if you just type the command
> midi2ly
> you should get a printout like:
> Usage: midi2ly [OPTION]... FILE
> 
> Convert MIDI to LilyPond input.
> 
> 
> 
> >
> > Last time I tried, it did not work.  See
> >
> > http://code.google.com/p/lilypond/issues/detail?id=834
> 
> I just tried it right now with LilyPond version 2.13.8 and midi2ly 
> certainly works on a small MIDI file that previously was generated by 
> LilyPond, so the above mentioned problem does not happen for all MIDI 
> files, so if you are lucky it will work with your MIDI file. However, 
> don't expect too much from midi2ly since it has several limitations. 
> Especially, if often results in weird note durations, since it 
> interprets the MIDI file too literally.
> 
> /Mats
> 
  
_
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Midi2ly work for Windows?

2009-12-11 Thread Mats Bengtsson



-Eluze wrote:

Austin-36 wrote:
  

Am I just not entering it right or does it not work for Windows? I open
the dos
prompt and type "...\midi2ly pi-type1.mid" and get the error:
"'midi2ly' is not recognized as an internal or external command, operable
program or batch file."
Even when I just try running the program without a midi after it Windows
doesn't
know what it is.




there are 2 things to specify:

- the path in which the system has to look for midi2ly.py, typically
c:\Program Files\LilyPond\usr\bin\
you can check this with "set path" in the command shell.

- a program that is supposed to run programs with a specific extension -
here it is ".py"; check this with "set pathext" as above
if .py is not included in this variable, you can add it in the "standard
program definitions" (or similar)

[note that the command "set path" will display both these variables]
  


As has already been said, this should work out of the box if you use the 
LilyPond installation package.


   /Mats


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


Re: Midi2ly work for Windows?

2009-12-11 Thread -Eluze


Austin-36 wrote:
> 
> Am I just not entering it right or does it not work for Windows? I open
> the dos
> prompt and type "...\midi2ly pi-type1.mid" and get the error:
> "'midi2ly' is not recognized as an internal or external command, operable
> program or batch file."
> Even when I just try running the program without a midi after it Windows
> doesn't
> know what it is.
> 

there are 2 things to specify:

- the path in which the system has to look for midi2ly.py, typically
c:\Program Files\LilyPond\usr\bin\
you can check this with "set path" in the command shell.

- a program that is supposed to run programs with a specific extension -
here it is ".py"; check this with "set pathext" as above
if .py is not included in this variable, you can add it in the "standard
program definitions" (or similar)

[note that the command "set path" will display both these variables]

-- 
View this message in context: 
http://old.nabble.com/Midi2ly-work-for-Windows--tp26735904p26743225.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: Midi2ly work for Windows?

2009-12-11 Thread Martin Tarenskeen



On Thu, 10 Dec 2009, Patrick McCarty wrote:


Last time I tried, it did not work.  See

http://code.google.com/p/lilypond/issues/detail?id=834


One additional remark:
Even if these problems are solved, and you are finally able to run 
midi2ly, don't expect too much of the results. At this moment midi2ly does 
a pretty bad job in converting MIDI to Lilypond code. I have been working 
on improvements and will continue to do so, but I first have to improve my 
python skills a little bit.


The midi2ly from the current lilypond distributions fails most of the 
time when the time signature is not 4/4, it does not properly read key 
signatures, it does not like tied notes that pass barlines, to name just 
some of the problems.


Due to it's nature MIDI will never be the ideal fileformat to produce 
music notation, but even then midi2ly should do a better job in the future 
than it currently does. I hope to continue my efforts soon, but if anyone 
else wants to pick up the challenge before I do ... please do.


Martin Tarenskeen


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


Re: Midi2ly work for Windows?

2009-12-10 Thread Mats Bengtsson

Quoting Patrick McCarty :


On Thu, Dec 10, 2009 at 2:48 PM, Austin Wiegand
 wrote:
Am I just not entering it right or does it not work for Windows? I 
open the dos

prompt and type "...\midi2ly pi-type1.mid" and get the error:
"'midi2ly' is not recognized as an internal or external command, operable
program or batch file."
Even when I just try running the program without a midi after it 
Windows doesn't

know what it is.


First of all, the PATH setting that was mentioned in a previous email 
should automatically be done by the LilyPond installation program, but 
you may  have to log out and then log in again after the installation 
for it to work.


Secondly, you should just specify the command name, not any full path. 
For example, if you just type the command

midi2ly
you should get a printout like:
Usage: midi2ly [OPTION]... FILE

Convert MIDI to LilyPond input.





Last time I tried, it did not work.  See

http://code.google.com/p/lilypond/issues/detail?id=834


I just tried it right now with LilyPond version 2.13.8 and midi2ly 
certainly works on a small MIDI file that previously was generated by 
LilyPond, so the above mentioned problem does not happen for all MIDI 
files, so if you are lucky it will work with your MIDI file. However, 
don't expect too much from midi2ly since it has several limitations. 
Especially, if often results in weird note durations, since it 
interprets the MIDI file too literally.


   /Mats



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


  1   2   3   >