Class Course
A course is one string or two or more adjacent strings that are closely spaced relative to the other strings.
- Number of strings: 1 for guitar, 2 for mandolin
- Number of frets
- Beginning of the course, in number of frets
- Relative pitch of each string of the course: 0=unison, 12=octave higher, -12=octave lower
Section
Section | Summary |
---|---|
InstrumentsClassifications | Musical instrument classifications |
Summary
Field | Type | Summary |
---|---|---|
NoteName | string | Note of the course. |
NumberOfFrets | int | Number of frets of the course, 0 for violin, 12+ for guitar. |
NumberOfStrings | int | Number of strings of the course, 1 for guitar, 2 for mandolin. |
Pitches | table | Pitches of all string of the course, modified by Course:tune(). |
Position | int | Position of the course on the neck. |
Range | int | Range covered by the string, 12 means one octave. |
RelativePitches | table | Pitches of the strings, relative to the tuning. |
StartFret | int | Fret where the course begins, used for the banjo's shortest string. |
Return type | Function and summary |
---|---|
tune(string noteName) Tune the course |
Fields
int Course:Position
Position of the course on the neck.
For a guitar, the first is the highest note, near the ground. The last is the lowest note, near the player's head.
int Course:NumberOfStrings
Number of strings of the course, 1 for guitar, 2 for mandolin.
int Course:NumberOfFrets
Number of frets of the course, 0 for violin, 12+ for guitar.
int Course:Range
Range covered by the string, 12 means one octave.
int Course:StartFret
Fret where the course begins, used for the banjo's shortest string.
table Course:RelativePitches
Pitches of the strings, relative to the tuning.
This is a table as course may have several strings.
string Course:NoteName
Note of the course.
table Course:Pitches
Pitches of all string of the course, modified by Course:tune().
Method
Course:tune(string noteName)
Tune the course
Parameter | Type | Default | Description |
---|---|---|---|
noteName | string | "E3", "F#4"... |