Feature Request #718
extract TTValue from a TTValue array
Status: | Closed | Start date: | 2011-03-01 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | - | Spent time: | - | |
Target version: | - | |||
Branch: |
Description
Hi Tim,
I would need to get the TTValue from an array containing
-TTSymbolPtr
-TTSymbolPtr
-TTValue
I think the best way is to show you my code (for readability I attached files):
In TTDeviceManager.cpp is a callback method (when en attr is modified) that has to extract needed args from the baton and sendMessage with.
The "ListenAnswer" method in TTDevice.cpp is then called and has to decompose the array.
I perfectly get the 2 first Symbols but the TTValue is lost.
As you can see i tried to get it by casting with (TTPtr*) but the TTValue is empty...
By adding a TTValue::get(TTUInt16, TTValue&) wouldn't that work better, or simply did I forget something ?
Best,
Laurent.
History
#1
Updated by Tim Place about 10 years ago
Hi Laurent,
I think having a
TTValue::get(TTUInt16, TTValue&)
seems very sensible. If you'd like to add it, please feel free to do so!
On a related note I've created a placeholder for a wiki page @ http://redmine.jamoma.org/projects/foundation/wiki about possibly re-writing the TTValue class. I'm not convinced it is doing things the best way. Maybe it's fine though? If you have any thoughts or ideas about this, please share them!
Hope you are well,
Tim
#2
Updated by Laurent Garnier about 10 years ago
Hi Tim,
Thanks for your answer.
Sensible you think ? Do you have an idea why ?
Oh yes I'm going to try add it because I've no solution to do it with existing get methods,
...maybe except refunding TTValue class :p
So you plan to do that ? I've no better idea to implement it for now but i'm going to think about it.
But the wiki page access is 404.
Have a nice day,
Laurent