[PD] symbols with zero paddings and spaces
oliver
oliver at klingt.org
Wed Mar 17 11:40:29 CET 2021
hi, dear list !
when i try to send a symbol containing spaces AND numbers prepended by
zeros with [pdsend], the zeros get truncated in unpredictable ways.
to see what i mean, please do the following:
1.) open the [netreceive] help patch
2.) open a console and try the following command:
========================== LINUX/OSX: ===============================
~$ echo "01 02 0003 004 05.txt" | /usr/bin/pdsend 3001 localhost udp
=========================== WINDOWS: ================================
> echo "01 02 0003 004 05.txt" | "C:\Program Files\Pd\bin\pdsend.exe"
> 3001 localhost udp
=====================================================================
the resulting output from [netreceive -u 3001] will be:
udp: "01 2 3 4 05.txt"
the same is true if a symbol like this is sent from a .tcl script to a
corresponding [receive] object in a PD patch
(using the "::pd_connect::pdsend" function).
is there any way to sent such a symbol untruncated using the methods
above, other than transforming them first to ascii code numbers and send
them as a list of numbers, using [list tosymbol] later in the "PD-world"
to symbolize it?
thanks for all clarifications
oliver
More information about the Pd-list
mailing list