Question about the midi clock out objects active outlet


#1

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


#2

its better to fix things in factory rather than others working around them - so everyone benefits.
ive fixed it, sync libraries.


#3

Super :slight_smile: Thanks for fixing it


#4

actually I find the active outlet of the midi clock in object not to be working as well.

When the clock is already running and you start the patch, the outlet will show off wich is really annoying because I want to use it for automatically switching my patch to external clock when there is a clock coming in.

Now you always have to turn off and on the external clocksource in order to get it to work.


#5

Yeah, I also have an idea where I would like to be able to reset only the clock send OUT of Axoloti, the external clock, without resetting the internal clock.

I use Axoloti as master clock and also to sequence synths. So sequences played from Axoloti itself. Works really great.

But the clock.....I use the clock for syncing LFO's on my synths and it would be super nice to be able to ONLY reset the midi clock send out of Axoloti, the external send clock. Then I can reset the external clock/sync for the LFO's, while the sequencers are still playing from Axoloti inertanlly, without stopping. If I reset in always on the beat it should work as I hope.

As for now, pushing reset, just resets everything. internally as well as externally.


#6

You could just use two lfo's as clock, on for your internal stuff, and the second one for the external and hook that up to drjustice clock out object. Then you could easily reset only the clock for the external stuff.


#7

Ahhh. Definatly going to try that. Thanks :wink: