Teletype - Programming a keyboard to send stored commands


#42

That makes sense. It just has code smell, to me :slight_smile: but you’re right, this is a small world of 60 lines, and we already make assumptions by calling SCRIPT 2 and such. Updating isn’t a huge burden.

I am also coming to this without much knowledge of the thought & discussion that’s gone into TT development so context like the discussion you linked is awesome.

Also, thanks for what you do! It’s a huge effort.


#43

thinking more about using grid to trigger specific lines, i should just add it to the grid control mode. when you on a script page the grid control allows you to toggle comments for individual lines, i could add 6 more buttons to trigger specific lines (i would have to remove the 2 buttons for “enable all lines” / “disable all lines”):


#44

Here’s a usb stick that can be used to emit keyboard codes. It’s sold as a hacker injection tool but it could potentially work for this use case: https://hakshop.com/products/usb-rubber-ducky-deluxe


#45

That’s an interesting prospect, but it looks like it just triggers when you plug it in, where I think the group is looking for a selection of such macros, and some sort of interface to choose between them.

EDIT:
Just found the docs. Let’s see if I can confirm that.
…looks like there’s one button. Might be enough for a round-robin sort of arrangement, or a “execute random script”…


#46

So, I can imagine the UI for the first idea. Use the second idea in a 128 line script. Just add scrolling to the code editor. :wink:

This is totally GOTO, by the way. And I love it. Totally understand if there are technical reasons why it is a terrible idea, but GOTO was my intro to making stuff do things in interesting ways. I was 9. It was the most fun I had ever had up to that point.

So wait, is it part of grid mode already?! Man, I need to catch up!


#47

not quite GOTO though - it would just execute the specified line and continue in the current script. GOTO would be like BREAK followed by jumping to the specified line. it’s more like calling a function where a function is a line of code.

you mean executing specific lines from the grid control mode? that hasn’t been done yet, on my todo list.


#48

Well, I hate to mention it, but I recently got a Vortex Race 3 Keyboard and I finally tested out sending the Teletype preprogrammed macros or programmed commands and it doesn’t seem to work.

I’ve updated to the latest firmware, “3.0 KBD Fix”. And when I type, It doesn’t drop any keys. But when I attempt to use the feature of sending key commands via the programming layers the text appears to drop a ton of letters.

For example I programmed the keyboard to write “charlie” when I press the Q key. It works every time on the laptop.

On the Teletype, the first time it writes…

CRE
the next time,
HRE
again,
AI
one more time,
CI

So, it appears to be dropping a lot of letters for some reason. I did test out a time delay function on the keyboard. Where it will type the macros out much slower, with a half second between the letters. But it still drops the keys. So I dont think it must be a refresh rate or scanning rate that is the issue.

Would anyone here have any ideas what might be happening?

I think I remember seeing Scanner Darkly mentioning somewhere about how keyboard protocol is a bit different and odd, so I think this could be one of those oddities.

But any help is much appreciated! I would love to be able to get this working.

Thanks!


#49

Hi all,

I just wanted to report that I picked up a Genovation CP48 for sending keyboard macros to the Teletype and, after a bit of trial and error, I was able to get it to work with 100% consistency!

At first, it acted exactly like the Vortex Race keyboard in that when I sent a macro to the Teletype it only received a small percentage of the keystrokes, even with extremely long delays. But, because the Genovation comes with a pretty comprehensive software for programming it (windows-only) I was able to find the right balance of settings to get it to work consistently with the Teletype.

Luckily, the programming software offered three types of playback modes for the macros. I had to select the third one called Literal mode, where you have to manually program key-down and key-ups for each character. Even still it wasn’t working 100%. Finally, once I added 40ms delays between each key command it all worked completely consistently.

Just thought I’d let ya’ll know! Have a good one!

Here’s a link to the CP48 https://store.genovation.com/programmables/cp48-usbhid.html


#50

thank you for following up and posting detailed info! sorry - meant to reply to your 1st message and forgot. glad you got it working - i don’t think much more could be done on teletype side.


#51

Did you ever managed to get this to work? Curious as I’m thinking of a vortex keyboard to do the same thing too.


#52

I never did get the vortex to work with keyboard macros. I did decide to keep it because it was such a sweet little keyboard for using with the teletype but never got the macros to work. If there was some software side to programming it than maybe there’s a way for it to work but there didnt seem to be much support for that aspect on the site for the keyboard.


#53

I see, what a pity… That said, I’m still interested :slight_smile:

Curious how do the additional layers work, do they work where I’d have to hold down a key to get to some keys such as F1-F10? Or does it work in a way where I just push a button and it puts me in that layer (like Cap-Lock)?


#54

I thought I might share this. I am doing a live performance this weekend with the modular. I have been using Teletype to sequence movie clips as well as synth stuff. So, here is my genovation programmable keyboard setup for the show. It’s an all Lebowski set. I’m using it to send macros to the Teletype.

Each of the clip buttons in the center of the controller define variables C and D which basically defines video clip ranges, or which scenes to be triggered and randomized. A2, A4, A8 and B2, B4, B8 define the clock division of two sequencers, the one sequencing the video clips and one sequencing an accompanying synth line. F7 and F8 allow me to basically switch between sequences using patterns 3 and 4 as defining start and end points for patterns 1 and 2. F3 Executes the jump to different sequences and also re-triggers the current sequence. RAND randomizes the pattern between the defined start and end based on the clip ranges dictated by the movie scene buttons. F4 stops the metro and plays a random single video clip based on a clip range which I’ve defined to be only dialogue clips. That way I can stop all the music at once and have a funny dialogue bit then hop over to F3 to restart the music.

Just wanted to share! Wish me luck!


#55

best of luck and cheers for such an innovative use of Teletype!!


#56

Hey wanna update, I got a vortex core recently and there is a new editor online which I’ve managed to use to remap even the main layer 0, and the sending macros to TT works too, very happy at the moment as it really feels like an extension of TT , just thought you’d like to know.


#57

That’s huge! I’d love to check that out. I still use my vortex as the teletype keyboard. Is the editor easy to find? Or could you link to it?


#58

It’s not the easiest thing to find, here it is, you’d need the latest firmware and hold down FN+D when connecting the keyboard to the com so it appears as a hard disk, then you can copy the file over. You get the file when you export the key map from the website.

Sorry an explaining v bad, hope I made some sense.

Link here: https://tsfreddie.github.io/much-programming-core/


#59

No, this is great! I will check this out. I mean I love that I’ve got the genovation keypad working but the perfect setup is to be able to switch back to a keyboard on the fly. Thanks for sharing!!


#60

Magnificent :sunglasses: