
atux
@whaleav said:
@atux If you send the message [dump( into [boids 2d] what value is printed to the Pd console for the "number" parameter?
Sending [number 7( into [boids 2d 15] will make only 7 of them move. The others will be stationary.
So maybe sending in the message [number 115( will get them all moving..?
David.Hi,
yes, sending the [dump( message into [boids 2d] object and printing the parameter values in the Pd console, I found that the parameter values completely change from those declared in the patch.
The speed changes from 3 to 0.1, so obviously nothing moves.
The maxspeed and inertia also become very small (about 0.2).However I have added some sliders to control the values directly and more comfortably in realtime, something like this:
...and everything works fine. The behavior is what you wrote in your post.Thank you,
a.EDIT
Now I'm trying to figure out how to get the (x,y) coordinates of each boid during motion, in two distinct number boxes for each boid, with a certain time step (as small as possible).
I think I succeeded by doing something like this:This is the start of the output stream in the pd console:
B0_x: 1.11714 B0_y: 0.154289 B1_x: 0.859991 B1_y: 1.04122 B2_x: 0.988587 B2_y: 0.620997 B3_x: 1.11418 B3_y: 0.829169 B4_x: 0.756241 B4_y: 0.51217 B0_x: 1.12641 B0_y: 0.110254 B1_x: 0.87085 B1_y: 1.0069 B2_x: 0.99647 B2_y: 0.576692 B3_x: 1.14712 B3_y: 0.798511 B4_x: 0.772748 B4_y: 0.480177 B0_x: 1.13585 B0_y: 0.0662551 B1_x: 0.881453 B1_y: 0.972498 B2_x: 1.01429 B2_y: 0.545412 B3_x: 1.17485 B3_y: 0.763067 B4_x: 0.780488 B4_y: 0.445019 B0_x: 1.14541 B0_y: 0.0222838 B1_x: 0.891889 B1_y: 0.938044 B2_x: 1.03125 B2_y: 0.51366 B3_x: 1.19768 B3_y: 0.724288 B4_x: 0.793631 B4_y: 0.411504 B0_x: 1.15512 B0_y: 0.0216567 B1_x: 0.902249 B1_y: 0.903567 B2_x: 1.04731 B2_y: 0.481438 B3_x: 1.21641 B3_y: 0.683373 B4_x: 0.808751 B4_y: 0.378833 B0_x: 1.16492 B0_y: 0.0655764 B1_x: 0.912567 B1_y: 0.869077 B2_x: 1.06238 B2_y: 0.448745 B3_x: 1.23193 B3_y: 0.641134 B4_x: 0.825433 B4_y: 0.346931 B0_x: 1.17478 B0_y: 0.109484 B1_x: 0.922866 B1_y: 0.834582 B2_x: 1.07642 B2_y: 0.415597 B3_x: 1.24506 B3_y: 0.598092 B4_x: 0.843365 B4_y: 0.315715 B0_x: 1.18466 B0_y: 0.153385 B1_x: 0.933166 B1_y: 0.800087 B2_x: 1.08182 B2_y: 0.370922 B3_x: 1.26792 B3_y: 0.559326 B4_x: 0.862311 B4_y: 0.285104 B0_x: 1.19456 B0_y: 0.197283 B1_x: 0.943492 B1_y: 0.7656 B2_x: 1.0977 B2_y: 0.338616 B3_x: 1.28719 B3_y: 0.518661 B4_x: 0.872322 B4_y: 0.250524 B0_x: 1.20446 B0_y: 0.241179 B1_x: 0.953858 B1_y: 0.731124 B2_x: 1.12197 B2_y: 0.312019 B3_x: 1.30357 B3_y: 0.47675 B4_x: 0.874392 B4_y: 0.214584 B0_x: 1.21436 B0_y: 0.285078 B1_x: 0.964273 B1_y: 0.696664 B2_x: 1.13781 B2_y: 0.269901 B3_x: 1.32971 B3_y: 0.440118 B4_x: 0.881343 B4_y: 0.179261 B0_x: 1.22636 B0_y: 0.328448 B1_x: 0.974756 B1_y: 0.662224 B2_x: 1.15208 B2_y: 0.227224 B3_x: 1.35207 B3_y: 0.401068 B4_x: 0.893584 B4_y: 0.145406 B0_x: 1.24059 B0_y: 0.37114 B1_x: 0.985347 B1_y: 0.627817 B2_x: 1.16511 B2_y: 0.184151 B3_x: 1.371 B3_y: 0.360243 B4_x: 0.90793 B4_y: 0.112388 B0_x: 1.25707 B0_y: 0.413011 B1_x: 0.996047 B1_y: 0.593444 B2_x: 1.17717 B2_y: 0.140797 B3_x: 1.38672 B3_y: 0.318079 B4_x: 0.923963 B4_y: 0.0801551 B0_x: 1.27583 B0_y: 0.453915 B1_x: 1.00686 B1_y: 0.559105 B2_x: 1.18852 B2_y: 0.0972526 B3_x: 1.39945 B3_y: 0.274918 B4_x: 0.941362 B4_y: 0.048639 B0_x: 1.29685 B0_y: 0.493706 B1_x: 1.01778 B1_y: 0.524801 B2_x: 1.19942 B2_y: 0.0535927 B3_x: 1.40947 B3_y: 0.231048 B4_x: 0.959882 B4_y: 0.0177685 B0_x: 1.32009 B0_y: 0.53224 B1_x: 1.02881 B1_y: 0.490533 B2_x: 1.218 B2_y: 0.0227568 B3_x: 1.41711 B3_y: 0.186701 B4_x: 0.969484 B4_y: 0.0169276 B0_x: 1.3455 B0_y: 0.56938 B1_x: 1.03996 B1_y: 0.456305 B2_x: 1.23509 B2_y: 0.00892889 B3_x: 1.42272 B3_y: 0.142052 B4_x: 0.981754 B4_y: 0.050772 B0_x: 1.37301 B0_y: 0.604992 B1_x: 1.05125 B1_y: 0.42212 B2_x: 1.242 B2_y: 0.0533949 B3_x: 1.43903 B3_y: 0.100109 B4_x: 0.996152 B4_y: 0.0837672 B0_x: 1.40251 B0_y: 0.638968 B1_x: 1.06267 B1_y: 0.387978 B2_x: 1.24934 B2_y: 0.097793 B3_x: 1.46458 B3_y: 0.0630706 B4_x: 1.00166 B4_y: 0.119344 B0_x: 1.43392 B0_y: 0.671193 B1_x: 1.07422 B1_y: 0.353884 B2_x: 1.2658 B2_y: 0.12981 B3_x: 1.48536 B3_y: 0.0231537 B4_x: 0.999281 B4_y: 0.155266 B0_x: 1.46712 B0_y: 0.701569 B1_x: 1.08593 B1_y: 0.319839 B2_x: 1.28128 B2_y: 0.162308 B3_x: 1.50148 B3_y: 0.0188584 B4_x: 1.00283 B4_y: 0.200125 B0_x: 1.50197 B0_y: 0.730036 B1_x: 1.09778 B1_y: 0.285848 B2_x: 1.29582 B2_y: 0.195243 B3_x: 1.51337 B3_y: 0.0622596 B4_x: 1.00982 B4_y: 0.23544 B0_x: 1.53833 B0_y: 0.756552 B1_x: 1.1098 B1_y: 0.251912 B2_x: 1.30943 B2_y: 0.228571 B3_x: 1.52159 B3_y: 0.106503 B4_x: 1.02009 B4_y: 0.269945 B0_x: 1.57606 B0_y: 0.781086 B1_x: 1.12197 B1_y: 0.218032 B2_x: 1.31182 B2_y: 0.273508 B3_x: 1.5398 B3_y: 0.147654 B4_x: 1.03295 B4_y: 0.30357 B0_x: 1.61501 B0_y: 0.803617 B1_x: 1.13429 B1_y: 0.184207 B2_x: 1.31677 B2_y: 0.318234 B3_x: 1.55335 B3_y: 0.190565 B4_x: 1.04787 B4_y: 0.336332 B0_x: 1.65505 B0_y: 0.824147 B1_x: 1.14678 B1_y: 0.150443 B2_x: 1.32516 B2_y: 0.362446 B3_x: 1.56279 B3_y: 0.234564 B4_x: 1.06447 B4_y: 0.368278 B0_x: 1.69606 B0_y: 0.842677 B1_x: 1.15945 B1_y: 0.116746 B2_x: 1.33747 B2_y: 0.405729 B3_x: 1.56875 B3_y: 0.279167 B4_x: 1.08245 B4_y: 0.399466 B0_x: 1.73792 B0_y: 0.859207 B1_x: 1.17233 B1_y: 0.083128 B2_x: 1.3539 B2_y: 0.447624 B3_x: 1.57254 B3_y: 0.324008 B4_x: 1.1016 B4_y: 0.429949 B0_x: 1.78051 B0_y: 0.873732 B1_x: 1.18545 B1_y: 0.0496025 B2_x: 1.37442 B2_y: 0.48767 B3_x: 1.57423 B3_y: 0.368976 B4_x: 1.12177 B4_y: 0.459767 B0_x: 1.82373 B0_y: 0.886251 B1_x: 1.19883 B1_y: 0.0161833 B2_x: 1.38296 B2_y: 0.531852 B3_x: 1.58941 B3_y: 0.411338 B4_x: 1.14284 B4_y: 0.488957 B0_x: 1.86747 B0_y: 0.89682 B1_x: 1.21257 B1_y: 0.0170938 B2_x: 1.39435 B2_y: 0.575387 B3_x: 1.6178 B3_y: 0.446258 B4_x: 1.15646 B4_y: 0.522282 B0_x: 1.91164 B0_y: 0.905448 B1_x: 1.22669 B1_y: 0.0502072 B2_x: 1.41523 B2_y: 0.604713 B3_x: 1.64484 B3_y: 0.482221 B4_x: 1.16306 B4_y: 0.557672 B0_x: 1.95613 B0_y: 0.912153 B1_x: 1.24123 B1_y: 0.0831422 B2_x: 1.4393 B2_y: 0.631487 B3_x: 1.6705 B3_y: 0.519194 B4_x: 1.17515 B4_y: 0.59158 B0_x: 2.00088 B0_y: 0.916938 B1_x: 1.25624 B1_y: 0.115862 B2_x: 1.46629 B2_y: 0.655312 B3_x: 1.69479 B3_y: 0.55707 B4_x: 1.1923 B4_y: 0.623232 B0_x: 2.04571 B0_y: 0.920851 B1_x: 1.27179 B1_y: 0.148331 B2_x: 1.4912 B2_y: 0.692785 B3_x: 1.72975 B3_y: 0.585403 B4_x: 1.2139 B4_y: 0.652031 B0_x: 2.09061 B0_y: 0.923773 B1_x: 1.28791 B1_y: 0.180521 B2_x: 1.52035 B2_y: 0.727065 B3_x: 1.76413 B3_y: 0.614443 B4_x: 1.23925 B4_y: 0.677589

atux
@60hz said:
@atux said:
canvas.top
... couldn't create> This is my fault, and it's not an important issue... I fixed it in zip.
If you need more boids number like 115, you also need to change [clone myboid 15] to [clone myboid 115]
Sure, I did that too. The boids increase in number, but do not move.
a.

atux
@60hz said:
It works for me, but you certainly need to refresh the [number 15( message AFTER create the [pd boid] subpatches creation.
Also, here is a better version using [clone] object that has been part of puredata and makes the design more convienient.
(Note that boids Gem examples need [poltocar] object fom cyclone to work well)
Hi, your patch works fine, the boids move correctly, but when I increase their number for example from 15 to 115, also doing the "refresh after..." as you said, the boids increase but stay still, they don't move.
Now, when I open your patch, I get these errors: :: Cyclone 0.61; Released june 8th 2022 :: License: BSD3Clause (aka Revised BSD License) :: Copyright © 20032021  Krzysztof Czaja, HansChristoph Steiner, :: Fred Jan Kraan, Alexandre Porres, Derek Kwan, Matt Barber :: and others. ::  :: Cyclone 0.61 needs at least Pd 0.520 (you have 0.521, you're good!) :: Loading the cyclone library did the following: ::  A) Loaded the non alphanumeric objects, which are: :: [!], [!~], [!/], [!/~], [!=~], [%~], [+=~], [<=~], [<~], :: [==~], [>=~] and [>~] ::  B) Added /home/a/Pd/externals/cyclone :: to Pd's path so the other objects can be loaded too :: but use [declare path cyclone] to guarantee search priority :: in the patch  opened alsa MIDI client 130 in:1 out:1 declare: Gem: unknown declaration canvas.top ... couldn't create canvas.top ... couldn't create canvas.top ... couldn't create canvas.top ... couldn't create canvas.top ... couldn't create canvas.top ... couldn't create canvas.top ... couldn't create canvas.top ... couldn't create canvas.top ... couldn't create canvas.top ... couldn't create canvas.top ... couldn't create canvas.top ... couldn't create canvas.top ... couldn't create canvas.top ... couldn't create canvas.top ... couldn't create boids2d 20052006 a.sier / jasch 19952003 eric l. singer Jan 1 2023 13:49:25
These are my startup paths:
** [poltocar]** object appears to be in place:
a@a:~$ cd /home/a/Pd/externals/cyclone a@a:~/Pd/externals/cyclone$ ls [CUT] poltocar.d_fat poltocar~.d_fat poltocarhelp.pd poltocar~help.pd poltocar.l_amd64 poltocar~.l_amd64 poltocar.l_arm poltocar~.l_arm poltocar.l_i386 poltocar~.l_i386 poltocar.m_amd64 poltocar~.m_amd64 poltocar.m_i386 poltocar~.m_i386 [CUT]
Something is probably missing or i am doing something wrong.
Bye,
a. 
atux
@60hz said:
@atux You need to manually add number in [route] and connect them to duplicated [pd boid] subpatch in [gem_example]
Thank you,
I added 5 boids, but the animation doesn't start (even if [pd orbit] get continuously variable numbers).

atux
Thank you, I compiled with
sudo make
and now the animation in [pd gem_example] works.
I have glib 2.72. Even the one you compiled works.
But I don't understand why if I increase the number of boids, this has no effect, I always see only 8 dots in the gem window.Bye,
a. 
atux
Hi all,
I downloaded "boids1.1.1" from here:
https://puredata.info/downloads/boidsNow, opening "boids2dhelp.pd", I get this error:
opened alsa MIDI client 129 in:1 out:1 boids2d 10 ... couldn't create boids2d 16 0 ... couldn't create
What is missing?
[Pd version 0.52.1, Ubuntu 22.04]
Thank you,
a. 
atux
@beem said:
Mike Moreno has made these Euclidean rhythm things based on the Stutter patch I think...
https://github.com/MikeMorenoDSP/mianThanks, at the link above the patch that interests me is:
eucguihelp.pdBut I don't know how to use the [midirealtimein] object, there is also no help file: connecting an external keyboard and pressing some keys nothing happens, not even when printing with [print( from outlets.
What should happen?(I specify that [notein] object, for example, works correctly with my midi keyboard.)
Anyway I tested the patch by putting a metro and works fine.
[I use Purr Data on Ubuntu 18.04]
a.

atux
@jameslo said:
@atux Can you please repost the links to the two patches you tested? I'm particularly interested in the arithmetic of post #7 but can't make sense of the text representation of @Stutter's patch (and all the hurleur links are broken for me).
Ok, I see that I was preceded.... :D
I add @kyro's patch with matrices: euclidean.pdI tested @Stutter's patch as subpatch.
For example, with the triad: 3,0,8 the rhythm is obtained:TUM ta ta TUM ta ta TUM ta
Bye,
a. 
atux
Thank you,
very interesting. Two completely different ways: a matricial approach and an apparently simple and effective algorithm.
Ok, the graphic part is missing (with clocks and inscribed geometries ...) to "visualize" the rhythms, but the engine that generates the Euclidean rhythms works perfectly.
I have tested both patches, they are great.
Bye,a.