play ton sound in b4a

hi at alli want to coding sound in b4a that play one ton with uniqe frequency as same beep code but play & stop ton is accomplished with botton not with time?thanks