Mixer: Report azimuth and elevation of panner points.
This commit is contained in:
parent
1fa23f1a76
commit
63c4296d7b
|
@ -54,6 +54,17 @@ class Panner : public Fl_Widget
|
|||
*Y = d * sinf( A );
|
||||
}
|
||||
|
||||
float azimuth ( void ) const
|
||||
{
|
||||
return a;
|
||||
}
|
||||
|
||||
float elevation ( void ) const
|
||||
{
|
||||
return ( 1.0f - d ) * 90.0f;
|
||||
}
|
||||
|
||||
/** set point position in X, Y coordinates (0.0 to 1.0) */
|
||||
void
|
||||
angle ( float X1, float Y1 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue