Csound Csound-dev Csound-tekno Search About

[Csnd] Playing large wav files that won't fit in to memory?

Date2010-01-18 11:05
Fromgafferuk
Subject[Csnd] Playing large wav files that won't fit in to memory?
Any ideas how to play large wav files that won't fit in to memory, ive search
google etc but found nothing.

Even just some advice would be great.

Im guessing have to create a table and keep on filling it up?

any ideas?

Date2010-01-18 12:13
FromIain McCurdy
Subject[Csnd] RE: Playing large wav files that won't fit in to memory?
soundin, diskin and diskin2 read from disk so are suited to playing back very long files.

Iain

> Date: Mon, 18 Jan 2010 03:05:14 -0800
> From: gafferuk@gmail.com
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] Playing large wav files that won't fit in to memory?
>
>
> Any ideas how to play large wav files that won't fit in to memory, ive search
> google etc but found nothing.
>
> Even just some advice would be great.
>
> Im guessing have to create a table and keep on filling it up?
>
> any ideas?
> --
> View this message in context: http://old.nabble.com/Playing-large-wav-files-that-won%27t-fit-in-to-memory--tp27208934p27208934.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Got a cool Hotmail story? Tell us now

Date2010-01-18 14:33
Fromgafferuk
Subject[Csnd] RE: Playing large wav files that won't fit in to memory?
Thanks, they work great. Im using diskin2, is there anyway I can change the
playback speed without changing the pitch?

Heres the example code im using:



; set this to a directory where beats.wav can be found
--env:SSDIR+=/Csound/Documentation/manual/examples


sr      =  48000
ksmps   =  32
nchnls  =  2

       instr 1
kftype invalue "ftype"
ktrans  linseg 1, 5, 2, 10, -2
a1      diskin2 "beats.wav", ktrans, 0, 1, 0, 32
       outs a1, a1
       endin




i 1 0 1500
e








Iain McCurdy wrote:
> 
> 
> soundin, diskin and diskin2 read from disk so are suited to playing back
> very long files.
> 
> Iain
> 
>> Date: Mon, 18 Jan 2010 03:05:14 -0800
>> From: gafferuk@gmail.com
>> To: csound@lists.bath.ac.uk
>> Subject: [Csnd]  Playing large wav files that won't fit in to memory?
>> 
>> 
>> Any ideas how to play large wav files that won't fit in to memory, ive
>> search
>> google etc but found nothing.
>> 
>> Even just some advice would be great.
>> 
>> Im guessing have to create a table and keep on filling it up?
>> 
>> any ideas?
>> -- 
>> View this message in context:
>> http://old.nabble.com/Playing-large-wav-files-that-won%27t-fit-in-to-memory--tp27208934p27208934.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>> 
>> 
>> 
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>  		 	   		  
> _________________________________________________________________
> Got a cool Hotmail story? Tell us now
> http://clk.atdmt.com/UKM/go/195013117/direct/01/
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
> 

Date2010-01-18 16:35
FromIain McCurdy
Subject[Csnd] RE: RE: Playing large wav files that won't fit in to memory?
You could always compensate for the pitch change caused by diskin using something like pvscale (and its friends).

Something like:

instr 1
kftype invalue "ftype"
ktrans linseg 1, 5, 2, 10, -2
a1 diskin2 "beats.wav", ktrans, 0, 1, 0, 32
fsig1 pvsanal a1, 1024, 256, 1024, 1
fsig2 pvscale fsig1, 1/ktrans
a1 pvsynth fsig2
outs a1, a1
endin

Iain





