Re: [PD-dev] Seeking co-maintainers for Scheme for Pd

2024-03-24 Thread Iain Duncan
> Message: 1 > Date: Tue, 19 Mar 2024 13:09:27 +0100 > From: IOhannes m zm?lnig > To: pd-dev@lists.iem.at > Subject: Re: [PD-dev] Seeking co-maintainers for Scheme for Pd > Message-ID: <29d3083f-0419-4c7a-a1b6-fbdb29169...@iem.at> > Content-Type: text/plain; charset=&quo

Re: [PD-dev] Seeking co-maintainers for Scheme for Pd

2024-03-24 Thread Iain Duncan
could find some time to give it some love. So uh, what exactly do I need to do to make this happen? Does it need a special license or anything? s7 is BSD licensed so I chose that to begin with. iain On Tue, Mar 19, 2024 at 5:10 AM IOhannes m zmölnig wrote: > On 3/17/24 06:14, Iain Dun

Re: [PD-dev] Seeking co-maintainers for Scheme for Pd

2024-03-16 Thread Iain Duncan
It occurred to me thinking further that really one doesn't need to know much about Scheme or Lisp, provided one is interested, as I didn't when I started! The work is mostly in C. FWIW. :-) iain On Sat, Mar 16, 2024 at 8:17 AM Iain Duncan wrote: > Hello hackers, a couple of years ago I m

[PD-dev] Seeking co-maintainers for Scheme for Pd

2024-03-16 Thread Iain Duncan
Hello hackers, a couple of years ago I made Scheme for Pd, a sibling project of my Scheme for Max external that allows scripting Pd (and Max) in s7 Scheme. I'm now into a PhD and am (surprise, surprise) rather busy, but there are some things that could be done with the Pd version that would be

Re: [PD-dev] Question about right hand generic inlet creation

2021-12-08 Thread Iain Duncan
great, thanks very much. On Tue, Dec 7, 2021 at 10:38 PM IOhannes m zmölnig wrote: > Am 8. Dezember 2021 03:52:00 MEZ schrieb Iain Duncan < > iainduncanli...@gmail.com>: > >And follow up, if there is a way to make a generic handler for right hand > >inlets, is ther

Re: [PD-dev] Question about right hand generic inlet creation

2021-12-07 Thread Iain Duncan
And follow up, if there is a way to make a generic handler for right hand inlets, is there also a way to find out on which inlet the message came in? thanks On Tue, Dec 7, 2021 at 5:57 PM Iain Duncan wrote: > Hi folks, I'm not sure if I'm understanding the externals tutorial > pr

[PD-dev] Question about right hand generic inlet creation

2021-12-07 Thread Iain Duncan
Hi folks, I'm not sure if I'm understanding the externals tutorial properly. It seems to me that it is saying that one cannot make a generic inlet past the first one, as in something that passes any incoming message to the same handler as an array of atoms. Is that the case or am I totally

Re: [PD-dev] Helping with building Scheme for Pure Data for windows?

2021-10-11 Thread Iain Duncan
Many thanks to Lucas for his assistance. I'm now building successfully on windows, so should be able to make a binary release in the next week or so. iain On Sun, Oct 10, 2021 at 3:35 PM Iain Duncan wrote: > hi Lucas, that would be wonderful. You definitely don't need to know > Scheme t

Re: [PD-dev] Helping with building Scheme for Pure Data for windows?

2021-10-10 Thread Iain Duncan
> > Mensaje telepatico asistido por maquinas. > > On 10/10/2021 2:10 PM, Alexandre Torres Porres wrote: > > Lucas usually helps with that ;) > > > > Em dom., 10 de out. de 2021 às 13:39, Iain Duncan > > escreveu: > > > > Long shot, but in cas

[PD-dev] Helping with building Scheme for Pure Data for windows?

2021-10-10 Thread Iain Duncan
Long shot, but in case there is someone on here who is a) excited about using Scheme in Pd, and b) conversant with building externals for windows, I could definitely do with some help. I really only know developing on linux and osx. I'm sure I'll manage on my own, but it will be slower and harder

