Administrateur

  • Profile picture of warusfel
  • Profile picture of T.

Spat

Groupe Public active 5 hours et 10 minutes ago

User group for Spat, panoramix, ToscA , and ADMix

saving/initializing parameters in Spat 5

Auteur 4 Utilisateurs souscrits |
Profile photo of ctrapani
ctrapani

In Spat 4, one could send a dump message and save all Spat.Oper parameters in one long message, reloading it upon init. Something like this:

“aperture 80. 80. 80. 80. 80. 80. 80. 80., aperturecolor 1. 1. 1. 0.62, areasmonitoring 0, automaticspeakerstimealignment 0, autozoom 0, axis 0. 0. 0. 0. 177. 5657. 0. 0. 0. 0. 177. 5657. 0. 0. 0. 0. 177. 5657. 0. 0. 0. 0. 177. 5657. 0. 0. 0. 0. 177. 5657. 0. 0. 0. 0. 177. 5657. 0. 0. 0. 0. 177. 5657. 0. 0. 0. 0. 177. 5657., backgroundcolor 0.7 0.7 0.7 1., backgroundimage none, backgroundimageangle 0., backgroundimageopacity 1., backgroundimagequality medium, backgroundimagescale 1., backgroundimagexoffset 0., backgroundimageyoffset 0., bril 30. 30. 30. 30. 30. 30. 30. 30., bypass 0, circularconstraint 0, cluster_distr 0.47, cluster_end 92.68, cluster_start 36.71, dashedgrid 0, defer 1, delays 0. 0. 0. 0., display 1, doppler 0 0 0 0 0 0 0 0, drop 6. 6. 6. 6. 6. 6. 6. 6., dropmode log2 log2 log2 log2 log2 log2 log2 log2, early_distr 0.45, early_end 40.79, early_shape 0.5, early_start 24.41, early_width 30. 30. 30. 30. 30. 30. 30. 30., env 24. 24. 24. 24. 24. 24. 24. 24., format aed, globalproportion 0.1, gridcolor 1. 1. 1. 1., gridlines 5, gridmode circular, gridspacing 1., heaviness 25., height 400, infinite 0, listenereditable 0, listenerpitch 0., listenerposition 0. 0. 0., listenerproportion 0.15, listenerroll 0., listeneryaw 0., liveness 35., modaldensity 0., multipleoutlets 0, mute 0, name “1” “2” “3” “4” “5” “6” “7” “8”, numanchors 0, numangulardivisions 8, numareas 0, numcascades 1, numinternals 8, numreverbs 1, numsources 8, numspeakers 4, omni 0. 1.7 0. -3.8 177. 5657. 0. 1.7 0. -3.8 177. 5657. 0. 1.7 0. -3.8 177. 5657. 0. 1.7 0. -3.8 177. 5657. 0. 1.7 0. -3.8 177. 5657. 0. 1.7 0. -3.8 177. 5657. 0. 1.7 0. -3.8 177. 5657. 0. 1.7 0. -3.8 177. 5657., orientationmode yawconstraint yawconstraint yawconstraint yawconstraint yawconstraint yawconstraint yawconstraint yawconstraint, outputfiltersQ 1. 1. 1. 1., outputfiltersfreq 1000. 1000. 1000. 1000., outputfiltersgain 0. 0. 0. 0., outputfilterstype Null Null Null Null, pan_rev 0. 0. 0. 0. 0. 0. 0. 0., pitch 0. 0. 0. 0. 0. 0. 0. 0., prer 48. 48. 48. 48. 48. 48. 48. 48., pres 108.5466 108.038002 108.741203 108.117599 108.458099 108.007103 108.803101 108.431602, radius 1. 1. 1. 1. 1. 1. 1. 1., radiusconstraint 0, reverb_start 83.42, reverberance 45., reverbfreqhigh 8000., reverbfreqlow 250., reverbid 1 1 1 1 1 1 1 1, revp 34. 34. 34. 34. 34. 34. 34. 34., rightclicklock 0, roomactive 1, roomairabsorption 1, roomairrolloff 10000., shoeboxcorners 0. 0. 0. 1. -1. 0., showanchors 0, showanchorslabel 0, showangulardivisions 1, showaperture 1, showareas 0, showbackgroundimage 1, showcriteria 0, showfps 0, showheadphones 0, showlegend 1, showlistener 1, showpresence 1, showradius 0, showshoebox 0, showsources 1, showsourceslabel 1, showsourceslevels 0, showspeakers 1, showspeakershull 0, showspeakerslabel 1, showspeakerslevels 0, showspeakersprojection 0, showspeakersradius 0, showspeakerstriangulation 0, showviewer 1, sourceairabsorption 1 1 1 1 1 1 1 1, sourcecolor 0.490196 1. 0. 1. 0.490196 1. 0. 1. 0.490196 1. 0. 1. 0.490196 1. 0. 1. 0.490196 1. 0. 1. 0.490196 1. 0. 1. 0.490196 1. 0. 1. 0.490196 1. 0. 1., sourcemute 0 0 0 0 0 0 0 0, sourceproportion 0.07, sourceseditable 1, sourceslevels -60. -60. -60. -60. -60. -60. -60. -60., sourcesolo 0 0 0 0 0 0 0 0, sourcespositions -0.64843 0.683303 0. 0.707107 0.707107 0. 0.707107 -0.707107 0. -0.707107 -0.707107 0. -0.648951 0.691062 0. 0.707107 0.707107 0. 0.707107 -0.707107 0. -0.707107 -0.707107 0., speakerseditable 0, speakerseq 0, speakerslevels -60. -60. -60. -60., speakerspositions -0.547103 0.699666 0. 0.58654 0.750785 0. 0.562053 -0.718527 0. -0.613382 -0.75104 0., speakersproportion 0.1, speakerstimealignment 0, useopengl 0, vieweronly 0, viewpoint top, warmth 30. 30. 30. 30. 30. 30. 30. 30., width 400, windowmoveable 1, windowtitle Oper, windowtopleft 50. 800., xoffset 0., yaw 0. 0. 0. 0. 0. 0. 0. 0., yoffset 0., zoffset 0., zoom 0.765178, zoomlock 0″

