thisconnect / port Goto Github PK
View Code? Open in Web Editor NEWPort is an Node.js module to communicate and control Pd (Pure Data)
License: MIT License
Port is an Node.js module to communicate and control Pd (Pure Data)
License: MIT License
only allow flags object
This project is incredible. It really helps me with my PhD dissertation. Is there any more intent to work on it? There seems to be a data transmission between puredata and javascript through stderr text, which seems to be very slow. Is there a way to pass the data directly into PD so that it is faster? I might be misinterpreting the documentation.
Thanks,
Nakul
node tests/run.js
Starting Tests..
Port create (6 Tests):
- should create a Pd process with -nogui flag and receive data from [print]... Passed (4/4).
- should create and destroy 20 times in a row... Passed (20/20).
- should create a Pd process with -stderr flag and receive data from [print]... Passed (8/8).
- should send a message to Pd using the -send flag... Passed (2/2).
- should send a long message to Pd using the -send flag... Passed (1/1).
- should send many messages to Pd using the -send flag... Passed (2/2).
End Port create: Passed (Passes: 6, Failures: 0).
Port connection (11 Tests):
- should expose 2 sockets for [netsend] and [netreceive]... connections property is deprecated. Use getConnections() method
Passed (3/3).
- should echo messages sent to Pd... Passed (5/5).
- should pass the raw buffer object if no encoding is specified... connections property is deprecated. Use getConnections() method
Passed (2/2).
- should connect to two Pd instances in parallel... connections property is deprecated. Use getConnections() method
Passed (3/3).
- should establish a oneway sending connection... connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
Passed (3/3).
- should establish a oneway receiving connection... Passed (4/4).
- should receive data from 2 [netsend] objects... connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
Passed (3/3).
- should limit the incoming connections to 1... connections property is deprecated. Use getConnections() method
Passed (3/3).
- should create and destroy a one way connection 16 times in a row... connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
Passed (32/32).
- should allow to connect to a manually spawned Pd process... connections property is deprecated. Use getConnections() method
Passed (2/2).
- should dismiss invalid write data... connections property is deprecated. Use getConnections() method
Passed (2/2).
End Port connection: Passed (Passes: 11, Failures: 0).
Port Events (2 Tests):
- should test the scope of all event callbacks... connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
Passed (14/14).
- should create, write and destroy 20 times... connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
Passed (40/40).
End Port Events: Passed (Passes: 2, Failures: 0).
Tests Finished: Passed (Passed: 19, Failed: 0)
similar name https://github.com/disconnectme/port :)
I guess most people using Pd on OS X use millers pre build app or Pd-extended. Assumed that Pd is available on cli on linux. Not sure about how people use Pd on windows. It is currently configurable which pd should be used
Lines 23 to 25 in 812cb52
Personally I build Pd with something like this: https://gist.github.com/thisconnect/1971808 (it's a bit out of date).
Should the pd binary be installed and put into port/bin/pd on npm install
?
current flags option:
flags: ['-foo', '-bar', 'baz', '-bar', 'booz']
proposed:
flags: {
'foo': true
, 'bar': ['baz', 'booz']
}
see also thisconnect/source@c72826f
use basepath to automatically prefix -path flags
breaks with latest socket.io ('Transport Unknown' error).
Works with 'npm install [email protected]'
Nevertheless: awesome module
{
'-path': __dirname,
'-open': 'test-loadbang.pd'
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.