Ejemplo n.º 1
0
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;
}
Ejemplo n.º 2
0
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;
}