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 
<module>
    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 <daniel.c.9...@gmail.com> 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

Reply via email to