so i've got an array, plom$1, and i load a wavefile into it.
i'd prefer to have a comment, or something, that is displayable via GOP, ´that shows the filename i loaded..
so it'd be easy to take a screenshot and see which files were loaded. i don't need the path, just the filename. any thoughts? can a comment be dynamically written to, can it be shown via GOP, or.. what's the scenario here? makefilename to a slider?
-
can an abstraction show the filename of a file loaded onto an array?
-
@esaruoho Since you say screenshot it sounds like you want this primarily for record keeping, you could just write the file names to a [text] with a time stamp, everytime you load a sample it grabs the time and appends it to the [text].
For graphical viewing a slider is overkill since that adds load to pd since it needs to pay attention to mouse events for the slider, a canvas and its label property will do just fine here. When it comes to arrays I generally place a black canvas over the array name and give it a white or colored label since array names often are not be very useful, just set the canvas receive property and send it the symbol for the text you want to display. Labels have an interesting property in pd, they are the ones thing which can be outside of the bounds of a GOP and will still display which can be useful.
-
If i understand this correctly, i had this problem and came up with the following solution...
from my [read] object i connected to a [list] object...
and connected that to a Ctrl-4 , "put-style" list display...
the list display now shows " read resize- /entire/file/path/to/filename.wav array1 " after loading a new file.this is way too big to be shown in GOP for my purposes, so it is inside the patch and i just open it to see... i can later use the info to make loadbang messages to load my preferences.