X-Git-Url: http://git.treefish.org/~alex/seamulator.git/blobdiff_plain/e729e891d35b7405434f4fc5a7dadcc8f3b9e414..ba8f356e863ed4a418f93c155e64eecaea0819bf:/include/dot.h diff --git a/include/dot.h b/include/dot.h new file mode 100644 index 0000000..28792ff --- /dev/null +++ b/include/dot.h @@ -0,0 +1,33 @@ +#include + +#include "Plucked.h" +#include "Brass.h" +#include "Bowed.h" +#include "Guitar.h" +#include "Mandolin.h" +#include "Sitar.h" +#include "BeeThree.h" + +#include "surfacepoint.h" + +class Dot { + +public: + Dot(const SurfacePoint& point, double frequency); + + void advance(const double deltaT); + stk::StkFloat tick(); + +private: + std::mutex m_mutex; + + stk::Plucked m_noise; + + const SurfacePoint& m_point; + const double m_frequency; + + double m_pos = 0.0; + double m_vel = 0.0; + double m_maxAbsVel = 0.0; + +};