Teletype: Swing timing

I’ve run into a challenge trying to come up with a utility script for adding a bit of swing to Teletype timing.

In my design, I thought about throwing a DEL (delay) onto the stack. The delay would execute a TR.PULSE which would be 60% (or variable) longer than the metronome. It appears the DEL command can’t be placed on the stack.

Wondering how others may accomplish this? Basically what I was attempting to do:

  • Each pass of the metronome would execute the stack and pulse a trigger.

  • The OUT jack (pulse controlled by metronome) would be plugged in an input jack, ex: #8. The # 8 script added 60% of the metronome value to X and the DEL would wait metronome + X ms to pulse the trigger again.

  • So the first pulse would happen on the beat and the second pulse would happen delayed by 60%.

Any ideas? Here is my idea in TT:

SWING TIMING

1) Use PARAM to set metro rate
2) defauts to a swing rate of 160% of metro rate (classic shuffle)
3) Patch TR A to IN 8 to include swing

#M
M SUB 320 RSH PARAM 6 // set metro from PARAM knob
S.ALL // execute whatever is in stack
TR.PULSE A // place pulse on stack for run in metro

#8
X DIV M 6 //find 60% of M
S : DEL ADD M X : TR.PULSE A // delay the next pulse by 60% of M

Here’s a post i started a while back on the same topic. Used the param knob to set a delay time for every other pulse:

1 Like

could try modulating the M time

#M
X SUB 320 RSH PARAM 6
Y FLIP Y
IF Y : M X
ELSE : M ADD X DIV X 6
S.ALL
TR.PULSE A

here Y functions as a swing-on vs. swing-off alternating

i didn’t test this, just off the top of my head.

2 Likes

Thanks, Sean. I’ll take a look.

Thanks, Brian. Let me unpack that and give it a try.

I get an error (sorry, not at system and can’t recall wording) in the Y FLIP Y line. Running version 1.2 of firmware.

I wonder if this should read
Y FLIP

as per the docs, FLIP is a variable.

ah, correct.

Y FLIP

or

Y EZ Y

YEZYly fixed so. Sorry, couldn’t resist :wink:

1 Like

Hah! I had used FLIP Y. No wonder I was getting same result for each pulse. Thx

hmm… still getting straight time, no swing. with Y FLIP as well…

i still need to test this out…

did you try my TT script? it did the trick for me…

DEL X : TR.PULSE A
Y EZ Y
X 1
IF Y : X ADD RSH PARAM 6 1

i see you are using metro + param to set tempo, but perhaps you can place this script on a trigger input & use an external clock instead?

1 Like

Sorry, @shellfritsch. I followed the link you gave, but must have not went far enough. That indeed does the trick. :slight_smile:

1 Like