37 using namespace Nsound;
46 int main(
int argc,
char ** argv)
83 Mesh2D mesh(44100.0, 11, 19, 0.88, 0.010);
87 output << mesh.
strike(0.333, 0.333, 3.0);
Buffer strike(const Buffer &x_pos, const Buffer &y_pos, const Buffer &velocity)
Hit the mesh many times at different locations.
int main(int argc, char **argv)
void normalize()
Multiplies the Buffer by a constant gain so the peak sample has magnitude 1.0.
A Buffer for storing audio samples.
static const char * THIS_FILE