Browse Source

Rename MIDI sequencer plugin to MIDI pattern

tags/1.9.7
falkTX 9 years ago
parent
commit
a4ab0d6b0b
5 changed files with 21 additions and 21 deletions
  1. +2
    -2
      source/native-plugins/Makefile
  2. +2
    -2
      source/native-plugins/_all.c
  3. +3
    -3
      source/native-plugins/_data.cpp
  4. +14
    -14
      source/native-plugins/midi-pattern.cpp
  5. +0
    -0
      source/native-plugins/resources/midipattern-ui

+ 2
- 2
source/native-plugins/Makefile View File

@@ -84,7 +84,7 @@ OBJS += \
$(OBJDIR)/audio-file.cpp.o \
$(OBJDIR)/bigmeter.cpp.o \
$(OBJDIR)/midi-file.cpp.o \
$(OBJDIR)/midi-sequencer.cpp.o \
$(OBJDIR)/midi-pattern.cpp.o \
$(OBJDIR)/notes.cpp.o

# ----------------------------------------------------------------------------------------------------------------------------
@@ -256,7 +256,7 @@ $(OBJDIR)/midi-file.cpp.o: midi-file.cpp
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@

$(OBJDIR)/midi-sequencer.cpp.o: midi-sequencer.cpp
$(OBJDIR)/midi-pattern.cpp.o: midi-pattern.cpp
-@mkdir -p $(OBJDIR)
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@


+ 2
- 2
source/native-plugins/_all.c View File

@@ -35,7 +35,7 @@ extern void carla_register_native_plugin_audiofile(void);

// MIDI file and sequencer
extern void carla_register_native_plugin_midifile(void);
extern void carla_register_native_plugin_midisequencer(void);
extern void carla_register_native_plugin_midipattern(void);

// Carla
extern void carla_register_native_plugin_carla(void);
@@ -85,7 +85,7 @@ void carla_register_all_native_plugins(void)
// MIDI file and sequencer
carla_register_native_plugin_midifile();
#ifdef CARLA_OS_LINUX
carla_register_native_plugin_midisequencer();
carla_register_native_plugin_midipattern();
#endif

#ifndef CARLA_OS_WIN


+ 3
- 3
source/native-plugins/_data.cpp View File

@@ -215,12 +215,12 @@ static const NativePluginDescriptor sNativePluginDescriptors[] = {
/* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
/* audioIns */ 0,
/* audioOuts */ 0,
/* midiIns */ 1,
/* midiIns */ 0,
/* midiOuts */ 1,
/* paramIns */ 0,
/* paramOuts */ 0,
/* name */ "MIDI Sequencer",
/* label */ "midisequencer",
/* name */ "MIDI Pattern",
/* label */ "midipattern",
/* maker */ "falkTX, tatch",
/* copyright */ "GNU GPL v2+",
DESCFUNCS


source/native-plugins/midi-sequencer.cpp → source/native-plugins/midi-pattern.cpp View File

@@ -22,7 +22,7 @@

// -----------------------------------------------------------------------

class MidiSequencerPlugin : public NativePluginAndUiClass,
class MidiPatternPlugin : public NativePluginAndUiClass,
public AbstractMidiPlayer
{
public:
@@ -30,8 +30,8 @@ public:
kParameterCount = 0
};

MidiSequencerPlugin(const NativeHostDescriptor* const host)
: NativePluginAndUiClass(host, "midiseq-ui"),
MidiPatternPlugin(const NativeHostDescriptor* const host)
: NativePluginAndUiClass(host, "midipattern-ui"),
fNeedsAllNotesOff(false),
fWantInEvents(false),
fWasPlayingBefore(false),
@@ -349,13 +349,13 @@ private:
}
}

PluginClassEND(MidiSequencerPlugin)
CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(MidiSequencerPlugin)
PluginClassEND(MidiPatternPlugin)
CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(MidiPatternPlugin)
};

// -----------------------------------------------------------------------

static const NativePluginDescriptor midisequencerDesc = {
static const NativePluginDescriptor midipatternDesc = {
/* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
/* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
|NATIVE_PLUGIN_HAS_UI
@@ -364,26 +364,26 @@ static const NativePluginDescriptor midisequencerDesc = {
/* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
/* audioIns */ 0,
/* audioOuts */ 0,
/* midiIns */ 1,
/* midiIns */ 0,
/* midiOuts */ 1,
/* paramIns */ MidiSequencerPlugin::kParameterCount,
/* paramIns */ MidiPatternPlugin::kParameterCount,
/* paramOuts */ 0,
/* name */ "MIDI Sequencer",
/* label */ "midisequencer",
/* name */ "MIDI Pattern",
/* label */ "midipattern",
/* maker */ "falkTX, tatch",
/* copyright */ "GNU GPL v2+",
PluginDescriptorFILL(MidiSequencerPlugin)
PluginDescriptorFILL(MidiPatternPlugin)
};

// -----------------------------------------------------------------------

CARLA_EXPORT
void carla_register_native_plugin_midisequencer();
void carla_register_native_plugin_midipattern();

CARLA_EXPORT
void carla_register_native_plugin_midisequencer()
void carla_register_native_plugin_midipattern()
{
carla_register_native_plugin(&midisequencerDesc);
carla_register_native_plugin(&midipatternDesc);
}

// -----------------------------------------------------------------------

source/native-plugins/resources/midiseq-ui → source/native-plugins/resources/midipattern-ui View File


Loading…
Cancel
Save