How to starting clock by pressing a key?

Hello !

I have some project in ableton live and arp from midihub to external synth.

Its simply patch and its work, but i have troubles with playing arp.

Arp starts to play different every start. When i press a key on midi kb, i hear that quantize work, but i want, that clock start to work every pressing a key and stopped, when a key off.

Maybe will be good to do quantize not 4/4 but 4/8 - 4/16?

How i can do this ?

Hi Pavel and welcome to Midihub forums.

I’m not quite sure what you’re asking for, but I think it is this:

  • Live is sending out BPM and patterns which fit to some beat pattern (say 4/4)

  • You want Midihub arp to snap to those beats whenever you hold a chord.



This is not possible because:

After saying “Start”, Live is only sending out Clock messages, not any info about where in the bar/song it is†

Check it out yourself:

try filtering out any notes CCs etc coming from Live and watch the Monitor as you try different BPMs.

Here’s one sec at 60BPM and 30BPM


this makes it easier to figure out there are 24 Clocks to the beat.

but Clock doesn’t have any other data, it’s a bit like a real clock going “tick, tick, tick…”;
Midihub can’t see the clock hands (it doesn’t even get “tick, tock, tick…”!)



So that’s all Arp has to go on:

it will do notes at (say) 1/8 intervals (with the odd ones swung if you want)…
…but only from the next Clock after you do NoteOn

It simply doesn’t have the information to anything more.

Let me know if I’ve misunderstood your question





†(until it’s paused/restarted then it will probably send Song Position Pointer but that’s another story and of no use to us here)

Thanks for your answer !

I mean I want the clock to start with a note on and stop with a note of

I have a midi track inside ableton. The midihub clock doesn’t know when the message from Ableton will start transmitting, and I need to catch the position when the ARP will sync with the midihub clock

If the clock started every time a note started, the arp would play exactly always i think

So is Clock from MH or Live?

You just need to map a note to the “started” argument. If your midi buttons/key can be toggled then no more is needed.

If not, you’ll have to create your own on/off toggle.

If you can spare 2 midi buttons/keys you can map both to the started argument, one using value 64-100(on) and the second using value 0-63(off).

If you can’t set these values in your controller you can alternatively use a pipeline to rescale your input to the desired values before it hits the virtual pipe that is designated as the target port for mapping.

If you want to use a knob, you’ll could to use a rescale pipe to turn values 0-127 into 63-64.

If you want to use 1 key only as a toggle for your mapping it gets a bit trickier. I had a patch that did this but I don’t use that technique much. I’ll see if I can dig it up. Maybe Resonator has or can point you to an existing toggle patch for mapped arguments.

@hologramfacemusic This is now simpler with 1.14.0:

  • a Note_on → CC Replace Transform (fixed CC, fixed value) for each key you want to toggle
    (values are set to 0|127~ see below)

  • a (CC) Rescale [0;127] → [127;0] to do the flipping
    (so set value above to the opposite of what you want your initial value to be)

  • and a couple of “bookend” Filters to make sure that only Note_on’s get in and CCs get out
    (this way you can keep adding new “toggles” as your preset develops – any unTransformed note_ons just get stopping from leaving)

  • end the line with a Virtual out, say H, which will “collect” all the virtual mapping toggle events for use in other “message” pipelines
    (The beauty is, you don’t even need Virtual H-IN in your preset for the mappings to work )

  • and finally the “coup de grace”– for each of the mapping Transform, map the “value” Arg to ‘itself’
    (so if your Transform is Ch16 CC77 and the Value is set to Arg2 then Add a mapping to Arg2 {Virtual H, CC, 16, 77}…
    and so on for each toggle you create)

When 1.14.0 graduates beyond Beta, this will be in a short series of “Virtual Mapping Techniques”
(In meantime, I’ll post a shot/patch tomorrow if you haven’t sussed it already)

2 Likes

Clock from MH :slight_smile:

I wanna try to design it, thanks

1 Like

OK, try @JoeyButters hints.

Now you’ve made a few posts & got replies, you should be able† to post up your preset if you need Joey or someone else to give it an eye.

†Let us know if not and we’ll get your level upped.

thank you very much, both of you. I don’t think I am ready to implement this until your tutorials come out, but I will think about it.
is there a place I can look up the definition for example, of the word argument as used with MH….
i’m on that level. although, with R.‘s help, I have a Loopback that I use gigs now

“Arguments” are each of the individual settings that you can adjust in any pipe. But in the transform pipe there are arguments literally labeled argument 1, argument 2.


i’m on that level

No, it’s just a language thing, Pavel:
The everyday sense of “argument” = “disagreement” or “steps in a reasoned persuasion”

Not many native English speakers use it in the mathematical sense like Midihub does: “an independent variable”

Here, in the default Transform → Screen Shot 2023-11-28 at 14.25.23

…think of Argument1 as “A number that I can set one of the properties to”


so here → Screen Shot 2023-11-28 at 14.27.29

…I’m about to tell Transform to set the CC# to the incoming Note Number
(so lowest C → CC#0 , the octave up → CC#12, etc)



but hereScreen Shot 2023-11-28 at 14.42.24

…Transform will make the new CC# whatever is in the Argument 1 “field”.



I just think of them as “the boxes where I store numbers I’m going to use”

(Often you don’t use them but if you’re doing something …

…like thisScreen Shot 2023-11-28 at 14.52.52

…you’re probably going to need to!)

1 Like

4 posts were split to a new topic: Virtual Mappings

Here’s the patch to stop and start the clock with note-on’s. This is for every note-on message received. Whichever specific note you want to trigger the clock, specify that note in the work with note number range.
Clock Start Note Toggle.mhp (396 Bytes)

1 Like

Hello guys, I’m here

I built the following design based on the one above.

The Arp begins on a note on and ends on a note of, but it is still playing late as before.

I mean, when I press a key, the harp doesn’t start right away, it’s waiting for something.

It happens that on the last note the sound freezes, as if the gates have not closed.

Here I need smth similar to retrigger for the arp to run every time I press a key I think

Can you upload the preset using this Screen Shot 2023-11-28 at 19.11.46 button?

of course

I can also make audio to make it more clear what I’m talking about

Moog Voyager ARP.mhp (520 Bytes)

May not be necessary, but it’s always interesting!
If you do, Pavel, would you also make clear what sound is coming from where? Thx

PS. I won’t get time to look at patch until Weds
and
PS2. If we’re using Start to get Live and MH in sync as you & Joey suggest, do we know how Live responds (with some sequencers I think Start is ignored if it’s running)?

@resonotter brings up a good point. Try mapping to the bypass of the clock and see if that improves the desired results.

You could also try mapping to the bypass of the virtual port. You will leave the clock running at all times this way.

Also try mapping to the clock argument in a filter.

Maybe try running your incoming notes through an additional pipeline in case the 1st note is arriving before the clock hits the arp.

Midi KB - Ableton - MH - Moog Voyager

have a good Weds :slight_smile:

I do not send start message from ableton at all. Ableton in this case is only a sequencer that transmits a note, not a sync message

When I talk about synchronization, I’m guessing that if the ableton is worth 120 bpm and the MH is 120bpm, the arp and ableton should play in sync, without the start message from ableton for the arp in the MH…

Not so long ago, I had a north lead 4 in which there was a arp and I was just recording midi messages in a real time inside the ableton and playing them like they are, without a synchronized start

  • 3 audio examples.

Every time Ableton starts playing I have a different arp. It’s not a song position problem, the starting point is always the same - the beginning of the track