zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

PresetExtractor.h (1125B)


      1 /*
      2   ZynAddSubFX - a software synthesizer
      3 
      4   PresetExtractor.h - RT Safe Copy/Paste
      5   Copyright (C) 2016 Mark McCurry
      6 
      7   This program is free software; you can redistribute it and/or
      8   modify it under the terms of the GNU General Public License
      9   as published by the Free Software Foundation; either version 2
     10   of the License, or (at your option) any later version.
     11 */
     12 #pragma once
     13 #include <string>
     14 #include <rtosc/ports.h>
     15 
     16 namespace zyn {
     17 
     18 extern const rtosc::Ports real_preset_ports;
     19 extern const rtosc::Ports preset_ports;
     20 
     21 struct Clipboard {
     22     std::string data;
     23     std::string type;
     24 };
     25 
     26 Clipboard clipboardCopy(class MiddleWare &mw, std::string url);
     27 
     28 void presetCopy(MiddleWare &mw, std::string url, std::string name);
     29 void presetPaste(MiddleWare &mw, std::string url, std::string name);
     30 void presetCopyArray(MiddleWare &mw, std::string url,  int field, std::string name);
     31 void presetPasteArray(MiddleWare &mw, std::string url, int field, std::string name);
     32 void presetPaste(std::string url, int);
     33 void presetDelete(int);
     34 void presetRescan();
     35 std::string presetClipboardType();
     36 bool presetCheckClipboardType();
     37 
     38 }