> Date: Mon, 18 Jan 2010 06:33:19 -0800
> From: gafferuk@gmail.com
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] RE: Playing large wav files that won't fit in to memory?
>
>
> Thanks, they work great. Im using diskin2, is there anyway I can change the
> playback speed without changing the pitch?
>
> Heres the example code im using:
>
>
> <CsOptions>
> ; set this to a directory where beats.wav can be found
> --env:SSDIR+=/Csound/Documentation/manual/examples
> </CsOptions>
> <CsInstruments>
> sr = 48000
> ksmps = 32
> nchnls = 2
>
> instr 1
> kftype invalue "ftype"
> ktrans linseg 1, 5, 2, 10, -2
> a1 diskin2 "beats.wav", ktrans, 0, 1, 0, 32
> outs a1, a1
> endin
>
> </CsInstruments>
> <CsScore>
>
> i 1 0 1500
> e
>
> </CsScore>
> </CsoundSynthesizer>
>
>
>
>
>
> Iain McCurdy wrote:
> >
> >
> > soundin, diskin and diskin2 read from disk so are suited to playing back
> > very long files.
> >
> > Iain
> >
> >> Date: Mon, 18 Jan 2010 03:05:14 -0800
> >> From: gafferuk@gmail.com
> >> To: csound@lists.bath.ac.uk
> >> Subject: [Csnd] Playing large wav files that won't fit in to memory?
> >>
> >>
> >> Any ideas how to play large wav files that won't fit in to memory, ive
> >> search
> >> google etc but found nothing.
> >>
> >> Even just some advice would be great.
> >>
> >> Im guessing have to create a table and keep on filling it up?
> >>
> >> any ideas?
> >> --
> >> View this message in context:
> >> http://old.nabble.com/Playing-large-wav-files-that-won%27t-fit-in-to-memory--tp27208934p27208934.html
> >> Sent from the Csound - General mailing list archive at Nabble.com.
> >>
> >>
> >>
> >> Send bugs reports to this list.
> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> >> csound"
> >
> > _________________________________________________________________
> > Got a cool Hotmail story? Tell us now
> > http://clk.atdmt.com/UKM/go/195013117/direct/01/
> > Send bugs reports to this list.
> > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> > csound"
> >
>
> --
> View this message in context: http://old.nabble.com/Playing-large-wav-files-that-won%27t-fit-in-to-memory--tp27208934p27211313.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Got a cool Hotmail story? Tell us now

Date2010-01-18 16:41
FromPeiman Khosravi
Subject[Csnd] Re: RE: RE: Playing large wav files that won't fit in to memory?
I would also try diskgrain. 

Best

P

On 18 Jan 2010, at 16:35, Iain McCurdy wrote:

You could always compensate for the pitch change caused by diskin using something like pvscale (and its friends).

Something like:

instr 1
kftype invalue "ftype"
ktrans linseg 1, 5, 2, 10, -2
a1 diskin2 "beats.wav", ktrans, 0, 1, 0, 32
fsig1 pvsanal a1, 1024, 256, 1024, 1
fsig2 pvscale fsig1, 1/ktrans
a1 pvsynth fsig2
outs a1, a1
endin

Iain





> Date: Mon, 18 Jan 2010 06:33:19 -0800
> From: gafferuk@gmail.com
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] RE: Playing large wav files that won't fit in to memory?
> 
> 
> Thanks, they work great. Im using diskin2, is there anyway I can change the
> playback speed without changing the pitch?
> 
> Heres the example code im using:
> 
> 
> <CsOptions>
> ; set this to a directory where beats.wav can be found
> --env:SSDIR+=/Csound/Documentation/manual/examples
> </CsOptions>
> <CsInstruments>
> sr = 48000
> ksmps = 32
> nchnls = 2
> 
> instr 1
> kftype invalue "ftype"
> ktrans linseg 1, 5, 2, 10, -2
> a1 diskin2 "beats.wav", ktrans, 0, 1, 0, 32
> outs a1, a1
> endin
> 
> </CsInstruments>
> <CsScore>
> 
> i 1 0 1500
> e
> 
> </CsScore>
> </CsoundSynthesizer>
> 
> 
> 
> 
> 
> Iain McCurdy wrote:
> > 
> > 
> > soundin, diskin and diskin2 read from disk so are suited to playing back
> > very long files.
> > 
> > Iain
> > 
> >> Date: Mon, 18 Jan 2010 03:05:14 -0800
> >> From: gafferuk@gmail.com
> >> To: csound@lists.bath.ac.uk
> >> Subject: [Csnd] Playing large wav files that won't fit in to memory?
> >> 
> >> 
> >> Any ideas how to play large wav files that won't fit in to memory, ive
> >> search
> >> google etc but found nothing.
> >> 
> >> Even just some advice would be great.
> >> 
> >> Im guessing have to create a table and keep on filling it up?
> >> 
> >> any ideas?
> >> -- 
> >> View this message in context:
> >> http://old.nabble.com/Playing-large-wav-files-that-won%27t-fit-in-to-memory--tp27208934p27208934.html
> >> Sent from the Csound - General mailing list archive at Nabble.com.
> >> 
> >> 
> >> 
> >> Send bugs reports to this list.
> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> >> csound"
> > 
> > _________________________________________________________________
> > Got a cool Hotmail story? Tell us now
> > http://clk.atdmt.com/UKM/go/195013117/direct/01/
> > Send bugs reports to this list.
> > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> > csound"
> > 
> 
> -- 
> View this message in context: http://old.nabble.com/Playing-large-wav-files-that-won%27t-fit-in-to-memory--tp27208934p27211313.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Got a cool Hotmail story? Tell us now