sebpiq / pd-fileutils Goto Github PK
View Code? Open in Web Editor NEWA node module providing various utilities for Pure Data files.
License: BSD 2-Clause "Simplified" License
A node module providing various utilities for Pure Data files.
License: BSD 2-Clause "Simplified" License
Otherwise the SVG is cropped inside the page :
<!doctype html>
<html>
<head>
<style>
body {
background-color: black;
}
img {
background-color: red;
}
</style>
</head>
<body>
<img src="https://enzienaudio.com/a/dave?fetch=https://raw.githubusercontent.com/mhroth/ZenGarden/master/test/MessageInteger.pd" />
</body>
</html>
Add support for it. First maybe find what it is :)
For some reason, comments are being shown higher than expected. These can cause some conflicts, since comments are sometimes used to describe an object to its immediate side. E.g., look for the two comments <- input 1, 2, 3 or 4 here
and <- input a, b, c or d
in the following patch:
Corect display: http://forum.pdpatchrepo.info/uploads/files/upload-cf44d166-49be-4ef4-9adb-dd90079f8d3b.png
I would like to suggest making signal cords thicker (or rather message cords thinner), as with regular Pd, so that they can be easily identifiable. As of now, it's kind of tricky to see which patch cords are carrying signals and which aren't, e.g.: https://enzienaudio.com/a/dave?fetch=http://www.pdpatchrepo.info/hurleur/vfreeverb~alt.pd
In the render function, there shouldn't be d3.select('svg').remove()
cause it will remove svg elements if called in a web page.
https://github.com/sebpiq/pd-fileutils/blob/master/lib/svg-rendering.js#L41
I found two displaying problems with objects in general. The first is that objects are not limited in span as they are in pd vanilla, extended or l2Ork. The second one is when an object contains a comma (such as when using [expr if]), the comma is displayed as , and not simply ,
These problems may also appear in messages, although I haven't test that yet.
Example. Compare this...: https://enzienaudio.com/a/dave?fetch=http://forum.pdpatchrepo.info/uploads/files/upload-4b5f0aba-6363-4f49-975f-df5a26f4a66a.pd
...to this: http://forum.pdpatchrepo.info/uploads/files/upload-76b1b5da-45ac-48be-b406-a93c883518cc.png
EDIT: I also noted that the messages are truncated. Where the png shows [0.123456789( pd-fileutils shows [0.1234567(
I don't really know ... is that really useful?
When one types a semicolon inside a message in Pd, next time the patch is opened there is a line break between the semicolon and the rest of the message. Currently, pd-fileutils does not do that (see both messages in the right side of the patch below):
Corect display: http://forum.pdpatchrepo.info/uploads/files/upload-cf44d166-49be-4ef4-9adb-dd90079f8d3b.png
The width of an object is written in a .pd file as , f <n>
, where is a number (note that only pd vanilla and l2ork can change the width of an object). Pd-extended, for instance, is programmed to ignore such (which is fairly easy, since no object name can contain a comma). The same should be applied to pd-fileutils: either ignore these information or make use of it for correct width, but do NOT display it such as below (see the last [unpack s s] in the very bottom of the patch which contains an , f 14
):
Corect display: http://forum.pdpatchrepo.info/uploads/files/upload-cf44d166-49be-4ef4-9adb-dd90079f8d3b.png
Build for the browser and test it
When rendering to pd, ids are inferred from position of the object in the file, so we should check that when creating/rendering a patch, ids are contiguous.
In parsing.parse, make a nicer format for when the graph is parsed.
d'oh ....
d3 is broken.
Hi all,
Arrays are not displayed.. They show up simply as a box with the word "graph" written in it...
Anyone else with the same issue?
Tiago
portlets positions on the canvas matter cause they determine the inlets / outlets indices of the instantiated object.
For example to test that the argument is what expected "send" and "receive" arguments of controls should have a value in the patch, etc ...
Now, all controls "vradio", "tgl", ... are just boxes, they should be rendered with a similar skin than in pd.
vu, sliders, bangs, ...
uniformize to table ?
Comments in pd patches are rendered on a single line, even though the text-box has line-breaks.
Work-around is to specifically create separate text-boxes for each line, but this is very tedious (and writing docs is already a lot of effort).
Ideally pd-fileutils takes into account multi-line text
objects and renders them accordingly.
The json format for pd :)
For example expr if($f1 === 1, 1, 0)
commas are clearly not arguments separators ... on the other hand in a message [1 100 0, 2 100 100(
they kind of look like!?
A stub is in README.md right now. Maybe move it to a wiki.
dependencies, etc ...
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.