[PD] Fwd: filename from path
Jack
jack at rybn.org
Tue Dec 1 14:22:24 CET 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
Some abstractions for array-abs (matt, if you can add them to your
array-abs set) :
[array-split] : split a symbol in many symbols depending of a
character (you can make a [array-filename] with it, see help patch)
[array-filename] : get the filename or last directory of a path
(faster than [array-split])
[array-drip] : drip all values in an array
[array-pop_index] : pop a value from an array depending of a specific
index (in the help file there is an exemple to pop the last value of
an array).
++
Jack
Le 01/12/2015 01:21, Simon Iten a écrit :
> for reference...
>
>> Begin forwarded message:
>>
>> *From: *Matt Barber <brbrofsvl at gmail.com
>> <mailto:brbrofsvl at gmail.com>> *Date: *1 December 2015 at 00:41:32
>> GMT+1 *To: *Simon Iten <itensimon at gmail.com
>> <mailto:itensimon at gmail.com>> *Subject: **Re: [PD] filename from
>> path*
>>
>> A couple things to check out that will be better practice:
>>
>> [until] instead of [metro]
>>
>> [array size] instead of a [resize $1( message is better syntax in
>> some places. And no need to resize the array every time (this is
>> trivial in most situations, but it's not impossible that someone
>> would want to use this in a heavy load).
>>
>> Use of $0 for locality.
>>
>> Above all -- [trigger] to control order of operations, which are
>> a little ambiguous in your patch.
>>
>> See attached for an alternate design.
>>
>>
>> On Mon, Nov 30, 2015 at 5:52 PM, Simon Iten <itensimon at gmail.com
>> <mailto:itensimon at gmail.com>> wrote:
>>
>> here is a vanilla implementation, not sure if it is the easiest
>> way, but it works here…
>>
>> thanks for the guidance matt!
>>
>> simon
>>
>>
>>
>>> On 30 Nov 2015, at 23:35, Matt Barber <brbrofsvl at gmail.com
>>> <mailto:brbrofsvl at gmail.com>> wrote:
>>>
>>> I also made a [list-s2l] using a bunch of printf commands
>>> from [makefilename]. I haven't looked at it in ages – it was a
>>> few years ago (2009?), and is kind of slow, but I think it
>>> works. See attached (requires list-abs).
>>>
>>>
>>>
>>> On Mon, Nov 30, 2015 at 5:05 PM, IOhannes m zmölnig
>>> <zmoelnig at iem.at <mailto:zmoelnig at iem.at>> wrote:
>>>
>>> On 11/30/2015 10:08 PM, Simon Iten wrote:
>>>> is it possible to get only the filename from openpanel? (in
>>>> vanilla)
>>>
>>> not vanilla: iemlib's [splitfilename] does exactly what you
>>> want not vanilla either: zexy's [symbol2list]/[list2symbol]
>>> let's you build that easily
>>>
>>> vanilla only solution: see matt's suggestion using the new:
>>> [list (to|from)symbol] objects
>>>
>>> fgmas IOhannes
>>>
>>>
>>> _______________________________________________
>>> Pd-list at lists.iem.at <mailto:Pd-list at lists.iem.at> mailing
>>> list UNSUBSCRIBE and account-management ->
>>> http://lists.puredata.info/listinfo/pd-list
>>>
>>>
>>> <list-s2l.zip>_______________________________________________
>>> Pd-list at lists.iem.at <mailto:Pd-list at lists.iem.at> mailing
>>> list UNSUBSCRIBE and account-management ->
>>> http://lists.puredata.info/listinfo/pd-list
>>
>>
>>
>
>
>
>
>
>
>
> _______________________________________________
> 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
iQEcBAEBAgAGBQJWXZ8EAAoJEOuluecjw8GUTz4H/jpZKXECSSRxLXjnsBY3Fxu2
bITfVO2dj9LKlfRjD5sBt5OtP80WbkBhKbwXfIIMO3g7ayowVwN9loP1pszyAsy9
yDO9IVnXIDhQj9T6wfOOCYCKmnZQByWrEN8IHtUwL/foiXMTRa1VamE7G/R/JWC/
HsmLbsILRTSrCfXOh4ME4I2O5OVPvvbUQ4zTbCQvCjxj6TrI8+9DNYYIqk47G+fh
EGU4FD4KrQpf6UHjBiSAy9w6awXwReiXovbjwLdr5rFiZVoOeK3piztqTK1zrE+d
j20KpqS01vWPVVG43JHYF8XBXHX4VAfEyieSsTOPNHqrOl1jTw3OwZbJ7tQX3YE=
=obia
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array-pop_index.pd
Type: application/puredata
Size: 981 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151201/47ef0222/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array-pop_index-help.pd
Type: application/puredata
Size: 601 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151201/47ef0222/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array-filename-help.pd
Type: application/puredata
Size: 485 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151201/47ef0222/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array-filename.pd
Type: application/puredata
Size: 1379 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151201/47ef0222/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array-split-help.pd
Type: application/puredata
Size: 706 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151201/47ef0222/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array-split.pd
Type: application/puredata
Size: 1230 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151201/47ef0222/attachment-0005.bin>
More information about the Pd-list
mailing list