Description Usage Arguments Value Examples
Converts text to Morse code sounds
1 2 3 4 5 6 7 | text_to_morse_sounds(
text,
pulse_duration = 0.25,
play = TRUE,
sampling_freq = 8000,
carrier_freq = 440
)
|
text |
The text to convert. Ignores anything except the letters a-z (both upper and lower case), numbers, and spaces. |
pulse_duration |
How long the dot lasts, in seconds. Default is 0.25 seconds. Bars last for three times as long. |
play |
Whether to play the resulting sound immediately. Default is
|
sampling_freq |
The sampling frequency. Default is 8000. |
carrier_freq |
The carrier tone. Deafult is 440 Hz (flat A). |
A soundwave matrix that can be played via audio::play.
1 2 3 4 5 | ## Not run:
sound <- text_to_morse_sounds("SOS SOS SOS")
audio::play(sound, rate = 8000)
audio::play(sound, rate = 24000)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.