Please subscribe, and check out my channel for more AV engineering and programming related content! #arctics8bit
If you'd like, hit pause!, and copy this logic. This video creates a function. The function takes in a number called "input". You then set a scale for the input of that number, and a range that you want that number scaled to. Sometimes, when programming AV....... systems like QSYS, will need to talk to a different audio DSP. Qsys and Extron have different audio fader scales.... so a function like this can scale the input number to the correct output number. Another good example is with Crestron. Crestron's touch panels typically have a scale from 1 to 65,535..... where as an audio DSP might be in the range of -100 to 20 db. Either way.... this function, with minimal changes should work on a lot of platforms. One last use, is when you don't want the user to have full range of an audio fader, simply reducing the output range will restrict the user from using higher audio levels with a fader.
#qsc #lua #programming #programmer #audiovisual