GuitarString

new GuitarString(Guitar guitar, integer base, integer pos)

guitar string class
Parameters:
Name Type Description
guitar Guitar the Guitar object this String belongs to
base integer the base note position of this string
pos integer the position of the string relative to the other strings
Source:

Methods

activeNotes() → integer[]

get a list of integers that represents all active notes on this string
Source:
To Do:
  • implement function
Returns:
Type
integer[]

matchNotes(Note note)

matches a Note object to the fret and returns all GuitarNote objects that match it.
Parameters:
Name Type Description
note Note a Note object
Source:
To Do:
  • implement function

noteOnFret(GuitarFret fret)

return a Note object for a fret position on this string
Parameters:
Name Type Description
fret GuitarFret a GuitarFret object we should check the note on
Source:

onlyActive(integer fret, boolean value)GuitarString

set the note on the specified fret as the only active note on this string
Parameters:
Name Type Description
fret integer integer representing the fret position
value boolean true if the GuitarNote should be set to active
Source:
Returns:
- return this GuitarString
Type
GuitarString