Csound Csound-dev Csound-tekno Search About

Sample format in pvanal and cvanal analysis

Date2016-03-18 16:15
FromGpp
SubjectSample format in pvanal and cvanal analysis
Hello,

when I want to create a analysis file to use with pvoc, for instance, I
prefer to run Csound by Terminal as it's much more comfortable and allows me
to process in parallel several audio samples. The same if I need to run a
csound file using pvoc or other FFT opcodes. 

In order to create a .pv file I write in the Terminal:

cd /Volumes/.....
 PATH=$PATH:/usr/local/bin
pvanal -n8192 -w16 -c1 Sample1.aif Sample1.pv

The question is: where can I set the sample format if I use Csound via
Terminal? is there a command line I need to add to the previous one? because
the default sample format is 16 bit. 

I have the same problem rendering via Terminal a csound file using pvoc or
others opcodes. 
For instance the command line for the Terminal is:

cd /Volumes/........
 PATH=$PATH:/usr/local/bin
 csound -A -o pvcross_a12.aif pvcross_a.csd

Even if I process a 24bit or 32bit .pv file the pvoc output will be always a
16bit sound sample. 

This is something I already in the past discussed with you, but
unfortunately it's still not really clear to me.
Thank you!



--
View this message in context: http://csound.1045644.n5.nabble.com/Sample-format-in-pvanal-and-cvanal-analysis-tp5747975.html
Sent from the Csound - General mailing list archive at Nabble.com.

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-03-18 16:48
Fromjpff
SubjectRe: Sample format in pvanal and cvanal analysis
I do not follow.  .pv files are in floating point or doubles.
==John


On Fri, 18 Mar 2016, Gpp wrote:

> Hello,
>
> when I want to create a analysis file to use with pvoc, for instance, I
> prefer to run Csound by Terminal as it's much more comfortable and allows me
> to process in parallel several audio samples. The same if I need to run a
> csound file using pvoc or other FFT opcodes.
>
> In order to create a .pv file I write in the Terminal:
>
> cd /Volumes/.....
> PATH=$PATH:/usr/local/bin
> pvanal -n8192 -w16 -c1 Sample1.aif Sample1.pv
>
> The question is: where can I set the sample format if I use Csound via
> Terminal? is there a command line I need to add to the previous one? because
> the default sample format is 16 bit.
>
> I have the same problem rendering via Terminal a csound file using pvoc or
> others opcodes.
> For instance the command line for the Terminal is:
>
> cd /Volumes/........
> PATH=$PATH:/usr/local/bin
> csound -A -o pvcross_a12.aif pvcross_a.csd
>
> Even if I process a 24bit or 32bit .pv file the pvoc output will be always a
> 16bit sound sample.
>
> This is something I already in the past discussed with you, but
> unfortunately it's still not really clear to me.
> Thank you!
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Sample-format-in-pvanal-and-cvanal-analysis-tp5747975.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-03-18 21:36
Fromluis jure
SubjectRe: Sample format in pvanal and cvanal analysis
el 2016-03-18 a las 09:15 Gpp escribió:

> In order to create a .pv file I write in the Terminal:
> 
> cd /Volumes/.....
>  PATH=$PATH:/usr/local/bin
> pvanal -n8192 -w16 -c1 Sample1.aif Sample1.pv
> 
> The question is: where can I set the sample format if I use Csound via
> Terminal? is there a command line I need to add to the previous one?
> because the default sample format is 16 bit. 

i don't think i understand this one. as far as i know, pv files are doubles
(or eventually floats?), and that has nothing to do with the bit depth of
the audio files. am i right?

> I have the same problem rendering via Terminal a csound file using pvoc
> or others opcodes. 
> For instance the command line for the Terminal is:
> 
> cd /Volumes/........
>  PATH=$PATH:/usr/local/bin
>  csound -A -o pvcross_a12.aif pvcross_a.csd
> 
> Even if I process a 24bit or 32bit .pv file the pvoc output will be
> always a 16bit sound sample. 

again, this is something completely different. if you want to render to a
24-bit sound file (using pv opcodes or not), use the -3 flag:

http://csound.github.io/docs/manual/CommandFlagsCategory.html

i guess you can render to 32-bit sound samples with the --format flag? but
i have no idea, never used 32-bit. i don't even know of true 32-bit DACs.
anyone?

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-03-19 08:22
FromGpp
SubjectRe: Sample format in pvanal and cvanal analysis
Everything is clear, thank you.



--
View this message in context: http://csound.1045644.n5.nabble.com/Sample-format-in-pvanal-and-cvanal-analysis-tp5747975p5747981.html
Sent from the Csound - General mailing list archive at Nabble.com.

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here