tokmd-fun
Fun renderers for tokmd analysis.
Overview
This is a Tier 3 novelty crate providing creative visualizations of code metrics. It generates 3D code city models and audio representations of codebases.
Installation
[]
= "1.3"
Usage
OBJ Code City
use ;
let buildings = vec!;
let obj_content = render_obj;
write?;
MIDI Sonification
use ;
let notes = vec!;
let midi_bytes = render_midi?; // 120 BPM
write?;
Types
ObjBuilding
MidiNote
OBJ Format
Generates standard Wavefront OBJ with:
- Named objects for each building
- 8 vertices per cube
- 6 faces per building
- Sanitized names (alphanumeric + underscore)
MIDI Format
Generates Type 1 MIDI files:
- 480 ticks per quarter note
- Configurable tempo
- Supports all 16 MIDI channels
Dependencies
midly- MIDI file generationanyhow- Error handling
License
MIT OR Apache-2.0