Has anyone written a script or a patch or found another convenient solution for reloading this data in a Spat5.Oper, for those of us who want to update old patches but hold onto our settings?

Thanks so much!

Décembre 18, 2018 à 22:04 #28596
Profile photo of T.
T.

Hi Christopher,

Sorry again for the major compatibility break (that was for good reasons…)
I’m not aware of any automatic solution for reloading your data.
Nonetheless, the conversion is rather straightforward.
I’m sending you a horrible patch (made in 3 minutes) to do so.
Note that this patcher is not generic, not bullet-proof, not elegant, and does not handle all parameters (I was too lazy, and only implemented the “most important” ones).
The unhandled parameters are printed, so you could easily adapt/extend the patch to your needs.

Best,
T.

— Pasted Max Patch, click to expand. —
Décembre 19, 2018 à 12:56 #28597
Profile photo of ctrapani
ctrapani

Merci T.! This is a very helpful start. I’m happy to have learned about “slashify” too. — C

Décembre 19, 2018 à 17:50 #28598
Profile photo of ctrapani
ctrapani

Actually, a follow-up question: What’s the best strategy for storing/reloading init parameters in Spat5?

In Spat 4 I would interact with spat.oper. In the tutorial I see the initial_enable parameter for spat5.viewer, but it does not seem to be available for spat5.oper. I tried /preset/export and /preset/load with spat5.oper too, and that didn’t seem to work, at least at first attempt. Just curious to know what the recommended solution would be before pursuing it further. Many thanks again! 

Décembre 19, 2018 à 21:28 #28599
Profile photo of nadir B.
nadir B.

Hi,

As Spat5 and Antescofo handle both efficiently the OSCommuniation, we can write init. scripts that can be loaded automatically through the @load or @insert attributes. You may take a look at the Trajectory Score Library. There is a link on the spat overview patch. I started the task of controlling trajectories ans it doea the job. And also tweak parameters but didn’t go so far for the moment… We may experiment and think of an efficient way using maps and tabs fetch the needed data algorithmically and so on… :-)

Best

N.

Décembre 20, 2018 à 01:29 #28600
Profile photo of Maija HYNNINEN
Maija HYNNINEN

I use .txt files to both save and upload all spat5.oper data. For me /preset/export and /preset/load work. I just created a folder path to where my patch is and save and load from there. It seems to be storing all data from Spat5.oper. Should also work with other spat5 objects. Nice feature!

I can also send upload the patch if someone is interested in that. It’s just a hack of a spat5 helpfile really.

Best,
Maija

Décembre 20, 2018 à 09:02 #28602
Profile photo of T.
T.

Hi,

In addition to that, I can say that the different init strategies presented in the “spat5.tuto-osc-3″ tutorial are supposed to work with any GUI object (not only spat5.viewer). If it wasn’t the case, please report issues.

Best,
T.

Décembre 20, 2018 à 10:42 #28605

Vous devez être connecté pour répondre à ce sujet.

Log in now