How to make morse code sounds ?

Hi,

I’m coding a program to practice Morse code but I don’t know how to make the sounds. I’ve been thinking about finding sounds for the short and long ones but the problem is that I’d like to be able to make their lengths scalable so that I can have several playback speeds available. Any ideas ?

@Lalfada Look at this discussion. Part way down I have code that does Morse code. See if that is close to what you want. There’s several examples there.

https://codea.io/talk/discussion/6718/best-method-to-track-length-and-time-of-touches

Yeah it work ! Many thanks. I hadn’t thought about using music instead of sound, but now that I see it, it’s pretty obvious.