Re: [PD-dev] another file path question for sp4d

2021-10-09 Thread Iain Duncan
Thanks Antoine, using canvas_open has fixed my issues and opening from sub-dirs is working properly as well now. iain On Fri, Oct 8, 2021 at 8:55 AM Iain Duncan wrote: > Thanks Antoine, re my last point: if the norm is that it should, then > that's what I'll do. And is why I asked,

Re: [PD-dev] s4pd packaging: issues with [declare -path]

2021-10-09 Thread Iain Duncan
Answering my own question for the archives: Switching file finding to use canvas_open in the external seems to have fixed the issue. I can now load successfully with no file path set in preferences by using [declare -path s4pd]. :-) iain On Sat, Oct 9, 2021 at 8:43 AM Iain Duncan wrote: >

Re: [PD-dev] s4pd packaging: issues with [declare -path]

2021-10-09 Thread Iain Duncan
be able to load files on the same folder as the help > patch or in folders relative to it, but it still can't (with version rc3). > > Em sáb., 9 de out. de 2021 às 12:09, Iain Duncan < > iainduncanli...@gmail.com> escreveu: > >> Oh I think I might have stumbled on the answer,

Re: [PD-dev] s4pd packaging: issues with [declare -path]

2021-10-09 Thread Iain Duncan
Oh I think I might have stumbled on the answer, but confirmation would be lovely. I was using open_via_path to find the file, is it that I need to use canvas_open for the declare path to work? iain On Sat, Oct 9, 2021 at 8:02 AM Iain Duncan wrote: > Hi folks, I'm still working on the packag

[PD-dev] s4pd packaging: issues with [declare -path]

2021-10-09 Thread Iain Duncan
Hi folks, I'm still working on the packaging of s4pd with regard to finding scheme files, and am almost there, but having some weirdness with [declare -path]. It was recommended to me that I advise people in the docs to put a [declare -path s4pd] in their patches so that finding scm files would

Re: [PD-dev] another file path question for sp4d

2021-10-08 Thread Iain Duncan
en()" and "canvas_makefilename()" WILL traverse Pd > search paths... > > > Antoine > > > > Le ven. 8 oct. 2021 à 17:01, Iain Duncan a > écrit : > >> Hi folks, I want to solicit opinions from the broader Pd dev community >> before figuring out how to fix

[PD-dev] another file path question for sp4d

2021-10-08 Thread Iain Duncan
Hi folks, I want to solicit opinions from the broader Pd dev community before figuring out how to fix this bug report from Alex: https://github.com/iainctduncan/scheme-for-pd/issues/15 His point was that a relative path didn't do what he expected, situation - an s4pd object created as "sp4d

Re: [PD-dev] Packaging question for Scheme for Pd

2021-10-04 Thread Iain Duncan
in the same directory as the C files in the source? Or is there some suggested approach when using pd lib builder to make this simple? thanks iain On Mon, Oct 4, 2021 at 8:52 AM IOhannes m zmoelnig wrote: > On 10/4/21 5:22 PM, Iain Duncan wrote: > > of the package ('s4pd') so that this c

[PD-dev] Packaging question for Scheme for Pd

2021-10-04 Thread Iain Duncan
Hi folks, I need some advice on what is the expected way for a package to be laid out to avoid confusing users when they try to install. The situation is that s4pd requires the external, and scm files that come in the package. In development, I have those in an scm dir, and if you build from

Re: [PD-dev] equivalent of Max attributes for optional keyword object args?

2021-09-24 Thread Iain Duncan
rence point. > > Christof > On 24.09.2021 17:33, Iain Duncan wrote: > > Hi folks, I want to add an optional argument for object creation time to > Scheme for Pd to allow setting the starting heap size, which can > dramatically lower garbage collector times. In Scheme for Max 0

[PD-dev] equivalent of Max attributes for optional keyword object args?

