hi all,
i'm experiencing some strange behaviour with get_sysblksize(). when running this function in an external that runs in a subwindow with overlapping, this function returns the blocksize/overlapping, but not the blocksize... is there another function for the blocksize or will i have to edit it manually?
thnx...
Tim mailto:TimBlechmann@gmx.de ICQ: 96771783 http://www.nyds-exp-discogs.tk -- The only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww!" Jack Kerouac
I think there's no way to find out overlap from within an extern. You can get blocksize by waiting around for DSP to start and looking at any signal input or output.
cheers Miller
On Fri, Sep 12, 2003 at 12:18:09AM +0200, Tim Blechmann wrote:
hi all,
i'm experiencing some strange behaviour with get_sysblksize(). when running this function in an external that runs in a subwindow with overlapping, this function returns the blocksize/overlapping, but not the blocksize... is there another function for the blocksize or will i have to edit it manually?
thnx...
Tim mailto:TimBlechmann@gmx.de ICQ: 96771783 http://www.nyds-exp-discogs.tk -- The only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww!" Jack Kerouac
-- Tim mailto:TimBlechmann@gmx.de ICQ: 96771783 http://www.nyds-exp-discogs.tk -- The only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww!" Jack Kerouac
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev
On Tue, 16 Sep 2003 23:00:35 -0700 Miller Puckette mpuckett@man104-1.ucsd.edu wrote:
I think there's no way to find out overlap from within an extern. You can get blocksize by waiting around for DSP to start and looking at any signal input or output.
well and i figured out, that sys_getblksize() only works if dsp is switched on. if not it returns the default blocksize. so you can't run the function in the constructor of a class :-(
that makes it a bit difficult to write spectral processors...
Tim mailto:TimBlechmann@gmx.de ICQ: 96771783 http://www.nyds-exp-discogs.tk -- The only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww!" Jack Kerouac
Hallo, Tim Blechmann hat gesagt: // Tim Blechmann wrote:
On Tue, 16 Sep 2003 23:00:35 -0700 Miller Puckette mpuckett@man104-1.ucsd.edu wrote:
I think there's no way to find out overlap from within an extern. You can get blocksize by waiting around for DSP to start and looking at any signal input or output.
well and i figured out, that sys_getblksize() only works if dsp is switched on. if not it returns the default blocksize. so you can't run the function in the constructor of a class :-(
that makes it a bit difficult to write spectral processors...
I had a similar problem with the samplerate in my fluid~ external. fluid needs to know the samplerate when constructing its fluidsynth member instance. But SR isn't known until dsp is turned on. The partial "solution" I now implemented is an "init" method, which destroys and recreates the internal fluidsynth member instance with the current samplerate.
fluid_init is called in the constructor but can also be called by the user with an "init" message to fluid~.
ciao
That's correct, and what's more, the block size can _change_ after the object is constructed, so it's not well defined then anyway.
The only out is to move the setup code to the "dsp" routine... but then you can check and skip all the setup if the blocksize didn't change from last time it started.
cheers Miller
On Wed, Sep 17, 2003 at 08:09:31AM +0200, Tim Blechmann wrote:
On Tue, 16 Sep 2003 23:00:35 -0700 Miller Puckette mpuckett@man104-1.ucsd.edu wrote:
I think there's no way to find out overlap from within an extern. You can get blocksize by waiting around for DSP to start and looking at any signal input or output.
well and i figured out, that sys_getblksize() only works if dsp is switched on. if not it returns the default blocksize. so you can't run the function in the constructor of a class :-(
that makes it a bit difficult to write spectral processors...
Tim mailto:TimBlechmann@gmx.de ICQ: 96771783 http://www.nyds-exp-discogs.tk -- The only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww!" Jack Kerouac
On Wed, 17 Sep 2003 08:06:48 -0700 Miller Puckette mpuckett@man104-1.ucsd.edu wrote:
That's correct, and what's more, the block size can _change_ after the object is constructed, so it's not well defined then anyway.
The only out is to move the setup code to the "dsp" routine... but then you can check and skip all the setup if the blocksize didn't change from last time it started.
in the end i used the blocksize as construction argument. it's not the most elegant way, but it works. i thought about running the code in the dsp routine, but to have it working correctly, it would have to run every dsp circle and so it would have been more expensive...
Tim mailto:TimBlechmann@gmx.de ICQ: 96771783 http://www.nyds-exp-discogs.tk -- The only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww!" Jack Kerouac