Feature Request #718

extract TTValue from a TTValue array

Added by Laurent Garnier over 6 years ago. Updated about 4 years ago.

Status:ClosedStart date:2011-03-01
Priority:NormalDue date:
Assignee:Tim Place% Done:


Category:-Spent time:-
Target version:-


Hi Tim,

I would need to get the TTValue from an array containing

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 ?



TTDeviceManager.cpp Magnifier (1.14 KB) Laurent Garnier, 2011-03-01 06:44 pm

TTDevice.cpp Magnifier (471 Bytes) Laurent Garnier, 2011-03-01 06:44 pm


#1 Updated by Tim Place over 6 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,

#2 Updated by Laurent Garnier over 6 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,

#3 Updated by Trond Lossius about 4 years ago

  • Status changed from New to Closed

Moved to GitHub

Also available in: Atom PDF