Coder Social home page Coder Social logo

jeroenwalter / managed-midi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atsushieno/managed-midi

0.0 0.0 0.0 828 KB

Cross-platform MIDI processing library for mono and .NET (ALSA, CoreMIDI, Android, WinMM and UWP).

License: MIT License

C# 99.20% Makefile 0.80%

managed-midi's People

Contributors

ahopper avatar atsushieno avatar cjvaughter avatar dependabot[bot] avatar noname22 avatar sbrl avatar smoogipoo avatar

Watchers

 avatar  avatar

managed-midi's Issues

Seek() should also reset all controllers

Seek() is implemented as a replay of all the midi messages from the start, while muting any note on/off requests. This allows for control changes and tempo changes to be done correctly.
It also mutes all channels before the replay.
However, it doesn't reset all controllers before the replay, so controllers like modulation and pitch will still have their last value.

When the player starts a new song, all controllers are reset. As the Seek operation basically is the same as starting a new song, it should also reset all controllers.

Stop and Seek should be immediate actions.

WaitBy blocks the calling thread for a specified duration in milliseconds.
This has the unfortunate consequence that if a midi event for instance has a delta time of 5 seconds, that the play thread is blocked for 5 seconds.
A Stop or Seek command will then be effectuated after those 5 seconds.
This can be solved by making IMidiPlayerTimeManager.WaitBy abortable or by having a different way of waiting the appropriate amount of time dictated by the delta time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.