ChordNote
in package
Chord note.
Table of Contents
- $fret : int
- Fret number.
- $string : array<string|int, int>
- String number.
- __construct() : mixed
- getFret() : int
- getString() : array<string|int, int>
Properties
$fret
Fret number.
private
int
$fret
$string
String number.
private
array<string|int, int>
$string
A regular note will have only one element in the array. If two integers are present, the note is barre and the numbers indicate the first and last string that are part of the barre.
Methods
__construct()
public
__construct(array<string|int, int> $string, int $fret) : mixed
Parameters
- $string : array<string|int, int>
-
string number
- $fret : int
-
fret number
Return values
mixed —getFret()
public
getFret() : int
Return values
int —fret number
getString()
public
getString() : array<string|int, int>
Return values
array<string|int, int> —string number