Running code on Estuary, a collaborative platform for live coding of music and visuals, involves using a slightly different approach compared to a traditional TidalCycles setup. While Estuary supports TidalCycles code, the way you interact with the platform is more geared towards collaboration and immediate feedback, and it might not support all features and synths (like "superpiano") the same way a local TidalCycles environment does.
Here's how you can adapt and run the provided code snippet in Estuary:
-
Access Estuary: Go to the Estuary web platform. If you're new, you might need to select a mode of operation. For TidalCycles code, choose "TidalCycles" or a collaborative environment that supports it.
-
Adapt the Code: Due to potential differences in synth definitions between your local SuperDirt and Estuary, plus Estuary's unique setup, you might need to adapt the synth names or parameters. Estuary's default synth is usually "sound", so let's adapt the code with this in mind. Since "superpiano" might not be available, we'll simply use a generic sound and focus on the pattern and sequence itself.
Modified example for Estuary:
d1 $ slow 2 $ n (scale "minor" "0 2 3 5 7 10") # s "pluck" # gain 0.8
d2 $ every 4 (rev) $ n "[7 10]*2 [12]*3 ~ 5" # s "pluck" # gain 0.75
d3 $ slow 4 $ n "[5 0]*4" # s "pluck" # gain 0.9 # room 0.3 # sz 0.3
-
Input the Code: In Estuary, find an available slot for TidalCycles code. You can input the code directly into one of the text boxes designed for live coding input. If you're working in a collaborative session, each participant gets their own text box.
-
Evaluate the Code: To run (or "evaluate") your code snippet in Estuary, you usually press Shift+Enter after selecting your block of code. This will immediately apply your code and start playing the pattern based on the current global cycle.
-
Listen and Adjust: Listen to the output, and feel free to adjust parameters like n (scale "minor" ...) to change the notes being played, or modify the slow factor to change the tempo. Estuary allows you to experiment in real-time, so you can immediately hear the results of your adjustments.
Remember, Estuary may not produce the exact sound you expect if you originally designed your code for a specific SuperDirt synth (like "superpiano" in the previous example). You will need to experiment with the available sounds (s "soundName") in Estuary to find one that fits your creative vision.
It's also worth noting that because Estuary is designed for accessibility and ease of use, some advanced features or specific synths might not be available. However, it's an excellent platform for collaboration, experimentation, and learning about live coding music in real-time environments.