Teensy Snake Game Music Generator

The main aim is to generate semi-random musical phrases by moving the snake around.

Horizontal movement plays a fixed “melody” in Dm which randomly changes each time the green square is eaten by the snake. Moving to the right plays the melody backwards.

Vertical movement switches octaves but in ¾ time, hence the generation of a “Larks Tongues In Aspic Part 2” vibe due to 8 vertical grid locations. i.e. ¾ ¾ 2/4

The two Volcas are both set to channel 1 and are receiving the same notes.

The snake game and the MIDI notes are controlled by the Teensy 4.1 which is using the Host USB port to drive the Launchpad. The Volcas receive MIDI notes from the Teensy on the tx1 serial port.

I’m not trying to get the best score, and wouldn’t be that good at getting it anyway…

4 Likes

Hi John,

This is super cool! It’s a great project, do you have any more intel on it? I’m keen to see more SNAKE!
:snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake:

4 Likes

Hi Trent. The launchpad can go into “programmer mode”, there is a manual for this on the Novation web site. In programmer mode I can send MIDI along USB to the Launchpad to control the lights. I can also receive MIDI messages from the Launchpad on which key is pressed. The synths also receive MIDI to play them.

3 Likes

Here’s another one…

https://www.youtube.com/watch?v=ZNmiS_2TRso

Launchpad - Teensy (Arduino) Controlled Space Invader #Jam with TD-3, Volca FM and Drum

#Jam whilst playing Space Invaders on the #Launchpad Mini Mk3.

The Teensy microcontroller uses the Launchpad Mini Mk3 as a screen and for input. It then send MIDI note and clock information to the TD-3 and the Volca FM. The Volca Drum is synched to the FM but is playing using its own sequencer.

The arpeggios for the TD-3 come from the Teensy based on the position of the blue Space Ship.
The “Bullet” controls the FM note sequence based on its position.

The music is a variety of Techno, or at least that’s the aim.

3 Likes

This is even cooler than Snake (to me anyway).
Sounds techno-ish to me!

1 Like

Thanks. It’s meant to be techno but with a twist!

4 Likes

Here’s another one… Conway’s “Game of Life”
https://www.youtube.com/watch?v=lXbXUfWnKHU

3 Likes

It seems like wherever there is a matrix display it’s inevitable that someone will program it to play Conway’s game :grin:

2 Likes

Of course! I’m not one to let people down by not doing it.

3 Likes

Hi John,

Awesome project mate, if you’d like to send it through as a write-up for the site for a store credit reward I’m sure that the projects team here would like to talk to you about this one. I’ve added a link below to the page with a link to submit the project for you if you would like:

1 Like