From ftm
Revision as of 12:09, 3 September 2010 by Diemo (talk | contribs) (http://listes.ircam.fr/wws/arc/ftm/2010-09/msg00004.html)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Q: I need to dynamically build the name of the fmat (using sprintf, for example), and I can't find a way to do it with ftm.mess. (Mathieu Chamagne)

A (global): Organising your data into FTM structures is the way to go, because it is the only efficient way. You may need to change your coding style, but you will gain a better control over the data, to store and retrieve them, even with automated processes. (Jean-Philippe Lambert)

A (particular): Normal max messages won't work in this case because they only output a string (the message itself) while ftm.mess outputs a reference to the object you are calling. This creates then the problem that when you try to manipulate the names in the ftm.mess it treats $buf not as a string but as an object. It actually does this for anything that starts with '$', this character is not treated as a character but as a reference to a variable. (Miguel Ortiz)

Ref: This mailing list thread contains the original discussion and *many* example patches.