truj / midica

A Music programming language. Translates source code into MIDI. Includes a player. Supports MIDI-Karaoke. Includes a MIDI analyzer.
https://www.midica.org/
Mozilla Public License 2.0
111 stars 13 forks source link

add magic variable to get the number of notes inside a pattern #77

Closed truj closed 1 year ago

truj commented 2 years ago

Inside a pattern block it would be useful to know with how many notes the pattern has been called. This way we could use the same pattern for chords with a different number of notes.

truj commented 1 year ago

Additionally two more magic variables would make sense as well:

These can be used for nested pattern calls with.

truj commented 1 year ago

Documentation is now available here: http://www.midica.org/tutorial-6.html#magic-variables