Free ice cream for anyone who can help me !

Dec 29, 2011 at 4:39am

Free ice cream for anyone who can help me !

Please.. anyone.. I am at risk of eating parts of my own body if I don’t figure this out soon. There’s an ice cream in it for anyone who can solve this (see attached)…

I have a transport object. It syncs to the Ableton Live transport. I have it continuously outputting its values (tempo, bars, etc) by sending it continuous bangs via a 1ms metro. This is necessary for other parts of my project.

I am using an expression to generate up-to-date position information from these values (bars * timesig + beats – timesig = current position). From here, I want a counter that counts every 9th beat, so I divide this value by 9.

So far so good.

Now, I want to output a bang every 9th beat.

This is where I start uncontrollably nibbling at my legs.

Because the only bangs I can receive out the end of this chain are the 1ms ones from the metro that I’m using to trigger my transport. So although I can get a number box at the end that counts each 9th beat just as I’d like (it’s important that the beats it counts are relative to the host grid, otherwise I’d just use a quantized metro object), I can’t make it generate a single bang at these values, because the chain is still throwing out the bangs that trigger my transport.

Are you with me?

Have a look at my attached image if it helps.

If anyone has a solution for this – how I can force it to disregard the bangs sent by the original metro, and start sending out bangs every 9th beat, as per the number box at the end of my chain – I promise to be your best friend for ever and ever, not to mention maintain the luxury of an uneaten pair of legs.

Thank you!

[attachment=180369,3131] [attachment=180369,3132]

Attachments:
#60902
Dec 29, 2011 at 4:54am

put a [change] after the [expr]

you can also look to [% 9] –> [sel 0] for “every-N-number-of-beats” counting.

yum!

#219286
Dec 29, 2011 at 5:03am

Ah.. God DAMN IT! You.. beauty! AGGGHHH.. So… many… hours…

I can’t BELIEVE it was that simple!

My friend… you are getting an ice cream for sure! I mean it! If you find a way of getting me your contact details and can take my word that I’m not some lunatic, I swear I will have a fresh ice cream delivered to your door!

Thank you so much!

#219287
Dec 29, 2011 at 11:04am

no worries, glad to help! been in the same situation before…it’s why a lot of times you need a bang along with a number box to monitor a number stream, if it’s just a number box sometimes it will be getting constantly updated and you won’t know it…have seen it with many students too, you’re definitely not alone. Your comments in the patch and the clear explanation really helped to figure it out.

Sometimes I almost wish the number box (and some other objects) had a “flash” indicator to show it they are being updated, but I can understand why they don’t, extra processing etc. So you just stick a bang or [print] there instead.

the ice cream offer is very generous, but given how cold it is, I’ll take your sigh of relief as the best gift! Now that you’re past that, you can get to the fun parts—happy patching! :)

#219288

You must be logged in to reply to this topic.