- for (int i = 0; i < fst->plugin->numPrograms; ++i) {
- char buf[100];
- TreeModel::Row row = *(preset_model->append());
-
- snprintf (buf, 90, "preset %d", i);
-
- if (vst_version >= 2) {
- fst->plugin->dispatcher (fst->plugin, 29, i, 0, buf, 0.0);