[PD] array define read from file does not auto resize array
Jack
jack at rybn.org
Sat Jul 11 12:44:42 CEST 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I guess, your textfile seems to contain only one (or several) line
with floats.
A better way could be :
[read filename, rewind, bang(
|
[textfile]
|
[t l l]
| |
| [list length]
| |
| [array size arrayname]
|
[array set arrayname]
Dont forget [array define arrayname] somewhere in your patch.
a note : if you use [array], you could use [text] instead [textfile].
++
Jack
Le 10/07/2015 21:31, Billy Stiltner a écrit :
> instead this is used
>
> [read filename, rewind, bang( [textfile] [t l l] / \ [list
> length] [t b f] | \ [array size arrayname] \ / [list]
> [array set arrayname]
>
> Is there a better way to do this?
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list UNSUBSCRIBE and
> account-management -> http://lists.puredata.info/listinfo/pd-list
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJVoPOaAAoJEOuluecjw8GUhjoH/3pJzaE+JFo2LinpK5gpAQHl
m0KqfEd7a/rwlhnWwjDvYkdiIzwD26RrortoDgrB5cEVdqoKKd/AWtRLhwDet+lJ
r+OSCoKI9ykPsbrItaO1RkGyWpmoNYDPpODcaeKvw18nejJ9MpRdO6aifVUSfOd9
3u4QsuMw0h1o07MHblQtQNrvR5dxvFykJbOBqhVtpG+ygPl6v5jfb5WTCq7LYpFS
vV8B0RiOFlQMG1IT2PdJyJy338uq9uV+f+gfJRCwUdGC5tI/YTk4hWa9c0R/Hol1
AWtWgRamXPwjCu0AF12HSyCzmY6D2aqqrs/dyJgtYNqQM3LXtOM/ZcFXB82jj9I=
=dJIl
-----END PGP SIGNATURE-----
More information about the Pd-list
mailing list