--- linuxsampler/trunk/src/network/lscpserver.h 2005/09/23 06:58:26 778 +++ linuxsampler/trunk/src/network/lscpserver.h 2006/12/15 21:40:27 973 @@ -3,7 +3,7 @@ * LinuxSampler - modular, streaming capable sampler * * * * Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * - * Copyright (C) 2005 Christian Schoenebeck * + * Copyright (C) 2005, 2006 Christian Schoenebeck * * * * This library is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -40,12 +40,13 @@ #include "lscpparser.h" #include "lscp.h" #include "lscpevent.h" -#include "lscpinstrumentloader.h" #include "../Sampler.h" #include "../common/Thread.h" #include "../common/Mutex.h" #include "../common/Condition.h" +#include "../drivers/midi/MidiInstrumentMapper.h" + /// TCP Port on which the server should listen for connection requests. #define LSCP_ADDR INADDR_ANY #define LSCP_PORT 8888 @@ -127,6 +128,23 @@ String SetVolume(double dVolume, uint uiSamplerChannel); String SetChannelMute(bool bMute, uint uiSamplerChannel); String SetChannelSolo(bool bSolo, uint uiSamplerChannel); + String AddOrReplaceMIDIInstrumentMapping(uint MidiMapID, uint MidiBank, uint MidiProg, String EngineType, String InstrumentFile, uint InstrumentIndex, float Volume, MidiInstrumentMapper::mode_t LoadMode, String Name); + String RemoveMIDIInstrumentMapping(uint MidiMapID, uint MidiBank, uint MidiProg); + String GetMidiInstrumentMappings(uint MidiMapID); + String GetAllMidiInstrumentMappings(); + String GetMidiInstrumentMapping(uint MidiMapID, uint MidiBank, uint MidiProg); + String ListMidiInstrumentMappings(uint MidiMapID); + String ListAllMidiInstrumentMappings(); + String ClearMidiInstrumentMappings(uint MidiMapID); + String ClearAllMidiInstrumentMappings(); + String AddMidiInstrumentMap(String MapName = ""); + String RemoveMidiInstrumentMap(uint MidiMapID); + String RemoveAllMidiInstrumentMaps(); + String GetMidiInstrumentMaps(); + String ListMidiInstrumentMaps(); + String GetMidiInstrumentMap(uint MidiMapID); + String SetMidiInstrumentMapName(uint MidiMapID, String NewName); + String SetChannelMap(uint uiSamplerChannel, int MidiMapID); String ResetChannel(uint uiSamplerChannel); String ResetSampler(); String GetServerInfo(); @@ -151,7 +169,6 @@ sockaddr_in SocketAddress; Sampler* pSampler; Condition Initialized; - LSCPInstrumentLoader InstrumentLoader; ///< thread responsible for loading instruments in the background int Main(); ///< Implementation of virtual method from class Thread