Git Product home page Git Product logo

Comments (13)

lebaston100 avatar lebaston100 commented on May 24, 2024 2

Can't promise any timeline, this might take months to be published, but spoiler:
image

from miditoobs.

lebaston100 avatar lebaston100 commented on May 24, 2024 2

Implemented with d1a646b

from miditoobs.

lebaston100 avatar lebaston100 commented on May 24, 2024 1

So the most basic way to do this, is to just have 2 Instances running with different config files. Because of how it loads the config, if you have 2 different folders each with the setup, main and the config file, you can have multiple instances running that do different stuff.
As for native integration this is something i could add without a lot of work.

from miditoobs.

lebaston100 avatar lebaston100 commented on May 24, 2024 1

Any expected changes ?

A lot of underlying code was changed, a lot of bugs fixed and there were some breaking changes in 4.5. that i don't want to invest the time into when i don't what will break with 4.6. And i want to maybe add the new requests that come with 4.5 and 4.6.

from miditoobs.

Darkace1337 avatar Darkace1337 commented on May 24, 2024 1

bump Just as a Plus 1 for this feature to be added

from miditoobs.

lebaston100 avatar lebaston100 commented on May 24, 2024 1

@gbraad i hope the requirements.txt works as intended. Maybe when you do your testing you can test that too and let me know.

from miditoobs.

gbraad avatar gbraad commented on May 24, 2024

Sounds good. Will use the suggested workaround for the moment. Creative symlinking can solve this...

from miditoobs.

gbraad avatar gbraad commented on May 24, 2024

One of the easier fixes would be to make

MIDItoOBS/setup.py

Lines 5 to 10 in 8d18056

####Change IP and Port here
serverIP = "localhost"
serverPort = "4444"
####
db = TinyDB("config.json", indent=4)

and

MIDItoOBS/main.py

Lines 46 to 48 in 8d18056

class MidiHandler:
# Initializes the handler class
def __init__(self, config_path="config.json", ws_server="localhost", ws_port=4444):

MIDItoOBS/main.py

Lines 266 to 268 in 8d18056

if __name__ == "__main__":
handler = MidiHandler()
handler.start()

to allow a configurable config.json to be loaded (and possible endpoint values). At the moment, the MidiHandler uses default parameter values. This way, alhough not super elegant yet, it is possible to run multiple instances of the script for each configured device. WDYT? Note: however does not enforce a single device entry in the configuration file.

from miditoobs.

lebaston100 avatar lebaston100 commented on May 24, 2024

I'll be doing some maintenance work when obs-websocket 4.6 is released. I will have a deeper look in how i can implement that.
With multiple input devices there would need to be a flag for every command to which controller it belongs.
I will leave this open for now. Feel free do add some more ideas or even send a pull request. You seem to be a much better programmer then me. Everything on my Github is just stuff i hacked together mostly for myself.

from miditoobs.

gbraad avatar gbraad commented on May 24, 2024

to which controller it belongs

I also concluded this. I'll hack up a simple workaround for the moment and try to push a PR

when obs-websocket 4.6 is released

Any expected changes ?

better programmer then me

Nonsense! Same here for a lot of stuff as I just do not have the time. Wish I could spend more on OSC and Midi stuff.

from miditoobs.

gbraad avatar gbraad commented on May 24, 2024

As a temporary workaround I override the config.json based on the argument value. This way not much needed to be modified:

gbraad@8415293#diff-5bc02cefb3ea9e27f1a6776eabd1935dR26

and:

gbraad@8415293#diff-2eeaed663bd0d25b7e608891384b7298R11

Note: the rest of this commit deals with convering from dos line endings to unix... else the top sh-bang #! does not work.

from miditoobs.

lebaston100 avatar lebaston100 commented on May 24, 2024

With 4.6.0 out now and the 4.6.1 hotfix after my bugreport i hope to start working on this in the near future.

from miditoobs.

gbraad avatar gbraad commented on May 24, 2024

@lebaston100 thanks. will test soon. Also good to see the requirements.txt doing there now ;-)

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.