-
AG
Nevermid.. I found the answer.. I had to add the path as you can read below..
You have to add the path -path "install_path"/iemlib (Menue: File: Preferences: Path...: New...). You have to add the library -lib iemlib (Menue: File: Preferences: Startup...: New...). For Windows "install_path" could be: "C:/Users/xx_ME_xx/AppData/Roaming/Pd" or "C:/Program Files (x86)/Common Files/Pd" or "C:/Users/xx_ME_xx/Documents/Pd/externals" or "C:/Program Files (x86)/pd/extra". For Apple OSX: "install_path" could be: "~/Library/Pd" or "/Library/Pd" or "/Applications/Pd.app/Contents/Resources/extra". For Linux: "install_path" could be: "~/.local/lib/pd/extra" or "~/pd-externals" or "/usr/local/lib/pd-externals" or "/usr/local/lib/pd/extra" or "/usr/lib/pd/extra". Make sure that you get the desired version of iemlib if there are multiple installations on your computer (-verbose).
-
AG
hi everyone!
I'm trying to run the patch "Ambisonic_2d_example.pd" from the iem_ambi external. While trying to get it to run, I made some changes to the declare statement. You can find the code below..
I installed the externals needed for this patch through deken and I also set the "-lib iemlib" startup flag in PD.
Unfortunately I get the following errors. As you can see PD fails to create some objects (e.g. fadtodb, rbpq, mull~, dsp). These objects seem to all come from the iemlib which is loaded successfully. I have also checked the /externals/iemlib directory.. the four mentioned object-patches are there.
I am running PD on a VM running Debian 11.7 on a M1 MacBook Pro.
I have been trying to solve this for a couple of hours now.. Does anyone know why it's not working?
iemlib (1.22-1) library loaded! (c) Thomas Musil Jul 7 2023 : 18:09:42 musil@iem.at iem KUG Graz Austria iem_ambi (1.21.1) library loaded! (c) Thomas Musil Jul 18 2023 : 11:42:00 musil@iem.at iem KUG Graz Austria iemmatrix 0.3.3 objects for manipulating 2d-matrices (c) 2001-2015 iem IOhannes m zmölnig Thomas Musil Franz Zotter compiled Jul 18 2023 : 22:25:45 iemlib (1.22-1) library loaded! (c) Thomas Musil Jul 7 2023 : 18:09:42 musil@iem.at iem KUG Graz Austria ♡♡♡ ♡ the zexy external 2.4.2 ♡ (c) 1999-2023 IOhannes m zmölnig ♡ forum::für::umläute ♡ iem @ kug ♡ compiled Jul 7 2023 ♡ send me a 'help' message ♡♡♡ matchbox: OSC-pattern matching code (c) Matt Wright, CNMAT iemgui (1.21-1) library loaded! (c) Thomas Musil Sep 13 2022 : 19:34:09 musil@iem.at iem KUG Graz Austria dsp ... couldn't create rbpq2~ 1000 2 100 ... couldn't create mull~ 1 100 ... couldn't create fadtodb ... couldn't create matrix_inverse nonsingular
modified_Ambisonic_2d_example.pd:
#N canvas 1512 175 1512 1715 10; #X declare -stdlib /home/amir/Documents/Pd/externals/iem_ambi -stdlib /home/amir/Documents/Pd/externals/iemmatrix -stdlib /home/amir/Documents/Pd/externals/iemlib -stdlib /home/amir/Documents/Pd/externals/zexy -stdlib /home/amir/Documents/Pd/externals/iemgui ; #X obj 20 44 dsp; #X obj 20 24 tgl 15 0 empty empty empty 0 -6 0 8 -260818 -1 -1 0 1 ; #X floatatom 20 83 5 0 0 0 - - -; #X floatatom 33 65 5 0 0 0 - - -; #X obj 230 88 ambi_encode 2; #X obj 469 102 mtx_*~ 5 1 100; #X obj 509 11 noise~; #X obj 509 32 rbpq2~ 1000 2 100; #X obj 225 591 mtx_print; #X obj 230 140 mtx 5 1; #X msg 230 51 col 1 \$1; #X obj 230 109 t b a; #X obj 699 118 prvu~; #X obj 700 142 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0; #X obj 719 118 prvu~; #X obj 720 142 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0; #X obj 739 118 prvu~; #X obj 740 142 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0; #X obj 759 118 prvu~; #X obj 760 142 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0; #X obj 779 118 prvu~; #X obj 780 142 vu 15 120 empty empty -1 -8 0 8 -66577 -1 1 0; #X obj 115 222 loadbang; #X obj 442 257 mtx_*~ 2 2 100; #X obj 537 257 mtx_*~ 2 2 100; #X obj 233 240 ambi_rot 2; #X obj 699 273 prvu~; #X obj 700 297 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0; #X obj 719 273 prvu~; #X obj 720 297 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0; #X obj 739 273 prvu~; #X obj 740 297 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0; #X obj 759 273 prvu~; #X obj 760 297 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0; #X obj 779 273 prvu~; #X obj 780 297 vu 15 120 empty empty -1 -8 0 8 -66577 -1 1 0; #X obj 411 257 *~ 1; #X obj 131 436 round_zero 1e-06; #X msg 147 343 real_ls \$1 \$2; #X msg 131 364 begin_pseudo_inverse; #X msg 115 385 end_pseudo_inverse; #X obj 115 245 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 131 414 ambi_decode3 2 2 8 0; #X msg 147 322 1 0 \, 2 45 \, 3 90 \, 4 135 \, 5 180 \, 6 225 \, 7 270 \, 8 315; #X obj 425 381 mtx_*~ 8 5 0 ________________; #X obj 115 264 t b b b b; #X obj 508 75 mull~ 1 100; #X obj 678 27 fadtodb; #X obj 551 55 dbtorms; #X obj 618 58 - 100; #X obj 618 82 vsl 15 121 0 120 0 1 empty empty empty 0 -8 0 8 -260818 -1 -1 24000 1; #X floatatom 637 80 5 0 0 0 - - -; #N canvas 0 0 462 312 __________________________ 0; #X obj 25 66 rvu~; #X obj 25 86 + 100; #X obj 25 106 dbtorms; #X obj 25 127 outlet; #X obj 75 66 rvu~; #X obj 75 86 + 100; #X obj 75 106 dbtorms; #X obj 75 127 outlet; #X obj 125 66 rvu~; #X obj 125 86 + 100; #X obj 125 106 dbtorms; #X obj 125 127 outlet; #X obj 175 66 rvu~; #X obj 175 86 + 100; #X obj 175 106 dbtorms; #X obj 175 127 outlet; #X obj 225 66 rvu~; #X obj 225 86 + 100; #X obj 225 106 dbtorms; #X obj 225 127 outlet; #X obj 275 66 rvu~; #X obj 275 86 + 100; #X obj 275 106 dbtorms; #X obj 275 127 outlet; #X obj 325 66 rvu~; #X obj 325 86 + 100; #X obj 325 106 dbtorms; #X obj 325 127 outlet; #X obj 375 66 rvu~; #X obj 375 86 + 100; #X obj 375 106 dbtorms; #X obj 375 127 outlet; #X obj 25 45 inlet~; #X obj 75 45 inlet~; #X obj 125 45 inlet~; #X obj 175 45 inlet~; #X obj 225 45 inlet~; #X obj 275 45 inlet~; #X obj 325 45 inlet~; #X obj 375 46 inlet~; #X connect 0 0 1 0; #X connect 1 0 2 0; #X connect 2 0 3 0; #X connect 4 0 5 0; #X connect 5 0 6 0; #X connect 6 0 7 0; #X connect 8 0 9 0; #X connect 9 0 10 0; #X connect 10 0 11 0; #X connect 12 0 13 0; #X connect 13 0 14 0; #X connect 14 0 15 0; #X connect 16 0 17 0; #X connect 17 0 18 0; #X connect 18 0 19 0; #X connect 20 0 21 0; #X connect 21 0 22 0; #X connect 22 0 23 0; #X connect 24 0 25 0; #X connect 25 0 26 0; #X connect 26 0 27 0; #X connect 28 0 29 0; #X connect 29 0 30 0; #X connect 30 0 31 0; #X connect 32 0 0 0; #X connect 33 0 4 0; #X connect 34 0 8 0; #X connect 35 0 12 0; #X connect 36 0 16 0; #X connect 37 0 20 0; #X connect 38 0 24 0; #X connect 39 0 28 0; #X restore 425 406 pd __________________________; #X obj 459 490 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198 -1 0 1; #X obj 486 460 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198 -1 0 1; #X obj 486 528 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198 -1 0 1; #X obj 516 450 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198 -1 0 1; #X obj 516 538 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198 -1 0 1; #X obj 546 460 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198 -1 0 1; #X obj 546 528 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198 -1 0 1; #X obj 573 490 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198 -1 0 1; #X msg 310 58 ambi_weight 1 1 1; #X msg 164 299 ambi_weight 1 1 0.3904; #X msg 89 466 ambi_weight 1 1 1; #X text 388 509 +90 degree; #X text 601 506 -90 degree; #X text 486 602 +-180 degree; #X obj 234 220 cnv 12 30 12 empty empty empty 20 12 0 14 -260818 -66577 0; #X obj 231 32 cnv 12 30 12 empty empty empty 20 12 0 14 -260818 -66577 0; #X floatatom 230 31 5 -180 180 0 - - -; #X text 232 14 phi; #X floatatom 233 219 5 -180 180 0 - - -; #X text 231 201 rho_z; #X obj 264 213 cnv 8 8 8 empty empty empty 20 12 0 14 -262144 -66577 0; #X obj 260 24 cnv 8 8 8 empty empty empty 20 12 0 14 -262144 -66577 0; #X text 341 114 ENCODING; #X text 309 378 DECODING; #X text 323 257 ROTATING; #X text 587 90 gain; #X text 24 119 iemmatrix \, iem_ambi \, iemgui; #X text 17 108 we need iemlib1 \, iemlib2 \,; #X text 78 596 IEM KUG; #X text 62 584 musil; #X text 92 584 @; #X text 98 584 iem.at; #X text 61 606 Graz \, Austria; #X text 13 573 (c) Thomas Musil 2000 - 2006; #X obj 182 647 declare -stdlib /home/amir/Documents/Pd/externals/iem_ambi -stdlib /home/amir/Documents/Pd/externals/iemmatrix -stdlib /home/amir/Documents/Pd/externals/iemlib -stdlib /home/amir/Documents/Pd/externals/zexy -stdlib /home/amir/Documents/Pd/externals/iemgui ; #X connect 0 0 2 0; #X connect 0 1 3 0; #X connect 1 0 0 0; #X connect 4 0 11 0; #X connect 5 0 12 0; #X connect 5 0 36 0; #X connect 5 1 14 0; #X connect 5 1 23 1; #X connect 5 2 16 0; #X connect 5 2 23 2; #X connect 5 3 18 0; #X connect 5 3 24 1; #X connect 5 4 20 0; #X connect 5 4 24 2; #X connect 6 0 7 0; #X connect 7 0 46 0; #X connect 9 0 5 0; #X connect 10 0 4 0; #X connect 11 0 9 0; #X connect 11 1 9 0; #X connect 12 0 13 0; #X connect 14 0 15 0; #X connect 16 0 17 0; #X connect 18 0 19 0; #X connect 20 0 21 0; #X connect 22 0 41 0; #X connect 23 0 28 0; #X connect 23 0 44 2; #X connect 23 1 30 0; #X connect 23 1 44 3; #X connect 24 0 32 0; #X connect 24 0 44 4; #X connect 24 1 34 0; #X connect 24 1 44 5; #X connect 25 0 23 0; #X connect 25 1 24 0; #X connect 26 0 27 0; #X connect 28 0 29 0; #X connect 30 0 31 0; #X connect 32 0 33 0; #X connect 34 0 35 0; #X connect 36 0 26 0; #X connect 36 0 44 1; #X connect 37 0 44 0; #X connect 38 0 42 0; #X connect 39 0 42 0; #X connect 40 0 42 0; #X connect 41 0 45 0; #X connect 42 0 37 0; #X connect 43 0 38 0; #X connect 44 0 52 0; #X connect 44 1 52 1; #X connect 44 2 52 2; #X connect 44 3 52 3; #X connect 44 4 52 4; #X connect 44 5 52 5; #X connect 44 6 52 6; #X connect 44 7 52 7; #X connect 45 0 40 0; #X connect 45 1 39 0; #X connect 45 2 43 0; #X connect 45 3 62 0; #X connect 46 0 5 1; #X connect 47 0 48 0; #X connect 47 0 49 0; #X connect 48 0 46 1; #X connect 49 0 51 0; #X connect 50 0 47 0; #X connect 52 0 56 0; #X connect 52 1 54 0; #X connect 52 2 53 0; #X connect 52 3 55 0; #X connect 52 4 57 0; #X connect 52 5 59 0; #X connect 52 6 60 0; #X connect 52 7 58 0; #X connect 61 0 4 0; #X connect 62 0 42 0; #X connect 63 0 42 0; #X connect 69 0 10 0; #X connect 71 0 25 0;