Git Product home page Git Product logo

Comments (4)

mlazowik avatar mlazowik commented on June 4, 2024 1

FYI I got both the button and fader feedback/bidirectional to work on X-Touch (regular one, not compact, not mini).

The first problem was assigning the proper output device, as it was not the same as input. I ended up adding mido.get_output_names() to the top of __main__ in setup.py. Turns out that output was the same as input, but with "1" instead of "0" at the end. I then set out_deviceID as per README. Side note: setup.py does not work with the output device configured because it tries to open it as input, so I have to remove it temporarily whenever I want the setup script to work.

To get faders to work I had to add "bidirectional": true manually in the json. They did move, but at an increasing offset the lower the value was. I spotted the Super dirty hack but @AlexDash says that it works that raises the volume value to a third degree before sending it to OBS, so I've added the reverse of that (volume = volume ** (1. / 3.)) right before the map_scale in volChanged

val = int(map_scale(volume, result["scale_low"], result["scale_high"], 0, 127))

I've almost lost hope for getting this to work after trying 3 or 4 different plugins, thank you for this one!

I'm not sending a PR, because I'm not sure if that cube root makes sense for all devices, but as the power is used for all of them I guess it does?

from miditoobs.

mlazowik avatar mlazowik commented on June 4, 2024 1

Re why cubic works: https://github.com/obsproject/obs-studio/blob/dde4d57d726ed6d9e244ffbac093d8ef54e29f44/libobs/obs-audio-controls.h#L44

from miditoobs.

lebaston100 avatar lebaston100 commented on June 4, 2024

This is planned and on the to-do list, but on the very bottom because i don't have the hardware to develop with.

from miditoobs.

cpyarger avatar cpyarger commented on June 4, 2024

I will see about adding fader feedback.

from miditoobs.

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.