LilyPond is a simple programming language for creating complex musical notation. It comes with its own IDE, but Sublime Text is much more comfortable to use. Here’s how you can set things up:
First, install Sublime Text. I prefer to use Brew on my macOS:
In the terminal, run the following:
`brew install --cask sublime-text`
Then, install the LilyPond package like SubLilyPond ([https://packagecontrol.io/packages/SubLilyPond](https://packagecontrol.io/packages/SubLilyPond)).
Run the following code in the Packages/User folder in Sublime Text:
`git clone http://github.com/yrammos/SubLilyPond.git`
Next, create a new build system as follows:
Create a `LilyPond.sublime-build` file under the build system:
```
{
"cmd": ["lilypond '$file_base_name.ly'"],
"selector": "source.lilypond",
"shell": true
}
```
Then, when you open a LilyPond file, select the new LilyPond build system and run it (Command + B for macOS).