Overview of the Modulo1 Programming Language
The Modulo1 programming language was specifically designed to make it easy to write code that makes music production easy. The primary focus is on algorithms that can be used to define a new musical genre (which we refer to as a
vibe) via computer code. Modulo1's intelligent algorithms then create random music that matches the requirements specified in the code.
What is a computer program?
Basically, a computer program is a list of instructions, written in a computer language that, when run, will cause the computer's data to change in ways that are meaningful and result in a desirable outcome.
Computer programs usually also include comments, written by the programmer/s, that are for the benefit of programmer/s and not to be interpreted as code. To write a short comment, include the
// symbol and Modulo1 will know to ignore any text between
// and the end of the line. For example:
If you need to write a longer comment, that occupies one or more lines. Then write your comment between
*/. Any text between
*/ will be ignored by Modulo1. For example:
1 2 3 4 5 6
What kinds of instructions are possible in the Modulo1 programming language?
- Creating new data
- Changing the value of some existing data
- Changing the type of some existing data
- Performing mathematical calculations
- Controlling the flow of the app (e.g. by creating a loop)
- Creating a function
- Running functions
- Creating structures that hold data, functions, and/or other structures
- Retrieving data or code published by other developers
- Declaring that an error has occurred (and that the app should stop)
- Acknowledging that an error has occurred (and recovering from it)
- Loading data into an intelligent algorithm
- Running an intelligent algorithm
What kinds of outcomes are possible as a result of these instructions?
- Designing a
vibe, i.e. a new musical genre
- Designing the tone of a drum
- Designing the tone of an instrument
- Composing the beats of a new drum riff
- Composing the musical notes of a new instrument melody
- Adjusting the audio effects on one or more drums and/or instruments
- Designing a derivative drum tone, based on an existing drum tone
- Designing a derivative instrument tone, based on an existing instrument tone
- Composing a derivative drum riff, based on an existing drum riff
- Composing a derivative melody, based on an existing melody
- Creating a graphical user interface (GUI) for an app or plugin