[CSOUND-DEV:3709] POLLing in Csound5
Date | 2003-12-08 09:21 |
From | jpff@codemist.co.uk |
Subject | [CSOUND-DEV:3709] POLLing in Csound5 |
It seems to me that the API means that there should be no reason to poll the interface from inside csound, and this would be left to the user interface, probably running on a separate thread. Is this really the case? Can I remove all POLL_EVENTS code? It would simplify a great deal. Also, in a similar vein, winX11 winFLTK etc should be removed. Any thoughts? I now have a csound5 compiling on OSX, but not tested. ==John ffitch |
Date | 2003-12-08 20:29 |
From | "Matt J. Ingalls" |
Subject | [CSOUND-DEV:3725] Re: POLLing in Csound5 |
i do currently use the POLL_EVENTS as a way for my host to signal to csound to terminate [and cleanup properly] - if you have a better solution to do this please implement it. the only place i have found the REAL need to use POLL_EVENTS is in the analysis utilities [for the grahic displays] - as those processes are not reentrant, but if the were made so, then poll_events could go away there too.. thanks, -m On Mon, 8 Dec 2003 jpff@codemist.co.uk wrote: > It seems to me that the API means that there should be no reason to > poll the interface from inside csound, and this would be left to the > user interface, probably running on a separate thread. Is this > really the case? Can I remove all POLL_EVENTS code? It would simplify > a great deal. > > Also, in a similar vein, winX11 winFLTK etc should be removed. Any > thoughts? > > I now have a csound5 compiling on OSX, but not tested. > > ==John ffitch > > |
Date | 2003-12-12 02:45 |
From | Anthony Kozar |
Subject | [CSOUND-DEV:3747] Re: POLLing in Csound5 |
On 12/8/03 10:20 AM, gogins@pipeline.com |
Date | 2003-12-12 12:34 |
From | ramsdell@mitre.org (John D. Ramsdell) |
Subject | [CSOUND-DEV:3748] update -d |
Next time you update your sandbox for the csound module, be sure to specify the -d switch. John |
Date | 2003-12-14 12:54 |
From | ramsdell@mitre.org (John D. Ramsdell) |
Subject | [CSOUND-DEV:3750] Re: POLLing in Csound5 |
Anthony Kozar |
Date | 2003-12-14 12:58 |
From | John ffitch |
Subject | [CSOUND-DEV:3751] Re: POLLing in Csound5 |
Does that not suggest that the POLL_EVENTS call should be textually CsoundYeild (or whatever it is called)? The other question that arises is the granularity of the yeilding. Should opcodes call it, or only the engine? ==John ff |
Date | 2003-12-14 13:20 |
From | ramsdell@mitre.org (John D. Ramsdell) |
Subject | [CSOUND-DEV:3752] Re: POLLing in Csound5 |
John ffitch |
Date | 2003-12-15 14:25 |
From | Richard Dobson |
Subject | [CSOUND-DEV:3763] Re: POLLing in Csound5 |
I vote for the engine; in the worst case, it can be called every k-cycle, which is most unlikely to be too slow; and the engine can take responsibility for it where the orch itself is very slow. I don't think opcodes need, nor should have, any interest in polling host events at all. Calling in opcodes relies on opcode authors playing ball, and raises the prospect of range between hardly any to a ludicrous number of calls, in excess of once per sample. It seems more appropriate for the host to call (hypothetically) POLL_ORCH() periodically to find out where it is, if that is ever likely to be necessary. Richard Dobson John ffitch wrote: > Does that not suggest that the POLL_EVENTS call should be textually > CsoundYeild (or whatever it is called)? The other question that arises is > the granularity of the yeilding. Should opcodes call it, or only the > engine? > ==John ff > > |