MdaPiano:
Filter:
sc3-plugins/Classes (extension) | UGens > Wrappers

MdaPiano
ExtensionExtension

Piano synthesiser

Description

A piano synthesiser (originally a VST plugin by Paul Kellett, ported to SC by Dan Stowell). This UGen is not polyphonic (but can be retriggered to play notes in sequence).

Class Methods

.ar

This UGen is stereo - it returns two channels, with a stereo "wideness" effect controlled by the stereo argument. It has lots of parameters:

Arguments:

freq

Frequency of the note

gate

note-on occurs when gate goes from nonpositive to positive; note-off occurs when it goes from positive to nonpositive. Most of the other controls are only updated when a new note-on occurs.

vel

velocity (range is 0 to 127, default 100)

decay

The time for notes to decay after the initial strike (default 0.8)

release

The time for notes to decay after the key is released (default 0.8)

hard
velhard
muffle
velmuff
velcurve
stereo

Width of the stereo effect (which makes low notes sound towards the left, high notes towards the right). 0 to 1.

tune

Overall tuning

random

Randomness in note tuning (default 0.1)

stretch

Stretches the tuning out (higher notes pushed higher)

sustain

If positive, act as if the piano's sustain pedal is pressed.

Examples