pianoroll - options
- cycles
- playhead
- vertical
- labels
- flipTime
- flipValues
- overscan
- hideNegative
- smear
- fold
- active
- inactive
- background
- playheadColor
- fill
- fillActive
- stroke
- strokeActive
- hideInactive
- colorizeInactive
- fontFamily
- minMidi
- maxMidi
- autorange
Visualises a pattern as a scrolling 'pianoroll', displayed in the background of the editor. To show a pianoroll for all running patterns, use all(pianoroll). To have a pianoroll appear below
a pattern instead, prefix with _, e.g.: sound("bd sd")._pianoroll().
note("c2 a2 eb2")
.euclid(5,8)
.s('sawtooth')
.lpenv(4).lpf(300)
.pianoroll({ labels: 1 }) aliases: punchcard()
| parameter | type |
|---|---|
| options |
|
| Object containing all the optional following parameters as key value pairs: | |
| cycles |
|
| number of cycles to be displayed at the same time - defaults to 4 | |
| playhead |
|
| location of the active notes on the time axis - 0 to 1, defaults to 0.5 | |
| vertical |
|
| displays the roll vertically - 0 by default | |
| labels |
|
| displays labels on individual notes (see the label function) - 0 by default | |
| flipTime |
|
| reverse the direction of the roll - 0 by default | |
| flipValues |
|
| reverse the relative location of notes on the value axis - 0 by default | |
| overscan |
|
| lookup X cycles outside of the cycles window to display notes in advance - 1 by default | |
| hideNegative |
|
| hide notes with negative time (before starting playing the pattern) - 0 by default | |
| smear |
|
| notes leave a solid trace - 0 by default | |
| fold |
|
| notes takes the full value axis width - 0 by default | |
| active |
|
| hexadecimal or CSS color of the active notes - defaults to #FFCA28 | |
| inactive |
|
| hexadecimal or CSS color of the inactive notes - defaults to #7491D2 | |
| background |
|
| hexadecimal or CSS color of the background - defaults to transparent | |
| playheadColor |
|
| hexadecimal or CSS color of the line representing the play head - defaults to white | |
| fill |
|
| notes are filled with color (otherwise only the label is displayed) - 0 by default | |
| fillActive |
|
| active notes are filled with color - 0 by default | |
| stroke |
|
| notes are shown with colored borders - 0 by default | |
| strokeActive |
|
| active notes are shown with colored borders - 0 by default | |
| hideInactive |
|
| only active notes are shown - 0 by default | |
| colorizeInactive |
|
| use note color for inactive notes - 1 by default | |
| fontFamily |
|
| define the font used by notes labels - defaults to 'monospace' | |
| minMidi |
|
| minimum note value to display on the value axis - defaults to 10 | |
| maxMidi |
|
| maximum note value to display on the value axis - defaults to 90 | |
| autorange |
|
| automatically calculate the minMidi and maxMidi parameters - 0 by default | |