2021-09-24 Thread Iain Duncan
Hi folks, I want to add an optional argument for object creation time to Scheme for Pd to allow setting the starting heap size, which can dramatically lower garbage collector times. In Scheme for Max 0.3 I added the @heap attr. I'm not sure what the normal way to do this kind of thing is in Pd.

Re: [PD-dev] plans for next Pd release

2021-07-13 Thread Iain Duncan
On the topic of minor message related improvements, I hope it's ok to chime in here, and I apologize if this has been hashed to death already and there are good reasons for the current state.. I'm doing a lot of making messages out of other objects to send to Scheme for Pd, and one thing I use

[PD-dev] Question about prepping Scheme for Pure Data external for Deken?

2021-07-12 Thread Iain Duncan
Hi folks, I'm able to spend some time on Scheme for Pure Data again over the next couple of weeks, and just wanted to check on what I need to have done to make it easy to install through Deken. For Max, I had to have successfully compiled binaries for Mac, Windows 32, and Windows 64. Is it the

Re: [PD-dev] building with pdlib builder on windows

2021-06-26 Thread Iain Duncan
if it loads properly > > the .scm files. I got the same results as building for Linux. > > > > Hope it helps. > > > > :) > > > > Mensaje telepatico asistido por maquinas. > > > > On 6/14/2021 6:24 PM, Iain Duncan wrote: > >> great, thanks

Re: [PD-dev] More clock questions

2021-06-15 Thread Iain Duncan
ember. (then delay the t_clock by the > new top member of the queue) > Every time a coroutine finishes I take it off of the top of the queue. > (and call another t_clock delay for the new top member, or stop if there > are none left) > > -Seb > > -Original Message-

Re: [PD-dev] building with pdlib builder on windows

2021-06-14 Thread Iain Duncan
ster/INSTALL.txt. > > Christof > On 14.06.2021 22:47, Iain Duncan wrote: > > Hi folks, I know windows just enough to be dangerous to myself, but would > like to at least be able to prepare binaries of s4pd. Wondering what the > path of least resistance is to compiling on windows these d

[PD-dev] building with pdlib builder on windows

2021-06-14 Thread Iain Duncan
Hi folks, I know windows just enough to be dangerous to myself, but would like to at least be able to prepare binaries of s4pd. Wondering what the path of least resistance is to compiling on windows these days if I'm using pd lib builder. ie mingq, cygwin, virtual studio?? thanks iain

Re: [PD-dev] s4pd help: portable uid-like thing in C?

2021-06-12 Thread Iain Duncan
even need to be unique across the whole machine? I think > it should be enough that it's unique within the app. In that case, you can > simply use the memory address of the interpreter instance itself. In fact, > that's how Pd creates the canvas and object IDs for communicating with the

[PD-dev] More clock questions

2021-06-12 Thread Iain Duncan
I have a couple more clock/schedule related questions after rereading the comments from Miller and Seb. 1) Is the Pd clock scheduler only accurate to the ms or does it operate at higher than ms accuracy? (As in, if I wanted to role my own mechanism closer to what Seb did, how frequently should my

[PD-dev] s4pd help: portable uid-like thing in C?

2021-06-12 Thread Iain Duncan
Hi folks, i'm wrestling away with the schedule functions for Scheme-for-Pd, and I think I can make things a lot more reliable if I let every instantiation (or restart) of the scheme interpreter have a uid of some sort so that on a reset we can just ignore clocks running out on a previous instance

[PD-dev] Scheme-for-Pd, how to release beta versions, call for testers

2021-06-10 Thread Iain Duncan
Hi folks, I'm only a few days away (I think!) from a first beta release for Scheme-for-Pd, and am wondering what I'm supposed to do for releasing to the early testers given I don't want to put it on Deken until it's had the tires well kicked... Things I need to sort - answers or pointers to

Re: [PD-dev] using the PD filepath in an external?

2021-06-09 Thread Iain Duncan
Working like a charm now, thanks Miller! iain On Wed, Jun 9, 2021 at 3:39 PM Iain Duncan wrote: > Perfect! That one's much more comprehensible for my less-than-stellar C > chops. :-) > > thanks! > > On Wed, Jun 9, 2021 at 3:36 PM Miller Puckette wrote: > >&g

Re: [PD-dev] using the PD filepath in an external?

2021-06-09 Thread Iain Duncan
M > > On Wed, Jun 09, 2021 at 03:31:17PM -0700, Iain Duncan wrote: > > Ah got it, presumably I get what I'm looking for in char *dirresult? > > > > assumption taken from: > > EXTERN int open_via_path(const char *dir, const char *name, const char > *ext, > >

Re: [PD-dev] using the PD filepath in an external?

2021-06-09 Thread Iain Duncan
Puckette wrote: > Yeah... open_via_path and scoop up the full path it reports back - then > close the file and let s7 reopen it :) > > M > On Wed, Jun 09, 2021 at 03:26:35PM -0700, Iain Duncan wrote: > > Thanks Miller. Looking at that example, this seems to be a way to open > a

