[PD] Q: about PD data structures

Frank Barknecht fbar at footils.org
Mon May 4 08:14:40 CEST 2015


Hi,

On Mon, May 04, 2015 at 01:18:46AM -0400, William Huston wrote:
> What I want to do is to be able to store and recall
> a symbol and also a list given an integer index.
> 
> Like given index 7 might return "SUS4" and [1 4 5(
> and index 9 might return "MAJ7" and [1 3 5 7(.

a long while ago I wrote an [symbolarray] abstraction:
http://lists.puredata.info/pipermail/pd-list/2009-04/069840.html

This already allows storing symbols into an array. By extending the [struct
$0-sym symbol name] structure with an "array" field, you could also make it to
store the interval lists.

Ciao
-- 
Frank

Ciao
-- 
 Frank Barknecht                                     _ ______footils.org__
-------------- next part --------------
A non-text attachment was scrubbed...
Name: symbolarray-help.pd
Type: application/puredata
Size: 2494 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20150504/86d5aa1c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: symbolarray.pd
Type: application/puredata
Size: 4578 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20150504/86d5aa1c/attachment-0001.bin>


More information about the Pd-list mailing list