Jamoma API
0.6.0.a19
|
Sound source class. More...
#include <Source.h>
Public Member Functions | |
Source (Room &room, Mirror *mirrors) | |
Class constructor, taking the Room to which the source belongs, as well as a pointer to the acoustic mirrors for the room/source. | |
void | updateDirectivity (long **tbl) |
Set directivity table to values obtained from the Max patch. | |
double | directivityAt (long angle) const |
Retrieve directivity gain for a given angle. | |
void | xPosAbs (double xPos) |
Set x position in meters. | |
void | yPosAbs (double yPos) |
Set y position in meters. | |
void | zPosAbs (double zPos) |
Set z position in meters. | |
void | xPosRel (double xPos) |
Set x position relative to room width (0.0 to 1.0). | |
void | yPosRel (double yPos) |
Set y position relative to room depth (0.0 to 1.0). | |
void | zPosRel (double zPos) |
Set z position relative to room height (0.0 to 1.0). | |
bool | directivityFlag () const |
True if the source's directivity is to be taken into account, false otherwise. | |
void | directivityFlag (bool flag) |
True if the source's directivity is to be taken into account, false otherwise. | |
void | aziAngle (long angle) |
Change azimuth angle, and those of all the mirrors. | |
long | aziAngle () const |
Get azimuth angle. | |
virtual void | printPos () const |
Post xyz position. | |
virtual | ~Source () |
Class destructor. | |
Public Member Functions inherited from Moveable | |
Moveable () | |
Class constructor. | |
Moveable (double x, double y, double z) | |
Class constructor, taking arguments for x, y and z position. | |
double | xPos () const |
Get x position. | |
void | xPos (double x) |
Set x position. | |
double | yPos () const |
Get y position. | |
void | yPos (double y) |
Set y position. | |
double | zPos () const |
Get z position. | |
void | zPos (double z) |
Set z position. | |
bool | flag () const |
True if object has moved. | |
void | flag (bool changed) |
To be set if object has moved. | |
bool | checkWidth (double newWidth) |
Check if a room's new width will still contain this object. | |
bool | checkDepth (double newDepth) |
Check if a room's new depth will still contain this object. | |
bool | checkHeight (double newHeight) |
Check if a room's new height will still contain this object. | |
Sound source class.
This class implements a sound source, which consists of a 1d signal and its own directivity pattern and 3-d position properties.
by Tristan Matthews and Nils Peters, 2007-2008.