aboutsummaryrefslogtreecommitdiff
path: root/core/qmpmidiplay.cpp
AgeCommit message (Collapse)Author
2021-11-07Stop using MIDI messages for selecting presets used by fluidsynth.Gravatar Chris Xiong
2021-01-25Fix yet another function with no return statement.Gravatar Chris Xiong
2021-01-07Fix another freezing issue on Windows.Gravatar Chris Xiong
insert bad pun here
2021-01-07Fix very random crashes when run with QtCreator and freezes on Windows.Gravatar Chris Xiong
Guys, don't code at 1am.
2020-12-25Proper event-based playback interruption.Gravatar Chris Xiong
Also fixed random pauses after seeking. This should address everything left over by 64fd118e.
2020-12-14Emergency.Gravatar Chris Xiong
2020-12-14Before we have tick-based playback, we get this monstrosity.Gravatar Chris Xiong
This should help fixing issues such as "welp my player freezes when I switch tracks" etc. Don't worry. Event-based playback is here to stay. TODOs: - Maybe switch to an implementation based on condition variables? Current implementation is just a mess and unnecessarily wastes CPU time. Also that will allow several new interfaces to be added (such as player.interrupt) - Fix seeking. Seeking is still weird if there's a long gap between events.
2020-05-12Format EVERYTHING.Gravatar Chris Xiong
Hopefully this will make the source code less horrendous and actually readable. The command used was: ``` astyle --suffix=none --style=allman --attach-extern-c --attach-closing-while --indent-switches --indent-after-parens --pad-oper --pad-header --unpad-paren --align-pointer=name --recursive './*.cpp,*.hpp' ```
2020-04-30Add visualization renderer.Gravatar Chris Xiong
Add API for getting raw pitch bend values. Fix non-compliant RPN handling. The visualization renderer is still at the "proof-of-concept" stage. It's not very usable (yet).
2020-04-29Decouple CMidiPlayer and qmpMidiOutFluid.Gravatar Chris Xiong
Visualization renderer should no longer depend on the fluidsynth library. Reworked the "wait voice" option: now it only takes effect if an automatic track switch happens. Actually process events while waiting for async operation to finish.
2020-04-19Fix unintended control values sent to external midi devices.Gravatar Chris Xiong
2020-01-16Seeking while paused no longer breaks playback completely.Gravatar Chris Xiong
"main.seek" callbacks are now invoked after the player has done seeking, fixing incorrect channel info in simple visualization after seeking. Use QT_STRINGIFY.
2020-01-11Code refactoring for qmpChannelEditor.Gravatar Chris Xiong
Do not crash if preset selection dialog is closed with no preset selected. More translatable strings in qmpChannelEditor.
2019-11-26We're now in bug squashing mode!Gravatar Chris Xiong
You can now specify control initial values for each individual channels. Added build instructions for the folks out there rocking a more superior operating system.
2019-11-11New UI hook "main.seek". Fix SysExc. message sending. API documentation update.Gravatar Chris Xiong
Simple visualization no longer have notes stuck after seeking. System exclusive messages longer than 256 bytes are now sent correctly.
2019-11-02Keyboard plugin: show additional information on the side.Gravatar Chris Xiong
qmpPluginAPI::registerEventHandler now accepts an optional argument that determines whether the handler is called prior to or after an event is sent.
2019-09-10We refactorin', eh? Hell yeah.Gravatar Chris Xiong
(Almost) Completely rewritten qmpChannelsWindow, one of the oldest component, now with a dedicated data model. Removed dumb design (CMidiPlayer::getChstates). Now QMidiPlayer requires C++14 to build. More refactoring like this coming up soon.
2019-07-01Actually send initialization sequence to external devices.Gravatar Chris Xiong
Replace hardcoded initial CC values with values from device property API.
2019-06-16Inital implementation of the device properties API.Gravatar Chris Xiong
Added new interfaces to qmpMidiOutDevice. Implemented the new interfaces for qmpMidiOutFluid. Initial infra for device initialization file parsing. Move to the new interfaces for getting list of presets. Use DevIL instead of CxImage. External output devices are broken now but that is for another commit.
2019-05-26Major code refactor continued and (mostly) concluded.Gravatar Chris Xiong
Removed all references to ICallback in official plugins. New flag field in SEvent. Further type usage corrections.
2019-05-25Massive code refactor en cours!Gravatar Chris Xiong
Less complain from compilers: - use nullptr instead of NULL - use types for event fields - explicit type casting added Stop saving parameters of meta events in p1/p2 fields of SEvent. callback_t now uses std::function, deprecating ICallback. Not recommended for daily usage, or even testing: the code refactor is still a work in progress.
2019-04-22New development cycle!Gravatar Chris Xiong
Partially reintroduce High DPI handling. Pressing enter when a preset is focused now opens the preset selection dialog. Close all functionality windows before shutting down. Temporary fix for switching all channels of an external synth to mono mode unintentionally. And the most important one of them all: simple visualization! I'm ditching the 0.8.6 cycle because there was no clear goal for that release now (as the OPL3 emulation is now delayed indefinitely). In contrast, the 0.8.7 release has a pretty good-looking feature set mainly focused on improving support for external synthesizers: - Per-device initialization profile. - Instrument mapping files. - And a simple visualization ~~for showing off your external synthesizers~~. As always no ETA is set, nor will I promise the implementaion of all the features listed above.
2019-03-18Fixed initial preset selection in XG mode.Gravatar Chris Xiong
2019-03-13Set preset bank correctly in XG mode.Gravatar Chris Xiong
Removed High DPI handling code. Good luck to Windows users out there. Skulpture style: dials are no longer blurred if scaled.
2019-01-24Migrated to fluidsynth 2.x.Gravatar Chris Xiong
Moved to mxe for Windows build. Fixed default value for CC#8.
2018-06-18Precise playback (no more slowdown).Gravatar Chris Xiong
Also the visualization should now sync better.
2017-10-18API changes and crash fixes.Gravatar Chris Xiong
Details in the changelog.
2017-06-22Minor bug fixes.Gravatar Chris Xiong
SMF reader finally takes chunk length into account. Do not prepend sysex header to F0h sysex. Let the readers do it. File readers code cleanups and refined error messages.
2017-06-21Fixed FTBFS on Windows.Gravatar Chris Xiong
Fixed the default output device option. Seeking now restores CC values correctly.
2017-06-21Fixed a bunch of bugs and crashes in the RtMidi output device.Gravatar Chris Xiong
2017-06-21Complete rewrite of the MIDI mapper.Gravatar Chris Xiong
Enforces single fluidsynth instance. Documentation update. Minor changes to make lite version work.
2017-06-16Code refactoring and fix to memory leaks.Gravatar Chris Xiong
2017-02-13Fix pitch bend range handling.Gravatar Chris Xiong
Allow registering a string option as file path. Provide an easier way to set path values in options. Revert to old geometry storage mechanism and improved it. Hope this one will work on Windows. Make the time slider less ugly.
2017-02-10Road to standardize: use two parameters for pitchbend.Gravatar Chris Xiong
Documentation. Minor bug fix.
2017-02-10Fix building on Windows.Gravatar Chris Xiong
Behavior changes: 1. DnD into the main window now causes the dropped file to play. 2. Switch back to w32usleep to increase bpm accuracy. 3. Scan for plugins in application folder (in Windows), not in the working directory.
2017-02-09Add extra midi formats support via the file reader API.Gravatar Chris Xiong
Fix note counting.
2017-02-08First steps for the file reader API.Gravatar Chris Xiong
API additions and changes. Fixed wrong button shown when started from file.
2017-01-15A little code refactoring.Gravatar Chris Xiong
2017-01-02Can show measure indicators now.Gravatar Chris Xiong
Added new options to specify custom fonts. Added a new handler API. Minor rework on handler calling.
2016-12-11Update the preset selection dialog to improve support for external MIDI devices.Gravatar Chris Xiong
2016-06-01Initial event modifier and event filter stub.Gravatar Chris Xiong
2016-05-20Scale GUI correctly on a high DPI device.Gravatar Chris Xiong
Fix building for Windows. RC-bugs still exist.
2016-05-18Finally finish the particle system integration.Gravatar Chris Xiong
Add std::wstring version APIs to avoid wrong encoding. Update documentation.
2016-04-30Fixed a bug in RPN handling.Gravatar Chris Xiong
2016-04-27Handle pitch bend in visualization.Gravatar Chris Xiong
Handle mute and solo in the default visualization. Show file name in window title. A little plugin sdk documentaion... Remove stupid things.
2016-04-26The visualization plugin is usable now...Gravatar Chris Xiong
2016-04-25Plugin API now works correctly. Port old visualization code.Gravatar Chris Xiong
2016-04-24Problematic commit...Gravatar Chris Xiong
2016-04-23Add stubs for plugin support.Gravatar Chris Xiong
2016-04-22First stable version!0.7.2-5Gravatar Chris Xiong
Remove visualization stub. Complain explicitly if an invalid file is loaded. Remove fluidsynth warnings from stderr.