MCPcopy Create free account
hub / github.com/davy7125/polyphone / beforeProcess

Method beforeProcess

sources/editor/tools/remove_mods/toolremovemods.cpp:35–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void ToolRemoveMods::beforeProcess(IdList ids)
36{
37 _deletionType = DeletionGlobal;
38 if (!ids.empty())
39 {
40 switch (ids[0].typeElement)
41 {
42 case elementInst: case elementInstSmpl:
43 _deletionType = DeletionForInstrument;
44 break;
45 case elementPrst: case elementPrstInst:
46 _deletionType = DeletionForPreset;
47 break;
48 default:
49 break;
50 }
51 }
52 _count = 0;
53}
54
55void ToolRemoveMods::process(SoundfontManager * sm, EltID id, AbstractToolParameters *parameters)
56{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected