# Mt32-pi tutorial?

**URL:** <https://community.blokas.io/t/mt32-pi-tutorial/3072>\
**Category:** Pisound\
**Created:** [June 24, 2021, 4:20am UTC](https://community.blokas.io/t/mt32-pi-tutorial/3072 "2021-06-24T04:20:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![da66en](https://community.blokas.io/user_avatar/community.blokas.io/da66en/32/2073_2.png) [@da66en](https://community.blokas.io/u/da66en)\
**Post date:** [June 24, 2021, 4:20am UTC](https://community.blokas.io/t/mt32-pi-tutorial/3072/1 "2021-06-24T04:20:06Z")

</div>

Is there a tutorial for using mt32-pi with Pisound?

For instance, what settings do I need to use in mt32-pi’s config.txt?

Thanks,  
-d

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [June 25, 2021, 7:25am UTC](https://community.blokas.io/t/mt32-pi-tutorial/3072/2 "2021-06-25T07:25:27Z")

</div>

Hi, check out this page: [https://github.com/dwhinham/mt32-pi/wiki/I²S-DACs](https://github.com/dwhinham/mt32-pi/wiki/I%C2%B2S-DACs)

It says to use with Pisound, you must modify the sample rate to 48000, 96000 and 192000. No other configuration is mentioned. Let us know how it goes. 🙂

---

<div class="post-metadata">

**Author:** ![da66en](https://community.blokas.io/user_avatar/community.blokas.io/da66en/32/2073_2.png) [@da66en](https://community.blokas.io/u/da66en)\
**Post date:** [June 25, 2021, 11:45pm UTC](https://community.blokas.io/t/mt32-pi-tutorial/3072/3 "2021-06-25T23:45:14Z")

</div>

Thanks for the link, I looked all over that Wiki and I didn’t see that.

48000 and 96000 worked for me, 192000 did not (sounded like mt32emu was OK, but Fluidsynth sounded like it was playing samples at twice the speed).

I was using mt32-pi 0.9.1

In [system], setting  
output\_device = i2s  
Would then properly map mt32emu and Fluidsnyth to use the DAC on the Pisound.

I left the other values in [system] to their defaults, not sure if they have any relevance to Pisound:  
chunk\_size = 256  
i2c\_dac\_address = 4c  
i2c\_dac\_init = none

In [system], setting  
output\_device = pwm  
Then it uses the headphone jack of the RPi but it sounds awful (lots of pops and scratches).

In the [control] section you can also set  
scheme = simple\_buttons  
And the Pisound button will swap between Fluidsynth and mt32emu. That’s because Pisound’s button maps to m32-pi button #1.

It goes without saying (but leaving it here in case someone else has questions about using Pisound with mt32-pi) the volume and gain knob on the Pisound only work when output\_device = i2s, because those pots are wired to the DAC of the Pisound. The knobs have no effect if using PWM for output device.

In the [system] I did set  
usb = off  
Not sure if it matters. Pisound doesn’t use USB, and I had no need for it.

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [June 28, 2021, 7:19am UTC](https://community.blokas.io/t/mt32-pi-tutorial/3072/4 "2021-06-28T07:19:10Z")

</div>

> [@da66en](#):
>
> 48000 and 96000 worked for me, 192000 did not (sounded like mt32emu was OK, but Fluidsynth sounded like it was playing samples at twice the speed).

They might be missing setting the OSR pins as required for Pisound to control the sampling rate, but for most purposes 48kHz or 96kHz are good enough. 🙂

The I²C settings are irrelevant for Pisound.

chunk\_size is controlling the audio buffer size - the lower the value, the lower the latency, but also lower stability. 🙂
