# Buf slicing comparison / learning patch

**URL:** <https://discourse.flucoma.org/t/buf-slicing-comparison-learning-patch/209>\
**Category:** Code Sharing\
**Created:** [May 28, 2019, 1:29pm UTC](https://discourse.flucoma.org/t/buf-slicing-comparison-learning-patch/209 "2019-05-28T13:29:22Z")\
**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:** [May 28, 2019, 4:19pm UTC](https://discourse.flucoma.org/t/buf-slicing-comparison-learning-patch/209/4 "2019-05-28T16:19:14Z")

</div>

Here’s the thread I was thinking about. Some handy bits of code here that slice up what’s needed and works out a `jsui` visualizer.

> [@Slice Visualisation](http://discourse.flucoma.org/t/slice-visualisation/140):
>
> This is pretty far down the list of interesting things to code, but would it be possible to create a visualiser for the slicing objects? Something in jsui would be neat where you pass it the source buffer and slices buffer as arguments and it creates a visualisation showing you the location of segments. My very limited GUI imagination would just have the bipolar waveform with vertical lines running through it. My reasoning for this is tuning the parameters can be tiresome when you have to check…

---

_[View the full topic](https://discourse.flucoma.org/t/buf-slicing-comparison-learning-patch/209)._
