Hello Guest it is October 15, 2024, 10:51:31 AM

Author Topic: Mach4 Quicky #1 Adding Sound  (Read 5195 times)

0 Members and 1 Guest are viewing this topic.

Offline DazTheGas

*
  •  778 778
  • DazTheGas
Mach4 Quicky #1 Adding Sound
« on: September 28, 2015, 12:18:24 PM »
A little snippet to add sound in mach4

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
New For 2022 - Instagram: dazthegas
Re: Mach4 Quicky #1 Adding Sound
« Reply #1 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.
Hit the e-stop! Hit the e-stop!