bool DeciBel::verifyAndSpecifyTypes(Types const& _inTypes, Types& _outTypes) { Typed<Spectrum> in = _inTypes[0]; if (!in) return false; m_min = in->min(); m_delta = in->max() - m_min; m_bins = in->bins(); in->setRange(0, 60); _outTypes[0] = in; return true; }
bool Window::verifyAndSpecifyTypes(Types const& _inTypes, Types& o_outTypes) { Typed<Contiguous> in = _inTypes[0]; if (!in || in->arity() != 1) return false; o_outTypes[0] = WaveChunk(m_size + m_padding, in->frequency() / float(m_hop), in->frequency(), in->max(), in->min()); return true; }