getter: Track#source
This commit is contained in:
parent
f2c458d785
commit
7753f35737
1 changed files with 8 additions and 0 deletions
|
@ -133,6 +133,14 @@ export class Track {
|
||||||
.map((m, i) => parseInt(m) * times(60, i))
|
.map((m, i) => parseInt(m) * times(60, i))
|
||||||
.reduce((a, c) => a + c, 0);
|
.reduce((a, c) => a + c, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns source of this track
|
||||||
|
* @type {TrackSource}
|
||||||
|
*/
|
||||||
|
get source() {
|
||||||
|
return this.raw.source ?? 'arbitrary';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* String representation of this track
|
* String representation of this track
|
||||||
|
|
Loading…
Reference in a new issue