This is a test to see if JS could loop locally sourced, organic, free-range, non-GMO mp3 files. This is done entirely in the browser.
You have to
files object and current file list.2 or 3) will load the file at that index (corresponding to its name in the list on the right) for playback. Indices start at 0.random (or r, rand, rnd) will load a random file (choosing one each time playback finishes). This cannot be combined with array indices[0,1,2:2,3] will play sequentially through those indices. If an index is optionally followed with a colon and a number (without spaces around the colon), the file will be played that many times before moving to the next one.[0,3,4,2]2), the array will play that many times before stopping. Array indices are limited to 1,000 index changes, but that does not apply to repetition from a number at the end.f, >, b, <, r, #, s, or @ (optionally followed by a number, such as in f3) will transform into an array of all file indices depending on the first character.
| First character | Order through files |
|---|---|
f or > |
Ascending |
b or < |
Descending |
r or # |
Shuffled randomly* |
s or @ |
Shuffled piecewise** |
*Shuffled randomly: "Clones" from a number in the generator are all shuffled together; using r2 with 4 files, [1,2,1,3,0,3,0,2] is a possible result.
**Shuffled piecewise: Each set of "clones" is shuffled individually; using s2 with 3 files, [0,2,1,1,0,2] is a possible result, but [2,1,1,0,2,0] is not.
b2, it will become [3,2,1,0,3,2,1,0]. The resulting arrays are subject to the 1,000-change limit for arrays.No file loader status
No file remover status
No loader status
No index setter status
Which index? (0 = first file) No file list warper status
Storing 0 characters of base64
(not including file currently loaded to audio tag)
I'm sick of losing data
No localStorage downloader status
Which index to download JSON of?