Csound Csound-dev Csound-tekno Search About

[Csnd] real time audio question

Date2011-03-18 14:14
Fromfrancesco
Subject[Csnd] real time audio question
Dear All,
i have some questions:

1 - using alsa i cannot use 24 bit audio format, the message is:

  *** Unknown sample format.
  *** Only 16-bit and 32-bit integers, and 32-bit floats are supported.

  is this normal? And from what it depend?

2 - a minimal csd with rt audio input that go directly to outputs, if i use
  a ksmps > 2 the audio is heavy distorted.
  This happens either in windows Vista as in Ubuntu 10.04 (using
  either alsa and jack), and also either with internal/external usb audio.
  No k-rate variables into csd.

Csound 5.13 (build from source on Ubuntu, installer on Windows)

Thanks,
ciao,
francesco.



--
View this message in context: http://csound.1045644.n5.nabble.com/real-time-audio-question-tp3964919p3964919.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-03-18 14:34
FromJustin Glenn Smith
SubjectRe: [Csnd] real time audio question
francesco wrote:
> Dear All,
> i have some questions:
> 
> 1 - using alsa i cannot use 24 bit audio format, the message is:
> 
>   *** Unknown sample format.
>   *** Only 16-bit and 32-bit integers, and 32-bit floats are supported.
> 
>   is this normal? And from what it depend?

As far as I know csound simply cannot output any other audio formats using the standard output opcodes. I don't know how hard it would be to implement other data sizes for audio output - the csound developers listserv would be the best place to ask that question.

> 
> 2 - a minimal csd with rt audio input that go directly to outputs, if i use
>   a ksmps > 2 the audio is heavy distorted.
>   This happens either in windows Vista as in Ubuntu 10.04 (using
>   either alsa and jack), and also either with internal/external usb audio.
>   No k-rate variables into csd.
> 

This question would be easier to answer if you had shared the csd. I am going to guess that you need to change your -B and -b command line settings though.

For example the following is mentioned in the manual:
"Note: if both -iadc and -odac are used at the same time (full duplex real time audio), the -b option should be set to an integer multiple of ksmps."

> Csound 5.13 (build from source on Ubuntu, installer on Windows)
> 
> Thanks,
> ciao,
> francesco.
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/real-time-audio-question-tp3964919p3964919.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-03-18 16:37
FromAndres Cabrera
SubjectRe: [Csnd] real time audio question
Hi,

On Fri, Mar 18, 2011 at 2:34 PM, Justin Glenn Smith
 wrote:
> As far as I know csound simply cannot output any other audio formats using the standard output opcodes. I don't know how hard it would be to implement other data sizes for audio output - the csound developers listserv would be the best place to ask that question.

Csound handles all data internally as floats or doubles depending on
the build and converts to any other format on output through the
rtaudio plugin chosen. It would seem that in fact your alsa driver
doesn't support 24-bit output, but I think there's some flag to enable
32-bit floating point output, which according to the error message,
should work.

Cheers,
Andres


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-03-21 09:57
Fromfrancesco
Subject[Csnd] Re: real time audio question
Thanks Mr. Justin,
and apologies for later answer;
regarding my second question the csd is only in to out, nothing other.
I was testing the real time input (that i do not often use) and i have tryed
different values of b and B, and following manual these were setted with
different ratios depending by bit depth used (at 24 bit is raccomended 
a minimum of 2:3). But that is strange is that this happens either on
windows that (if i remember well) was more easy to set up (about this).

For now in ubuntu i found a setting with jack that work well and i will use
that.
But i will investigate furter because i need to better understand audio in
linux.

For now thanks,
ciao,
francesco.

--
View this message in context: http://csound.1045644.n5.nabble.com/real-time-audio-question-tp3964919p4221406.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-03-21 10:08
Fromfrancesco
Subject[Csnd] Re: real time audio question
Thanks Mr. Andres,
the problem is that my usb sound card work only at 24 bit!
i have installed the latest alsa driver (and others alsa stuff) but nothing
changed.
I am not expert in linux system (i moved to ubuntu only a few months ago).
I am not able to understand how can i use 24 bit depth with alsa, but
i have try jack that work well.
I will try to better understand what is wrong in my system.

Thank You,
ciao,
francesco.


--
View this message in context: http://csound.1045644.n5.nabble.com/real-time-audio-question-tp3964919p4221549.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"