Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Csound 5.18 and OGG Output

Date2013-02-06 20:05
From"Art Hunkins"
SubjectRe: [Csnd] Csound 5.18 and OGG Output
Victor,

We *are* using diskin2. With ogg output specified, apparently the resample 
function is not working correctly.

At any rate, when the output SR exceeds the sample's SR, the sample is 
played higher and faster. Conversely, when the sample's SR is higher than 
output SR, playback is lower in pitch and longer.

Just like when speeding up or slowing down a tape recorder.

And of course, none of this happens with wav.

Art Hunkins

----- Original Message ----- 
From: "Victor Lazzarini" 
To: 
Sent: Wednesday, February 06, 2013 4:29 AM
Subject: Re: [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





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 20:16
FromVictor.Lazzarini@nuim.ie
SubjectRe: [Csnd] Csound 5.18 and OGG Output
AttachmentsNone  None  

Date2013-02-06 21:10
FromJustin Smith
SubjectRe: [Csnd] Csound 5.18 and OGG Output
remember it only resamples if interpolation is turned on (aka window size is not 0, 0 being the default)


On Wed, Feb 6, 2013 at 12:16 PM, <Victor.Lazzarini@nuim.ie> wrote:
Can you post your CSD here? I tested diskin2 on OSX and it does resample.


----- Original Message -----
From: Art Hunkins <abhunkin@uncg.edu>
Date: Wednesday, February 6, 2013 8:09 pm
Subject: Re: [Csnd] Csound 5.18 and OGG Output
To: csound@lists.bath.ac.uk

> Victor,
>
> We *are* using diskin2. With ogg output specified, apparently
> the resample
> function is not working correctly.
>
> At any rate, when the output SR exceeds the sample's SR, the
> sample is
> played higher and faster. Conversely, when the sample's SR is
> higher than
> output SR, playback is lower in pitch and longer.
>
> Just like when speeding up or slowing down a tape recorder.
>
> And of course, none of this happens with wav.
>
> Art Hunkins
>
> ----- Original Message -----
> From: "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
> To: <csound@lists.bath.ac.uk>
> Sent: Wednesday, February 06, 2013 4:29 AM
> Subject: Re: [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 <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"
> >
>
> 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"
>
> =
>
>
>
> 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,
National University of Ireland, Maynooth