The temp script should not be visible to users. It is a sort of scratch pad that allows the firmware to run delayed and live commands correctly with access to variables that are local to a script, like I.

It is an internal implementation detail, nothing more.

Here is my working pong simulator, Turtle Tennis. Beta 7 will include a functional @SHOW command, and this script produces an animation along with triggers for paddle hits and table hits and a pan signal for the location of the ball.

At the moment, the “AI” “plays” perfectly, but I plan to implement something more substantial that keeps score and might even be playable with gates.

turtle_tennis.txt (1.2 KB)

This script demonstrates usages of:

  • Turtle operators, including @SCRIPT
  • BREAK for control flow
  • LAST to set the pan`s slew to match the speed of the ball.
  • SCRIPT as a getter for the current script number

I suggest slamming some noise into a resonant bandpass filter or exciter of some sort into a short-tailed reverb to get a nice ping pong ball sound.

e: I use a trigger-sync’d digital noise from Shapeshifter through Scan & Pan for panning into Morpheus cube “Skweezit” with an envelope into the Morph axis, finally abusing Clouds Parasites for reverb.

2 Likes

i think your approach of having an icon overlaid on the scrollbar makes a lot of sense. perhaps it needs to be a different shape is all?

2 Likes

I agree.
It looks a bit clunky to my eyes.

<

or even

_ (a horizontal line as opposed to the vertical existing cursor.)

Would be better in my opinion.

4 Likes

< is pretty good, I’ll use that unless I feel like experimenting with a bitmap.

After that, I’ll finish up the new testing framework, and we can call it a release candidate.

Features that won’t make it into 2.1 but I thought might have

  • @ACCEL, @FRICT
  • @INTERP
2 Likes

nice work. any other changes since beta6?

  • THIS has been removed and SCRIPT now returns the current script number.
  • Bug fix to prevent [ and ] from accessing the temp script.

any objection to adding a shorter alias to SCRIPT? maybe $?

1 Like

I’m all for something to make it shorter, though I might hesitate to use a single character, although seemingly the next sensible alternative is SCR at 3 characters.

to clarify, i think SCRIPT is good and we should keep it as such, just suggesting to also have a shorter alias for it for when it’s needed.

4 Likes

Beta 7 arrives! Changes:

  • THIS is gone, replaced by SCRIPT being a getter for the current script number
  • [ and ] can no longer access the temp script in edit mode
  • @SHOW is implemented with a < next to the current cell
  • Commands can now be 16 OPs long
  • The Stack now supports 16 OPs
  • The Queue now supports 64 numbers to match patterns

teletype-2.1.0-beta7.zip (422.2 KB)


Updated Turtle Tennis!

  • Now includes the sound of the ball hitting the table before the ball hitting the paddle.
  • CV 3 now includes a timbre signal to differentiate between the table and the paddle.

turtle_tennis.txt (1.3 KB)

6 Likes

great work thankyou for this :slight_smile:

1 Like

You’re going to have to enlighten me as to what, if anything, Teletype is doing in that patch.

Sounds great, though.

The trigger out is going to JF which causes the skipping/rolling/shuffling offbeat and also syncing with JF trigger outs going to 2 lpg. CV2 and CV3 are going to the formant of each Mangrove causing pitch fluctuation changes in the rhythm. Im not using your regular cv1 pitch out in this patch.

Other non related teletype stuff is i’m sending these sound sources to 3 sisters / high/low then cold mac. Im using the and/or in cold mac and also the envelope follower which is modulating the barrel on one of the Mangroves. I have a square out from one of the mangroves in the run jack on the JF.

1 Like

Looks nice!

What does the turtle tennis animation do?

At a glance i seems that it does stay in a fixed sequence of movements and values, does it?

This is so so amazing, thank you so much for your work!!

Feeling a lot less bad about selling my rene now. With the coming grid support, this will be THE killer replacement and further, holy molly…

Feeling a bit bad about being away the next weeks though. Can’t wait to dive in!

1 Like

i think only half the bug is gone. ] won’t get to ; but [ still does.

SCRIPT returns 11 in live mode. does this make sense? should it return 0 instead? 11 feels magical, 0 could be interpreted as “false”

@SHOW, the arrow loooks nice!

wondering about the @BOUNCE mechanics-- i believe you discussed this elsewhere-- ie, a simple linear bounce of @FY1 0 and @FY2 3 repeats positions 0 and 3 at each bounce:

0 1 2 3 3 2 1 0 0 1 2 3 3 etc

should it reflect immediately? ie:

0 1 2 3 2 1 0 1 2 3 3 2 1 etc

i suspect it’d feel more natural. and wow-- 45 degree bouncing is super cool. also love @SCRIPT

hotkey for metro on/off, excellent!

this is spectacular work!

3 Likes

Looks like I’ll have a second shameful commit on that one :wink:

The reason for this behaviour is described here:

Also relevant from that post:

Beta 8 changes:

  • [ no longer accesses the temp script
  • SCRIPT now returns 0 in live mode
  • Synchronized with monome/teletype/master

teletype-2.1.0-beta8.zip (475.5 KB)

I think this build is close to release status. I’ve stopped adding features, but there remains one question:

Should @BOUNCE mode operate with fences that start in the middle of the cell, such that bouncing between three cells results in a step pattern of: 1 2 3 2 1 2 instead of: 1 2 3 3 2 1 1 2? @tehn?

2 Likes