Re: [PD] Best practices for [declare]

2021-02-25 Thread Roman Haefeli
On Thu, 2021-02-25 at 11:13 +0100, Peter P. wrote: > * Roman Haefeli [2021-02-25 11:04]: > > On Thu, 2021-02-25 at 10:56 +0100, Winfried Ritsch wrote: > > > My 2 Cents: > > > > > > There is one pitfall which should be mentioned, since it happened > > >

Re: [PD] a barrel of fun: deken v0.7.1

2021-03-05 Thread Roman Haefeli
On Fri, 2021-03-05 at 18:08 +0100, IOhannes m zmölnig wrote: > > (hopefully) fixed in deken-0.7.2, available via deken. Works for me now on Windows 10. Thanks. Roman signature.asc Description: This is a digitally signed message part ___

Re: [PD] 2 bugs and a feature request, FYI

2021-03-05 Thread Roman Haefeli
On Fri, 2021-03-05 at 21:42 +0100, IOhannes m zmölnig wrote: > > Am 5. März 2021 20:35:50 MEZ schrieb William Huston < > williamahus...@gmail.com>: > > > > > > https://github.com/pure-data/pure-data/issues/1279 > > > > > Well, I don't think everyone did agree. > > sure, at least one

Re: [PD] detect dependencies from patch

2021-02-26 Thread Roman Haefeli
On Fri, 2021-02-26 at 10:52 +0100, IOhannes m zmoelnig wrote: > On 2/22/21 10:06 AM, Roman Haefeli wrote: > > Hi all > > > > Is it possible to detect dependencies from within a patch? > > > > Often people report problems without mentioning '... couldn't >

Re: [PD] restrict "find externals" to exact matches

2021-02-26 Thread Roman Haefeli
On Fri, 2021-02-26 at 11:12 +0100, IOhannes m zmoelnig wrote: > how would you see such a change? I very much welcome it. > would the disruption be acceptable? The reason which triggered me to bring up the "detect dependencies from patch" thread was the fact that I got reports from users who

Re: [PD] Pd and computer crash/freeze when using [comport], bug?

2021-04-09 Thread Roman Haefeli
On Fri, 2021-04-09 at 09:31 +0200, Nicklas Lundberg wrote: > [comport] is communicating with an Arduino Nano over USB to control > PWM pins. > > If [comport] is receiving messages faster than 50 ms Pd will freeze, > has to be force quitted, system gets sluggish, and the computer has > to be

Re: [PD] quacktrip with more than 2 channels?

2021-04-20 Thread Roman Haefeli
On Mon, 2021-04-19 at 23:04 +0200, Peter P. wrote: > Hi list, > > does anyone know whether one can run quacktrip with more than 2 > channels > of audio, either by modifying the abstractions Yes. > or by using two of them > side by side perhaps to permit for 4 channels? Yes, but two

Re: [PD] Dynamically set font size of patch

