aboutsummaryrefslogtreecommitdiff
path: root/msd.h
diff options
context:
space:
mode:
authorN.N. <nimon@users.sourceforge.net>2007-05-14 17:56:25 +0000
committerN.N. <nimon@users.sourceforge.net>2007-05-14 17:56:25 +0000
commit1656112cd203ef39813f5b6707a09c8909ced805 (patch)
treed433b811ae88d1aa4bc7faea644afaa0f992c1b3 /msd.h
parent4d84a11545cd2f2a65b86e27febdc50ee74f1716 (diff)
*** empty log message ***
svn path=/trunk/externals/nusmuk/; revision=7657
Diffstat (limited to 'msd.h')
-rw-r--r--msd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/msd.h b/msd.h
index 6a26b45..fdadb46 100644
--- a/msd.h
+++ b/msd.h
@@ -1253,6 +1253,13 @@ protected:
ToOutAnything(0,S_massesPos,1+N,sortie);
}
}
+ else if (auxtype == S_massesPosName) { // get all masses positions output Id
+ for(typename IndexMap<t_mass *>::iterator mit(mass); mit; ++mit) {
+ SetSymbol(sortie[0],mit.data()->Id);
+ for(int i = 0; i < N; ++i) SetFloat(sortie[1+i],mit.data()->pos[i]);
+ ToOutAnything(0,S_massesPos,1+N,sortie);
+ }
+ }
else if (auxtype == S_massesPosMean) { // get all masses positions mean
for(int i = 0; i<N; ++i)
mean[i] = 0;
@@ -1714,6 +1721,7 @@ private:
const static t_symbol *S_Mass_deleted;
const static t_symbol *S_Link_deleted;
const static t_symbol *S_massesPos;
+ const static t_symbol *S_massesPosName;
const static t_symbol *S_massesPosMean;
const static t_symbol *S_massesPosStd;
const static t_symbol *S_massesPosNo;
@@ -1753,6 +1761,7 @@ private:
S_Mass_deleted = MakeSymbol("Mass deleted");
S_Link_deleted = MakeSymbol("Link deleted");
S_massesPos = MakeSymbol("massesPos");
+ S_massesPosName = MakeSymbol("massesPosName");
S_massesPosMean = MakeSymbol("massesPosMean");
S_massesPosStd = MakeSymbol("massesPosStd");
S_massesPosNo = MakeSymbol("massesPosNo");
@@ -1892,6 +1901,7 @@ template<int N> const t_symbol *msdN<N>::S_nLink;
template<int N> const t_symbol *msdN<N>::S_Mass_deleted;
template<int N> const t_symbol *msdN<N>::S_Link_deleted;
template<int N> const t_symbol *msdN<N>::S_massesPos;
+template<int N> const t_symbol *msdN<N>::S_massesPosName;
template<int N> const t_symbol *msdN<N>::S_massesPosNo;
template<int N> const t_symbol *msdN<N>::S_massesPosId;
template<int N> const t_symbol *msdN<N>::S_linksPos;