MacOS X

Note: LilyPond は テキスト ベース の楽譜作成プログラムです。グラフィカルな楽譜編集プログラムよりも、むしろプログラミング言語に似ています。LilyPond をダウンロードする前に、テキスト入力 を読んでください。

パッケージ

ダウンロード

インストール

ダウンロードしたファイルをダブルクリックして、それをお好みの場所にドラッグしてください。

アンインストール

LilyPond.app フォルダを削除してください。

ファイルをコンパイルする

Note: These instructions assume that you are using the LilyPond application. If you are using any of the programs described in Easier editing, please consult the documentation for those programs if you have any problems.

Step 1. Create your ‘.ly’ file

Double click the LilyPond.app, an example file will open.

pictures/Learning_Macos_welcome

From the menus along the top left of your screen, select File > Save.

pictures/Learning_Macos_Save_menu

Choose a name for your file, for example ‘test.ly’.

pictures/Learning_Macos_Save_file_with_name

Step 2. Compile (with LilyPad)

From the same menus, select Compile > Typeset.

pictures/Learning_Macos_Typeset_menu

A new window will open showing a progress log of the compilation of the file you have just saved.

pictures/Learning_Macos_Compiling_log

Step 3. View output

Once the compilation has finished, a PDF file will be created with the same name as the original file and will be automatically opened in the default PDF viewer and displayed on your screen.

pictures/Learning_Macos_pdf_output

Other commands

To create new files for LilyPond, begin by selecting File > New

pictures/Learning_Macos_New_menu

or File > Open to open and edit existing files you have saved previously.

pictures/Learning_Macos_Open_menu

You must save any new edits you make to your file before you Compile > Typeset and if the PDF file is not displayed check the window with the progress log for any errors.

If you are not using the default Preview PDF viewer that comes with the Mac Operating system and you have the PDF file generated from a previous compilation open, then any further compilations may fail to generate an update PDF until you close the original.

コマンドラインから実行する

Note: GUI 環境の方を好むのであれば、以下の説明は無視してください。

MacOS X のコマンドライン

lilypond スクリプトを実行する最も簡便な方法は、あなた自身の “ヘルパー” スクリプトをセットすることです。

  1. スクリプトを保存するためのディレクトリを作成します:
    mkdir -p ~/bin
    cd ~/bin
    
  2. 以下の内容を持つ lilypond というファイルを作成します:
    exec DIR/LilyPond.app/Contents/Resources/bin/lilypond "$@"
    

    Note: DIR は、一般には /Applications/ です。

  3. bin/lilypondbin/convert-ly (あるいは他のプログラム名) に置き換えて、lilypond-book, convert-ly, それに他の使いたいスクリプトのファイルを同じように作成します。
  4. ファイルを実行可能にします:
    chmod u+x lilypond
    
  5. さらに、このディレクトリをパスに加えます。ホーム ディレクトリの中にある .profile というファイルを変更 (あるいは作成) して、以下のような内容を持たせます:
    export PATH=$PATH:~/bin
    

    このファイルは、空の行で終わっていなければなりません。

個々のスクリプトを呼び出す

スクリプト – lilypond-book, convert-ly, abc2ly, それに lilypond 自体も – は、MacOS X 用の .app ファイルの中に含まれています。

さらに、スクリプトを直接呼び出すことによって、コマンドラインから実行することができます:

path/to/LilyPond.app/Contents/Resources/bin/lilypond

そのディレクトリの中にある他のすべてのスクリプト – lilypond-bookconvert-ly など – についても同じことが言えます。

法律用語


他の言語: English, česky, deutsch, español, français, magyar, italiano, nederlands, 中文

Validation

lilypond.org をホスティングしてくれている webdev.nl に感謝します。 Valid HTML 4.01 Transitional