# Decomposing drums for use in a granular

**URL:** <https://discourse.flucoma.org/t/decomposing-drums-for-use-in-a-granular/2073>\
**Category:** Learning Resources\
**Created:** [August 18, 2023, 3:56pm UTC](https://discourse.flucoma.org/t/decomposing-drums-for-use-in-a-granular/2073 "2023-08-18T15:56:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![rodrigo.constanzo](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/rodrigo.constanzo/32/12_2.png) [@rodrigo.constanzo](https://discourse.flucoma.org/u/rodrigo.constanzo)\
**Post date:** [August 22, 2023, 12:23pm UTC](https://discourse.flucoma.org/t/decomposing-drums-for-use-in-a-granular/2073/4 "2023-08-22T12:23:07Z")

</div>

Very cool, dig the additions.

You can also add in a step that pre-sorts the components, so they don’t end up in a random order.

In the patch I posted [here](https://discourse.flucoma.org/t/nmf-filter-transposition/) one of the steps takes the centroid for each channel of the bases and rewrites them to a new buffer based on that order, and I’ve found it to be quite effective. At minimum, it’s always consistent.

---

_[View the full topic](https://discourse.flucoma.org/t/decomposing-drums-for-use-in-a-granular/2073)._
