Giter Site home page Giter Site logo

Comments (7)

Swiftb0y avatar Swiftb0y commented on July 28, 2024 1

This has been requested often, but it has lots of implications that we want to avoid. Reactive programming makes definitely sense, but it would be better to implement natively by writing mappings in QML (currently not possible, but wanted).

from mixxx.

Swiftb0y avatar Swiftb0y commented on July 28, 2024 1

The reactive programming that Mixxx controls offers just makes the code cleaner and I was interested in improving Mixxx anyway.

I agree, but connections to COs is not the solution. For now, regular imperative OO-oriented programming suffices for controller mappings (I recommend you take a look at ComponentJS).

If you want to improve mixxx controller scripting, I recommend you take a look at some small features such as the registering input handlers project you already discovered. Those will likely take a medium amount of code (300-500 SLOC I'm guessing) and would already help a lot in making the mapping system better.

from mixxx.

christophehenry avatar christophehenry commented on July 28, 2024

Is it related in some way to the Registering MIDI Input Handlers From Javascript topic in some way?

from mixxx.

Swiftb0y avatar Swiftb0y commented on July 28, 2024

Not really, that is separate. It's related rather to the fact that arbitrary COs for controller mappings (which have been requested previously for inter-mapping communication) are bound to introduce compatibility issues between mappings.
(also just fyi since you're currently learning the controller mapping system, prefer to use engine.makeConnection over engine.connectControl, the latter has been deprecated for quite a while).

from mixxx.

christophehenry avatar christophehenry commented on July 28, 2024

COs? Ok, so how hard would that be? Where should I start if I wanted to work on this?

from mixxx.

Swiftb0y avatar Swiftb0y commented on July 28, 2024

COs?

Sorry for glossing over that. That short for what we call "Control Objects" and its the [group],key API you're interacting with via the engine.set* calls.

Ok, so how hard would that be?

Medium I'd guess. Like 50 SLOC. But as I said, that is not a good solution and I would be inclined to reject such a PR currently.


I want to help you, so lets get back to the drawing board. What is your current usecase? I assume the break example you posted above?

from mixxx.

christophehenry avatar christophehenry commented on July 28, 2024

Some of it, yes. The DN-S3700 implements several features like this one, involving multiple components interacting with one another. In the abstract, this is entirely solvable with states in JS variables. Especially now that the JS engine supports classes. The reactive programming that Mixxx controls offers just makes the code cleaner and I was interested in improving Mixxx anyway.

from mixxx.

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.