-
Notifications
You must be signed in to change notification settings - Fork 1
template module
senso edited this page Jun 22, 2026
·
2 revisions
#example #template #callback #reference
Full template with all callback stubs implemented.
| Module Name | template |
| Type | mtSimple |
| Color | clDataModuleColor |
| Source | examples/TemplateModule/ |
A comprehensive template that implements every available SDK callback as an empty stub. Use this as a reference or starting point when you need to implement advanced features like chunk persistence, mouse interaction, multi-touch, MIDI output, video, or automation recording.
| # | Name | Type | I/O | Callback |
|---|---|---|---|---|
| 0 | text |
ptText |
Input/Output | None |
The text parameter is initialized with "hello world".
This template provides empty implementations for every callback category:
-
onGetModuleInfo— Module description -
onGetNumberOfParams/onAfterQuery— Query system -
onInitModule— Post-initialization -
onBlocSizeChange/onSampleRateChange— Audio configuration changes
-
onProcess— Real-time audio/data processing -
onCallBack— Parameter change handling
-
onGetChunkLen/onGetChunk/onSetChunk— Custom state serialization
-
onCreateSettings/onSettingsHasChanged— Settings panel -
onPaint— Custom canvas drawing -
onMouseMove/onMouseDown/onMouseUp— Mouse interaction -
onMouseMoveMulti/onMouseDownMulti/onMouseUpMulti— Multi-touch
-
onMidiSendOut/onMidiSysexSendOut— MIDI output -
onOpenEditor/onBringToFront— Child window management -
onSetRecordedValue— Automation playback
Copy this template as a starting point and remove the callbacks you don't need. Keep only what your module actually uses.
All callbacks are implemented as empty stubs.
- TemplateModuleSimple — Minimal template (recommended starting point)
- MyModule — Simple working example