[PD-cvs] externals/nusmuk msd.h,1.14,1.15
Nicolas Montgermont
nimon at users.sourceforge.net
Mon May 14 19:56:27 CEST 2007
Update of /cvsroot/pure-data/externals/nusmuk
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18255
Modified Files:
msd.h
Log Message:
Index: msd.h
===================================================================
RCS file: /cvsroot/pure-data/externals/nusmuk/msd.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** msd.h 26 Jul 2006 15:03:48 -0000 1.14
--- msd.h 14 May 2007 17:56:25 -0000 1.15
***************
*** 1254,1257 ****
--- 1254,1264 ----
}
}
+ 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)
***************
*** 1715,1718 ****
--- 1722,1726 ----
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;
***************
*** 1754,1757 ****
--- 1762,1766 ----
S_Link_deleted = MakeSymbol("Link deleted");
S_massesPos = MakeSymbol("massesPos");
+ S_massesPosName = MakeSymbol("massesPosName");
S_massesPosMean = MakeSymbol("massesPosMean");
S_massesPosStd = MakeSymbol("massesPosStd");
***************
*** 1893,1896 ****
--- 1902,1906 ----
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;
More information about the Pd-cvs
mailing list