[ossia.parameter] is losing its value when [ossia.model] changes its address

Hi

I have been observing some effects with max-ossia which I consider to be bugs. But it could well be a misunderstanding on my side:

consider the following patch:


----------begin_max5_patcher----------
1830.3ocyZszaiaCD9r8uBBcpEvIPTurUOsaOVTrEnWyFXPKwXysRhBRzIN6
h8+d4K8zRNLdkRxgHEygjZlu4AGRN+X4BqczS3RKve.tCrXwOVtXgrIQCKz+
dgUJ5TTBpT1Mqrio6vEVqTjHwxFo691MtNUMliJPoXFtXKNCsKAK5hslFe3j
rDLSNYvlFoGYUs5TOMrnCjr8aKvQLEK546cq8JfKbi3kus3oiys1f60iQMMr
mywpAXYsBXsCks2BbunG+b4RwiUFJr6NxXzrgDV2IRXgWPXggsDVGupmiKrW
uflhKKQ6wUBECeRxDVn33BNIP5y+C6.t3Oom9BWZG.PbBsFRncdsBsqMTHmP
+P0KWCTwWkDOpcLz+MvNVoZ8breariyvOwEsyzt4f8X11LtPVlihFRsNQZ0.
kDtApdEXjRs8zw0TJoSKdKrdfjfeDWTR39mMe7EVn77VMun0PDXx2nxIZyp5
lHYplrqap.+HoZ7d0shJ3BEiKQGKj7n0o.OqlogFiKxNRjrhpQt1QyRR8PCJ
KCrvUWUjafIeaIxDJM5cCjuBr8avItddeBM5+vwsYYKZNNijky8TwYLDSy60
jiwOfNlv19.MiUR9tjCfbzeH5On4vAIJjAI6+4BBJoV.1WPhoYBlnilPzb0m
6NtqrxgtsvH6QFJefAyM93vxHDK4B4wxcnBghR6X5TQjQoIcIUOtD7CLM4bR
VVOTjQyGmXAY+gKL1cTNwzKM2RJkaOlontkaSv1VhdrKZyPIIZm0tS+ITFIE
wvLhRE3XWSTEb5PYTAMIoi7pn73.Th413Q3mHwrCxOTaiAd2I4UFQV0Z4Xxd
bIqaaLz9xtsTxdVA5sZ53NsO7VFNMOgKEc6PmbPZ6v1NrVm1u3pWciwEkfQE
.Nr1l5.Q3FMJ23Q5FKZGj645ys0U9wmGc+hKisnJ5tNFxUBIch32KpeAl6PE
CJw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pDDi4yXANF
fJAHfr2e0hCb7.0.9m6.NIm2mTpo1a0EnH2ATUzO2wcofN9dgBeq0gA1q2H9
uMgdP3FoqVM57qUKe5BfRcpO5BfpiI3DEd9kqiuufeZ7p3KXZVKB5IuV6ph3
ya8qc0HY+5dLMJouepIZL37Lk6bXDikORS5HmAyl9gfF7cBamvrUJINmx860
RVPn5DicjmJnaP8uZvpNa9+p4zPC3TXmTZGlU00iZqe7KBgAFvXNSfpxwPU0
agIQWdo6AOc0eXWSzv9SARF9FoxbcuJ2XU3idUBp3azqBP6U8mmW4miW0m8q
3S4NWTU+VuPV04v7WnTZJZ6Axdtnu+.SrAmBTVUz5pJsrKjfhh3oo0ZAKnJQ
P+lrAqD8UZnsfOf9kgmUJelIUAQpPnQJL0k+b4+CspFij
-----------end_max5_patcher-----------
  1. when pressing ‘namespace’ you get the current value of all the parameters. the only [ossia.parameter] object has @default = 123, so I would assume the value is 123, but instead it is 0. pressing the ‘bang’ confirms this. is this expected behavior?

  2. changing the [ossia.model] @address and then pressing ‘namespace’ , the value of the parameter is again 0. I would expect it to be the same value as before, since the parameter has just changed the address space, but not the value.

can someone explain me this effect? and if this is expected behavior, how would you go about where I can change the address of the model without changing the values of its parameters?

cheers

martin

Hi!

  1. that only happens when creating objects, right ? I’ve reopened and commented here: https://github.com/OSSIA/libossia/issues/441#issuecomment-464100403

  2. I see your point. I think it’s right. Though, I don’t think this has ever been specified, so feel free to add a feature request for that one.

Cheers!

Pascal

  1. thats correct.
  2. ok, its done: feature request
1 Like