MdaPiano:
Filter:
Classes (extension) | UGens > Wrappers

MdaPiano : MultiOutUGen : UGen : AbstractFunction : Object
ExtensionExtension

Piano synthesiser
Source: MdaUGens.sc

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

MdaPiano.ar(freq: 440.0, gate: 1, vel: 100, decay: 0.8, release: 0.8, hard: 0.8, velhard: 0.8, muffle: 0.8, velmuff: 0.8, velcurve: 0.8, stereo: 0.2, tune: 0.5, random: 0.1, stretch: 0.1, sustain: 0, mul: 1, add: 0)

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.

Inherited class methods

Instance Methods

Inherited instance methods

Examples