In order to develop a MIDI sequence with a Music Programming Language using Midica, you must write the source code into a plain text file
with the file extension .midica
, .mpl
, .alda
or .abc
, depending on the language you want to use.
It doesn't matter which editor you use. Just use your favorite text editor.
If you choose MidicaPL for programming, than the actual language syntax and note naming depends on
the chosen configuration. In this tutorial the configuration settings shown in the
Configuration table are assumed.
This is the default configuration. But it can be changed in the Configuration
area in the main window (upper left corner).
For ALDA or ABC, the configuration doesn't matter.
During the development process you will switch from your editor to the Midica player very often.
You will change the file and save it in the editor, then switch to the player and hit the Reparse
button or press F5
or Ctrl+R
(or Cmd+R
if you are on a Mac).
Then the file will be parsed again. When hitting the Play
button or pressing p
or the space bar,
the resulting MIDI sequence will be played.
First of all you have to create the file. Just create an empty file and call it tutorial.midica
or something else with the file extension .midica
or .mpl
.
(Or test.alda
or something.abc
if you prefer to write in ALDA or ABC.)
Then start Midica, if not yet done. In the main window, press the upper right button. It's the select file
button in the import area. Switch to the right tab, if not yet done (e.g. MidicaPL
if you use MidicaPL).
Then choose the empty file that you have just created.
Now you can open the player with the button Start Player
.
You cannot play anything yet because the file is still empty and so the MIDI sequence is empty as well.
But now you can start your development cycle.
Begin with chapter 1 of the MidicaPL tutorial. (Or a different tutorial for ALDA or ABC.)
Follow the instructions and change the source file
according to the examples. Then switch to the player and press Reparse
or F5
, then play the sequence.
Then change the file again. Try out your own variations of the examples and so on...
Developing with Midica is a bit like developing a website. But the HTML editor is any text editor. And the browser is the player.
But F5 works similarly. Or Ctrl+R
or Cmd+R
.