Skip to content
This repository has been archived by the owner on Jan 6, 2018. It is now read-only.

fanfaresimulator/fanfaresimulator

Repository files navigation

Fanfare Simulator

UNIX Build Status Windows Build status

Setup

Dependencies:

Linux

On Debian-based systems:

sudo apt install qtbase5-dev libfluidsynth-dev

In the project directory:

mkdir build
cd build
cmake ..

macOS

brew install qt fluidsynth

In the project directory:

mkdir build
cd build
cmake ..

MSYS2/MinGW-w64

Assuming you have already setup MSYS2 and a MinGW-w64 C/C++ toolchain:

pacman -Syu mingw-w64-x86_64-qt5 mingw-w64-x86_64-fluidsynth mingw-w64-x86_64-cmake

In the project directory:

mkdir build
cd build
cmake -G "MSYS Makefiles" ..

Windows

  • If you don't have Visual Studio, install Visual C++ Build Tools
  • Install Qt
  • Install pre-built Fluidsynth
  • Install CMake
  • Run CMake
    • If you have Visual Studio
      • Launch CMake (cmake-gui)
      • Select source directory
      • Create a new directory "build" and select it as build directory
      • Configure
      • Select "Visual Studio 14 2015 Win64"
      • Generate
      • Open project (or open fanfaresimulator.sln with Visual Studio)
      • Build
    • If you don't have Visual Studio, from the CLI:
      mkdir build
      cd build
      cmake .. -G "Visual Studio 14 2015 Win64" -DCMAKE_PREFIX_PATH=C:\Qt\5.9.2\msvc2015_64
      msbuild fanfaresimulator.sln

And you're done!

Build

cd build # If you're not there already
make

Usage

Start the server and some clients:

./fanfaresimulator-server
./fanfaresimulator-client

If you want to select a custom MIDI file:

./fanfaresimulator-server <midi-file>

If you want to change the number of players (put 0 to just play the partition):

./fanfaresimulator-server --players-nbr=4

Cleanup build directory

rm -rf build
mkdir build
cd build
cmake ..

Releases

No releases published

Packages

No packages published