Forums > MaxMSP

tarjectoire in SPAT

April 19, 2007 | 1:28 am

Bonjour,

I try to create some trajectoires for spatialisation in Ircam’s SPAT.
Is there a better way to do that than this patch ? I am new in IRCAM
objects and I try to understand this module.

Thanks.

Claude

max v2;
#N vpatcher 67 124 838 717;
#P origin 0 15;
#P window setfont Helvetica 12.;
#P newex 621 330 68 1376268 OPer_init;
#P window setfont "Sans Serif" 9.;
#P number 509 66 62 9 0 0 65 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 510 84 56 196617 domain $1;
#P button 405 86 15 0;
#P message 461 86 33 196617 clear;
#P message 427 86 30 196617 next;
#P message 147 265 14 196617 1;
#P toggle 147 223 15 0;
#P newex 147 242 29 196617 gate;
#P user function 427 105 627 205 1 1 0 0;
#X frgb 82 82 82;
#X brgb 204 204 204;
#X rgb2 85 85 85;
#X rgb3 255 255 255;
#X rgb4 0 0 0;
#X rgb5 0 0 0;
#X add 0. 90. 0;
#X add 1595.744629 -39.6 2;
#X add 2686.170166 8.4 0;
#X add 3164.893555 -46.8 0;
#X add 3962.765869 82.8 2;
#X add 4468.084961 -32.4 2;
#X add 5000. 1.200002 0;
#X domain 5000.;
#X range -90. 90.;
#X done;
#P user number~ 492 232 554 247 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221
221 221 222 222 222 0 0 0;
#P newex 490 210 102 196617 line~;
#P flonum 374 216 35 9 0 0 64 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 374 239 49 196617 $1 2000;
#P newex 427 255 74 196617 line 0. 0 1000;
#P message 427 275 76 196617 source Dist $1;
#P button 517 271 15 0;
#P number 568 235 35 9 0 0 64 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 544 270 70 196617 source Az $1;
#P window setfont Helvetica 14.;
#P newex 544 291 144 1376270 Spat_OPer;
#P toggle 75 255 15 0;
#P window setfont "Sans Serif" 9.;
#P message 100 255 30 196617 open;
#N sfplay~ 1 120960 0 ;
#P newobj 100 285 108 196617 sfplay~;
#P toggle 48 455 38 0;
#P user meter~ 287 355 300 478 50 0 168 0 103 103 103 255 153 0 255 0
0 217 217 0 153 186 0 12 3 3 3 3;
#P user gain~ 262 356 24 100 158 0 1.071519 7.94321 10.;
#P user meter~ 234 355 247 478 50 0 168 0 103 103 103 255 153 0 255 0
0 217 217 0 153 186 0 12 3 3 3 3;
#P user gain~ 209 356 24 100 158 0 1.071519 7.94321 10.;
#P user meter~ 178 354 191 477 50 0 168 0 103 103 103 255 153 0 255 0
0 217 217 0 153 186 0 12 3 3 3 3;
#P user gain~ 153 355 24 100 158 0 1.071519 7.94321 10.;
#P user meter~ 125 354 138 477 50 0 168 0 103 103 103 255 153 0 255 0
0 217 217 0 153 186 0 12 3 3 3 3;
#P user gain~ 100 355 24 100 158 0 1.071519 7.94321 10.;
#P newex 101 494 174 196617 dac~ 1 2 3 4;
#P window setfont "Sans Serif" 20.;
#P newex 100 315 454 196628 spat~ 1Da 8c 4r 0;
#P connect 27 0 11 0;
#P connect 12 0 11 0;
#P connect 13 0 11 0;
#P connect 11 0 0 0;
#P connect 0 0 2 0;
#P connect 2 0 1 0;
#P connect 10 0 1 0;
#P hidden connect 2 0 3 0;
#P connect 26 0 25 0;
#P connect 25 0 27 0;
#P connect 0 1 4 0;
#P hidden connect 2 1 4 0;
#P connect 4 0 1 1;
#P fasten 11 1 25 1 203 307 218 307 218 235 171 235;
#P hidden connect 4 0 5 0;
#P connect 0 2 6 0;
#P connect 6 0 1 2;
#P hidden connect 6 0 7 0;
#P connect 0 3 8 0;
#P hidden connect 6 1 8 0;
#P connect 8 0 1 3;
#P hidden connect 8 0 9 0;
#P connect 21 0 20 0;
#P connect 31 0 24 0;
#P connect 30 0 24 0;
#P connect 29 0 24 0;
#P connect 28 0 24 0;
#P connect 20 0 19 0;
#P connect 19 0 18 0;
#P connect 24 1 22 0;
#P connect 22 0 23 0;
#P connect 32 0 31 0;
#P connect 23 1 15 0;
#P connect 16 0 15 0;
#P connect 18 0 14 0;
#P connect 17 0 14 0;
#P connect 15 0 14 0;
#P connect 14 0 0 2;
#P pop;

=====
Claude Frenette
compositeur
claudefr@videotron.ca


April 19, 2007 | 7:51 am

hello claude,
you might try the ambimonitor/ambicontrol externals from the icst
ambisonics tools.
this combination gives you a GUI and trajectory recording and plaback
capability.
the output is compatible with the spat-coordinates. attachd is an
extract from the help-files.
you can download the icst ambisonics objects from http://www.icst.net/
downloads/

hth

