Teletype 3.+ feature requests and discussion

a thread to discuss feature requests for teletype post 3.0.0 release

teletype 3.0.0 thread
github issues/enhancements

if a feature requires a separate discussion thread create one under Development category, tag it teletype and post a link to it here. i will update this post with the links.


separate threads:

note ops
universal remote ops


the latest beta E27F640

teletype.hex (572.1 KB)
teletype.zip (168.4 KB)

updating flash will erase your presets! please also note the 1st time you run it it will ask you if you want to overwrite scenes - this is expected (see this for details), just follow the screen instructions.

includes everything from the latest official 3.0 version plus:

DEVICE.FLIP op
fix for vortex keyboards
DEL.X / DEL.R ops
J and K local script variables
protection for scenes getting overwritten
saving last mode disabled to prevent metro timing issues
metro rate not updated after INIT.SCENE
SEED, R.SEED, TOSS.SEED, DRUNK.SEED, P.SEED, PROB.SEED seed ops
SCENE.G op - load scene without initializing grid controls

8 Likes

linked a couple of features i’d like to add at some point, note ops and universal remote ops.

The elephant in the room is probably additional scripts, and possibly additional variables. Seems almost too greedy to even ask given all you have done. The number of ops, communication destinations, and generally what can be done with Teletype continues to grow, but the number of available script lines has remained constant.

I’m sure this is more than a small tweak. Complete rewrite? Is there even enough bandwidth left in the CPU to be able to trigger additional $ OP only scripts and still maintain the integrity/timing of hardware triggered scripts and metro?

Thought I’d list it, as it is probably near #1 on my wish list. But totally understand if it’s a non-starter.

4 Likes

it was discussed but with no consensus reached: (Teletype) expanding scripts: length and amount

After a longer break I using Teletype more often since the latest Version 3.0 was released

@scanner_darkly thank you so much for all the effort you put into this relase.

Here are some ideas from my side:

  • local variables ( inside a script)
  • possibility to add a textual description inside of a script without violating the 6-Line limitation
  • “wait” function (previous line must me completely executed e.g Slew…)

:smile:

iirc, shadow scripts were warmly received.

however, it would be amazing if someone wanted to build some momentum on the ~timeline~ feature :smile:

4 Likes

Thanks for the link. I see now it’s even more complex than I thought, as it’s also political in addition to technical. And I can appreciate that. :slight_smile: It looks like you were in favor of some additional scripts (or at least a way to create some additional space for code) at one point.

What is actually needed to get a change like this to the master branch of the released firmware?

  1. Majority consensus +
  2. Someone to actually champion it and code it +
  3. @tehn’s blessing?

Oops meant to reply to @scanner_darkly and not myself.

PURELY SPECULATIVE

In the interest of “more scripts” for those of us who don’t necessarily need more text but want more ways to trigger unique events – are script lines able to be indexed?

Perhaps it could it be LN, mirroring the PN standard? Each with its own index position.

e.g.:

  • LN x y would execute the yth line of code in script x
  • LN.I x y would set the index position to y in script x
  • LN.HERE x would execute the line of code in the index position of script x
  • LN.NEXT x would increment the index position of script x and execute that line of code
  • LN.PREV x would decrement the index position of script x and execute that line of code

Some stuff wouldn’t track, like LN.INS, but some stuff like LN.RM might allow for some weird performative race against the sandcastle washing away.

Is this insane? It feels reckless to even suggest it.

7 Likes

there must be something in the air!

i do like the pattern style notation.

this would be really cool, especially if extended all the way to self generating code. but probably too much of a special case for the official firmware (makes me want to explore ways to emulate software decay though, code that rots, gradual loss of precision, teletype that is not sure what it should do next…)

10 Likes

this is pretty accurate. i’d say #3 is a must, and 1 and 2 for the most part. often there is an accompanying discussion that helps shape a feature, but sometimes it’s a single vision that gets championed and executed by a single developer (it’s also a complex question as evidenced by the linked thread…)

i’m going to use this as an opportunity to clarify that this thread is a completely free discussion of what people would like to see in future versions, and me starting this thread is just that. this also applies to my participation here - i will try and provide a developer point of view (say, if something is not feasible technically) but otherwise i’m just one of the participants, so me commenting or not commenting on specific features should not be seen as an endorsement or commitment to implement them or otherwise (although if there is a general consensus and @tehn agrees, and it’s something i want to work on i imagine some features might get implemented along the way - but it is my hope to also see both the old devs - @sam, @sliderule - i’m looking at you :slight_smile: and maybe some new devs joining, how awesome would that be!)

9 Likes

Longer init script for sure, scrolling here is not the end of the world. As cool as the timeline seems in theory, I’d rather just have a big bucket of commands to execute: with grid ops and Telexes I am chewing up 3 or more scripts just setting stuff up. I don’t think I’d care too much about shadow scripts, etc. if I had a full 8 scripts available in practice after setting up the scene.

4 Likes

It would be great to have loops working on more than one line. Now you often have to use another script for that.

Maybe with a specific pre operator for the next lines (LC gor Loop Continue or something like that) :

L 1 4: DO_SOMETHING_HERE
LC: STILL_IN_THE_SAME_LOOP

3 Likes

