reduzent / netpd

Collaborative Realtime Networked Music Making Environment (MK II)
https://netpd.org
GNU General Public License v2.0
62 stars 5 forks source link

unpatch: patches are modified during transmission #37

Open reduzent opened 2 years ago

reduzent commented 2 years ago

Some objects in patches contain information about box width. The lines in patches containing box width information are broken up into two lines.

This:

#X floatatom 26 77 5 0 0 0 - - -, f 5;

is converted to:

#X floatatom 26 77 5 0 0 0 - - -;
#X f 5;
reduzent commented 2 years ago

Neither [textfile] nor [text ] are able to add messages ending in comma, although [text get] is able to distinguish between messages ending in comma (type 1) and message ending in semicolon (type 0). Although the files are modified, the end result is syntactically the same as the original. So, this modification is actually harmless. To avoid any future confusions, maybe all instruments and abstractions should be saved in the second form, so they won't get modified during transmission anymore.

reduzent commented 2 years ago

There is a feature request for puredata to allow [text set] and [text insert] to set a type. Once this is implemented, this issue can be addressed. However, it's actually only a cosmetic thing, not too important.