| 102 | } |
| 103 | |
| 104 | int aperf() { |
| 105 | csnd::Vector<MYFLT> &out = outargs.vector_data<MYFLT>(0); |
| 106 | csnd::Vector<MYFLT> &in = inargs.vector_data<MYFLT>(0); |
| 107 | // copy each a-var ksmps vector in turn |
| 108 | // NB: copying the whole memory block |
| 109 | // from in.begin() to in.end() also works |
| 110 | for (int i = 0; i < in.len(); i++) |
| 111 | std::copy(in.begin() + i * in.elem_offset(), |
| 112 | in.begin() + (i + 1) * in.elem_offset(), |
| 113 | out.begin() + i * in.elem_offset()); |
| 114 | return OK; |
| 115 | } |
| 116 | }; |
| 117 | |
| 118 | /** i-time string plugin opcode example |
nothing calls this directly
no test coverage detected