2021-10-17 18:26:00 +02:00
|
|
|
---
|
|
|
|
title: postSample
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
The `postSample` hook runs just after your pattern is sampled.
|
2021-10-17 18:26:00 +02:00
|
|
|
Your plugin will receive the Pattern object.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
It is triggered just before the end of either:
|
|
|
|
|
2021-10-17 18:26:00 +02:00
|
|
|
- the [Pattern.sampleOption()](/reference/api/pattern/#sampleoption) method
|
|
|
|
- the [Pattern.sampleMeasurement()](/reference/api/pattern/#samplemeasurement) method
|
|
|
|
- the [Pattern.sampleModels()](/reference/api/pattern/#samplemodels) method
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
<Note>
|
|
|
|
|
|
|
|
The `postSample` hook is rarely used.
|
|
|
|
|
|
|
|
</Note>
|
2021-10-17 18:26:00 +02:00
|
|
|
|