Hey!
Was just looking through the midi/clock/out object to see how it was working. And I noticed that the outlet_act, is not fed with anything. Doesnt that mean that it doesnt do anything? I see there is an bool called _active, but it isnt send to the output.. Here is the code;
if (inlet_rst & !rstp){
rstp = 1;
_posfrac = 0;
_pos24ppq = 0;
} else if (!inlet_rst){
rstp = 0;
}
if (inlet_run && !_active) {
_active = 1;
if (pos24ppq) MidiSend1((mididevice_t) attr_device, MIDI_CONTINUE);
else MidiSend1((midi_device_t) attr_device, MIDI_START);
} else if (!inlet_run && _active){
_active = 0;
MidiSend1((midi_device_t) attr_device, MIDI_STOP);
}if (_active) {
posfrac += parambpm;
if (_posfrac & 1<<31) {
_posfrac &= (1<<31)-1;
_pos24ppq++;
MidiSend1((midi_device_t) attr_device,MIDI_TIMING_CLOCK);
}
}
outlet_pos4ppq = _pos24ppq/6;
outlet_pos24ppq = _pos24ppq;
Could I fix it by adding this:
outlet_act = _active;
And how would I test if it is working?
Thanks