Skip to main content

Pick your tool

Every example on this site comes three ways, and they read the same. Pick one and stay there, or switch halfway. The helpers have the same names in all three: stick.x, mf.pressed(3), pad.justPressed(x, y).

InstallBrowserPick it when
p5.js in the browsernothingChrome, Edge, Opera or Brave. Firefox after one permissionyou want something on screen in two minutes, or a link to share
Processing, JavaProcessing 4none neededyou have Processing already, or Safari is your only browser
Processing, Python ModeProcessing 4 and the modenone neededyou think in Python
Something elsedependsthe device should talk to Node, plain JavaScript, Python, or you are building the device

Two differences to know about. The browser asks permission for MIDI, and only after you click something, so every p5 sketch waits for a click. Java opens the port when the sketch calls connect(), no questions, but on macOS it only lists the devices that were plugged in before Run. Plug in first.