Skip to content
/ MXTune Public
forked from liuanlin-mx/MXTune

pitch correction plugin for VST

License

Notifications You must be signed in to change notification settings

cat2/MXTune

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MXTune

hot keys

  • alt+mouse wheel: x zoom
  • ctrl+mouse wheel: y zoom
  • (mouse wheel) or (W, S): y move
  • (shift+mouse wheel) or (A, D): x move
  • left button drag: add note
  • right button : delete note

attribution

build

windows(msys2)

msys2

pacman -S mingw-w64-x86_64-toolchain
pacman -S make cmake autoconf automake-wrapper libtool mingw-w64-x86_64-python3 mingw-w64-x86_64-waf mingw-w64-x86_64-fftw mingw-w64-x86_64-rubberband

JUCE

  • Download Juce (https://github.com/juce-framework/JUCE 5.4.7)

    • modify: JUCE/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp:2442

      /*
          extern "C" BOOL WINAPI DllMain (HINSTANCE instance, DWORD reason, LPVOID)
          {
              if (reason == DLL_PROCESS_ATTACH)
                  Process::setCurrentModuleInstanceHandle (instance);
              return true;
          }
      */
      
    • modify: JUCE/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp:3174

      extern "C" __declspec (dllexport) IPluginFactory* GetPluginFactory()
      
  • run Projucer.exe

  • File->Open MXTune/JUCE/mx_tune.jucer

  • File->Global Paths

    • modify "Path to JUCE" and "JUCE Modules"
  • File->Save All

VST SDK

  • Download the VST SDK (http:https://www.steinberg.net/en/company/developers.html)

  • copy vstsdk2.4/pluginterfaces to VST_SDK/VST3_SDK/

  • copy VST_SDK/VST3_SDK to MXTune/

  • modify:

    • VST3_SDK\base\source\fstring.cpp:226

      #define vsnprintf _vsnprintf
      ->
      //#define vsnprintf _vsnprintf
      
    • VST3_SDK\pluginterfaces\base\ipluginbase.h:423

      extern "C" __declspec (dllexport) Steinberg::IPluginFactory*  GetPluginFactory ();
      

build SoundTouch

./bootstrap 
./configure --prefix=/mingw64 --enable-static --disable-shared
make CXXFLAGS="-DSOUNDTOUCH_PREVENT_CLICK_AT_RATE_CROSSOVER=1"
make install

build aubio

python3 /mingw64/bin/waf configure --enable-fftw3f --disable-tests --disable-examples --disable-wavread --disable-wavwrite --prefix=/mingw64
python /mingw64/bin/waf install -j4

build MXTune

mkdir build-cmake
cd build-cmake
cmake .. -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -G "Unix Makefiles"
make -j4

macOS

  • Prerequisites:

    • CMake
    • Git
    • Xcode
    • Xcode command-line tools
    • Homebrew
  • Install Xcode from Mac App Store

  • Install Xcode command-line tools: xcode-select --install


brew install pkg-config brew install autoconf brew install automake brew install libtool brew install cmake


### JUCE
Download Juce (https://github.com/juce-framework/JUCE 7.0.5)
run Projucer
File->Open MXTune/JUCE/mx_tune.jucer
File->Global Paths   modify "Path to JUCE" and "JUCE Modules"
File->Save All


### VST SDK
Download the VST SDK (http:https://www.steinberg.net/en/company/developers.html)
copy vstsdk2.4/pluginterfaces to VST_SDK/VST3_SDK/
copy VST_SDK/VST3_SDK to MXTune/


### build Audio

./configure --enable-static --enable-float --enable-single ./waf configure --enable-fftw3f --disable-tests --disable-examples --disable-wavread --disable-wavwrite --notest sudo ./waf install


### build SoundTouch

make CXXFLAGS="-DSOUNDTOUCH_PREVENT_CLICK_AT_RATE_CROSSOVER=1 -fdata-sections -ffunction-sections" sudo make install


### build rubberband

make -f otherbuilds/Makefile.macos sudo cp -R rubberband /usr/local/include sudo cp lib/* /usr/local/lib sudo cp build/meson-private/rubberband.pc /usr/local/lib/pkgconfig/



### build MXTune

mkdir build-cmake cd build-cmake cmake .. make -j6 sudo cp libmx_tune.dylib /Library/Audio/Plug-Ins/VST/mx_tune.vst



## linux

- `sudo apt install libfftw3-dev`


### JUCE
Download Juce (https://github.com/juce-framework/JUCE 7.0.5)
run Projucer.exe
File->Open MXTune/JUCE/mx_tune.jucer
File->Global Paths   modify "Path to JUCE" and "JUCE Modules"
File->Save All


### VST SDK
Download the VST SDK (http:https://www.steinberg.net/en/company/developers.html)
copy vstsdk2.4/pluginterfaces to VST_SDK/VST3_SDK/
copy VST_SDK/VST3_SDK to MXTune/


### build SoundTouch

./bootstrap ./configure --enable-static --disable-shared make CXXFLAGS="-DSOUNDTOUCH_PREVENT_CLICK_AT_RATE_CROSSOVER=1 -fvisibility=hidden -fdata-sections -ffunction-sections -fPIC" LDFLAGS="-fPIC" sudo make install


### build aubio
- Download waf (https://waf.io/)

./waf configure --enable-fftw3f --disable-tests --notests --disable-examples --disable-wavread --disable-wavwrite CFLAGS='-fvisibility=hidden -fdata-sections -ffunction-sections' ./waf build --disable-tests --notests --disable-examples sudo ./waf install --disable-tests --notests --disable-examples


### build libsamplerate

./configure CFLAGS=-fPIC LDFLAGS=-fPIC make -j4 sudo make install


### build rubberband

make -f otherbuilds/Makefile.linux sudo cp -rf rubberband /usr/local/include/ sudo cp -rf lib/* /usr/local/lib/


### build MXTune

mkdir build-cmake cd build-cmake cmake .. -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -G "Unix Makefiles" make -j4

About

pitch correction plugin for VST

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • C++ 83.6%
  • C 13.9%
  • CMake 2.5%