give umenu with prefix a "title"
i’m using umenu to call up samples such as drums for examples. one umenu for kicks, one for snares, etc. each group is in a different folder. i have the menus populated but it gets confusing as to what umenu is for what so i want each one to display a title in the first slot. so for one umenu it’ll say "snares" and then in the drop down will be "dry1.aif", "reverb1.aif" etc.
could i have a umenu with just the "snares" as the menu text and then append the file names? i tried to do this with autopopulate on and it just erased the "snares" option. could i prepend "snares" on load to an autopopulated menu? i just see append and setitem options.
you could not use autopopulate but only "append" for
loading the filenames, then it is easy to make the
item 0 something custom.
i’m still confused how to append the list of files. an example patch would be of great help.
here is one way:
----------begin_max5_patcher---------- 752.3ocyWEzaZCCE9b3WgUzNxfXGRJt25T2zNrsCqZmlplBIFvUI1QwNZzU0 +6K1Ngx5LEGEf1CXvu7h4688d9yO+vHO+E7MDgO3RvOAddOLxySaRYvqctme Qxlz7Dg1MeF427E24O17HIYiTatrhxjcVoYZaM989vnNiK4LIKofnezUUzj7 tmvpKnrbhT+G.2wcA8OZ2gnIAO4KuV14bm0xDY5ZJa0upHoRSz.iBZdI.BOS 8UndD0XBbq5UdbzH0v3gEzRPNH2VPO6TFznVqFSx6KIlH12ebyGvs6mSBuPw BPngRPShN9TRUCpHfa91Ue+i2XgYP32lLyEy00GwpUFfgCpXofHDIqHV1hPV R2.dGzFuLum7BpO7Bbu7xKwIPbntbAiUeEYpcleJJWRyIIU1XEza58QwZhI9 hAUsrnVJ4LKAOD8hgniY3EIrUNDKHbWPbJTIW.VXK.CdUxtZFYryLSD9Hb9w 9jDzE9iAIkkDV19UMwu8DGZ2BXzFfgwCRbntfvpscN5giaEda6eYKb6SQiQT VuteMIsoGFtXM3yWe4zeHHUho2TWVxqjSulmp.oTLsn3NfPVub4zv4S9PEc0 Z4WTChIqxuubM3S77LR0TeqbcXWLJIEsn1uKqC7GqFrtpSJZJX57X4lVi2sQ 7TN5+Re59wbVLCYpvgAmDIfkZRwlB+ql.uhdbn.el9LvYvSAqvU65ahT9Jfh frIQ9pQONpNZZUBirRO5W2Omxd9MLzKmx9+xYBdcUZGH55VD.2hhLhPRYIRZ y4kO4j5FFffsNsllkQX6d4fBZVIuIcuUlvZFzULo5s+fXR0NWevTbfQFs8TX cm45YGCvFbHvdV4OnCH5Yv9TCIjKjz4kkBcoHCedYo4tj45GjZK0QnHsJa71 ICEqHWDN5GVwyz6JauTz7HS+O6NCEFrSXDFL3v.5RkopM5y492.Wvz4GRGJa 2yMKwPURrKupF282s4cSlVOYfg.93u25YGEO5wQ+ELWWUdB -----------end_max5_patcher-----------
now i’m feeling foolish. i loaded a folder into the menu using the bang but it still just says "SNARES" only now the prefix inside inspector is set to the folder i chose. no files were added to the menu. is there a step i missed? i’m sorry for all the trouble.
You will need to send the folder object a ‘types’ message with the type of file that you want to see. folder defaults to type TEXT.
If you want to see all file types, you can just send the ‘types’ message without any typecode.
ah! thank you! i’m not very experienced with the folder object so i forgot about the types message. problem sovled.
Forums > MaxMSP