SoundCanvas

Undocumented in source.

Constructors

this
this(SynthWidget synth)
Undocumented in source.

Members

Functions

getNoteRect
Rect getNoteRect(Rect clientRect, double note)
Undocumented in source. Be warned that the author may not have intended to support it.
getPitchX
int getPitchX(Rect clientRect, double note)
Undocumented in source. Be warned that the author may not have intended to support it.
measure
void measure(int parentWidth, int parentHeight)

Measure widget according to desired width and height constraints. (Step 1 of two phase layout).

onDraw
void onDraw(DrawBuf buf)

Draw widget at its position to buffer

onMouseEvent
bool onMouseEvent(MouseEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
setNoteRange
void setNoteRange(double minnote, double maxnote)
Undocumented in source. Be warned that the author may not have intended to support it.
setNoteRange
void setNoteRange(int minnote, int maxnote)
Undocumented in source. Be warned that the author may not have intended to support it.
setPitchRange
void setPitchRange(double minfreq, double maxfreq)
Undocumented in source. Be warned that the author may not have intended to support it.
setPosition
void setPosition(double x, double y, double pressure)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

controller1
double controller1 [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
maxNote
double maxNote [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
maxPitch
double maxPitch [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
minNote
double minNote [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
minPitch
double minPitch [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
pitch
double pitch [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_currentPitch
double _currentPitch;
Undocumented in source.
_currentY
double _currentY;
Undocumented in source.
_darkNoteColor
uint _darkNoteColor;
Undocumented in source.
_lastProximity
bool _lastProximity;
Undocumented in source.
_maxNote
double _maxNote;
Undocumented in source.
_maxPitch
double _maxPitch;
Undocumented in source.
_minNote
double _minNote;
Undocumented in source.
_minPitch
double _minPitch;
Undocumented in source.
_noteNameColor
uint _noteNameColor;
Undocumented in source.
_pitchMarkColor
uint _pitchMarkColor;
Undocumented in source.
_spaceColor
uint _spaceColor;
Undocumented in source.
_synth
SynthWidget _synth;
Undocumented in source.
_whiteNoteColor
uint _whiteNoteColor;
Undocumented in source.

Meta