[PD] loading samples in arrays
Johannes Krause
krause at revolwear.com
Tue Jun 12 01:32:42 CEST 2007
Frank Barknecht schrieb:
> Hallo,
> Johannes Krause hat gesagt: // Johannes Krause wrote:
>
>
>> Georg Holzmann schrieb:
>>
>>> Hallo Johannes!
>>>
>>>
>>>
>>>> i am using the tabplay~ object to play out of 48 arrays.
>>>> it takes alot of time to load the samples in the arrays.
>>>>
>>>>
>>> However, you can also try to stream it directly from the harddisk with
>>> [readsf~] - then you don't have to load them at all !
>>>
>>> LG
>>> Georg
>>>
>>>
>>>
>> gruss georg,
>>
>> i want to loop 4*4 samples at the same time. will readsf~ be good for that?
>>
>
> It depends: You can just reopen the files of course. remeber to first
> send the "open ..." command before sending another 1 to resume
> playing. If this will be smooth depends on your material, but maybe
> you can mask the transition a bit, for example by using two readsf~ to
> play the same file and start them slightly shifted (maybe prepare your
> soundfiles accordingly).
>
> Another possibility is for example illustrated in the class material
> Tom Erbe just posted: It shows how you can load only part of a sample
> into a table. See:
> http://music.ucsd.edu/~tre/172/w6a-soundfilerbuffering.pd
> http://music.ucsd.edu/~tre/classblog.php
>
> (Probably works best with a threaded soundfiler.)
>
> And finally you can combine the partial soundfiler loading ("-skip
> ...") with readsf~ playing by loading e.g. the beginning of a sample
> into a table and then switch over to playing the rest of the sample
> from disk with readsf~. You can do this to smooth out possible
> loop-point clicks as well by fading out readsf~ and switching over to
> table-playing again.
>
> Lots of possibilities, some slightly hackish, but that's part of the
> fun.
>
> Ciao
>
hey list,
i ve tried 2 options to play at least 7 quad-samples out of the arrays.
first way is to play the sample with readsf~ and write it straight
into 4 arrays with tabwrite~. when readsf~ finished then start play
out of the
arrays. this needs a lot of time to start playing - maybe depending on
the length
(each quad-sample is 90 sec) - and interrupts before it plays out of
the arrays.
second way based on
http://music.ucsd.edu/~tre/172/w6a-soundfilerbuffering.pd
...is to use the soundfiler wich gets 2 messages by a bang and reading
the same
quad-sample into 8 arrays (2 buffer, each buffer 4 arrays) and switch
betrween them
at a specified sample. (in this case 661500 samples)
so when i try to play 7 samples, iam going to read in 56 arrays at same
time, with
tabplay~ it needs 10 sec to start playing.
when i read the second buffer later the the the first one it takes about
5 sec to play
and it interrupts at the transition.
any idea to handle that kind of problem?
other ways to get much better results?
thanks and shouts . joh
More information about the Pd-list
mailing list