Code fragments are by definition incomplete.
SharedQueue with a "d".
On Sun, 28 Mar 2021 at 03:38, wrote:
> thanks! I am now sure I am using the highest priority.
>
> one last question about this, maybe very newbie nut I would like to
> understand things.
>
> so, in your code example for the Pr
thanks! I am now sure I am using the highest priority.
one last question about this, maybe very newbie nut I would like to understand
things.
so, in your code example for the Process using the ShareQueue and in my running
demo, the ShareQueues are not put between pipes ( | | ) before declaratio
Open a Playground in Pharo.
Enter the following text.
(((ProcessorScheduler selectors)
select: [:each | each endsWith: 'Priority'])
collect: [:each | {Processor perform: each. each}])
sorted: [:x :y | x first <= y first]
Select it, the ctrl-i or "Inspect It" from a menu).
That gives you a
this is what I was able to put together thanks to your advice Richard.
https://www.youtube.com/watch?v=NFaR3ZQfOUU&feature=youtu.be
I am further developing this research on Pharo as a tool for live coding. I am
sending many OSC messages and they sounds pretty on time if the Process is
forked at
Why do the parameters for the sequencer have to be
*process* variables? Why can't they be instance
variables of an object?
SequenceControl (mutex v1 v2 ...)
initialize
mutex := Mutex new.
v1 := default for v1.
v2 := default for v2.
...
v1
^v1
v1: x
validate x all by i
thanks Sven and thanks Richard.
I already thought it was not a good idea to change a variable inside the
process as for OOP principles.
but I dint find any solution to do what I want to do, that is a tool for live
coding in which the process variables are values for a sequencer sendin OSC
mes
How do you modify a variable in another process?
DON'T.
Yes, it is possible.
No, it's an amazingly bad idea in any programming language.
First, let us see a simple, obvious, and portable way to do
what you want. (It has one minor problem which I'll get to.)
shared := Array new: 1.
shared at: 1 p
Hi,
You might learn something from the class/hierarchy ProcessSpecificVariable,
esp. the methods in the category 'process specific' in the Process class, e.g.
#psValueAt:[put:]
Sven
> On 2 Mar 2021, at 10:42, mspg...@gmail.com wrote:
>
> Hello everybody, I am kind of new to Pharo so I apologi