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.
|
2022-02-19 08:04:25 +01: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:
|
|
|
|
|
2022-08-20 18:33:05 -04: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>
|