MCPcopy Create free account
hub / github.com/csound/csound / init

Method init

Opcodes/pvsops.cpp:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 static constexpr char const *itypes = "fk";
30
31 int init() {
32 if (inargs.fsig_data(0).isSliding())
33 return csound->init_error("sliding not supported");
34 if (inargs.fsig_data(0).fsig_format() != csnd::fsig_format::pvs &&
35 inargs.fsig_data(0).fsig_format() != csnd::fsig_format::polar)
36 return csound->init_error("fsig format not supported");
37
38 amps.allocate(csound, inargs.fsig_data(0).nbins());
39 csnd::Fsig &fout = outargs.fsig_data(0);
40 fout.init(csound, inargs.fsig_data(0));
41 framecount = 0;
42 return OK;
43 }
44
45 int kperf() {
46 csnd::pv_frame &fin = inargs.fsig_data(0);

Callers

nothing calls this directly

Calls 6

isSlidingMethod · 0.80
init_errorMethod · 0.80
fsig_formatMethod · 0.80
allocateMethod · 0.80
nbinsMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected