Re: [PD] Get directory of current patch

2022-03-22 Thread Philip Stone via Pd-list
>[dir( -> [pdcontrol]. Not very intuitive, I know... > >We have been discussing to add such functionality to the [file] object >family, where it would make more sense. See >https://github.com/pure-data/pure-data/issues/1539. >Christof Thank you very much, Christof! I didn’t think of [pdcontrol].

Re: [PD] Choices of IPC when using fast-forward

2022-03-22 Thread Charles Z Henry
On Thu, Mar 17, 2022 at 3:06 AM cyrille henry wrote: > > Hello Chuck, > > > Le 16/03/2022 à 22:00, Charles Z Henry a écrit : > > [...] > > > > > My conclusion there was that shmem can be used for asynchronous > > inter-process communication with minimal risk to real-time. > it can also be used

Re: [PD] Get directory of current patch

2022-03-22 Thread Christof Ressi
[dir( -> [pdcontrol]. Not very intuitive, I know... We have been discussing to add such functionality to the [file] object family, where it would make more sense. See https://github.com/pure-data/pure-data/issues/1539. Christof On 23.03.2022 02:23, Philip Stone via Pd-list wrote: I’m

[PD] Get directory of current patch

2022-03-22 Thread Philip Stone via Pd-list
I’m currently using [ggee/getdir] to determine the path of the current patch, and I was hoping that [file] would give me a vanilla alternative. It doesn’t seem to – am I missing something? Thanks, Phil Stone University of California, Davis ___

[PD] how to write different types to [text]

2022-03-22 Thread Roman Haefeli
Hi [text get] has a second outlet for the type of the message. There is a distinction between messages terminated by semicolon and messages terminated by comma. Is there also a way to add messages of different types? I haven't found any. [text set] and [text insert] usually add messages

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Bruno Rohde
> > Cool, thanks. Even if there is an (easy) solution, it's good to submit the > point that Pd probably shouldn't stop working completely when a checkbox is > changed in the settings. :) Done! Em ter., 22 de mar. de 2022 às 13:28, Dan Wilcox escreveu: > Cool, thanks. Even if there is an

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Christof Ressi
Hi Jeppi, I have already explained it in a previous mail. Christof On 22.03.2022 17:55, Jeppi Jeppi wrote: What does the 'use callbacks' exactly do? I guess PD always fills the audio buffer by callback (?). Obtén l'Outlook per a l'Android

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Jeppi Jeppi
What does the 'use callbacks' exactly do? I guess PD always fills the audio buffer by callback (?). Obtén l'Outlook per a l'Android From: Pd-list on behalf of Bruno Rohde Sent: Tuesday, March 22, 2022 2:52:25 PM To: Dan Wilcox Cc:

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Dan Wilcox
Yeah, this makes the most sense: try the user value, if it's too low, then use the hardware value and print a notice. At the very least, Pd will keep working. :) I do something similar in a work project that uses Portaudio and CoreAudio. > On Mar 22, 2022, at 4:33 PM,

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Dan Wilcox
Cool, thanks. Even if there is an (easy) solution, it's good to submit the point that Pd probably shouldn't stop working completely when a checkbox is changed in the settings. :) > On Mar 22, 2022, at 2:52 PM, Bruno Rohde wrote: > > Hi Dan, > > Iohannes solution (change "use callbacks"

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Miller Puckette via Pd-list
I think the bug report isn't needed, thanks. Meanwhile, yes, it would be appropriate to print a message that the delay got reset, and yes, please do throw it in the develop PR. thanks M On Tue, Mar 22, 2022 at 12:43:08PM -0300, Bruno Rohde wrote: > As it looks like you guys are working on a

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Bruno Rohde
As it looks like you guys are working on a quick and simple solution, I'll wait a bit to see if it's really necessary to file a bug. If it's still relevant, I can do it later. Em ter., 22 de mar. de 2022 às 12:33, Christof Ressi escreveu: > > Of course, now the displayed settings doesn't always

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Christof Ressi
Of course, now the displayed settings doesn't always reflect the setting used internally. We could post a little notice that the delay setting has been capped. Probably also for the ASIO backend. But that's just cosmetics. @umlaeute: should I push the quick fix below to develop? Christof On

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Roman Haefeli
On Tue, 2022-03-22 at 16:00 +0100, Christof Ressi wrote: > > > I think the solution is simple: > > In jack_open_audio() replace > > if (advance_samples < DEFDACBLKSIZE) > advance_samples = DEFDACBLKSIZE; > with > > if (advance_samples < jack_blocksize) > advance_samples =

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Christof Ressi
Actually, I just remember that I fixed a very similar issue with the ASIO backend. However, it was a bit more nasty, because Pd would simply crash if the "Delay" value was too low :-) My solution was too simply cap the value at the hardware blocksize:

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Roman Haefeli
On Tue, 2022-03-22 at 15:23 +0100, IOhannes m zmoelnig wrote: > On 3/22/22 15:06, Roman Haefeli wrote: > > On Tue, 2022-03-22 at 14:56 +0100, Christof Ressi wrote: > > > > Anyway, I can open an issue to describe that in my case DSP > > > > only > > > > works with callbacks on. > > > Yes, please!

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Bruno Rohde
> > Actually, there *is* a bug: Pd should not just output silence if the user > accidentally sets a too small value for "Delay". It should either clamp the > value or post a warning. It would be great if you could file a bug report. > Agreed, I'll file the bug report. Em ter., 22 de mar. de 2022

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Christof Ressi
good that we could figure out the problem! So, that is not a bug, but maybe this limit should be clearly stated somewhere to avoid confusion. Actually, there *is* a bug: Pd should not just output silence if the user accidentally sets a too small value for "Delay". It should either clamp the

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Bruno Rohde
Thanks Christof and Roman for the clarification, now I understand it a little! Actually, before Pd 0.52, the polling scheduler did not really work > correctly together with the Jack backend, i.e. the "Delay" setting was > basically ignored and it just did double buffering. This has been fixed. >

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread IOhannes m zmoelnig
On 3/22/22 15:06, Roman Haefeli wrote: On Tue, 2022-03-22 at 14:56 +0100, Christof Ressi wrote: Anyway, I can open an issue to describe that in my case DSP only works with callbacks on. Yes, please! The Jack backend is supposed to work regardless of the "callback" setting. But not

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Christof Ressi
On 22.03.2022 15:00, Roman Haefeli wrote: From my experience, setting it too low causes Pd to not process audio at all. In my experience, this value is below 5ms, but this probably depends on JACK's blocksize setting. This might actually explain the issue! @Bruno: what is you current value

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Roman Haefeli
On Tue, 2022-03-22 at 14:56 +0100, Christof Ressi wrote: > > Anyway, I can open an issue to describe that in my case DSP only > > works with callbacks on. > Yes, please! The Jack backend is supposed to work regardless of the > "callback" setting. But not regardless of the "delay (ms)" setting.

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Roman Haefeli
On Tue, 2022-03-22 at 10:45 -0300, Bruno Rohde wrote: > > Turn OFF (or ON) the "use callbacks" checkbox in the audio dialog. > > That did the trick, with callbacks ON DSP works. I never used it > before, and to be honest, I don't know what this does, but for now it > solved the problem. > Could

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Christof Ressi
Anyway, I can open an issue to describe that in my case DSP only works with callbacks on. Yes, please! The Jack backend is supposed to work regardless of the "callback" setting. Christof On 22.03.2022 14:52, Bruno Rohde wrote: Hi Dan, Iohannes solution (change "use callbacks" state) seems

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Christof Ressi
Could you (or someone) explain briefly what this is for? If "callbacks" is ON, Pd runs directly in the audio callback. This gives you lower latencies, but less "leeway" for CPU fluctuations - unless you increase the hardware/jack buffer size accordingly. If "callbacks" is OFF, Pd uses a

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Bruno Rohde
Hi Dan, Iohannes solution (change "use callbacks" state) seems to solve the problem. Anyway, I can open an issue to describe that in my case DSP only works with callbacks on. Thanks for the answer and instructions, cheers Em ter., 22 de mar. de 2022 às 06:37, Dan Wilcox escreveu: > Yes,

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Bruno Rohde
> > Turn OFF (or ON) the "use callbacks" checkbox in the audio dialog. > That did the trick, with callbacks ON DSP works. I never used it before, and to be honest, I don't know what this does, but for now it solved the problem. Could you (or someone) explain briefly what this is for? Is there any

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Dan Wilcox
Yes, please do so with all the relevant info: OS, behavior, steps you tried etc. > On Mar 22, 2022, at 3:00 AM, pd-list-requ...@lists.iem.at wrote: > > Do you think it's worth opening an issue on pd's github? Dan Wilcox @danomatika danomatika.com

Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread IOhannes m zmölnig
Am 21. März 2022 14:18:21 MEZ schrieb Bruno Rohde : anyone have any information about this problem? Any tips on how to >investigate the cause and solution for it? > Turn OFF (or ON) the "use callbacks" checkbox in the audio dialog. mfg.sfg.jfd IOhannes