Anytime Help Center

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Support
  • Guest
  • Log In
English (US)
US English (US)
DE German
CN Chinese
MX Spanish (Mexico)
Chinese (Simplified)
  • AKG
    Microphones Wireless Integrated Systems Automatic Mixers Headphones Discontinued Products (AKG) General AKG Inquiries Certifications (AKG)
  • AMX
    Networked A/V Distribution (AVoIP) Traditional A/V Distribution Video Signal Processing Architectural Connectivity User Interfaces Control Processing Power (AMX) Programming (AMX) Software (AMX) Discontinued Products (AMX) General AMX Inquiries Certifications (AMX)
  • BSS
    Soundweb™ Omni Soundweb™ London Soundweb™ Contrio™ Software (BSS) Discontinued Products (BSS) General BSS Inquiries Certifications (BSS)
  • Crown
    CDi DriveCore Series CDi Series Commercial Series ComTech Series DCi DriveCore Series I-Tech HD Series XLC series XLi Series XLS DriveCore 2 Series XTi 2 Series Discontinued Products (Crown) Software (Crown) General Crown Inquiries Certifications (Crown)
  • dbx
    CX Series 500 Series DriveRack Personal Monitor Control ZonePRO Zone Controllers FeedBack Suppression Microphone Preamps Dynamics Processors Crossovers Equalizers Software (dbx) Discontinued Products (dbx) General dbx Inquiries Certifications (dbx)
  • Flux::
    Immersive Processing Analysis Subscriptions
  • JBL
    Cinema Sound Installed Live Portable Tour Sound Recording & Broadcast Software (JBL) Discontinued Products (JBL) Video Manual Series (JBL) General JBL Inquiries Certifications (JBL)
  • Lexicon
    Plugins Effects Processors Cinema Discontinued Products (Lexicon) Video Manual Series (Lexicon) General Lexicon Inquiries Certifications (Lexicon)
  • Martin
    Atomic ELP ERA Exterior MAC P3 VC VDO Tools Discontinued Products (Martin) General Martin Inquiries Certifications (Martin)
  • Soundcraft
    Digital Analog Connected Analog Only Discontinued Products (Soundcraft) Video Manual Series (Soundcraft) General Soundcraft Inquiries Certifications (Soundcraft)
  • General HARMAN Inquiries
    Dante
+ More
  • Home
  • AMX
  • Control Processing
  • Central Controllers
  • MU-Series Controller

Using __dict__ in MUSE Python Code

Written by Will Fraser

Updated at January 12th, 2026

Table of Contents

Question:   Answer:

Question:  

How can I use the __dict__ attribute in MUSE Python Code?


Answer:

The __dict__ attribute (that's two underscores before and after the dict) allows you to print out all of the variables and values associated with an event in Python code.   Whether the event is a watch or a listen, the __dict__ attribute will output all the information contained within that event.   The information is displayed as a Python dictionary of key/value pairs for any given event.

The easiest way to use the __dict__ attribute is to utilize a print statement in the event callback function.   For example:

When using this with a __dict__ on a button event you receive a print out like this:

The __dict__ attribute contains entries for many variables including:

  • source - The object that triggered the event
  • id - The ID number of the originating event
  • path - The path the event originated from 
  • device - The device the event originated from
  • value - The value of the parameter that triggered the event
  • newValue - The new value of that parameter
  • oldValue - The previous value of the parameter
  • normalized - The normalized value of the parameter

The reason for the two separate events is because an event is triggered on both the push and release of button events.   That's why you see both True and False values in the image.

 

Note: Many events share keys such as source, id, and path, but events change from device to device or parameter to parameter.   If you are ever wondering what is actually being returned to the MUSE controller for any given event, utilize the __dict__ attribute printout.

Related Videos

inquiry guide

Was this article helpful?

Yes
No
Give feedback about this article

Table of Contents

Question:   Answer:

Related Articles

  • Controlling MUSE Serial Ports with Python Code

Related Articles

  • Controlling MUSE Serial Ports with Python Code
Copyright © HARMAN Professional. All rights reserved. Privacy Policy | Terms of Use
Expand