Author Topic: Newsynth spectrum data archive  (Read 2512 times)

Overdrive_Ostrich

  • Newbie
  • *
  • Posts: 2
    • View Profile
Newsynth spectrum data archive
« on: November 15, 2014, 09:41:57 AM »
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

  • Sr. Member
  • ****
  • Posts: 73
    • View Profile
Re: Newsynth spectrum data archive
« Reply #1 on: November 15, 2014, 07:12:54 PM »
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

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Newsynth spectrum data archive
« Reply #2 on: November 18, 2014, 08:43:46 PM »
Thanks!

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