# Transient slice question

**URL:** https://discourse.flucoma.org/t/transient-slice-question/398
**Category:** Usage Questions
**Created:** [January 21, 2020, 2:45pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398 "2020-01-21T14:45:17Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![tutschku](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tutschku/32/22_2.png) [@tutschku](https://discourse.flucoma.org/u/tutschku)
#### Post date: [January 21, 2020, 2:45pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398/1 "2020-01-21T14:45:17Z")

</div>

I’m applying the exact same parameters (the default values) to three excerpts of the same sound. All three excerpts contain the same material at some point (see screenshot).

 ![Screenshot 2020-01-21 09.40.25](https://discourse.flucoma.org/uploads/default/original/1X/cab5019b8e083b3ec4211ac8507ea0847594383d.png)

Depending on the lengths of the excerpt, I’m getting very different results. This is not intuitive, as I would expect that the moment where all three examples have the SAME musical content would be segmented equally, independent from the overall length of the input sound.

 ![Screenshot 2020-01-21 09.40.07](https://discourse.flucoma.org/uploads/default/original/1X/7efc275e1fc293025e98b6ffecb77ebacbf7d67d.png)

---

<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: [January 21, 2020, 3:50pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398/2 "2020-01-21T15:50:49Z")

</div>

I would think there would be some minor differences as things before/after those points would impact thresholds and lockouts differently, but I think that would only make small differences, and only near the edges.

This looks profoundly different, without any apparent pattern to it.

Actually scratch that, it looks like there _is_ a pattern to the slices (staggered from the bottom one to the top, with the lowest one coming first), although the colors obscure that fact.

---

<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: [January 21, 2020, 3:52pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398/3 "2020-01-21T15:52:06Z")

</div>

![7efc275e1fc293025e98b6ffecb77ebacbf7d67d](https://discourse.flucoma.org/uploads/default/original/1X/23981cfac279d6ea45d0e412eead9789edb11985.png)

---

<div class="post-metadata">

### Author: ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)
#### Post date: [January 21, 2020, 4:27pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398/4 "2020-01-21T16:27:56Z")

</div>

one question: are you using 3 files, or the same with different start point? It should not change anything, but I need to trace the error - your assumption is right that you should have the same slices, as long as you don’t have conflicts of ‘minslicelenght’

---

<div class="post-metadata">

### Author: ![tutschku](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tutschku/32/22_2.png) [@tutschku](https://discourse.flucoma.org/u/tutschku)
#### Post date: [January 21, 2020, 8:48pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398/5 "2020-01-21T20:48:06Z")

</div>

These are three tracks in reaper with the exact same sound file. Only the size of the ‘item’ is different. I chose them all and applied standard values for transientslice with the reaper scripts.

The reason for this: I made many combinations of parameters to better understand their impact on the process.

I then discovered that keeping the exact same parameters with different lengths of the sound resulted in highly varying output. Hence the test

---

<div class="post-metadata">

### Author: ![tutschku](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tutschku/32/22_2.png) [@tutschku](https://discourse.flucoma.org/u/tutschku)
#### Post date: [January 21, 2020, 9:06pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398/6 "2020-01-21T21:06:54Z")

</div>

Thanks Rodrigo for pointing to the ‘pattern’.  
Here is my next test, which confirms it. Instead of using transient slice, I used novelty slice with default parameters, just to check if a similar behavior would manifest.

This is the splicing.

 ![Screenshot 2020-01-21 16.00.23](https://discourse.flucoma.org/uploads/default/original/1X/7b6fa16a0f41469bbecc04993dc2ee9a97542c8e.png)

Now I’m moving all three tracks to start at the same time:

 ![Screenshot 2020-01-21 16.01.21](https://discourse.flucoma.org/uploads/default/original/1X/a40c155299706764fea11ae15bc0a433d56890ec.png)

When zooming in it becomes clear, that they all have the same pattern.

 ![Screenshot 2020-01-21 16.02.13](https://discourse.flucoma.org/uploads/default/original/1X/6cb9a2e027077346fb79a7fd2888fcebe8ab35b4.png)

This leads to a few questions: is this a transfer problem between the command line execution and the actual splicing in Reaper?

Is it not recommended to select more than one item in Reaper and apply the same treatment on them.

Is this a conflict, because all three treatments refer to the same original sound file on the hard drive?

Thanks for digging in…

Best, Hans

---

<div class="post-metadata">

### Author: ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)
#### Post date: [January 21, 2020, 9:11pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398/7 "2020-01-21T21:11:41Z")

</div>

> [@tutschku](#):
>
> Thanks for digging in…

that’s what we’re here for 😉

@jamesbradbury this points at Reaper integration, can you check on your side first? I’ll check tomorrow morning on the CLI…

it might be that the CLI slicers do not behave correctly with @startframe too (so the slices would actually all be from the begining of the audio file and not the item, hence the exact same indices) @weefuzzy found something similar in Max… if that is the case, I’ll send you both a pre-release of the bug fix so you can confirm…

---

<div class="post-metadata">

### Author: ![tutschku](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tutschku/32/22_2.png) [@tutschku](https://discourse.flucoma.org/u/tutschku)
#### Post date: [January 21, 2020, 9:13pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398/8 "2020-01-21T21:13:37Z")

</div>

Great.  
I can confirm that it also happens with three copies of the same sound file. Thus their content is the same, but file names are different.

---

<div class="post-metadata">

### Author: ![jamesbradbury](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/jamesbradbury/32/1252_2.png) [@jamesbradbury](https://discourse.flucoma.org/u/jamesbradbury)
#### Post date: [January 21, 2020, 9:41pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398/9 "2020-01-21T21:41:55Z")

</div>

I’ll need to take a look. Hans you are using the most recent scripts I sent you (with parameter memory) and so there might be something breaking I did on that branch. I’ll have a gander

---

<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: [January 21, 2020, 9:41pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398/10 "2020-01-21T21:41:57Z")

</div>

Hello, how timely. Yes, this looks like an instance of the bug I found (and fixed) on Friday, which wasn’t limited just to Max, but did affect the usefulness of the `startframes` and `numframes` for the offline slicers.

---

<div class="post-metadata">

### Author: ![tutschku](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tutschku/32/22_2.png) [@tutschku](https://discourse.flucoma.org/u/tutschku)
#### Post date: [January 21, 2020, 9:52pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398/11 "2020-01-21T21:52:06Z")

</div>

@jamesbradbury : I tried it with both versions of the scripts: same behavior. It looks thus more like something @weefuzzy is hinting at and therefore would need a recompile of the command line tools.

---

<div class="post-metadata">

### Author: ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)
#### Post date: [January 21, 2020, 10:02pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398/12 "2020-01-21T22:02:21Z")

</div>

I’ve tried with the latest compile and it works fine. I’ll send you and James a folder now, but will try to reproduce the bug with the version you have (which I keep like a good support person)

---

<div class="post-metadata">

### Author: ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)
#### Post date: [January 21, 2020, 10:05pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398/13 "2020-01-21T22:05:13Z")

</div>

actually, to my surprise, the beta02 of the CLI does behave rightly with fluid-onsetslice

---

<div class="post-metadata">

### Author: ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)
#### Post date: [January 21, 2020, 10:07pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398/14 "2020-01-21T22:07:28Z")

</div>

and so does the beta02 version of the transient slice, so @jamesbradbury it points to a bug on your side…

---

<div class="post-metadata">

### Author: ![jamesbradbury](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/jamesbradbury/32/1252_2.png) [@jamesbradbury](https://discourse.flucoma.org/u/jamesbradbury)
#### Post date: [January 21, 2020, 10:09pm UTC](https://discourse.flucoma.org/t/transient-slice-question/398/15 "2020-01-21T22:09:18Z")

</div>

I will get to the bottom of this. I feel like I know what the problem is but I just need to work with the horrible script editor in reaper.

---

<div class="post-metadata">

### Author: ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)
#### Post date: [January 22, 2020, 9:28am UTC](https://discourse.flucoma.org/t/transient-slice-question/398/16 "2020-01-22T09:28:39Z")

</div>

ok i can confirm a bug, I can confirm the fix is behaving as expected, with the typical error of windowed material. I can explain more on this if that is not clear. I will send compiles to the 2 of you so you can confirm (personal incremental updates - how’s that for love!)

---

<div class="post-metadata">

### Author: ![tutschku](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tutschku/32/22_2.png) [@tutschku](https://discourse.flucoma.org/u/tutschku)
#### Post date: [January 22, 2020, 9:30am UTC](https://discourse.flucoma.org/t/transient-slice-question/398/17 "2020-01-22T09:30:11Z")

</div>

love it

windowed material explanation would be good - is this concerning the edges of the sound?

---

<div class="post-metadata">

### Author: ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)
#### Post date: [January 22, 2020, 9:33am UTC](https://discourse.flucoma.org/t/transient-slice-question/398/18 "2020-01-22T09:33:44Z")

</div>

> [@tutschku](#):
>
> windowed material explanation would be good - is this concerning the edges of the sound?

yes, and everything in between 😉

All windowed material will have small fluctuations of behaviour. For instance, if you do a sinusoid analysis and ofset it by something else than the overlap, you are very likely to get small variations. So you might get a different threshold if they are very ‘nervous’. If your thresholding is not crazy nervous, you will see no difference. It is true for all windowed signal, including RMS (hence so many RMS plugin being wrong, there is a good article about this [here](https://productionadvice.co.uk/lufs-dbfs-rms/))
