Coder Social home page Coder Social logo

Comments (7)

cameronwhite avatar cameronwhite commented on June 5, 2024 1

I'll bump up the priority for this

from powertabeditor.

jcelerier avatar jcelerier commented on June 5, 2024

that would be a great feature indeed, any hope to get it ?

from powertabeditor.

jcelerier avatar jcelerier commented on June 5, 2024

if you guide me a bit through the source code I'd be interested in looking into it :-)

from powertabeditor.

cameronwhite avatar cameronwhite commented on June 5, 2024

Sure, that would be great!
The key presses are handled at

bool PowerTabEditor::eventFilter(QObject *object, QEvent *event)

The normal MIDI playback is handled in a background thread through https://github.com/powertab/powertabeditor/blob/master/source/audio/midiplayer.cpp . I don't know if this functionality should necessarily go in there, but it might be a good starting point for a similar background thread that the app can send events to when notes are entered.

Feel free to ask if you have any more questions, or set up a draft pull request, etc!

from powertabeditor.

jcelerier avatar jcelerier commented on June 5, 2024

The normal MIDI playback is handled in a background thread through https://github.com/powertab/powertabeditor/blob/master/source/audio/midiplayer.cpp . I don't know if this functionality should necessarily go in there, but it might be a good starting point for a similar background thread that the app can send events to when notes are entered.

wouldn't a good way be to have an event queue from the ui thread to the background midi thread sending "unattended" midi events to be played ?

from powertabeditor.

cameronwhite avatar cameronwhite commented on June 5, 2024

That sounds very reasonable, it would just need a few changes to keep the thread alive (currently a new one is spawned when playback starts) and handle different events in the background thread.

from powertabeditor.

Ebdim9th avatar Ebdim9th commented on June 5, 2024

This is just what I was looking for. What's particularly interesting was I was playing back a GP3 file of an Animetal song and it got to an exaggerated whammy bar part and Power Tab's MIDI played it back perfectly even though it doesnt currently have that function in the tab symbols/effects drop down menu

from powertabeditor.

Related Issues (20)

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.