|
|
@@ -1,5 +1,15 @@
|
|
|
# A visualizer for the Python client (or any other client) rendering to a mapped file
|
|
|
|
|
|
+# The map file format should look like the following C structure:
|
|
|
+# struct mapping {
|
|
|
+# float disp_factor; // scales the response to a note
|
|
|
+# float last_samples[MAP_SAMPLES]; // samples from the waveform being played
|
|
|
+# struct {
|
|
|
+# unsigned long frequency;
|
|
|
+# float amplitude;
|
|
|
+# } values[STREAMS];
|
|
|
+# }
|
|
|
+
|
|
|
import optparse
|
|
|
import mmap
|
|
|
import os
|