This is a simple plugin for Pulsar that allows you to evaluate Mercury code from within the editor. The code is send via OSC on port 4880 to either the Mercury Max version or the Mercury Browser version (running locally!).
- Web version running in the browser (Windows/Mac/Linux) go to this repo
- Full version running in Max8 (Windows/Mac only) go to this repo
🙏 Support Mercury by becoming a Patron
Make sure that ppm
(Pulsar Package Manager) is installed. On linux, it should be automatically installed with Atom. On OSX, go to the Pulsar
menu and click Install Shell Commands
.
- Download this repository via
$ git clone http://github.com/tmhglnd/mercury-pulsar
- Navigate to the directory and install the dependencies
$ cd mercury-pulsar
and ppm install
- Load the package
$ ppm link .
- Restart Pulsar
Windows doesn't support ppm
, instead use npm
and the following steps:
- Download this repository via
$ git clone http://github.com/tmhglnd/mercury-pulsar
- Navigate to the directory and install the dependencies with
npm
instead ofppm
$ cd mercury-pulsar
and npm install
- Manually copy-paste the entire folder
mercury-pulsar
to
C:\Users\<username>\.pulsar\packages
-
Start up either Mercury for Max or the Mercury Playground (running locally!, see instructions below)
-
Create an empty file to open with Pulsar and write your code in. This can be a plain
.txt
file. -
Go to
Packages
>Open Package Manager
, find the mercury package and click onEnable
. -
The package should be automatically activated. You can toggle the package on/off with
shift
cmd
p
, search formercury:toggle
andenter
. -
Type some code and:
-
Evaluate with
cmd/ctrl/alt
+enter
-
Silence the sound with
cmd/ctrl/alt
+.
-
Randomize variables
cmd/ctrl/alt
+shift
+r
-
This plugin was made possible by looking at the source code from the Hydra and Tidal plugins for Atom