It's documentation is clear about it. Create a function with one argument (a list of lists, one for each channel in the spectrum), and do whatever you want with that list. To test it, here's a modified version of the code in the docs:
```
from pyo import *
s = Server(audio="jack").boot().start()
a = SuperSaw(freq=[500,750], detune=.6, bal=.7, mul=.5).out()
prnt = False
def printSpec(lst):
global prnt
if prnt:
print(lst)
prnt = False
spec = Spectrum(a, size=1024, function=printSpec)
```
Set prnt to True, and you'll get a list of two lists printed
once. If you want to store that to a file, you'll have to open a
text file with open(), like you'd do for any other file in Python.
--
You received this message because you are subscribed to the Google Groups "pyo-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyo-discuss/6d28148f-6459-40ce-aa5b-eec543092e2an%40googlegroups.com.