You may be prompted to install the HyperScope and APC Customie UI ++ vscode extensions, allow it.
Open the Command Palette (Mac: ⌘+Shift+P, Windows: Ctrl+Shift+P)
Type Envil: Open environment to enable ENVIL commands (vscode restart required)
Setup the environment:
Now full-screen mode cannot be used into vscode due to some tweaks in the electron configuration
Overlap the transparent vscode window on the browser, leaving it slightly visible resizing vscode
Set the browser to full-screen mode and switch back to the vscode window
You can close the ENVIL environment using the Envil: Close environment command (vscode restart required)
HYDRA
Create a JavaScript file inserting a hydra script and evaluate it using the Envil: Evaluate - Hydra command
SUPERCOLLIDER
Start sclang interpreter using the Envil: Start/Stop SCLang - Supercollider command or the sclang ⭕ toggle in the status bar
This command will automatically boot the scsynth server
In the Output panel you can select the channel ENVIL - SC PostWindow to check the supercollider PostWindow logs
WARNING: the sclang and scsynth startup may be delayed or fail due to SW like Windows Defender. In this case try to restart sclang or check SC PostWindow logs for more informations
Create a SCD file inserting a supercollider script and evaluate it using the Envil: Evaluate - Supercollider command
To Hush the supercollider server use the Envil: Hush - Supercollider command
(optional) Configure the location of your sclang instance in your vscode 'settings.json':
Sync hydra from supercollider code sending OSC messages
// Define an OSC sender
~oscSend = NetAddr.new("localhost", 3002);
// Define a function to send OSC messages
~sendToHydra = { |command|
~oscSend.sendMsg("/hydra", command);
};
// Example: send a command to Hydra
~sendToHydra.value("osc(10, 0.1, 1).out()");
Troubleshooting
vscode doesn't become transparent
Use the Enable Apc extension command to re-enable APC Customize UI++, especially useful after a vscode update
Check the APC Customize UI++ properties inside the GLOBAL 'settings.json' configuration file using the Open User Settings (JSON):
if the file has some unsaved changes save them (envil may conflict writing properties with the APC Customize UI++ extension) and try to close and re-open envil environment
if you use vscode profiles make sure that your profile is configured so that it doesn't sync the settings
make sure the APC Customize UI++ extension properties are present inside the GLOBAL 'settings.json' file and not inside a specific profile settings configuration file. The typical paths for the GLOBAL configuration file are: