-
Notifications
You must be signed in to change notification settings - Fork 27
Home
Welcome to the Estuary wiki!
Official documentation of Estuary is found within Estuary itself. Click on the ? at the top right of the Estuary interface, and then go to Reference. You can find the main 24/7 deployment of Estuary any time at https://estuary.mcmaster.ca.
This Wiki is only for emerging documentation that will eventually migrate to being with the rest of the documentation inside the Estuary interface. Essentially, just partial documentation of emerging features, tips and tricks that don't belong in the official documentation, etc.
Please feel free to ask questions on the Estuary Discord server (invite link visible in the main Estuary server at https://estuary.mcmaster.ca).
By default, estuary.mcmaster.ca is currently providing the union of the Dirt-samples and estuary-samples repositories as available audio resources. Numerous other sample libraries exist, and can be added "on the fly" to an Estuary ensemble or solo setting, using the terminal. To add the resources from a particular library (a "reslist") to an ensemble, enter !reslist followed by the appropriate URL in quotation marks at the terminal. For example: !reslist "https://dktr0.github.io/cybernetic-samples/sounds/sounds.json"
VCSL library (CC0), formatted for Estuary by Carl Testa: https://carltesta.github.io/vcsl_for_estuary/resources.json
Tahti library (Boost Software License 1.0), formatted for Estuary by Carl Testa: https://carltesta.github.io/tahti_for_estuary/resources.json
From the Cybernetic Orchestra (CC0): https://dktr0.github.io/cybernetic-samples/sounds/sounds.json
First of all, any media files to be added (whether in Solo or Collaborative mode) must be available through a CORS-compliant web server. The easiest known way to do this is to make a gh-pages site on a GitHub repository, and commit your files there.
To add an individual sound (available through a CORS-compliant web server), do this at the Estuary terminal (replacing nameOfSampleBank with the sample bank you want the sound to be available through, and replacing 0 with the number/position you want that sound to occupy in that bank): !insertsound "https://complete-url-to-sound.wav" nameOfSampleBank 0
To see the "resource operations" that have been added to your Solo window or Collaborative ensemble, do this at the terminal: !showresources
If you do that, in a new ensemble or Solo window, you'll see just one item that says: reslist "samples/resources.json"
A reslist is a JSON file that points to many available sounds, images, videos. The reslist at "samples/resources.json" is a complete list of the default sound samples set up for the Estuary server. Here's a small sample of what a reslist looks like:
[
{ "url":"808/CB.WAV","type":"audio","bank":"808","n":0},
{ "url":"808/CH.WAV","type":"audio","bank":"808","n":1},
{ "url":"808/CL.WAV","type":"audio","bank":"808","n":2}
]
The URLs in the reslist above are relative to wherever the reslist itself is located on the web. For example, the folder "808" in the above reslist should be in the same folder where the reslist file is located (and so, the WAV files in the above example would be in the 808 folder, ie. below the level of the reslist file). If you are editing/making a restlist by hand: Note that the JSON "keys" in the above MUST be in quotation marks, or it will not work.
If you are adding more than a few sounds, you'll probably want to make reslists for them. If you have your own reslist on the web you can add it to your solo window or collaborative ensemble like so: !reslist "https://complete-url-to-my-custom-samplebank.json"
There is a script in the top folder of the Estuary github repository called generateAudioResources.sh. You can run this BASH script at BASH/the terminal to auto-generate a reslist for a whole folder of folders containing audio samples. That might work like this, assuming your sample bank is located in ~/mySampleBank/ and you have cloned or downloaded the Estuary repository to ~/Estuary/:
cd ~/mySampleBank
~/Estuary/generateAudioResources.sh . > resources.json
After that ~/mySampleBank should have a new file called resources.json in it. You can check it out with a text editor to verify it makes sense, then commit it to your gh-pages repository. You should then be able to use the !reslist command (see above) to add that whole collection of sample banks all in one go (the same script is used at estuary.mcmaster.ca to generate the default resources.json).
To completely erase the defaults (ie. in the current window or ensemble), you can do this in a terminal (note that you will have no samples available until you add something back...): !clearresources
To restore the default resource operations, you can do this in a terminal: !defaultresources