0.0.3 • Published 1 year ago

libpd v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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 install

usage

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
    }
  })
0.0.3

1 year ago

0.0.2

1 year ago