Play 'round
|
Represents a string that can be plucked to make sound. More...
#include <Widget.h>
Public Member Functions | |
String (Point2D p1, Point2D p2, float radius) | |
void | initialize (Point2D p1, Point2D p2, float radius) |
bool | pluck (Plucker *plucker) |
virtual Widget * | hitTest (float x, float y) |
virtual void | draw () |
virtual bool | handleHover (float x, float y) |
Called when the user's mouse is hovering on the widget. | |
virtual void | toOutboundPacketStream (osc::OutboundPacketStream &) const |
void | setPadRadius (float) |
virtual SAMPLE | tick () |
Returns the current sound signal and proceed to the next time unit. | |
Line * | getLine () |
Side | getMouseSide (float, float) |
Side | updateMouseSide (float, float) |
Protected Attributes | |
Line * | m_line |
Point2D | m_p1 |
Point2D | m_p2 |
Spiral * | m_p1Dot |
Spiral * | m_p2Dot |
Plucker * | m_lastPlucker |
Side | m_mouseSide |
stk::Plucked | m_plucked |
float | m_freq |
Represents a string that can be plucked to make sound.