this is a quick explanation of the role of abstractions in pd, and why it is useful to use $0, $1, etc.. inside these abstractions.
ok. say you want to create a very simple sample player. you'd do something like this.
[0] <-- gui bang object #1
What is an abstraction, and why use $0, $1, etc ??
this is a quick explanation of the role of abstractions in pd, and why it is useful to use $0, $1, etc.. inside these abstractions.
ok. say you want to create a very simple sample player. you'd do something like this.
[0] <-- gui bang object #1
Sorry Mod, as you can see in the links Maelstorm mentions your post, naturally I thought ..... wrongly.
Nice post though, thanks.
Hi mod,
Thanks for a very clear explanation. I got it now. There's something a bit weird going on when I use the [sample-playa] abstraction: every time I open a file, the table [$0-my-sample] appears on the parent patch as well. I placed 2 [sample-playa] abstractions in the parent patch and got two tables on it. Is it a bug or something?
Thanks!
i think my original patch here will play a different sample from each patch. If you want to play the same sample over a series of patches, then you need to make a global name for the sample array.
is that the issue?
if not, then post your patch with some annotation of the issue. and it should be easy to figure out
Hi mod,
I attach the patches (the ones you wrote in text format in the post)+ a photo of the vicious "bug". After you load an audio file, and right-click-open the abstraction, the table appears in the parent patch.. (I can't move it or delete it from there)...
well, there is an error in your patch, that it uses tabread4~ instead of tabplay~. but that's not the cause of the GUI issue.
yes, i think this is a bug. i have no idea why the table appears on your parent patch. hmmm.... it does not behave that way here. i wonder why it does that for you?
anyway, your patch uses a GUI array in the sample-playa abstraction, so how about if you change that to a non-GUI table?
Yes, you're right about the [tabread4~]...
and your suggestion works perfect! Thanks mod 
Am I crazy or is almost all of the content of this post missing? Looks like it would be very useful info, but, alas.
@jorbecke I am not qualified to opine on your mental health, but if you are referring to the hurleur links going nowhere, then it might be a Google Chrome thing. Is that what you're using? If so, try another browser. Otherwise I'd have more modest expectations of a 13 year old thread 
Hi there, thanks for your reply. What I was referring to is that all I see at the top of this post is a few sentences and then the remainder of the content is missing (I'm using Firefox btw). In the first comment you can see a page where someone translated this post into Spanish and it is quite long, much longer than what I can see. Is there some non-obvious way to expand the post to see all of the missing content?
You can find information on abstractions and the dollar arguments here http://pd-tutorial.com/english/ch05.html. Go to 5.1.1.2 which is focused on abstractions.
Oops! Looks like something went wrong!