General Category > General Board

Newsynth spectrum data archive

(1/1)

Overdrive_Ostrich:
Hello everybody,

I've just started with CDP few days ago.
I'm working on bash terminal on OSX, with cdpr7, and I'm a little bit lost with the syntaxis and the text format that the function newsynth accepts. When asked for spectrum, i don't know which file type it's asking for (I've read in the documentation .frq for pitch related data and .txt for plain text data) and what language it needs (binary, just numbers...)

Thanks for your help!

rwdobson:
The spectrum file is "just" a text breakpoint file with multiple columns representing one or more partials. The Usage message (when newsynth is run from Terminal) gives the format - each line defines a time, then pairs defining a partial number and amplitude. Both can be fractional (apart from the first partial number which must be 1), allowing for an arbitrary mix of harmonic and inharmonic partials changing over time.

here is a simple example illustrating this, save as a file "spectest.txt":

0 1 1 3 0.3 5 0.2 7.5 0.14
5 1 0 3 0.5 5 0.7 6.5 1

And use e.g.:
newsynth synthesis 1 nstest.wav spectest.txt 48000 6 220

Overdrive_Ostrich:
Thanks!

It's a little bit confusing how cdp manages different types of files, like .ana or data files in .txt

Navigation

[0] Message Index

Go to full version