Recording trajectories
Recording latents or spatial trajectories as training dataset to build a terrain.
Last modified 2026-01-06
Jasper Shuoyang Zheng
The nn.terrain.record object is a recorder that record multichannel signal as dictionary dataset. The recorded dictionary can be used to build a latent terrain.
The video tutorial covers building a terrain in a 3D control space, for an autoencoder (music2latent). The exported music2latent.ts can be found
Synopsis

This tutorial guides you through:
- Creating an empty terrain with 3 inputs, 64 outputs,
- Scripting patch cords (i.e., adding all cords in one click),
- Recording latent trajectory with an encoder, from an audio buffer,
- Recording spatial trajectory from three sliders,
- Training the terrain.
Video: