Csound Csound-dev Csound-tekno Search About

[Csnd] Spectrum analyzer

Date2011-12-11 10:04
FromStefan Thomas
Subject[Csnd] Spectrum analyzer
Dear community,
I've tried the file SpectrumAnalyzer100.csd, that I've found at Ian Mc Curdy's
realtime examples.
The file works on my machine, but there's one thing, that I don't understand:
How can I generate the desired table?
Neither clicking "Dump table" nor "create table" results in the desired output.
Maybee I didn't see something obvious, but I have no idea what it could be.
Hope someone could give me a hint.
Thanks
Stefan


Date2011-12-11 10:42
FromIain McCurdy
SubjectRE: [Csnd] Spectrum analyzer
Hi Stefan,

Clicking 'Dump Table' will create a text file containing the current analysed function table in your home directory. I've just checked the example with 5.14 on Linux and Windows and it is working.
Bear in mind this is a specialized tool for creating GEN10 function tables for harmonic tones for which you prescribe the fundamental frequency. First listen to the current fundamental frequency by clicking play tone (the input tone should use the same fundamental or alternatively adjust the fundamental - either Hz. or note number - to match that of the input tone). Switch on the analyser, adjust 'pre-gain' if the meter seems too low (this is not critical), then while the input tone is playing click 'write table'. This captures the analysed spectrum in a GEN10 function table. You can listen to the results of this table now by clicking 'Play Tone', if you are happy with the results click 'Dump Table' and the table is written into a text file called "PartialStrengths100.txt" so that it can be used in other csds. If you still can't find the text file, do a search on your hard drive. It should be there somewhere.

Hopefully this helps,
Iain


Date: Sun, 11 Dec 2011 11:04:57 +0100
From: kontrapunktstefan@googlemail.com
To: csound@lists.bath.ac.uk
Subject: [Csnd] Spectrum analyzer

Dear community,
I've tried the file SpectrumAnalyzer100.csd, that I've found at Ian Mc Curdy's
realtime examples.
The file works on my machine, but there's one thing, that I don't understand:
How can I generate the desired table?
Neither clicking "Dump table" nor "create table" results in the desired output.
Maybee I didn't see something obvious, but I have no idea what it could be.
Hope someone could give me a hint.
Thanks
Stefan


Date2011-12-11 11:05
FromStefan Thomas
SubjectRe: [Csnd] Spectrum analyzer
Thanks Ian,
I found a text file with the name PartialStrengths100.txt
I think it is the right one.
And I assume, the best time for clicking is, when the wave has its maximum, right?

2011/12/11 Iain McCurdy <i_mccurdy@hotmail.com>
Hi Stefan,

Clicking 'Dump Table' will create a text file containing the current analysed function table in your home directory. I've just checked the example with 5.14 on Linux and Windows and it is working.
Bear in mind this is a specialized tool for creating GEN10 function tables for harmonic tones for which you prescribe the fundamental frequency. First listen to the current fundamental frequency by clicking play tone (the input tone should use the same fundamental or alternatively adjust the fundamental - either Hz. or note number - to match that of the input tone). Switch on the analyser, adjust 'pre-gain' if the meter seems too low (this is not critical), then while the input tone is playing click 'write table'. This captures the analysed spectrum in a GEN10 function table. You can listen to the results of this table now by clicking 'Play Tone', if you are happy with the results click 'Dump Table' and the table is written into a text file called "PartialStrengths100.txt" so that it can be used in other csds. If you still can't find the text file, do a search on your hard drive. It should be there somewhere.

Hopefully this helps,
Iain


Date: Sun, 11 Dec 2011 11:04:57 +0100
From: kontrapunktstefan@googlemail.com
To: csound@lists.bath.ac.uk
Subject: [Csnd] Spectrum analyzer


Dear community,
I've tried the file SpectrumAnalyzer100.csd, that I've found at Ian Mc Curdy's
realtime examples.
The file works on my machine, but there's one thing, that I don't understand:
How can I generate the desired table?
Neither clicking "Dump table" nor "create table" results in the desired output.
Maybee I didn't see something obvious, but I have no idea what it could be.
Hope someone could give me a hint.
Thanks
Stefan



Date2011-12-11 15:26
FromIain McCurdy
SubjectRE: [Csnd] Spectrum analyzer
Well, amplitude is not so critical as partial strengths in a GEN 10 are not absolute but are instead relative to one another. I think it is only crucial that the captured spectrum is representative of the sustain portion of the note, i.e. after the noisy attack stage is passed.
I.


Date: Sun, 11 Dec 2011 12:05:26 +0100
From: kontrapunktstefan@googlemail.com
To: csound@lists.bath.ac.uk
Subject: Re: [Csnd] Spectrum analyzer

Thanks Ian,
I found a text file with the name PartialStrengths100.txt
I think it is the right one.
And I assume, the best time for clicking is, when the wave has its maximum, right?

2011/12/11 Iain McCurdy <i_mccurdy@hotmail.com>
Hi Stefan,

Clicking 'Dump Table' will create a text file containing the current analysed function table in your home directory. I've just checked the example with 5.14 on Linux and Windows and it is working.
Bear in mind this is a specialized tool for creating GEN10 function tables for harmonic tones for which you prescribe the fundamental frequency. First listen to the current fundamental frequency by clicking play tone (the input tone should use the same fundamental or alternatively adjust the fundamental - either Hz. or note number - to match that of the input tone). Switch on the analyser, adjust 'pre-gain' if the meter seems too low (this is not critical), then while the input tone is playing click 'write table'. This captures the analysed spectrum in a GEN10 function table. You can listen to the results of this table now by clicking 'Play Tone', if you are happy with the results click 'Dump Table' and the table is written into a text file called "PartialStrengths100.txt" so that it can be used in other csds. If you still can't find the text file, do a search on your hard drive. It should be there somewhere.

Hopefully this helps,
Iain


Date: Sun, 11 Dec 2011 11:04:57 +0100
From: kontrapunktstefan@googlemail.com
To: csound@lists.bath.ac.uk
Subject: [Csnd] Spectrum analyzer


Dear community,
I've tried the file SpectrumAnalyzer100.csd, that I've found at Ian Mc Curdy's
realtime examples.
The file works on my machine, but there's one thing, that I don't understand:
How can I generate the desired table?
Neither clicking "Dump table" nor "create table" results in the desired output.
Maybee I didn't see something obvious, but I have no idea what it could be.
Hope someone could give me a hint.
Thanks
Stefan