hello,
I need to figure out the current block size, in case I change it in the settings
also, is there a way to pass a block size to block~ object ?
thanks
how to get current block size?
hello,
I need to figure out the current block size, in case I change it in the settings
also, is there a way to pass a block size to block~ object ?
thanks
@phil123456 Hello Phil......
In windows you can get the current block size through the audio dialog like this (bottom right of "set audio parameters") but it has to open the window so you would need to close it automatically afterwards..........
audio settings.zip
You can set the bock size for your overall patch more easily from the same "set audio parameters" patch that I uploaded.
If you want to set the block size for a window then you send a "set" message to [block~]....... see its "help" file.........
David.
thanks
but I use vanilla
and I also need to have it working on linux
mediasettings/audiosettings
... couldn't create
lbang
... couldn't create
mediasettings/audiosettings
... couldn't create
lbang
... couldn't create
pp add2
... couldn't create
mediasettings/audiosettings
... couldn't create
lbang
... couldn't create
pp add2
... couldn't create```
@phil123456 I will try to make you a Vanilla version this evening. You don't need the Mediasettings/Audiosettings for what you want to do....... [lbang] can be replaced with [loadbang]...... so you will just need a workaround for [pp].......
David.
the block size in audio settings is only used for audio I/O i believe the default block size for every patch is 64 no matter what just making sure you know
@whale-av: [pp] can usually be replaced with [list prepend] connected to a [list trim]
@phil123456 Hello Phil........ yes.... I forgot...... Seb is correct...... the block size for your patch is always 64 unless you change it using [block~] within a window. That window and all sub windows will be affected. The audio setting block size is just for the final in/out to your sound card(s).......
Be careful.... [inlet~] and [outlet~] will re-block between windows........ but the others..... [send~] [throw~] etc. might not!
David.
but you can change it to other values than 64
I dont want to change all my subpatches if I decide to use 1024 samples blocks in the audio settings for instance
@phil123456 If you set 1024 in the audio settings all of your patches will stay at 64 (unless you use a [block~] object in a window so as to change the block size for ONLY that window AND any sub windows........ e.g. pd-subwindow). The 1024 will be only for communication with the sound card.
If you use the [block~] object in a window DO NOT use [send~] [receive~] [throw~] or [catch~] as they might not work correctly....... only use [inlet~] and [outlet~] as they can convert between block sizes.
Using less than 64 within windows gives less audio delay, and using more reduces the computational load....... see........ http://puredata.info/docs/manuals/pd/x2.htm............... chapter 2.4.4...
David.
damned, I use throw~/catch~ & send~/receive~ to make my patches less spagethiish
also block can only be used in sub patches, so I would have to modify all subpatches if I change audio settings, and I want to avoid that
@phil123456 No...... if you change "audio settings" nothing changes in your patch......
David.
dude we are not on the same frequency here, you dont understand
" if you change "audio settings" nothing changes in your patch.." that's the whole point of my post
If i use 1024 in my audio settings, and my patches use block 128 for instance, I would have to change them all
alright, I'll rephrase
I want all my sub patches block/switch instructions to be updated in accordance to audio settings block size
this is so simple, and I cant believe nobody ever considered this before
I already read paragraph 2.4.4 but it does not adress the issue
also, what if I want a subpatch to have a block size half of its parent ?
hence me wanting to fetch block size somehow
the only solution I found so far is to send a block size to all my subpathces
Oops! Looks like something went wrong!