Skip to content

NetLinx module for Shure MXA range of microphones

License

Notifications You must be signed in to change notification settings

Norgate-AV/NAVDatabase.Amx.ShureMXA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAVDatabase.Amx.ShureMXA


CI Conventional Commits Commitizen friendly MIT license


AMX NetLinx module for Shure MXA range of microphones.

Contents 📖

Installation ⚡

This module can be installed using Scoop.

scoop bucket add norgateav-amx https://github.com/Norgate-AV/scoop-norgateav-amx
scoop install navdatabase-amx-shure-mxa

Usage 🚀

DEFINE_DEVICE

// The real device
dvShureMXA                      = 0:4:0

// Virtual Devices
vdvShureMXA                     = 33201:1:0

// User Interface
dvTP                            = 10001:1:0


DEFINE_CONSTANT

constant long TL_FEEDBACK = 1


DEFINE_VARIABLE

volatile long feedback[] = { 200 }      // Every 200ms


DEFINE_START {
    // Start the feedback loop
    timeline_create(TL_FEEDBACK, feedback, length_array(feedback), TIMELINE_ABSOLUTE, TIMELINE_REPEAT)
}


define_module 'mShureMXA' ShureMXAComm(vdvShureMXA, dvShureMXA)


DEFINE_EVENT

data_event[vdvShureMXA] {
    online: {
        send_command data.device, "'PROPERTY-IP_ADDRESS,', '192.168.1.31'"
    }
}


// Button to toggle the mute state
button_event[dvTP, 1] {
    push: {
        if (![vdvShureMXA, VOL_MUTE_FB]) {
            send_command vdvShureMXA, "'MUTE-ON'"
        }
        else {
            send_command vdvShureMXA, "'MUTE-OFF'"
        }
    }
}


// Update the mute state on the touch panel
timeline_event[TL_FEEDBACK] {
    [dvTP, 1] = [vdvShureMXA, VOL_MUTE_FB]
}

Team ⚽

This project is maintained by the following person(s) and a bunch of awesome contributors.


Damien Butt

Contributors ✨

All Contributors

Thanks go to these awesome people (emoji key):

This project follows the all-contributors specification. Contributions of any kind are welcome!

LICENSE ⚖️

MIT