/*j

//////////

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 106 484 67 196617 to Spat OPer;
#P message 149 446 76 196617 source Dist $1;
#P message 78 446 70 196617 source Az $1;
#P newex 42 417 102 196617 unpack s 0 0. 0. 0. 0;
#P comment 415 302 57 196617 playback:;
#P comment 709 304 100 196617 move point manually;
#P comment 614 304 38 196617 …or…;
#P comment 749 323 119 196617 original time in ms;
#P comment 767 341 160 196617 fraction of the trajectory;
#P toggle 485 320 15 0;
#P number 709 322 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 709 359 45 196617 time $1;
#P flonum 727 340 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 485 304 58 196617 start/stop;
#P comment 756 233 88 196617 delete trajectory;
#P comment 673 212 43 196617 finalise;
#P comment 476 145 160 196617 – "close" finalises the trajectory;
#P comment 684 133 116 196617 aed


April 19, 2007 | 11:29 am

anyone else sees the patch above as url link at the forums?


April 21, 2007 | 4:46 am


April 23, 2007 | 1:10 am


April 23, 2007 | 6:15 am

hello claude,
thanks for your feedback. the way to handle mltiple trajectories isto
write them to disk and rea them back when needed, coupled with a 1
to start playback immediately.

hth

/*j

> ambimonitor seems to be exactely what i need. Do yoy know if it is
> possible to record more than one trajectory in ambicontrol ? I did
> not find anything on the help file about that.

save as test1.xml

< ?xml version="1.0" standalone="yes" encoding="UTF-8"?>



-0.090000 -0.050000 0.000000

0.020000 -0.000000 0.000000

0.280000 0.140000 0.000000

0.540000 0.400000 0.000000

0.420000 0.470000 0.000000

0.200000 0.400000 0.000000

0.120000 0.110000 0.000000

0.090000 -0.090000 0.000000

-0.210000 -0.130000 0.000000

-0.430000 0.050000 0.000000

-0.150000 0.200000 0.000000

0.060000 0.070000 0.000000

0.080000 -0.100000 0.000000

0.220000 -0.080000 0.000000

0.350000 0.160000 0.000000

-0.360000 0.040000 0.000000

-0.000000 -0.290000 0.000000

0.420000 -0.050000 0.000000

0.080000 0.070000 0.000000

-0.070000 -0.130000 0.000000

0.090000 -0.280000 0.000000

-0.030000 -0.350000 0.000000

-0.360000 -0.120000 0.000000

-0.010000 0.330000 0.000000

0.370000 0.210000 0.000000

-0.030000 -0.190000 0.000000

-0.290000 -0.050000 0.000000

0.040000 0.420000 0.000000

0.360000 0.440000 0.000000

0.310000 0.460000 0.000000

-0.250000 0.220000 0.000000

0.260000 -0.040000 0.000000

0.730000 0.190000 0.000000

0.380000 0.080000 0.000000

0.080000 -0.290000 0.000000

-0.060000 -0.270000 0.000000

0.130000 0.230000 0.000000

0.570000 0.140000 0.000000

0.350000 -0.340000 0.000000

0.310000 0.070000 0.000000

0.890000 0.300000 0.000000

0.740000 -0.040000 0.000000

0.450000 -0.120000 0.000000

0.290000 -0.220000 0.000000

0.260000 -0.310000 0.000000

0.520000 -0.190000 0.000000

0.720000 0.230000 0.000000

-0.260000 0.100000 0.000000

-0.540000 -0.430000 0.000000

-0.300000 -0.520000 0.000000

0.080000 -0.060000 0.000000

0.130000 0.100000 0.000000

save as test2.xml

< ?xml version="1.0" standalone="yes" encoding="UTF-8"?>



0.240000 -0.310000 0.000000

0.200000 -0.310000 0.000000

0.150000 -0.310000 0.000000

0.130000 -0.310000 0.000000

0.100000 -0.280000 0.000000

0.020000 -0.260000 0.000000

-0.020000 -0.250000 0.000000

-0.090000 -0.240000 0.000000

-0.150000 -0.230000 0.000000

-0.180000 -0.140000 0.000000

-0.190000 -0.100000 0.000000

-0.210000 -0.030000 0.000000

-0.260000 -0.020000 0.000000

-0.340000 0.040000 0.000000

-0.410000 0.140000 0.000000

-0.420000 0.190000 0.000000

-0.440000 0.230000 0.000000

-0.470000 0.280000 0.000000

-0.510000 0.300000 0.000000

-0.530000 0.300000 0.000000

your patch, modiefied a little

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 547 500 90 196617 read test2.xml , 1;
#P message 536 457 82 196617 write test2.xml;
#P message 453 458 82 196617 write test1.xml;
#P comment 106 484 67 196617 to Spat OPer;
#P message 149 446 76 196617 source Dist $1;
#P message 78 446 70 196617 source Az $1;
#P newex 42 417 102 196617 unpack s 0 0. 0. 0. 0;
#P comment 415 302 57 196617 playback:;
#P comment 709 304 100 196617 move point manually;
#P comment 614 304 38 196617 …or…;
#P comment 749 323 119 196617 original time in ms;
#P comment 767 341 160 196617 fraction of the trajectory;
#P toggle 485 320 15 0;
#P number 709 322 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 709 359 45 196617 time $1;
#P flonum 727 340 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 485 304 58 196617 start/stop;
#P comment 756 233 88 196617 delete trajectory;
#P comment 673 212 43 196617 finalise;
#P comment 476 145 160 196617 – "close" finalises the trajectory;
#P comment 684 133 116 196617 aed


Viewing 6 posts - 1 through 6 (of 6 total)