44 lines
601 B
C++
44 lines
601 B
C++
#ifndef _GUITAR_TUNING_HPP_
|
|
#define _GUITAR_TUNING_HPP_
|
|
#ifndef _MUSIC_NOTES_HPP_
|
|
#include <music/notes.hpp>
|
|
#endif
|
|
|
|
class Tuning : public Notes
|
|
{
|
|
public:
|
|
enum {StandardTuningStrings=6,Delay=1000};
|
|
Tuning();
|
|
virtual ~Tuning();
|
|
int getStrings(void)const;
|
|
void setStrings(int strings);
|
|
void setStandardTuning(void);
|
|
protected:
|
|
virtual int getDelay(void)const;
|
|
private:
|
|
};
|
|
|
|
inline
|
|
Tuning::Tuning()
|
|
{
|
|
setStandardTuning();
|
|
}
|
|
|
|
inline
|
|
Tuning::~Tuning()
|
|
{
|
|
}
|
|
|
|
inline
|
|
int Tuning::getStrings(void)const
|
|
{
|
|
return size();
|
|
}
|
|
|
|
inline
|
|
void Tuning::setStrings(int strings)
|
|
{
|
|
size(strings);
|
|
}
|
|
#endif
|