2021-02-15 Thread Roman Haefeli
On Mon, 2021-02-15 at 22:29 +0100, João Pais wrote: > send [font x 100 100( to any canvas in your patch. The arguments are > the font menu parameters. Nice! Thank you very much. Roman signature.asc Description: This is a digitally signed message part

[PD] Dynamically set font size of patch

2021-02-15 Thread Roman Haefeli
Hi Is it possible to dynamically set the font size of a patch? Thanks, Roman signature.asc Description: This is a digitally signed message part ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->

Re: [PD] list item picker widget

2021-02-15 Thread Roman Haefeli
On Sat, 2021-02-13 at 19:47 -0300, Alexandre Torres Porres wrote: > what about the compiled externals? I only tried [flatgui/popup] and [tof/menubutton]. The former looks tk- ish and also expands over the patch canvas, which is good for large item lists. It's not very customizable, though.

Re: [PD] list item picker widget - [declare] lib paths

2021-02-16 Thread Roman Haefeli
Thanks for the full picture, Dan. I guess the main point is that when Pd users go along the defaults, they need patches to use -path and -lib. Even more, -lib and -path _also_ work for stuff installed in any of the standard search paths like /extra. Assuming that people use a recent version of

Re: [PD] Advice on netsend to broadcast

2021-02-06 Thread Roman Haefeli
On Sat, 2021-02-06 at 00:36 +0100, João Pais wrote: > > I'm preparing a patch using [netsend -u -b], sending to > 192.168.178.255 > with my home devices. This was working quite well, but suddenly one > of > them stopped sending data to this address Does the outlet of [netsend] indicate that it

Re: [PD] Advice on netsend to broadcast

2021-02-06 Thread Roman Haefeli
On Sat, 2021-02-06 at 22:55 +0100, Roman Haefeli wrote: > On Sat, 2021-02-06 at 00:36 +0100, João Pais wrote: > > I'm preparing a patch using [netsend -u -b], sending to > > 192.168.178.255 > > with my home devices. This was working quite well, but suddenly one > > o

Re: [PD] Advice on netsend to broadcast

2021-02-06 Thread Roman Haefeli
On Sat, 2021-02-06 at 23:02 +0100, Roman Haefeli wrote: > On Sat, 2021-02-06 at 22:55 +0100, Roman Haefeli wrote: > > On Sat, 2021-02-06 at 00:36 +0100, João Pais wrote: > > > I'm preparing a patch using [netsend -u -b], sending to > > > 192.168.178.255

Re: [PD] list item picker widget

2021-02-14 Thread Roman Haefeli
On Sun, 2021-02-14 at 21:59 +0100, Roman Haefeli wrote: > > I'm not quite sure what the canonical declaration style is, -lib/- > path or -stdlib/-stdpath. I guess the former will work better for > Pd's own default setup. I should say this is true since 0.50 or so. Before that, -stdl

Re: [PD] list item picker widget

2021-02-14 Thread Roman Haefeli
On Sun, 2021-02-14 at 11:21 +0100, João Pais wrote: > > > > > > For [jp.menu] to load properly, I had to [declare -path ggee -path > > list-abs]. I think that could be done within [jp.menu] itself. > > Strange, that should be necessary in my computer as well. I'll have > to > check it. Ok, I

Re: [PD] list item picker widget

2021-02-21 Thread Roman Haefeli
On Fri, 2021-02-12 at 09:31 +0100, João Pais wrote: > > > I mean there is no way to detect > > hovering or a mouse key release. > > I think there's [mousestate] or maybe something in one of the iem > libraries (?), and if I remember correctly, structs can declare if a > mouse is over them. I

[PD] detect dependencies from patch

2021-02-22 Thread Roman Haefeli
Hi all Is it possible to detect dependencies from within a patch? Often people report problems without mentioning '... couldn't create' errors. Also, people not so familiar with Pd don't know what library a certain objects belongs to and maybe also don't know how to search for it in "Find

Re: [PD] list item picker widget

2021-02-11 Thread Roman Haefeli
On Thu, 2021-02-11 at 19:01 +0100, João Pais wrote: > you mean something like [jmmmp/jp.menu]? Exactly. Thanks for the pointer. That's definitely what I was looking for. Picking something can be done really quick, which is nice. One small caveat: I personally find it confusing, when the

Re: [PD] list item picker widget

2021-02-11 Thread Roman Haefeli
On Thu, 2021-02-11 at 15:05 -0300, Alexandre Torres Porres wrote: > If you want a vanilla dropdown, Henri made one here > https://github.com/HenriAugusto/guilla Cool. That's also a nice one. Thanks for mentioning. It doesn't even use data structures, just dynamically resized GOP. BTW, the

Re: [PD] list item picker widget

2021-02-11 Thread Roman Haefeli
On Thu, 2021-02-11 at 16:51 +, Jonathan Wilkes wrote: > It's possible to build one with data structures. There may be one > from me or others on the pd forum. But it's really a pain to build. I'm not even so worried about the pain of building, but about how you can make something that feels

Re: [PD] list item picker widget

2021-02-13 Thread Roman Haefeli
On Thu, 2021-02-11 at 15:05 -0300, Alexandre Torres Porres wrote: > If you want a vanilla dropdown, Henri made one here > https://github.com/HenriAugusto/guilla I found an important difference between [guilla/dropdownMenu] and [jmmmp/jp.menu]. The former uses sliders as buttons while the latter

Re: [PD] list item picker widget

2021-02-12 Thread Roman Haefeli
On Fri, 2021-02-12 at 09:44 +0100, João Pais wrote: > > > you mean something like [jmmmp/jp.menu]? > > Exactly. Thanks for the pointer. That's definitely what I was > > looking > > for. Picking something can be done really quick, which is nice. One > > small caveat: I personally find it confusing,

[PD] [file]

2021-08-23 Thread Roman Haefeli
One new object in Pd, one giant leap for Pd programmers! What a great addition. Many thanks! Roman signature.asc Description: This is a digitally signed message part ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->

Re: [PD] [file]

2021-08-23 Thread Roman Haefeli
On Mon, 2021-08-23 at 11:10 +0200, Peter P. wrote: > * Roman Haefeli [2021-08-23 10:41]: > > One new object in Pd, one giant leap for Pd programmers! > Thanks Roman! > I can't seem to find this in 0.51.4 is it that new? > Much looking forward! It will be part of next 0.52 rele

Re: [PD] external libraries for Raspberry Pi - how to compile?

2021-09-12 Thread Roman Haefeli
On Sun, 2021-09-12 at 03:36 +0200, Ingo wrote: > > The very first errors I get are > > iemlib/splitfilename > couldn't create > > mergefilename > ... couldn't create Did you follow IOhannes' and Christof's advice: [declare -path iemlib -path iemabs -lib iemlib -lib iemlib1 -lib iemlib2] You

Re: [PD] external libraries for Raspberry Pi - how to compile?

2021-09-12 Thread Roman Haefeli
On Sun, 2021-09-12 at 09:29 +0200, Ingo wrote: > Declare is not the problem. > The .pd_linux files are missing in both the "apt-get pd-iemlib" > download as > well as in the Deken files of the RPi armv7. On a Raspberry Pi 4 with Raspberry Pi OS (ex. Raspbian): $ uname -a Linux heidelbeeri

Re: [PD] external libraries for Raspberry Pi - how to compile?

2021-09-12 Thread Roman Haefeli
On Sun, 2021-09-12 at 11:36 +0200, Ingo wrote: > Yep, looks like [declare -path /usr/lib/puredata/extra/iemlib -lib > iemlib] > should work but it doesn't. > I'm suspecting that certain objects are simply not compiled > correctly. I confirm iemlib 1.22 from Deken is broken for the Raspberry Pi OS

[PD] Editing GOP abstractions

2021-09-10 Thread Roman Haefeli
Hi When using GOP abstractions with 'Hide object name and arguments' checked, I seem to not be able to change the arguments after creation. When rewriting the whole argument list in a new object is too tedious, I sometimes revert to editing the patch file with a text editor. Is there a way to

Re: [PD] Editing GOP abstractions

2021-09-10 Thread Roman Haefeli
On Fri, 2021-09-10 at 10:58 +0200, Roman Haefeli wrote: > Ok, I could save > with GOP disabled, edit it, enable GOP again. But that is still not a > very good use experience. It's even worse: When saving it, all (other) instances are reloaded and therefore loose their state. This is d

Re: [PD] Editing GOP abstractions

2021-09-10 Thread Roman Haefeli
On Fri, 2021-09-10 at 10:43 +0200, João Pais wrote: > basically you want to rewrite an object - doesn't matter if it's gop, > subpatch, or something else - without editing it yourself. No, I simply want to edit it manually in the patch editor, but cannot because the arguments are not visible.

Re: [PD] Editing GOP abstractions

2021-09-10 Thread Roman Haefeli
On Fri, 2021-09-10 at 11:00 +0200, Roman Haefeli wrote: > On Fri, 2021-09-10 at 10:58 +0200, Roman Haefeli wrote: > > Ok, I could save > > with GOP disabled, edit it, enable GOP again. But that is still not > > a > > very good use experience. > > It's even

Re: [PD] external libraries for Raspberry Pi - how to compile?

2021-09-12 Thread Roman Haefeli
On Sun, 2021-09-12 at 21:30 +0200, IOhannes m zmölnig wrote: > On 9/12/21 21:03, Ingo wrote: > > Yes! I can confirm it definitely! > > That's why I ran into these problems in the first place. This is somewhat contradictory to: On Sun, 2021-09-12 at 11:36 +0200, Ingo wrote: > I just downloaded

Re: [PD] external libraries for Raspberry Pi - how to compile?

2021-09-12 Thread Roman Haefeli
On Sun, 2021-09-12 at 13:09 +0200, IOhannes m zmölnig wrote: > Am 12. September 2021 11:48:22 MESZ schrieb Roman Haefeli < > reduz...@gmail.com>: > > On Sun, 2021-09-12 at 11:36 +0200, Ingo wrote: > > > Yep, looks like [declare -path /usr/lib/puredata/extra/iem

Re: [PD] New color format in patch source

2021-09-10 Thread Roman Haefeli
On Fri, 2021-09-10 at 17:13 +0200, IOhannes m zmoelnig wrote: > On 9/10/21 5:07 PM, Roman Haefeli wrote: > > Hey all > > > > I'm using current git master and found that the way color > > information > > of iemguis is stored in the patch file has changed. The

[PD] New color format in patch source

2021-09-10 Thread Roman Haefeli
Hey all I'm using current git master and found that the way color information of iemguis is stored in the patch file has changed. The number representing 6-bit-per-channel rgb values got replaced by a hexadecimal encoding like '#dfdfdf'. That is a huge advantage, but how far back are such patches

Re: [PD] executing commands from pd via pdreceive

2021-09-11 Thread Roman Haefeli
On Mon, 2021-09-06 at 21:51 +0200, Peter P. wrote: > > > Is there a way I can let pd know that the command > has finished executing? > For example by sending something back like > pdreceive udp | sh - ; echo "done" | pdsend 8889 localhost > udp > which sadly does not work? pdreceive

[PD] JACK2 support on macOS

2021-07-30 Thread Roman Haefeli
Hey all On macOS, I used to download a package named JackOSX for installing JACK (which seems to be the JACK1 implementation). Since a while now, the prominent source to get JACK seems https://jackaudio.org where you get JACK2 installers for macOS (and other platforms). Pd downloaded from

Re: [PD] JACK2 support on macOS

2021-07-30 Thread Roman Haefeli
There is already an issue open with some more background information: https://github.com/pure-data/pure-data/issues/1190 Sorry for the noise. Roman On Fri, 2021-07-30 at 10:23 +0200, Roman Haefeli wrote: > Hey all > > On macOS, I used to download a package named JackOSX for installi

Re: [PD] JACK2 support on macOS

2021-07-30 Thread Roman Haefeli
On Fri, 2021-07-30 at 11:13 +0200, IOhannes m zmölnig wrote: On 7/30/21 10:23, Roman Haefeli wrote: > > > > > > Anyway, my impression is that someone installing JACK on macOS now > > is > > more likely to find JACK2 than JACK1. > > i don't think so. Ok.

[PD] [PD-announce] command external v0.1

2021-10-01 Thread Roman Haefeli
Hi The [command] external lets you execute commands from Pd. It is available on Deken for the following platforms: * Linux-amd64-32 * Linux-armv7-32 * Linux-i386-32 * Darwin-amd64-32 Not supported is Windows. More info here: https://github.com/pd-externals/command Roman

Re: [PD] Fwd: random routing of 8 audio-streams to 8 outputs

2021-10-05 Thread Roman Haefeli
On Tue, 2021-10-05 at 00:08 +0200, Simon Iten wrote: > > > > is there a somewhat elegant way to route 8 audio outputs (from > readsf~) to 8 dac~ outputs randomly (on a bang for example)? You could use [mtx_*~ 8 8] from iemmatrix for the signal routing part. For feeding it, you could send '8'

Re: [PD] Pd 0.52 test 2 is out

2021-11-23 Thread Roman Haefeli
On Tue, 2021-11-23 at 14:06 -0300, Alexandre Torres Porres wrote: > - the symbol box by default now is much wider, I always have to make > it shorter, who needs that big boxes most the time? can't we make the > same as before? I like it bigger. I usually make the number boxes bigger for them to

Re: [PD] Pd 0.52 test 2 is out

2021-11-23 Thread Roman Haefeli
On Tue, 2021-11-23 at 18:56 +0100, Christof Ressi wrote: > > I think *changing* existing shortcuts is a bad idea. So I think we > should leave the shortcuts as they were and use cmd+6 for the new > list atom. After all, a list atom is *not* a drop-in replacement for > a symbol atom (numbers and

Re: [PD] Hide backslash escapes in symbol atoms

2021-11-18 Thread Roman Haefeli
(now sending to list) On Thu, 2021-11-18 at 18:21 +0100, Antoine Rousseau wrote: > the discussion is there: > https://github.com/pure-data/pure-data/issues/824 Thanks for the link. > I've just closed this issue yesterday... I see, I didn't check for closed issues. > I personally didn't

Re: [PD] Hide backslash escapes in symbol atoms

2021-11-18 Thread Roman Haefeli
On Thu, 2021-11-18 at 12:26 -0300, Alexandre Torres Porres wrote: > I remember that discussion (I can try and find it) and I remember > people agreed symbol box should hide "\". > > I guess I can agree to that. In my idea, we know what's coming out of > a symbol box, it's a symbol, so if you have

Re: [PD] Hide backslash escapes in symbol atoms

2021-11-19 Thread Roman Haefeli
On Fri, 2021-11-19 at 11:51 +0100, IOhannes m zmoelnig wrote: > > Probably the best would be to have delimiters a display property of > the > list-box, rather than of the text itself. > as in the attached mockup. Sweet. +1! Roman signature.asc Description: This is a digitally signed message

[PD] Hide backslash escapes in symbol atoms

2021-11-18 Thread Roman Haefeli
Hi all It's just a cosmetic thing, nevertheless it concerns me. Up to 0.50, usage of whitespaces in symbol atoms was good. As in: Whitespaces could be used while typing into symbol atoms and the displayed value showed only the whitespaces without the backslashes for escaping them, while saving

Re: [PD] mc – multichannel extension for Pd

2021-12-08 Thread Roman Haefeli
On Wed, 2021-12-08 at 16:34 +0100, Roman Haefeli wrote: > I had only a close look at it I meant: I had only a quick glance at it [...] signature.asc Description: This is a digitally signed message part ___ Pd-list@lists.iem.at mailing l

Re: [PD] mc – multichannel extension for Pd

2021-12-08 Thread Roman Haefeli
Hey Thomas On Sun, 2021-12-05 at 17:22 +0100, Thomas Grill wrote: > > i'd like to make you aware of an abstraction library i have made > because of working more with multi-channel loudspeaker systems > lately. Quite a few times I thought it would practical to pack many audio cables into one. It

[PD] Testing Pd builds with JACK

2021-12-16 Thread Roman Haefeli
Hey all While testing the different Pd builds with different JACK versions, I wondered how JACK can be uninstalled cleanly. Both JACK versions I want to try come as a pkg, which installs a bunch of files to different places. From what I gather, there is no straight-forward way to remove

Re: [PD] Testing Pd builds with JACK

2021-12-16 Thread Roman Haefeli
On Thu, 2021-12-16 at 10:05 +0100, Roman Haefeli wrote: > I usually wiped * all jack* binaries in /usr/local/bin * /usr/local/include/jack directory I forgot to mention /usr/local/lib/libjack* (those are probably the most crucial when it comes to Pd detecting JACK) Roman signature.

Re: [PD] Testing Pd builds with JACK

2021-12-16 Thread Roman Haefeli
On Thu, 2021-12-16 at 11:08 +0100, IOhannes m zmoelnig wrote: > > the jack2-osx-1.9.19.pkg installs a file that contains its contents: > > or just: > $ rm $(cat /usr/local/share/jack2/jack2-osx-files.txt) Oh, right. Thanks, that is certainly more thorough than what I did. And yes, the olde

Re: [PD] Testing Pd builds with JACK

2021-12-16 Thread Roman Haefeli
On Thu, 2021-12-16 at 11:28 +0100, IOhannes m zmoelnig wrote: > On 12/16/21 11:08, IOhannes m zmoelnig wrote: > > i don't know > > just to be sure: what i suggested is in no way canonical. > Ok. My question should be then: Do you take care of removing left-over files when switching JACK

Re: [PD] JACK on macOS

2021-12-14 Thread Roman Haefeli
On Tue, 2021-12-14 at 16:04 +0100, Christof Ressi wrote: > Forgot to say: the callback scheduler will not be removed. If it > works > for you, by all means keep using it! Sorry for the alarmist tone, then. 'legacy' sounded to me like 'to be removed in the future'. Roman signature.asc

Re: [PD] JACK on macOS

2021-12-14 Thread Roman Haefeli
On Tue, 2021-12-14 at 14:45 +0100, Christof Ressi wrote: > > 2. turn on "callbacks" in Pd's audio settings (it seems that this > > is > > required on macOS) > Are you sure? In my understanding, the "callback scheduler" is > generally > legacy and usually you would always use the "polling

Re: [PD] JACK on macOS

2021-12-14 Thread Roman Haefeli
On Tue, 2021-12-14 at 15:53 +0100, Christof Ressi wrote: > > That said, I never really understood what 'callbacks' means. > It means that the Pd scheduler runs directly in the audio callback Thanks for your detailed explanation. It all makes sense now, especially why it is not advised to perform

Re: [PD] JACK affects UDP rate

2021-07-23 Thread Roman Haefeli
On Fri, 2021-07-23 at 21:52 +0200, Christof Ressi wrote: > When we overhauled the networking code, I noticed that the TCP and > UDP functions would both read up to N bytes (where N is currently > 4096) in a single recv() call. With TCP the buffer can contain > several FUDI (or other) messages, but

Re: [PD] JACK affects UDP rate

2021-07-23 Thread Roman Haefeli
On Fri, 2021-07-23 at 15:09 +0200, Christof Ressi wrote: > I assume you're using [iemnet] or [mrpeach] objects? Yes, [iemnet/udpclient]. But it seems the same applies to [netsend] (when receiving). > Those only read a single UDP packet in the poll function. OK, good to know. I'm glad I was not

[PD] JACK affects UDP rate

2021-07-23 Thread Roman Haefeli
Hi all, We experience "unexpected" latency with our software tpf-client [1] on macOS. When using JACK as audio-backend and using a blocksize [2] of 64, latency grows over time, growing whenever there are dropped packets. The issue appears only when all three criteria are met: * Pd is running

Re: [PD] JACK affects UDP rate

2021-07-27 Thread Roman Haefeli
23:59 +0200, Christof Ressi wrote: > On 23.07.2021 23:11, Roman Haefeli wrote: > > > > It would be nice, if more than > > one packet could be received per tick, of course, but then to > > buffer > > could simply be flushed, so that only "fresh" pack

Re: [PD] JACK affects UDP rate

2021-07-28 Thread Roman Haefeli
On Wed, 2021-07-28 at 03:51 +0200, Christof Ressi wrote: > > On Linux, the receive buffer seems to be ~4kB, you as you already > > stated. > > Where did I state that? :-) From: https://lists.puredata.info/pipermail/pd-list/2021-07/129893.html "Back to TCP vs UDP: let's say you are sending

Re: [PD] Design / Philosophy principles behind Pd development

2022-01-04 Thread Roman Haefeli
On Tue, 2022-01-04 at 13:53 +0100, Jérôme Abel wrote: > The number of lines of code must be less than 10 000 ? Where did you get that from? $ cat pd/src/*.c | wc -l 84235 Roman signature.asc Description: This is a digitally signed message part ___

Re: [PD] [file]: paths not relative to patch

2022-01-07 Thread Roman Haefeli
On Fri, 2022-01-07 at 17:34 +0100, Roman Haefeli wrote: > Dear list > > When using a relative path with the new [file], it is resolved > relative > to Pd's start location and not relative to the patch. I'd like to work-around this with [dir(-[pdcontrol] which returns the directo

[PD] [file]: paths not relative to patch

2022-01-07 Thread Roman Haefeli
Dear list When using a relative path with the new [file], it is resolved relative to Pd's start location and not relative to the patch. This is unusual, as [text], [array], [table], [soundfile], etc. resolve relative paths relative to the patch. Also, I don't quite see the use case for relative

[PD] JACK and blocksize

2022-01-12 Thread Roman Haefeli
Hey all Using callbacks is certainly interesting for low-latency applications. I noticed that JACK allows blocksizes below 64, namely 32 and 16. However, those can only be used with callbacks disabled which means having to use an additional buffer again. I wonder if the blocksize of 64 is

Re: [PD] irreversibly high CPU usage with 'use callbacks' (macOS)

2022-01-12 Thread Roman Haefeli
Just another data point: I'm not able to reproduce this here: * macOS 10.15.7 * Pd 0.52-1-really * MacBook Pro 2016 Tested with CoreAudio and JACK Roman On Tue, 2022-01-11 at 23:43 +0100, Christof Ressi wrote: > Hi, > > I have noticed this myself just a few days ago (Pd

[PD] Store data in memory more efficiently than in arrays

2022-01-12 Thread Roman Haefeli
Hi Sometimes I stored byte data (lists of bytes) in arrays. IIRC, I read once in IRC that one value in a Pd-array requires not 4 bytes, but 8 bytes on 64-bit systems. Since storing plain bytes seems not such an uncommon use case for me, I wonder if it can be done more efficiently. Not that I ever

Re: [PD] Store data in memory more efficiently than in arrays

2022-01-14 Thread Roman Haefeli
Hi IOhannes Interesting side-notes. Thanks! Roman On Fri, 2022-01-14 at 09:11 +0100, IOhannes m zmoelnig wrote: > > sidenote: of course we are not alone. > take for example the most popular programming language¹ of the last > few > years: > a boolean value ideally requires a single bit to be

Re: [PD] Store data in memory more efficiently than in arrays

2022-01-14 Thread Roman Haefeli
t_symbol *), which is 4 bytes on > > a > > 32-bit system and 8 bytes on a 64-bit systems. > > > > This means that even if you would add a "byte" type, the overall > > size of > > "t_word" would stay the same. > > > > Howeve

Re: [PD] JACK and blocksize

2022-01-12 Thread Roman Haefeli
On Wed, 2022-01-12 at 15:28 +0100, Peter P. wrote: > * Roman Haefeli [2022-01-12 15:08]: > > Hey all > > > > Using callbacks is certainly interesting for low-latency > > applications. > > I noticed that JACK allows blocksizes below 64, namely 32 and 16. &g

Re: [PD] Install path assumptions for [soundfiler] vs [file glob]

2022-01-11 Thread Roman Haefeli
On Tue, 2022-01-11 at 11:31 +, Pierre Alexandre Tremblay wrote: > Dear all > > I am wondering if I my assumptions are wrong, or if there is a > discrepancy that needs solving (or not.) > > Setup: if one installs objects like our flucoma.org bundle, one might > have stuff included in the

Re: [PD] JACK and blocksize

2022-01-12 Thread Roman Haefeli
Hi Thanks for your detailed explanations, Christof. On Wed, 2022-01-12 at 16:13 +0100, Christof Ressi wrote: > > Generally, there is no way to get lower I/O latency than 64 samples > in > Pd without changing DEFDACBLKSIZE and recompiling. I guess my question boils down to: Is it possible to

Re: [PD] Install path assumptions for [soundfiler] vs [file glob]

2022-01-11 Thread Roman Haefeli
On Tue, 2022-01-11 at 17:46 +0100, Christof Ressi wrote: > > I wondered if there was a way to get the path to a given object > > help, like in SuperCollider > > > > FluidBufAmpGate.class.filenameSymbol > Yes, that's possible with [file which] Yay, we finally have a way to programmatically check

Re: [PD] Install path assumptions for [soundfiler] vs [file glob]

2022-01-11 Thread Roman Haefeli
On Tue, 2022-01-11 at 13:41 +, Pierre Alexandre Tremblay wrote: > > With that footnote, I was hopeful to get [file which] to give me the > path of [media/] but no luck. [file which] only searches for files in all search paths. It doesn't work for directories. > > I’ve also tried to find a

Re: [PD] JACK and blocksize

2022-01-15 Thread Roman Haefeli
On Fri, 2022-01-14 at 23:17 +0100, Athos Bacchiocchi wrote: > I was curious so I compiled pd-0.52-1 on linux, with DEFDACBLKSIZE > set to 16. > I set Jack up with buffer size 16, and run pd with jack backend. > > Most of the patches in the help browser works, but at least these > objects fail to

Re: [PD] Trouble with updating number boxes, sliders, arrays on RPi - looking for a replacement to display an array

2022-01-15 Thread Roman Haefeli
On Sat, 2022-01-15 at 16:22 +0100, Ingo wrote: > > > I had some trouble with number boxes, sliders, etc. again. This time > on the Raspberry Pi. > > With the exact same programming they work fine on a i386 Intel > computer (Debian) but do not update graphically on the Rasperry Pi 4 > with

Re: [PD] Trouble with updating number boxes, sliders, arrays on RPi - looking for a replacement to display an array

2022-01-15 Thread Roman Haefeli
On Sat, 2022-01-15 at 16:22 +0100, Ingo wrote: > Hi, > > I had some trouble with number boxes, sliders, etc. again. This time > on the Raspberry Pi. > > With the exact same programming they work fine on a i386 Intel > computer (Debian) but do not update graphically on the Rasperry Pi 4 > with

Re: [PD] JACK and blocksize

2022-01-15 Thread Roman Haefeli
Hi Christof On Sat, 2022-01-15 at 15:51 +0100, Christof Ressi wrote: > > Oh, interesting. Haven't tried myself yet, but good to know that > > many > > patches wouldn't work. I can't get around using [receive~]. > > Have you seen my last reply ( >

Re: [PD] [file]: paths not relative to patch

2022-01-08 Thread Roman Haefeli
On Sat, 2022-01-08 at 19:11 +0100, Christof Ressi wrote: > Should we also provide a creation argument and float message for the > parent level? For example, [bang( -> [file patchdir 1] resp. [1( -> > [file patchdir] would output the parent patch directory, etc. This > would > make [pdcontrol]'s

[PD] enforcing good practice (was: [midifile])

2022-02-10 Thread Roman Haefeli
On Thu, 2022-02-10 at 15:00 +0100, IOhannes m zmoelnig wrote: > > on a related note: > since Pd-0.52 it is no longer possible to connect a single outlet to > single inlet twice. > after reading this thread , i wonder whether this was premature and > whether we should undo that change. Can you

[PD] anti patterns (was: [midifile])

2022-02-10 Thread Roman Haefeli
On Thu, 2022-02-10 at 10:30 +0100, Roman Haefeli wrote: > 3) I'm personally not so fond of the idea of giving people patching > advice. Let me rewrite that to 'unsolicited patching advice'. I was the other day stumbling across a not-so-trivial-to-resolve bug. The problem turn

Re: [PD] phasor~ phase reset detection

2022-03-16 Thread Roman Haefeli
On Wed, 2022-03-16 at 14:34 +, Jeppi Jeppi wrote: > Hi there, > I assume this has been discussed many times before but...what could > be simplest and most concise way to detect a phase reset of a phasor~ > with only plain vanilla objects? > I only need one bang when it goes back to 0. > It

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

2022-03-16 Thread Roman Haefeli
On Wed, 2022-03-16 at 16:00 -0500, Charles Z Henry wrote: > > other: is there a good way to start/stop processes other than > [ggee/shell]? cross-platform? There is [command] which works on Linux and macOS, but not on Windows. Roman signature.asc Description: This is a digitally signed

[PD] [Gem] bit depth of display

2022-02-17 Thread Roman Haefeli
Hi I have a Gem patch for an installation that basically maps a 1x12px image created with [pix_set] to a fullscreen [rectangle]. When the pixel values are close enough to each other, the gradients between the pixels shows edges that look like low bit depth (and probably are due low bit depth). I

Re: [PD] audio rate shift register abstraction with Pd vanilla

2022-02-22 Thread Roman Haefeli
On Tue, 2022-02-22 at 17:08 -0500, Samuel Burt wrote: > >Is there some kind of delay introduced by [delwrite~] [delread~] > even when the delay is set to 0ms? Yes. 0 delay can only be achieved if the [delwrite~] is ordered before the [delread~] in the DSP graph. In your case, since you send

Re: [PD] finding differences between almost identical patches

2022-02-20 Thread Roman Haefeli
On Sun, 2022-02-20 at 13:03 +0100, ro...@dds.nl wrote: > hi list, > > is there a smart way to find the difference between 2 versions of a > patch? > Actually, the Pd file format is not really well "diff"able. Even if you edit only one object within canvas with many objects, the implicit

Re: [PD] [Gem] bit depth of display

2022-02-17 Thread Roman Haefeli
On Thu, 2022-02-17 at 19:30 +, Claude Heiland-Allen wrote: > > On 17/02/2022 17:59, Roman Haefeli wrote: > > the gradients between the > > pixels shows edges that look like low bit depth (and probably are > > due > > low bit depth). > No clue about high bit

Re: [PD] How to monitor a "dd" disk copy progress in Pd

2022-02-15 Thread Roman Haefeli
On Tue, 2022-02-15 at 18:56 +0100, Ingo wrote: > > I'm trying to monitor the progress of a "dd" disk copy operaton in > Pd. I'm on Debaian. > > When I send this to a console I can see the progress in the console > (after the command): > dd if=/dev/sdb of=/dev/sdc status=progress > >

Re: [PD] [Gem] bit depth of display

2022-02-18 Thread Roman Haefeli
On Fri, 2022-02-18 at 09:47 +0100, cyrille henry wrote: > > Le 17/02/2022 à 21:24, Roman Haefeli a écrit : > > [...] > > > My impression is that the OpenGL side is all 32bit float. I tried > > 'quality 1' to [pix_texture] which does (from what I see) linear > >

Re: [PD] M1 Externals

2022-03-19 Thread Roman Haefeli
On Fri, 2022-03-18 at 18:04 -0400, me.grimm wrote: > hello, > > my old mac dead so had to get new M1 and starting from scratch. > > I see only a few externals so far compiled for the Darwin-amd64-32 I guess you mean Darwin-arm64-32. > > looking for the [comport] to give compiling a whirl i

[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] how to write different types to [text]

2022-03-26 Thread Roman Haefeli
Anyone? Roman On Tue, 2022-03-22 at 22:33 +0100, Roman Haefeli wrote: > 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 al

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] how to write different types to [text]

2022-03-28 Thread Roman Haefeli
On Sun, 2022-03-27 at 22:39 +0200, Christof Ressi wrote: > On 27.03.2022 18:22, Christof Ressi wrote: > > I guess you should be able to do [3 3( -> [text get] to get the > > second > > sublist, but [3 4( -> [text get] should probably trigger an > > out-of-range error. > > I meant to write [0 3

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

2022-03-28 Thread Roman Haefeli
On Sun, 2022-03-27 at 18:04 +0200, Christof Ressi wrote: > On 27.03.2022 11:01, Roman Haefeli wrote: > > On Sun, 2022-03-27 at 01:10 +0100, Christof Ressi wrote: > > > In my experience, commas in [text] are broken... Best not to use > > > them > > > :-) &

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

2022-03-28 Thread Roman Haefeli
On Sun, 2022-03-27 at 18:22 +0200, Christof Ressi wrote: > > There is no way to get the rest of the message. I think [text get] > > could simply output all sublists consecutively. By checking the > > right outlet you know if a message spans a whole line (= 0), or is > > part of a comma seperated

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 > > > >

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 =

<    3   4   5   6   7   8   9   10   >