Initial
This commit is contained in:
43
guitar/Tuning.hpp
Normal file
43
guitar/Tuning.hpp
Normal file
@@ -0,0 +1,43 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user