Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| clab-220625 [2022/06/24 23:31] – renick | clab-220625 [2022/06/25 02:30] (current) – renick | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| - Install node, vim, tmux | - Install node, vim, tmux | ||
| - Install libraries | - Install libraries | ||
| + | - Check whether a startup.scd is necessary on mac | ||
| - Explain interactive programming in JavaScript | - Explain interactive programming in JavaScript | ||
| - Explain some basics in JavaScript | - Explain some basics in JavaScript | ||
| Line 22: | Line 23: | ||
| ===== a javascript tutorial ===== | ===== a javascript tutorial ===== | ||
| - | |||
| https:// | https:// | ||
| + | |||
| + | ===== a startup.scd file for you ===== | ||
| + | |||
| + | < | ||
| + | /* | ||
| + | This is an example startup file. You can load it from your startup file | ||
| + | (to be found in Platform.userAppSupportDir +/+ " | ||
| + | */ | ||
| + | |||
| + | |||
| + | ( | ||
| + | s.reboot { // server options are only updated on reboot | ||
| + | // configure the sound server: here you could add hardware specific options | ||
| + | // see http:// | ||
| + | s.options.numBuffers = 1024 * 256; // increase this if you need to load more samples | ||
| + | s.options.memSize = 8192 * 32; // increase this if you get "alloc failed" | ||
| + | s.options.numWireBufs = 64; // increase this if you get " | ||
| + | s.options.maxNodes = 1024 * 32; // increase this if you are getting drop outs and the message "too many nodes" | ||
| + | s.options.numOutputBusChannels = 2; // set this to your hardware output channel size, if necessary | ||
| + | s.options.numInputBusChannels = 2; // set this to your hardware output channel size, if necessary | ||
| + | // boot the server and start SuperDirt | ||
| + | s.waitForBoot { | ||
| + | ~dirt = SuperDirt(2, | ||
| + | ~dirt.loadSoundFiles; | ||
| + | // for example: ~dirt.loadSoundFiles("/ | ||
| + | // s.sync; // optionally: wait for samples to be read | ||
| + | ~dirt.start(57120, | ||
| + | |||
| + | // optional, needed for convenient access from sclang: | ||
| + | ( | ||
| + | ~d1 = ~dirt.orbits[0]; | ||
| + | ~d4 = ~dirt.orbits[3]; | ||
| + | ~d7 = ~dirt.orbits[6]; | ||
| + | ~d10 = ~dirt.orbits[9]; | ||
| + | ); | ||
| + | }; | ||
| + | |||
| + | s.latency = 0.3; // increase this if you get " | ||
| + | }; | ||
| + | ); | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||