Example #1
0
	void rate(long inlet, t_symbol * s, long ac, t_atom * av) { 
		t_atom * this_atom;
		long this_number;

		this_atom = &av[0];
		this_number = atom_getlong(this_atom);
		if (this_number > 0) {
			int new_rate = this_number * 512;
			c.setChromaCalculationInterval(512 * this_number);
		}
	}
Example #2
0
	Chordid(t_symbol * sym, long ac, t_atom * av)
		: c(frameSize, sampleRate), chordspotter()
	{ 
		c.setChromaCalculationInterval(512);
		frame.resize(frameSize);
		m_outlets = (void **)sysmem_newptr(sizeof(void *) * numoutlets);
		for (unsigned int i = 0; i < numoutlets; i++){
			m_outlets[numoutlets - i - 1] = outlet_new(this, NULL); // generic outlet
		}
		setupIO(1, 1);
		// post("object created"); 
	}