Re: [PD-dev] using the PD filepath in an external?

2021-06-09 Thread Iain Duncan
1 at 02:57:16PM -0700, Iain Duncan wrote: > > Hi folks, I tried to google this, but of course am swamped with results > on > > how to load things in the patcher instead of what I'm looking for. Can > > anyone point me at how to use the filepath to load files in an external?

[PD-dev] using the PD filepath in an external?

2021-06-09 Thread Iain Duncan
Hi folks, I tried to google this, but of course am swamped with results on how to load things in the patcher instead of what I'm looking for. Can anyone point me at how to use the filepath to load files in an external? In Max I have s4m find the fullpath for the bootstrap files and then load them

Re: [PD-dev] Creating delayed functions in Pd external?

2021-06-09 Thread Iain Duncan
Thanks Christof, will hack further on this today! iain On Sun, Jun 6, 2021 at 7:00 PM Christof Ressi wrote: > getbytes() + freebytes() > > Christof > On 07.06.2021 03:56, Iain Duncan wrote: > > Ah, ok. I also just realized (necessity being the mother of and all that) >

Re: [PD-dev] Pd-dev Digest, Vol 194, Issue 4

2021-06-08 Thread Iain Duncan
more manipulations of the scheduling queues though (my next > project is to have 1 scheduling queue peraccelerando/ritardando group so a > tree of descendants of an ancestor coroutine that sprouted them can > accelerando/ritardando together) > > -Seb > > > > -----Original Mes

Re: [PD-dev] Creating delayed functions in Pd external?

2021-06-06 Thread Iain Duncan
callbacks Pd would see to it that it's still linear time in the > number of active callbacks. > > cheers > M > > On Sun, Jun 06, 2021 at 06:22:41PM -0700, Iain Duncan wrote: > > Thanks Miller. That brings up one more question.. ;-) > > > > In Scheme for Max, the

Re: [PD-dev] Creating delayed functions in Pd external?

2021-06-06 Thread Iain Duncan
ing object goes away. > > cheers > M > > On Sun, Jun 06, 2021 at 05:16:09PM -0700, Iain Duncan wrote: > > Ah fantastic, thanks. I was looking in pipe and not seeing it, but was > > probably just lost in other new details and not seeing the forest for the &

Re: [PD-dev] Creating delayed functions in Pd external?

2021-06-06 Thread Iain Duncan
wrote: > Yep, clock_delay() . Simples example is in Pd's "delay" object, x_time.c > > cheers > Miller > > On Sun, Jun 06, 2021 at 04:21:46PM -0700, Iain Duncan wrote: > > Hi folks, I'm hoping someone can point me in the right direction here. > I'm > > portin

[PD-dev] Creating delayed functions in Pd external?

2021-06-06 Thread Iain Duncan
Hi folks, I'm hoping someone can point me in the right direction here. I'm porting Scheme for Max to pure data and I'm stuck figuring out how to get delayed functions going. In Max, the SDK has a facility to make register a callback to executed at some point in the future, a few different ways. Is

