SteffeyDev / atemOSC

Control ATEM video switchers over the network with OSC messages
http://www.atemosc.com
202 stars 32 forks source link

MIDI-specific Audio Controls #86

Closed SteffeyDev closed 6 years ago

SteffeyDev commented 6 years ago

Pulling from #55

Currently, the gain and balance values from the OSC audio commands are sent directly to the underlying SDK, so the gain is in dB and the balance is -1 for full left to +1 for full right. However, this is difficult for users of OSCulator who can only map MIDI to OSC with float values in the range 0-1.

One option is to make a midi-specific sub-API that would do the scaling from 0-1 to the needed gain and balance values for the SDK. I'm open to other suggestions as well.

The API I am imagining is something like /atem/audio/midi/input/1/gain, but once again that is open to discussion.

xtonross commented 6 years ago

The input range can be customised in Osculator. You can do it by adjusting the Out Min and Out Max parameters in the Scalings page.

screen shot 2018-06-11 at 11 23 09 am
SteffeyDev commented 6 years ago

Thanks for the info! I did not know that either. @JamesFrank2525 does this help you?

SteffeyDev commented 6 years ago

Because OSCulator and I'm sure other OSC apps have the scaling ability built in, I'm closing this issue. Feel free to re-open if there is a use case that would require a midi-specific API.