Machsupport Forum

Mach Discussion => Mach4 General Discussion => Mach4 Videos => Topic started by: DazTheGas on September 28, 2015, 12:18:24 PM

Title: Mach4 Quicky #1 Adding Sound
Post by: DazTheGas on September 28, 2015, 12:18:24 PM
A little snippet to add sound in mach4

https://youtu.be/0EdsVgbuC1k (https://youtu.be/0EdsVgbuC1k)

Handy to add into your functions for warnings.....

local logoff = wx.wxSound('C:\\Mach4Hobby\\Sounds\\logoff.wav',0)

logoff:Play()

DazTheGas
Title: Re: Mach4 Quicky #1 Adding Sound
Post by: CCWood on October 28, 2015, 09:32:49 PM
Hey DazTheGas... thanks for the info on using wav files in Mach4... followed your example and have added sound to several buttons.

I have a problem I hope you can point me in the right direction on... One of my biggest uses of sound in Mach 3 was when I zero'd my axi (is that a word?) using my shuttle pro. When I'm at the workpiece positioning the spindle using the Shuttle I can't see the Mach screen, when I zero the axis I would hear the ding in Mach 3 and know it had zero'd, Mach 4 does not do this so I have to return to the display each time to insure that it took the command from the shuttle. I've set up the zero buttons on my Mach screen to play a wav when they are used to zero the axis but I haven't been able to figure out how to get it to play a wav when the shuttle zeros it. Any suggestions would be appreciated.