# FluidLoadBuffer

**URL:** <https://discourse.flucoma.org/t/fluidloadbuffer/2473>\
**Category:** New Ideas\
**Created:** [December 7, 2024, 7:25pm UTC](https://discourse.flucoma.org/t/fluidloadbuffer/2473 "2024-12-07T19:25:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![areacode](https://discourse.flucoma.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@areacode](https://discourse.flucoma.org/u/areacode)\
**Post date:** [December 7, 2024, 7:25pm UTC](https://discourse.flucoma.org/t/fluidloadbuffer/2473/1 "2024-12-07T19:25:05Z")

</div>

Hi there -

I was thinking it would be really useful (for me, at least) to have another function in SC to dump already-loaded buffers into FluComa.

my thought was to start with `FluidLoadFolder` to create a `FluidLoadBuffer`… Instead of a path, one could enter an array of buffers to be loaded - I’m not sure what the protocol for doing this would be or if something like this already exists in FluCoMa, though.

I hoped that taking out `SoundFiles.collect` and replacing  
`buffer.readChannel(f.path,bufStartFrame:startEnd[i][0], channels:channelMap);`  
with  
`buffer.copyData(f, dstStartAt:startEnd[i][0]);` would do the trick, but I think there is more to consider. Any pointers?

Thanks!

---

<div class="post-metadata">

**Author:** ![weefuzzy](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/weefuzzy/32/362_2.png) [@weefuzzy](https://discourse.flucoma.org/u/weefuzzy)\
**Post date:** [December 8, 2024, 1:43pm UTC](https://discourse.flucoma.org/t/fluidloadbuffer/2473/2 "2024-12-08T13:43:42Z")

</div>

You mean to take a load of individual buffers and concatenate them into one big buffer for analysis? Your approach looks like it should work, but note that there’s no real requirement to use a big single buffer for flucoma stuff: you can just as easily loop over the buffers you have and analyse them one by one.

---

<div class="post-metadata">

**Author:** ![areacode](https://discourse.flucoma.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@areacode](https://discourse.flucoma.org/u/areacode)\
**Post date:** [December 9, 2024, 3:40am UTC](https://discourse.flucoma.org/t/fluidloadbuffer/2473/3 "2024-12-09T03:40:11Z")

</div>

Yes - you’re right. I think the area where I’m running into a little grey area is the use of the OSCFunc/Identity Dictionary, where I’m assuming this is some type of metadata tagging protocol that is used throughout FluCoMa’s implementation.

It’s straightforward enough - but if I omitted “path”, for instance (since the stored buffers might no longer have correlation to a hard disk location), I would like to make sure that I’m not messing up something down the line…

---

<div class="post-metadata">

**Author:** ![weefuzzy](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/weefuzzy/32/362_2.png) [@weefuzzy](https://discourse.flucoma.org/u/weefuzzy)\
**Post date:** [December 9, 2024, 9:27am UTC](https://discourse.flucoma.org/t/fluidloadbuffer/2473/4 "2024-12-09T09:27:56Z")

</div>

> [@areacode](#):
>
> I think the area where I’m running into a little grey area is the use of the OSCFunc/Identity Dictionary,

That stuff is just for dispatching the callbacks from the server when processes finish, there’s nothing funky going on with respect to buffers.
