hug/gpio/dtmf_shift.axo
hug/gpio/dtmf_code.axo
hug/dtmf/dtmf_code.axs
the objects help to turn most landline telephones into MIDI controllers with 12-16 buttons. An MT8870 IC is needed to decode the dial signal to a four bit signal entering 4 gpio pins and an additional trigger while the dial button is pressed.
the telephone needs to work on DTMF (Dual Tone - Multi Frequency) signaling which most telephones nowadays do. One can clearly hear the familiar dial tone, which is actually two frequencies playing according to this matrix:
![](../../../uploads/default/original/2X/e/e4b639b09c1e2ac8a4694e09cba88f85b713a2c8.jpg)
The circuit for the DTMF decoder chip MT 8870. The ports 11-15 need to be connected to gpio pins.
![](../../../uploads/default/original/2X/f/fd7eed6bf03892f9ba6d5f168726adf0a3e87cca.html)
the objects work independently. the "code" object has an extra output which triggers when a certain combination of buttons was pressed.
This is the subpatch hug/dtmf/dtmf_core.axs which serves as an example:
![](../../../uploads/default/original/2X/6/6f8dcfee03529f520b3e87db4809a621f347a458.png)