You can definite make persistent audio interface settings. The preferred way is to set them in your patch.
Preferred by whom ?
I can't picture anyone wanting to set anyone else's audio settings when they send someone else a patch.
I guess you don't work in anything but 44100 sampling rates. I have done projects that use 22050 and 48k, and both won't work right unless the sampling rate is set correctly. Therefore its an essential property of the patch.
But you can often use [samplerate~] in those situations no?
There are some times when you have to know the sample rate beforehand, especially in delay situations where an algorithm depends both on the milliseconds of delay AND the actual number of samples. This can happen in reverb and filter design, and elsewhere. Otherwise this is also a problem in more obvious ways when you're playing sound files -- sometimes I'll make my patches so that if it detects the wrong [samplerate~] it tells the user to close the patch and fix it.
Which reminds me: there used to be a problem with [delwrite~] where it would allocate its memory when the patch containing it loaded, based on the sample rate active at the time, such that if you switched Pd to a higher sample rate after the patch loaded, you'd have the same maximum number of samples of delay, but not the same maximum milliseconds. I remember there had been talk about fixing this, but if it's still a problem, this might be a reason not to set sample rate from the patch.
Matt
On Tue, 8 Mar 2011, Matt Barber wrote:
Which reminds me: there used to be a problem with [delwrite~] where it would allocate its memory when the patch containing it loaded, based on the sample rate active at the time, such that if you switched Pd to a higher sample rate after the patch loaded, you'd have the same maximum number of samples of delay, but not the same maximum milliseconds. I remember there had been talk about fixing this, but if it's still a problem, this might be a reason not to set sample rate from the patch.
I fixed that problem. The fix has been accepted and I think that it went in pd-extended 42.5, but I think that it wasn't listed in the change log.
http://sourceforge.net/tracker/?func=detail&aid=3011594&group_id=557... http://sourceforge.net/tracker/index.php?func=detail&aid=2978457&gro...
It's split over two tickets because I don't really understand the difference between the patch tracker and the bug tracker.
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-03-08 16:46, Mathieu Bouchard wrote:
On Tue, 8 Mar 2011, Matt Barber wrote:
Which reminds me: there used to be a problem with [delwrite~] where it would allocate its memory when the patch containing it loaded, based on the sample rate active at the time, such that if you switched Pd to a higher sample rate after the patch loaded, you'd have the same maximum number of samples of delay, but not the same maximum milliseconds. I remember there had been talk about fixing this, but if it's still a problem, this might be a reason not to set sample rate from the patch.
I fixed that problem. The fix has been accepted and I think that it went in pd-extended 42.5, but I think that it wasn't listed in the change log.
http://sourceforge.net/tracker/?func=detail&aid=3011594&group_id=557...
http://sourceforge.net/tracker/index.php?func=detail&aid=2978457&gro...
It's split over two tickets because I don't really understand the difference between the patch tracker and the bug tracker.
btw, a "bug" issue can be changed into a "patch" issue. i guess you need admin rights for that, though.
fgmasdr IOhannes
On Tue, 8 Mar 2011, IOhannes m zmoelnig wrote:
On 2011-03-08 16:46, Mathieu Bouchard wrote:
It's split over two tickets because I don't really understand the difference between the patch tracker and the bug tracker.
btw, a "bug" issue can be changed into a "patch" issue.
Yeah, but I wouldn't know what that means, because Hans copied the patch from the patch tracker to the bug tracker and marked the patch tracker item as a duplicate and considered the bug tracker item to be the non-duplicate. So, I don't know what the patch tracker is for, compared to the bug tracker, so I don't know why one would or would not change a "bug" issue into a "patch" issue and what it might change or not to the processing of issues.
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC