Beyond Beats
by OXT-Beyond contributors
- Opens or saves files
- Runs JavaScript
Plays right here in your browser, boxed in: it cannot reach your files or your computer. How that works.
About this stack
A beat studio in the browser. Lay down drums in the channel rack, write bass lines and chords in the piano roll, arrange patterns into a song in the playlist, and mix it with reverb, delay and a fader for every channel. Sixteen drums and five synths are made by the browser as it plays, and you can load samples of your own. Save your song as a file and export it as a WAV.
What this stack uses
- Opens or saves files. It keeps things in files. In your browser these stay inside the page and are gone when you close it.
- Runs JavaScript. It runs JavaScript in its own boxed-in page, for example to make sound.
For xTalk developers: how it is built
- Beyond Beats (Beyond Beats.oxtstack): 1329 objects, 3683 lines of script
Opens or saves files
- the stack script, line 1807
put specialFolderPath("documents") into tFolder - the stack script, line 1809
put specialFolderPath("temporary") & "/oxt-beyond-beats" into tFolder - the stack script, line 1812
create folder tFolder - the stack script, line 1822
create folder tFolder - the stack script, line 1891
repeat for each line tFile in files(tFolder) - the stack script, line 1894
delete file (tFolder & "/" & tFile) - the stack script, line 2132
put base64Decode(tSamples[n]) into url ("binfile:" & btSampleFile(n)) - the stack script, line 2165
put btSongText() into url ("file:" & btSavePath()) - the stack script, line 2170
put url ("file:" & btSavePath()) into tText - the stack script, line 2188
put url ("binfile:" & btSampleFile(n)) into tData - the stack script, line 2201
ask file "Save the song as:" with "my-song.beats" - the stack script, line 2209
put textEncode(btProjectText(), "UTF-8") into url ("binfile:" & pPath) - and 7 more
Runs JavaScript
- the stack script, line 2310
do "beyondBeats.loadSample(" & pSlot & ",'" & tData & "')" as "JavaScript" - the stack script, line 2316
do "beyondBeats.clearSample(" & pSlot & ")" as "JavaScript" - the stack script, line 2350
do "beyondBeats.exportWav('" & tName & "')" as "JavaScript" - the stack script, line 2359
do "beyondBeats.exportState()" as "JavaScript" - the stack script, line 2365
do "beyondBeats.lastExport ? Math.round(beyondBeats.lastExport.seconds) : 0" as "JavaScript" - the stack script, line 2386
do the cAudioCore of me as "JavaScript" - the stack script, line 2481
do "beyondBeats.set(" & btSongJson() & ")" as "JavaScript" - the stack script, line 2491
do "beyondBeats.hit(" & pRow - 1 & "," & pVelocity & "," & pPitch & ")" as "JavaScript" - the stack script, line 2510
do "beyondBeats.start()" as "JavaScript" - the stack script, line 2511
do "beyondBeats.state()" as "JavaScript" - the stack script, line 2536
do "beyondBeats.stop()" as "JavaScript" - the stack script, line 2563
do "beyondBeats.poll()" as "JavaScript"
The labels come from the checker, which reads every script without running any of it. Read all the scripts.
Open it in OXT-Beyond
- Download it (85 KB)
- Unzip the file you get.
- Open Beyond Beats.oxtstack in OXT-Beyond with File > Open Stack... and change anything you like.
A stack you open on your own computer is no longer boxed in: it can do what any program can. Open stacks only from people you trust, and read the scripts first.