This is a really neat idea. Part of me wonders how comprehensible a scene that used a lot of these types of ops would be to the person who didn’t create it, and perhaps to the person who did create it a few weeks or months later.

Can’t tell you how many times I’ve wanted to do something like this. As well as IFC, ELIFC, ELSEC, WC.

i appreciate @scanner_darkly putting #3 first, but honestly #2 is by far the most important element at this point as i am fully buried in norns development.

regarding feature requests, i’d suggest including as much detail as possible so that a design can be considered as a whole proposition, not just a spark of an idea that then needs to be designed around. ie, scrolling scripts.

  1. memory usage, are people happy with vastly fewer scenes?
  2. how does scrolling actually work in terms of UI? hotkeys?
  3. is there visualization of scroll position? does that effectively shorten line length?
  4. is scroll position stored when moving around scripts?
  5. does this feature break or interfere with any other UI?
  6. does this feature open up possibilities to expose CPU limits, memory limits, stack limits, etc? ie, does it mean the user will have to internalize more user limitations, rather than have the design of the system have its limitations set intrinsically?

that last point is the most important in my opinion. it’s too easy to imagine anything is possible. even my proposition for the “timeline” feature may run into the same issues… creating situations where “normal use” actually breaks the whole thing. this is what i’d like to avoid.

that said, i don’t think these features should not be explored— but someone must have the time to do the actual work.

10 Likes

Answers not required from anyone in particular, just kicking this around:

  • memory usage, are people happy with vastly fewer scenes?

What’s the tradeoff? In other words, how much storage is available, how much does a scene currently consume, and how much does a line in a script consume?

  • how does scrolling actually work in terms of UI? hotkeys?

Follow the Rule of Least Surprise: do whatever Tracker Mode does. :slight_smile:

  • is there visualization of scroll position? does that effectively shorten line length?

There are two unused columns of pixels to the left in script view. Use one for scroll position (dimmed pixels).

  • is scroll position stored when moving around scripts?

As above: do whatever Tracker View does. :slight_smile:

  • does this feature break or interfere with any other UI?

If it is confined to a single script (i.e. init), I don’t think so.

  • does this feature open up possibilities to expose CPU limits, memory limits, stack limits, etc? ie, does it mean the user will have to internalize more user limitations, rather than have the design of the system have its limitations set intrinsically?

That depends on how scenes are stored in RAM and how they are processed. I would be overjoyed to have, say, 30 lines’ worth of init.

(The main use case for extra scripts IMO is function-like behaviors called from e.g. loops.)

2 Likes

Some ideas I’ve had floating around for rhythmic sequences, in order of increasing nerdiness:

LROT x y / RROT x y for bit shift with rotation

IF BGET C 0: TR.P 1
C RROT C 1

BIN x (alias ‘#’ since I assume the standard ‘0b’ prefix is going to be confusing in all caps) for binary constants. Line length is a possible gotcha, but 8 bits may still be useful.

A BIN 1000110010001010
B | LSH B 4 # 1010

Also possible HEX or OCTL. A bit less intuitive for rhythm than binary, admittedly, but more concise, and possible to set variable display/pattern editor (DEVICE.BASE x).

ER.V x y for the values of Euclidean patterns (max length 16) as integers from binary, with ER.V x y where x= fill and y = length. So for example:

ER.V 1 4 = 8 = # 1000
ER.V 3 4 = 14 = # 1110
ER.V 4 8 = 170 = # 10101010
ER.V 3 8 = 146 = # 10010010

6 Likes

I would like to second left/right bit rotation

1 Like

Actually, expanding on the “loop on several lines” thing, it would make sense to have only one “continue” pre operator that would work for L, IF, ELIF, etc.

3 Likes

Expanding on the idea of adding bases: I’ve wished Teletype had support for base 12 in the tracker view for quite a while as it would be really useful for manipulating notes. In base 12 it’s very easy to add and remove octaves and interpret note numbers. Here are some examples of why this is the case.

Here are the basics

	base 10	base 12
C	0		0
C#	1		1
D	2		2
D#	3		3
E	4		4
F	5		5
F#	6		6
G	7		7
G#	8		8
A	9		9
A#	10		A
B	11		B

Now, let’s try some notes with different octave numbers. You’ll see that notation is base 12 is much simpler to interpret, because we can tell the octave by the first digit, and the note by the last one.

In contrast, in base 10, the number is equal to the note number at octave 0 plus the number of octaves times 12, which just isn’t intuitive.

We also don’t have weird cases where we get a three digit base 12 note number, because you’d need to use a range of 12 octaves or more, which is more than Teletype can output, and more than the earing range.

	base 10	base 12
C0	0		0
C1	12		10
C2	24		20
C3	36		30
G0	7		7
G1	19		17
G2	31		27
G3	43		37
B0	11		B
B1	23		1B
B2	35		2B
B3	47		3B

I think the place where this would be most useful is in the tracker view. It would be ideal to be able to set the display base for each pattern rather than the whole tracker view, as it would allow different types of data to coexist.

We could even generalize the idea to arbitrary bases, so we’d have a BASE B X to convert number X from base B to base 10, and P.BASE B / PN.BASE N B to change the tracker view display format of the selected pattern to base B.

9 Likes

I’ve been coding a TT quantizer this week and base-12 would have saved me a lot of modulo / division operations.