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
nevermind....i guess a message-created object needs to be followed by a loadbang message to trigger it - not sure i understand why but makes sense that it worked
Just found this post, cheers hardoff you've saved me a load of head scratching and staring at the monitor!
Just an idea: I really like the way this forum is structured: patch, abstraction, etc. Makes it easy to search.
Another great section to have would be: tutorials.
With time, a nice collection could be built.
Most useful to newcomers.
sounds like a good idea. it's up to the users of the forum to add stuff now
Mod, thanks so much for implementing the suggestion.
Cheers
Samuel
Aaahhh, thanks for bringing this old thread up, now I finally get 'graph-on-parent', one of the most mysterious PD terms
@mod said:
sounds like a good idea. it's up to the users of the forum to add stuff now
You could also move threads like this one into the new subforum. If it's not possible or preferable, we could just copy/paste the text from the OP into a new thread.
Hey, dudes. Been reading a bunch about $0 the last two hours, and I think I'm missing something somewhere. Trying to make a sampler abstraction, and I know the concept behind $0, but can't put it into practice.
First thing is in relation to a table. I renamed it from "Sample" to "$0Sample". Can tables not use this argument? Once I put the same into anything referencing the table, I get "0Sample: no such table". If tables can't use the argument, what ways around it are there when using more than one?
Second thing is $f1. How do use the argument for this? Is it needed?
I think I managed to get one example of it to work, but as I'm not too sure about how it even works, I guess I'll find out when it's finished.
Here's the patch, if it helps.
Your 2 questions are related I think.
You can use $0 in objects, arrays/tables names, send/receive in gui properties etc... but you can't use it like this in a message block. Instead you have to use $1 in it and send it a message. Check the help by clicking on a message block for some examples.
I've modified your patch, you don't need this [f $0] by the way. $1 and $2 in the read message are replaced with the file name and the name of the array ($0Sample in this case). Hope it helps.
Ah, right! I see, now. I wasn't too sure about what Pack was doing, now it's much clearer.
Oops! Looks like something went wrong!