robert@464: /* robert@464: * robert@464: * 1-D string consisting of two waveguides and junction robert@464: * robert@464: * Christian Heinrichs 04/2015 robert@464: * robert@464: */ robert@464: robert@464: #ifndef STRING_H_ robert@464: #define STRING_H_ robert@464: robert@464: #include robert@464: #include "Junction.h" robert@464: #include "Waveguide.h" robert@464: robert@464: class String robert@464: { robert@464: robert@464: public: robert@464: robert@464: String(); robert@464: float update(float in); robert@464: robert@464: float getPlectrumDisplacement(); robert@464: void setMidinote(float midinote); robert@464: void setFrequency(float frequency); robert@464: void setPeriod(float periodInMs); robert@464: void setPluckPosition(float pluckPos); robert@464: void setGlobalPosition(float pos); robert@464: float getGlobalPosition(); robert@464: robert@464: private: robert@464: robert@464: float _previous_l; robert@464: float _previous_r; robert@464: robert@464: float _globalPosition; robert@464: robert@464: Waveguide wg_l; robert@464: Waveguide wg_r; robert@464: Junction junction; robert@464: robert@464: }; robert@464: robert@464: #endif