PD in a command-like window?
@Sebastien Hello Sebastien.
Yes, Pd does talk directly to the OS, and uses Tcl/Tk (the "Wish" application) for its GUI.
For what happens under the hood start reading here....
http://puredata.info/docs/manuals/pd/x2.htm
Look around on that site for answers, and then come back here with any questions.
Many very clever people have written (in C) externals that can do more than the basic installation, and in some cases can communicate with other programs and the OS.
Pd and Wish communicate through a port, so you might be able to sniff the traffic.
But I think they both make direct function calls to the OS, like any other program.
You can call Tk functions directly, and you can use [message( boxes to interact with those functions. In extended there was a small window at the bottom of the Pd terminal for sending directly to Tcl, and also an object...... [sys_gui] for sending from within a patch.
In 046.7 vanilla the prompt was hidden behind the help menu..... and now it seems to be gone.
I am sure it can be recovered from the old Tcl code.
But to script a command yourself you would have to make a "plugin" to be run and built into Pd at startup.
You will find everything on the Site I have linked to above.
........
http://puredata.info/docs/manuals/pd/x4.htm for C C++ and Fortran.
http://puredata.info/docs/guiplugins/GUIPlugins/ for plugins.
https://puredata.info/community/pdwiki/PdInternalMessages
etc.
David.
Purr Data 2.3.3
placing another path gives as a result:
MacBook-Pro-de-Federico:~ federicocogo$ plutil -convert json -r -o - /Volumes/Macintosh HD/Users/federicocogo/Library/Preferences/org.puredata.pd-l2ork.plist | sed -E -e 's/[{}]//g' -e 's/^ "(([^"]|\.))" : "(([^"]|\.))"./\1: \3/' -e 's/\(.)/\1/g'
/Volumes/Macintosh: file does not exist or is not readable or is not a regular file (Error Domain=NSCocoaErrorDomain Code=260 "The file “Macintosh” couldn’t be opened because there is no such file." UserInfo=0x7feef9601640 NSFilePath=/Volumes/Macintosh, NSUnderlyingError=0x7feef96013b0 "The operation couldn’t be completed. No such file or directory")
HD/Users/federicocogo/Library/Preferences/org.puredata.pd-l2ork.plist: file does not exist or is not readable or is not a regular file (Error Domain=NSCocoaErrorDomain Code=260 "The file “org.puredata.pd-l2ork.plist” couldn’t be opened because there is no such file." UserInfo=0x7feef9513b80 NSFilePath=HD/Users/federicocogo/Library/Preferences/org.puredata.pd-l2ork.plist, NSUnderlyingError=0x7feef95062c0 "The operation couldn’t be completed. No such file or directory")
MacBook-Pro-de-Federico:~ federicocogo$
Uninstall from Ubuntu 16.04
@EEight It doesn't work, because it says that "El paquete «puredata» no está instalado", that puredata is not installed... isn't it rare?
anibal@anibal-ubuntu:~$ sudo apt-get purge pd
[sudo] password for anibal:
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Nota, seleccionando «puredata-core» en lugar de «pd»
Los paquetes indicados a continuación se instalaron de forma automática y ya no son necesarios.
libgsl0ldbl ttf-dejavu-core
Utilice «sudo apt autoremove» para eliminarlos.
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 2 no actualizados.
anibal@anibal-ubuntu:~$ sudo apt-get purge puredata
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
El paquete «puredata» no está instalado, no se eliminará
Los paquetes indicados a continuación se instalaron de forma automática y ya no son necesarios.
libgsl0ldbl ttf-dejavu-core
Utilice «sudo apt autoremove» para eliminarlos.
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 2 no actualizados.
anibal@anibal-ubuntu:~$
Then I did:
anibal@anibal-ubuntu:~$ sudo apt-get purge puredata-core
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Los paquetes indicados a continuación se instalaron de forma automática y ya no son necesarios.
libgsl0ldbl ttf-dejavu-core
Utilice «sudo apt autoremove» para eliminarlos.
Los siguientes paquetes se ELIMINARÁN:
puredata-core*
0 actualizados, 0 nuevos se instalarán, 1 para eliminar y 2 no actualizados.
Se liberarán 2.680 kB después de esta operación.
¿Desea continuar? [S/n] s
(Leyendo la base de datos ... 242946 ficheros o directorios instalados actualmente.)
Desinstalando puredata-core (0.46.7-3) ...
Purgando ficheros de configuración de puredata-core (0.46.7-3) ...
Procesando disparadores para man-db (2.7.5-1) ...
anibal@anibal-ubuntu:~$ pd
anibal@anibal-ubuntu:~$
...and I launched pd fine... The puredata-core corresponded to an earlier installation. Thanks!
Purr Data rc5
Purr Data release candidate 5!
- small fixes to OSX app bundle name and build instructions
- fixed OSX app bundle name
- fixed GUI errors with some GUI objects on GOP
- use cat icon for patches
- fixed a [grid] crasher with binding symbol leak
- fixed [grid] line drawing bug and GOP xlet display
- added dialog and scale handle for [grid]
- ported moonlib/knob
- get rid of some extraneous debugging messages
- allow to install Purr Data alongside Pd-l2ork
- Scope~ code cleanup
- fixes for arm build
- added some OSX app bundle dependencies for [fluid~] and others
- fix saving preferences under OSX
- added startup paths and libs to preferences dialog
- use "Purr Data" in OSX menu app
- help browser fixes
- fixed MIDI preference saving on OSX and Windows
- added a "Recent Files" menu to the "File" menu
- get consistent behavior for present working directory when opening/saving files
- fix Volume name for OSX dmg installer
- try to standardize a deterministic package name when compiling Purr Data
- add a Pd-l2ork-specific version number
- add command line open args to "Recent Files" list
- fixed crasher with ds "canvas" field
- allow saving the zoom level per canvas
please report lots of bugs to
https://git.purrdata.net/jwilkes/purr-data/issues
Binaries:
Purr Data rc4
Edit: Windows binary is now up
Purr Data release candidate 4!
- fixed race when opening pd file in OSX
- partial fix for midi prefs not getting saved under Windows
- fixed #194: saving a loaded abstraction gives errors
- fixed for #201: new subcanvas position isn't saved with patch
- sync the ALSA sequencer port state with the GUI
- reset ALSA MIDI device handles and event buffers when closing
- got rid of more debugging output
- go ahead and allow curly braces in Pd messages
- replace the Pd-extended output~ abstraction with Alexandre Porres' improved version
- report userful value for "dsp-status" method of [pdinfo] by ignorning suspend/resume
- fixed display of dollar signs in properties dialogs
- fixed loading of lyonpotpourri and disis libraries
please report lots of bugs to
https://git.purrdata.net/jwilkes/purr-data/issues
Binaries:
Purr Data rc3
Purr Data release candidate 3!
- fixed race with [dsp-state(--[pdinfo]
- fixed preference saving on Windows 10
- small fix to the prepend.pd abstraction for cyclone to take variable number
- fixed receive symbol in number box
- fixed help menu links
- fixed vu scale font size
- fixed [table] default array display
- improved canvas find
- fixed problem with resizing [cnv] label
- fixed scalar bbox calculation for [plot] et al
- fixed stray errors with ds fields
- fixed openpanel/savepanel GUI errors
please report lots of bugs to
https://git.purrdata.net/jwilkes/purr-data/issues
Binaries:
Purr Data rc2
Purr Data release candidate 2!
- add delread4~ alias for vd~
- load Gem dependencies properly under Windows
- add help menu item for list of internal classes
- various help patch cleanups and fixes
- change zoom/fit keyboard shortcuts so they work on all platforms
- localize the canvas right-click menu
- small fixes to prefs menu and edit menu
- fix bug with color updates for iemguis
- zoom correctly on OSX 10.8
please report lots of bugs to
https://git.purrdata.net/jwilkes/purr-data/issues
Binaries:
OSX 64-bit Caught in a Trap Edition (10.8)
[Edit: typo in the name of the Elvis tune]
Purr Data rc1
Purr Data release candidate 1!
- fix for iemgui colors not getting properly updated
- allow opening a file at OSX startup
- fix weird behavior when dragging files onto a Pd patch
- remove more debugging statements
- fix slider display error
- fix "Select All" on OSX
- fix allowed characters in atom box dialog
- forward console key events to Pd
- change [draw group] to [draw g]
- add fit width/height/optimal zoom shortcuts
- fix consistency bug with [draw]
- put "Window" menu in the customary position next to "Help" menu
- fix clipboard operations for patch snippets
- some translation fixes
- some Pd-l2ork fixes backported
- improvements for opening files in the same instance
please report lots of bugs to
https://git.purrdata.net/jwilkes/purr-data/issues
Binaries:
Purr Data Beta 4
Purr Data Beta 4!
This is the GUI port of Pd-l2ork from tcl/tk to nw.js. Canvas zooming, svg-based data structure drawings, GUI theming, and more...
- automatic translations based on system local (plus German translations)
- added ds tutorial for field parameters
- fixes for automatic multi-connection behavior
- fixes for preset_hub/node
- fix for resizing [cnv] with mouse
- fixes for OSX Makefile
- add feature to open files in the running instance
- port unauthorized/grid
- various other bugfixes
This is a beta release, so please report lots of bugs to
https://git.purrdata.net/jwilkes/purr-data/issues
Binaries:
Purr Data Beta 3
Purr Data Beta 3!
This is the GUI port of Pd-l2ork from tcl/tk to nw.js. Canvas zooming, svg-based data structure drawings, GUI theming, and more...
- fixed "stale pointer" bug when re-opening a subpatch on a scalar that has an event handler
- added ds tutorial for field parameters
- removed more debugging messages
- updated ds tutorials, add coords tutorial for ds shapes
- fixed stroke-linecap "square" style
- use standard "d" attribute instead of "data" for setting svg data
- fixed for the open dialog
- added feature to format path data into a FUDI message
- added table of contents to help browser
- fixed crasher with scalar dialog handling of vector data
- fixed data properties dialog positioning
- fixed typos in drawnumber_vis that caused sizing bug
- check scroll bars after zooming the canvas
- allow doc/ and extra/ prefixes to search a particular directory (instead of
a natural language search) - allow browsing the docs using native file dialog
- fixed small bugs in the doc search engine
- fixed font size bug on newer versions of Gnu/Linux
- fixed pdogg dependency, bump version to 0.25.2
- fixed regression with broken object box getting recreated with a superfluous cord connection
- now using homebrew on OSX instead of macports (faster install time, smaller install size)
- fixed stroke-dashoffset to stick when scalar is re-vis'd
- lots of other small fixes here and there...
This is a beta release, so please report lots of bugs to
https://git.purrdata.net/jwilkes/purr-data/issues
Binaries: