This extension adds support for the TidalCycles live coding environment in the Zed Editor.
Note: This is an early prototype. Some functionality may not work as expected.
- Syntax highlighting for TidalCycles/Haskell code
- Commands for evaluating code blocks and lines
- Integration with the TidalCycles engine
Before using this extension, you need to have:
- TidalCycles installed
- SuperCollider with SuperDirt installed
- Haskell and GHCi installed (comes with TidalCycles installation)
- Open Zed Editor
- Open the command palette (Cmd+Shift+P or Ctrl+Shift+P)
- Use the "Install Extension" command
- Choose this extension from the list or install it from source
To start the TidalCycles engine:
- Open a file with a
.tidalextension - Use the command palette (Cmd+Shift+P or Ctrl+Shift+P) to run the
TidalCycles: Startcommand - Make sure you have SuperDirt running in SuperCollider
There are several ways to evaluate code:
- Place your cursor on a line of code and press Alt+Enter (or use command palette for
TidalCycles: Evaluate Line) - Select a block of code and press Shift+Alt+Enter (or use command palette for
TidalCycles: Evaluate Block)
To stop all sound:
- Run the
TidalCycles: Hushcommand
When you're done:
- Run the
TidalCycles: Stopcommand to shut down the TidalCycles engine
This extension adds the following keyboard shortcuts:
- Alt+Enter: Evaluate the current line
- Shift+Alt+Enter: Evaluate the selected code block or current paragraph
- Alt+H: Hush (stop all sound)
Currently, the extension searches for the BootTidal.hs file in common locations:
~/.ghci~/.cabal/lib/tidal-1.9.4/BootTidal.hs/usr/local/lib/tidal-1.9.4/BootTidal.hs/usr/lib/tidal-1.9.4/BootTidal.hs
If your BootTidal.hs is in a different location, you'll need to modify the source code.
If you encounter issues:
- Make sure TidalCycles and SuperDirt are properly installed and working
- Ensure SuperCollider is running with SuperDirt started
- Try restarting the TidalCycles engine with the
TidalCycles: Stopcommand followed byTidalCycles: Start - Check Zed logs for any error messages
- Make sure you have GHCi (Glasgow Haskell Compiler interactive) installed and accessible in your PATH
If you're still having problems, you may need to modify the extension to match your specific setup.
Contributions are welcome! Please feel free to submit a Pull Request or open an issue on GitHub.
This extension is released under the MIT License.