0.0.3 • Published 3 years ago
libpd v0.0.3
node-libpd
libpd wrapper for nodejs
This will allow you to load puredata patches and interact with them in nodejs.
Tested on M1 & Intel mac, but it should work fine on anything that can install nodejs and libpd.
installation
You will need libpd nstalled.
To install/build libpd:
git clone --recursive https://github.com/libpd/libpd.git
cd libpd
make UTIL=true EXTRA=true
sudo make installusage
See test.js for example usage.
const pd = require('libpd')
// open test.pd patch, from current dir
pd.open('test.pd', __dirname)
  .then(() => {
    console.log('ok.')
    // send a message to the patch
    pd.send('loadbang')
    
    // do nothing while audio-loop is running. Ctrl-C will break
    while (true) {
    // noop
    }
  })