diff options
| author | thajohns <thajohns@clarkson.edu> | 2022-02-28 11:16:25 -0500 | 
|---|---|---|
| committer | thajohns <thajohns@clarkson.edu> | 2022-02-28 11:16:25 -0500 | 
| commit | ff702c8fd5361c1530c2623150f79080c4dd1bae (patch) | |
| tree | 0efc2ced80beb8b11464086cd2c952072336d16c | |
| parent | ebd8f4b242c1a83a222297aa80b2e5c64580e36d (diff) | |
added documentation for mapped file structure
| -rw-r--r-- | render.py | 10 | 
1 files changed, 10 insertions, 0 deletions
@@ -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  | 
