Rain layer type

This function adds a new genuinely probabilistic layer type, called Rain.


This layer type can be selected by changing the layer mode.

Rain is slightly inspired by the Stochastic Inspiration Generator. It is visually similar to the Bounce layer type, in which the pitch of the note goes from left to right. Similar to bounce mode, a maximum of one LED is lit in each column. Pressing the LED in the bottom row removes the LED from the column.

Each time tick, the layer goes through two steps:

  1. Decide whether any note is played at all this tick
  2. If a note is to be played, decide which one it is.

Firstly, the probability of anything being played is based on the highest note anywhere on the grid. If there is a note in the top row, then a note will be played with 100% probability. If the highest note is half way up, then a note will only be played on 50% of the ticks, randomly.

If a note is to be played, the second step determines which of the notes it is. This is linearly proportional to the height of each note. For example, if there is only one note in the grid, then the note played will definitely be this one. If there are two notes at the same height, then - if a note is to be played - then it is 5050 which of the two will be played. Some examples below, using a chromatic scale.

Examples of Rain

Some notes:

  1. Split types can be used to add other effects, e.g. random octave transpositions, velocity changes, etc.
  2. Using the “Drop” animation type, with maximum size (22), in combination with the Rain layer, is a nice visual effect.

Compatibility Issues

You cannot load songs or blocks with a Rain layer type in previous versions.


First included in A034.

Pika Blue avatar
About Pika Blue
Pika Blue is overly obsessed with midi controllers, especially unsupported ones with blinky lights .