diff --git a/ColomboMT32.sf2 b/ColomboMT32.sf2 new file mode 100644 index 0000000..e17c90a Binary files /dev/null and b/ColomboMT32.sf2 differ diff --git a/Phoenix_MT-32.sf2 b/Phoenix_MT-32.sf2 new file mode 100644 index 0000000..80a448e Binary files /dev/null and b/Phoenix_MT-32.sf2 differ diff --git a/chorium.sf2pack b/chorium.sf2pack deleted file mode 100644 index a5a70ea..0000000 Binary files a/chorium.sf2pack and /dev/null differ diff --git a/gm.sf2 b/gm.sf2 new file mode 100644 index 0000000..6445a80 Binary files /dev/null and b/gm.sf2 differ diff --git a/main.cpp b/main.cpp index c79c548..a274ba1 100644 --- a/main.cpp +++ b/main.cpp @@ -38,7 +38,7 @@ void WriteWAVHeader(std::ofstream &file, DWORD length) { int main(int argc, char** argv) { std::cout << "Program start\n"; - if (argc != 2) { + if (argc != 3) { std::cerr << "Wrong arguments!\n"; return -1; } @@ -50,7 +50,7 @@ int main(int argc, char** argv) { } // 2) Load the SF2PACK soundfont - HSOUNDFONT sfont = BASS_MIDI_FontInit("Chorium_fork.sf2", 0); + HSOUNDFONT sfont = BASS_MIDI_FontInit(argv[1], 0); if (!sfont) { std::cerr << "BASS_MIDI_FontInit error: " << BASS_ErrorGetCode() << std::endl; BASS_Free(); @@ -58,8 +58,8 @@ int main(int argc, char** argv) { } // Create decoding stream (no playback) - HSTREAM midiStream = BASS_MIDI_StreamCreateFile(FALSE, argv[1], 0, 0, - BASS_STREAM_DECODE | BASS_SAMPLE_FLOAT, 44100); + HSTREAM midiStream = BASS_MIDI_StreamCreateFile(FALSE, argv[2], 0, 0, + BASS_STREAM_DECODE | BASS_SAMPLE_FLOAT | BASS_MIDI_NOFX, 44100); if (!midiStream) { std::cerr << "BASS_MIDI_StreamCreateFile error: " << BASS_ErrorGetCode() << std::endl; BASS_MIDI_FontFree(sfont); diff --git a/synthgms.sf2 b/synthgms.sf2 new file mode 100644 index 0000000..5edea2a Binary files /dev/null and b/synthgms.sf2 differ