[possible enhancement?] Ability for an abstraction to track buffer info changes
I have an abstraction for granular synthesis where the user is responsible for buffer management. (You might want to have several granulators running at the same time using the same source data; if the abstraction manages its own buffer, then the only way to handle that case would be to load the data multiple times redundantly.)
The audio playback portion should also take the buffer position (ms) modulo file duration (ms).
AFAICS there is no way, short of writing an external, for the abstraction to trigger [info~] when the buffer size changes for any reason. The only real workaround is to run a [metro] to check several times a second, "just in case." That's... sorta OK? But I'm not really crazy about the redundant activity.
One possible enhancement could be a buffer notifier, like [bufnotify~ x]: send a bang when something changes about 'x'.
Another could be an attribute for info, like [info~ x @auto 1]. @auto 1 would output data when the buffer changes. @auto 0 would output only on an explicit bang from the user.
For this type of question, I like to compare against other software. I'm pretty sure PD has no facility for this. In SC, I could create my own '/b_info' message responder, and then figure out some kind of dispatch from there. So that's one point for "eh, no need" and one for "hm, maybe" :wink:
No expectations, just on my mind just now.
hjh
if i am not mistaken: but you know when the size is changed or a read or replace message has been sent?