Re: [PD-dev] example external code to browse?

2021-04-12 Thread Iain Duncan
of interest, but it uses rather advanced > techniques: https://github.com/agraef/pd-lua/blob/master/pdlua.c > > Christof > On 11.04.2021 01:00, Iain Duncan wrote: > > Hi everyone, I'm working now on a PureData port of Scheme For Max, but am > hitting some obstacles and am wondering

[PD-dev] example external code to browse?

2021-04-10 Thread Iain Duncan
Hi everyone, I'm working now on a PureData port of Scheme For Max, but am hitting some obstacles and am wondering if anyone can point me at sample external code that can be browsed somewhere? (I'm very new to Pd). Specifically I'm looking for stuff that involves event oriented handling and dynamic

Re: [PD-dev] pd-lib-builder question (on osx)

2020-10-28 Thread Iain Duncan
Hey thanks for that, I was aware I was cargo-culting there haha, so the explanation is much appreciated. :-) iain On Wed, Oct 28, 2020 at 9:29 AM IOhannes m zmoelnig wrote: > On 10/28/20 12:09 AM, Iain Duncan wrote: > > cflags = -I . -L . -l s7 > > if this works, then it's o

Re: [PD-dev] pd-lib-builder question (on osx)

2020-10-27 Thread Iain Duncan
; > > "common.sources" would have worked too, you just made a typo ;-) However, > I think the solution above is clearer, as "common.sources" is really meant > for the case where you have *multiple* classes with same shared code. > > Christof > On 27.10.2020 23:44

[PD-dev] pd-lib-builder question (on osx)

2020-10-27 Thread Iain Duncan
Hi devs, I'm trying to get pd-lib-builder working, but I think my lack of C building experience has me stuck. I was able to get my empty helloworld working ok, but not managing to link in S7. My project has one C file, and needs to also include s7.h and build s7.c I've included my (not working)

Re: [PD-dev] implementing pools of clocks?

2020-10-25 Thread Iain Duncan
k can have its own logical time and > tempo. Changing the time or tempo of a TempoClock affects all Routines that > are scheduled on this clock. You can, of course, have more than one > TempoClock at the same time. > > Christof > On 25.10.2020 16:16, Iain Duncan wrote: > &

Re: [PD-dev] implementing pools of clocks?

2020-10-25 Thread Iain Duncan
ead, put the clock in a struct which you allocate in > the setup function. The clock gets this struct as the owner. > > typedef struct _myscheduler { t_clock *clock; } t_myscheduler; // this > would also be a good place to store the priority queue > > t_scheduler *x = getbytes(size

Re: [PD-dev] implementing pools of clocks?

2020-10-24 Thread Iain Duncan
nce that DSP itself never blocks. If Sclang blocks, OSC > messages will simply arrive late at the Server. > > Christof > On 25.10.2020 02:10, Iain Duncan wrote: > > Hi folks, I'm working on an external for Max and PD embedding the S7 > scheme interpreter. It's mostly inten

[PD-dev] implementing pools of clocks?

2020-10-24 Thread Iain Duncan
Hi folks, I'm working on an external for Max and PD embedding the S7 scheme interpreter. It's mostly intended to do things at event level, (algo comp, etc) so I have been somewhat lazy around real time issues so far. But I'd like to make sure it's as robust as it can be, and can be used for as

Re: [PD-dev] How to learn about writing schedulers?

2020-10-24 Thread Iain Duncan
ave very different approaches. > > Christof > On 24.10.2020 19:48, Iain Duncan wrote: > > I hope this is ok on this list, please let me know if it should instead be > on PD-OT. > > I'm looking for resources on learning how to write soft-real time > scheduler engines for

[PD-dev] How to learn about writing schedulers?

2020-10-24 Thread Iain Duncan
I hope this is ok on this list, please let me know if it should instead be on PD-OT. I'm looking for resources on learning how to write soft-real time scheduler engines for sequencing tools: patterns, data structures, tradeoffs of different approaches, etc. I'm interested in seeing how PD does