wavelength 1.0.0
Loading...
Searching...
No Matches
axeharmony.h
Go to the documentation of this file.
1#pragma once
2
3#include <set>
4
5#include "gs/axecontour.h"
6
14public:
22
30
38 void AddNote(unsigned char nNote);
39
47 unsigned char GetHighest() const;
48
56 unsigned char GetLowest() const;
57
70 void SnapContour(AxeContour *pContour, int nTranspose) const;
71
83 unsigned char Snap(int nNote) const;
84
85private:
86 std::set<unsigned char> mNotes;
87 float mCenter;
88};
The notes AxeTrack plays on a guitar track, looped over the length of the track.
Definition axecontour.h:19
void AddNote(unsigned char nNote)
Add a note and move the middle of the range to fit it.
void SnapContour(AxeContour *pContour, int nTranspose) const
Move the notes of a contour onto the harmony, centred on its range.
unsigned char GetLowest() const
Report the lowest note.
AxeHarmony()
Construct a harmony with no notes.
~AxeHarmony()
Release the notes.
unsigned char GetHighest() const
Report the highest note.
unsigned char Snap(int nNote) const
Report the note of the harmony nearest a note.