hcs
A miscellaneous collection of Pd externals and abstractions originally associated with Hans-Christoph Steiner. It includes utilities for GUI interaction, filesystem and system information, sensor-data processing, and objects such as autoscale and cursor.
- Repository Source code
- Issues Report or browse issues
Contributors
People who contribute to this project.
Objects
- ISOdate
ISOdateoutputs the current date as a symbol in ISO format. - ISOtime
ISOtimeoutputs the current time as a symbol in ISO format. - ascii2int
ascii2intconverts a stream of ASCII digit values into a single integer value. - autoscale
autoscalescales a stream of numbers to an output range, with examples using ranges such as 0–1 and −0.01–0.01. - blocksize_in_ms
blocksize_in_msoutputs the current block size in milliseconds rather than samples. - ce_path
ce_pathreports canvas-local paths, outputting the next path as a symbol each time it receives a bang. - classpath
classpathreports the paths in Pd’s global classpath, outputting each path as a symbol. - colorpanel
colorpanelis a graphical color chooser that opens a color picker and outputs the selected color as a list of red, green, and blue values. - cursor
cursorsets the mouse cursor used for a Pd patch, with choices such asarrow,clock, andcoffee_mug. - debounce
debounceis a control filter for debouncing incoming events, and this help patch states that it currently handles floats and bangs. - debug
debugis a simple control object for managing the flow of print messages, useful for testing. - embed
embedhides the Pd window when creating an embedded application. - file_type
file_typefinds the file type of a file specified by a symbol path. - float2ascii
float2asciiconverts an input float to an ASCII symbol for control-rate conversion. - folder_list
folder_listoutputs a listing of files that match a wildcard pattern, defaulting to the directory from which Pd was launched when no argument is supplied. - get-audio-dialog
get-audio-dialogretrieves the Audio Settings so they can be saved as part of a patch. - get-midi-dialog
get-midi-dialogretrieves Pd’s MIDI settings so they can be saved as part of a patch. - gid2group_name
gid2group_nameconverts a UID to a username and outputs the result as a symbol. - group_name2gid
group_name2gidconverts a filesystem group name to its numeric GID. - helppath
helppathoutputs each path in Pd’s global classpath as a symbol. - hostname
hostnamegets the hostname of the machine. - ifeel
ifeelcontrols the pulse of an iFeel mouse, with the device path supplied as an argument (for example,/dev/input/ifeel0). - make-audio-dialog
make-audio-dialogtakes the audio-dialog message produced byget-audio-dialog. - mouse_region
mouse_regionoutputs mouse coordinates as a list only after the user clicks, for use with control-rate user input. - noquit
noquitoverrides quitting Pd, making it useful for installations and performances where normal quitting should be disabled. - passwd
passwdfetches filesystem password-database information for a user specified by UID or symbolic username, outputting fields such as username, UID, GID, home folder, and shell. - pointer_position
pointer_positiongets the pointer’s current x and y location in a Pd canvas. - pwm
pwmperforms pulse-width modulation at message rate, providing a control-rate PWM signal from two float inlets to one float outlet. - pwm~
pwm~generates pulse-width modulation at audio rate and outputs a signal. - screensize
screensizereports the current screen resolution for control use. - setenv
setenvsets system environment variables and outputs a symbol. - split_my_msgs
split_my_msgssplits a stream of incoming messages between two outlets, serving as a control-message filter. - split_path
split_pathsplits an input path symbol into a path and a filename, outputting each as a symbol. - sql_query
sql_queryrepresents an SQL query and supports query text containing?placeholders, as shown by the INSERT example. - stat
statgets information about files, including metadata such as size, ownership, allocation, links, and access/modification/status-change timestamps, without changing the file. - tcl_version
tcl_versionreports the current Tcl/Tk version. - tkconsole
tkconsoletoggles the visibility of the Tcl/Tk Wish Shell on which Pd’s GUI is built. - uid2username
uid2usernameconverts a numeric user ID (UID) received as a float into a username symbol. - uname
unameretrieves uname system information when it receives a bang. - unsetenv
unsetenvremoves an environment variable, making it useful for clearing environment settings. - username2uid
username2uidconverts a username symbol to its numeric UID, supporting filesystem-related control tasks. - version
versionreports the version of the currently running Pd. - window_name
window_nameoutputs a symbol naming a Pd patch window, for use when addressing that window through GUI commands such assys_gui.