Changeset 745 for cpp/frams/_demos/multiline_f0_test.cpp
- Timestamp:
- 02/27/18 17:12:25 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/multiline_f0_test.cpp
r534 r745 39 39 printf("Converted to f0:\n%s\n",m.getF0Geno().getGenes().c_str()); 40 40 41 printf("\nusing Param::save () to create the \"expanded\" form of the f0 genotype...\n(MultiParamLoader should be able to load this)");41 printf("\nusing Param::saveMultiLine() to create the \"expanded\" form of the f0 genotype...\n(MultiParamLoader should be able to load this)"); 42 42 43 43 StringFILE2 f; … … 50 50 51 51 modelparam.select(&m); 52 modelparam.save (&f,"m");52 modelparam.saveMultiLine(&f,"m"); 53 53 54 54 Part *p; … … 59 59 { 60 60 partparam.select(p); 61 partparam.save (&f,"p");61 partparam.saveMultiLine(&f,"p"); 62 62 } 63 63 for (int i=0;j=(Joint*)m.getJoint(i);i++) … … 65 65 jointparam.select(j); 66 66 jointparam.setParamTab(j->usedelta?f0_joint_paramtab:f0_nodeltajoint_paramtab); 67 jointparam.save (&f,"j");67 jointparam.saveMultiLine(&f,"j"); 68 68 } 69 69 for (int i=0;n=(Neuro*)m.getNeuro(i);i++) 70 70 { 71 71 neuroparam.select(n); 72 neuroparam.save (&f,"n");72 neuroparam.saveMultiLine(&f,"n"); 73 73 } 74 74 for (int a=0;n=(Neuro*)m.getNeuro(a);a++) … … 83 83 nc.info=n->getInputInfo(b); 84 84 connparam.select(&nc); 85 connparam.save (&f,"c");85 connparam.saveMultiLine(&f,"c"); 86 86 } 87 87 } … … 107 107 108 108 109 using Param::save () to create the "expanded" form of the f0 genotype...109 using Param::saveMultiLine() to create the "expanded" form of the f0 genotype... 110 110 (MultiParamLoader should be able to load this) 111 111 ============================
Note: See TracChangeset
for help on using the changeset viewer.