Csound Csound-dev Csound-tekno Search About

[Csnd] Csound 5.18 and OGG Output

Date2013-02-06 04:10
From"Art Hunkins"
Subject[Csnd] Csound 5.18 and OGG Output
Is Csound 5.18 (Windows) supposed to know how to write OGG output? (Using 
diskin2?)

I'm experiencing the following:

Specifying "-o distill.ogg" and "--ogg" in , with no .csoundrc 
file (and running from the terminal), I receive the message:
"Writing 1024-byte blks of vorbis encoding to distill.ogg (OGG). So far, so 
good.

The input samples are ogg at 16000 SR. *However* - playback of the ogg 
output file (with .csd SR=22050) gives a higher pitch than appropriate; a 
.csd SR=8000 sounds slow and lugubrious. Clearly the sample rates have not 
correctly adjusted. (Is this diskin2's responsibility or libsndfile?)

Either I'm doing something wrong, or 5.18 doesn't handle ogg as it should.

Any enlightenment greatly appreciated.

Art Hunkins 


Date2013-02-06 06:37
FromJustin Smith
SubjectRe: [Csnd] Csound 5.18 and OGG Output
"can alter its pitch using one of several available interpolation types, as well as convert the sample rate to match the orchestra sr setting"

in my experience, you manually adjust the playback by taking filesr/sr and using that as the kpitch arg, I never read that statement as promising automatic sr conversion


On Tue, Feb 5, 2013 at 8:10 PM, Art Hunkins <abhunkin@uncg.edu> wrote:
Is Csound 5.18 (Windows) supposed to know how to write OGG output? (Using diskin2?)

I'm experiencing the following:

Specifying "-o distill.ogg" and "--ogg" in <CsOptions>, with no .csoundrc file (and running from the terminal), I receive the message:
"Writing 1024-byte blks of vorbis encoding to distill.ogg (OGG). So far, so good.

The input samples are ogg at 16000 SR. *However* - playback of the ogg output file (with .csd SR=22050) gives a higher pitch than appropriate; a .csd SR=8000 sounds slow and lugubrious. Clearly the sample rates have not correctly adjusted. (Is this diskin2's responsibility or libsndfile?)

Either I'm doing something wrong, or 5.18 doesn't handle ogg as it should.

Any enlightenment greatly appreciated.

Art Hunkins


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"



Date2013-02-06 06:39
FromJustin Smith
SubjectRe: [Csnd] Csound 5.18 and OGG Output
"If interpolation is used, kpitch is automatically scaled by the ratio of the sample rate of the sound file and the orchestra, so that the file will always be played at the original pitch if kpitch is 1. However, the sample rate conversion is disabled if iwsize is 1."

mea culpa! I never would have expected it, but I guess it is supposed to do that automatically


On Tue, Feb 5, 2013 at 10:37 PM, Justin Smith <noisesmith@gmail.com> wrote:
"can alter its pitch using one of several available interpolation types, as well as convert the sample rate to match the orchestra sr setting"

in my experience, you manually adjust the playback by taking filesr/sr and using that as the kpitch arg, I never read that statement as promising automatic sr conversion


On Tue, Feb 5, 2013 at 8:10 PM, Art Hunkins <abhunkin@uncg.edu> wrote:
Is Csound 5.18 (Windows) supposed to know how to write OGG output? (Using diskin2?)

I'm experiencing the following:

Specifying "-o distill.ogg" and "--ogg" in <CsOptions>, with no .csoundrc file (and running from the terminal), I receive the message:
"Writing 1024-byte blks of vorbis encoding to distill.ogg (OGG). So far, so good.

The input samples are ogg at 16000 SR. *However* - playback of the ogg output file (with .csd SR=22050) gives a higher pitch than appropriate; a .csd SR=8000 sounds slow and lugubrious. Clearly the sample rates have not correctly adjusted. (Is this diskin2's responsibility or libsndfile?)

Either I'm doing something wrong, or 5.18 doesn't handle ogg as it should.

Any enlightenment greatly appreciated.

Art Hunkins


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"




Date2013-02-06 09:29
FromVictor Lazzarini
SubjectRe: [Csnd] Csound 5.18 and OGG Output
diskin2 should read any rate and resample it. If you read with any other method, it will not work unless you do the resampling yourself.

Victor

On 6 Feb 2013, at 04:10, Art Hunkins wrote:

> Is Csound 5.18 (Windows) supposed to know how to write OGG output? (Using diskin2?)
> 
> I'm experiencing the following:
> 
> Specifying "-o distill.ogg" and "--ogg" in , with no .csoundrc file (and running from the terminal), I receive the message:
> "Writing 1024-byte blks of vorbis encoding to distill.ogg (OGG). So far, so good.
> 
> The input samples are ogg at 16000 SR. *However* - playback of the ogg output file (with .csd SR=22050) gives a higher pitch than appropriate; a .csd SR=8000 sounds slow and lugubrious. Clearly the sample rates have not correctly adjusted. (Is this diskin2's responsibility or libsndfile?)
> 
> Either I'm doing something wrong, or 5.18 doesn't handle ogg as it should.
> 
> Any enlightenment greatly appreciated.
> 
> Art Hunkins 
> 
> 
> 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"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-02-06 09:34
FromVictor Lazzarini
SubjectRe: [Csnd] Csound 5.18 and OGG Output
In fact I just tested it now and diskin2 works as expected (with ogg input) (on OSX, but the code is the same on all platforms),

Victor
On 6 Feb 2013, at 09:29, Victor Lazzarini wrote:

> diskin2 should read any rate and resample it. If you read with any other method, it will not work unless you do the resampling yourself.
> 
> Victor
> 
> On 6 Feb 2013, at 04:10, Art Hunkins wrote:
> 
>> Is Csound 5.18 (Windows) supposed to know how to write OGG output? (Using diskin2?)
>> 
>> I'm experiencing the following:
>> 
>> Specifying "-o distill.ogg" and "--ogg" in , with no .csoundrc file (and running from the terminal), I receive the message:
>> "Writing 1024-byte blks of vorbis encoding to distill.ogg (OGG). So far, so good.
>> 
>> The input samples are ogg at 16000 SR. *However* - playback of the ogg output file (with .csd SR=22050) gives a higher pitch than appropriate; a .csd SR=8000 sounds slow and lugubrious. Clearly the sample rates have not correctly adjusted. (Is this diskin2's responsibility or libsndfile?)
>> 
>> Either I'm doing something wrong, or 5.18 doesn't handle ogg as it should.
>> 
>> Any enlightenment greatly appreciated.
>> 
>> Art Hunkins 
>> 
>> 
>> 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"
>> 
> 
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
> 
> 
> 
> 
> 
> 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"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie