Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Examples of use of audiomixer?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Examples of use of audiomixer?

by kevinjwalters on Mon Jul 27, 2020 10:32 am

Are there any examples of audiomixer use beyond the simple one in the docs?

I have a play with it over the weekend with 14 voices and the Kitronik :LEF Piano/keyboard. The polyphony is a tricky as I've not yet worked out how to avoid fat fingering the adjacent keys but it seems to work. The first voice on the audiomixer might be louder than the others so I've stopped using that for now...

kevinjwalters
 
Posts: 665
Joined: Sun Oct 01, 2017 3:15 pm

Re: Examples of use of audiomixer?

by kevinjwalters on Mon Jul 27, 2020 1:49 pm

I just had a rummage through the guides and found a use of audiomixer in Adafruit Learn: Lucio Blaster 2020 - CircuitPython for Advanced Prop Making.

From https://github.com/adafruit/Adafruit_Le ... #L112-L113 I see:

Code: Select all | TOGGLE FULL SIZE
mixer.voice[0].level = 0.3 * VOLUME_MULT
mixer.voice[1].level = 0.7 * VOLUME_MULT


And @johnpark's recollection is this related to level balancing supporting channel 0 being louder than the rest. I put in https://github.com/adafruit/circuitpython/issues/3210 for this.

kevinjwalters
 
Posts: 665
Joined: Sun Oct 01, 2017 3:15 pm

Please be positive and constructive with your questions and comments.