Class Course

A course is one string or two or more adjacent strings that are closely spaced relative to the other strings.

See
https://en.wikipedia.org/wiki/Course_(music)

Section

SectionSummary
InstrumentsClassificationsMusical instrument classifications

Summary

FieldTypeSummary
NoteNamestringNote of the course.
NumberOfFretsintNumber of frets of the course, 0 for violin, 12+ for guitar.
NumberOfStringsintNumber of strings of the course, 1 for guitar, 2 for mandolin.
PitchestablePitches of all string of the course, modified by Course:tune().
PositionintPosition of the course on the neck.
RangeintRange covered by the string, 12 means one octave.
RelativePitchestablePitches of the strings, relative to the tuning.
StartFretintFret where the course begins, used for the banjo's shortest string.
Return typeFunction 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

ParameterTypeDefaultDescription
noteNamestring "E3", "F#4"...