annotate projects/airharp/String.h @ 269:ac8eb07afcf5

Oxygen text added to each render.cpp file for the default projects. Text includes project explanation from Wiki, edited in places. Empty project added as a default project. Doxyfile updated. Each of the project locations added to INPUT configuration option. Consider just watching the whole project file so all new projects are automatically pulled through.
author Robert Jack <robert.h.jack@gmail.com>
date Tue, 17 May 2016 15:40:16 +0100
parents 40badaff5729
children
rev   line source
chris@164 1 /*
chris@164 2 *
chris@164 3 * 1-D string consisting of two waveguides and junction
chris@164 4 *
chris@164 5 * Christian Heinrichs 04/2015
chris@164 6 *
chris@164 7 */
chris@164 8
chris@164 9 #ifndef STRING_H_
chris@164 10 #define STRING_H_
chris@164 11
chris@164 12 #include <cmath>
chris@164 13 #include "Junction.h"
chris@164 14 #include "Waveguide.h"
chris@164 15
chris@164 16 class String
chris@164 17 {
chris@164 18
chris@164 19 public:
chris@164 20
chris@164 21 String();
chris@164 22 float update(float in);
chris@164 23
chris@164 24 float getPlectrumDisplacement();
chris@164 25 void setMidinote(float midinote);
chris@164 26 void setFrequency(float frequency);
chris@164 27 void setPeriod(float periodInMs);
chris@164 28 void setPluckPosition(float pluckPos);
chris@164 29 void setGlobalPosition(float pos);
chris@164 30 float getGlobalPosition();
chris@164 31
chris@164 32 private:
chris@164 33
chris@164 34 float _previous_l;
chris@164 35 float _previous_r;
chris@164 36
chris@164 37 float _globalPosition;
chris@164 38
chris@164 39 Waveguide wg_l;
chris@164 40 Waveguide wg_r;
chris@164 41 Junction junction;
chris@164 42
chris@164 43 };
chris@164 44
chris@164 45 #endif