Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate the ding sound of a tiny bell
ResourceFunction["Ding"][] generates an audible ding at maximum volume 1. | |
ResourceFunction["Ding"][vol] generates an audible ding at a set volume vol. |
Generate a ding at the default volume of 1:
| In[1]:= |
Generate a ding at moderate volume with a rational number 3/4:
| In[2]:= |
Generate a ding at half volume:
| In[3]:= |
Values greater than 1 are clipped to 1 but a warning message is issued:
| In[4]:= |
Contrast Ding with Beep using a Do loop to repeat sounds:
| In[5]:= |
Generate a ding to alert on True condition:
| In[6]:= |
| Out[6]= |
Generate a Beep to alert on False condition:
| In[7]:= |
| Out[7]= |
Generate a quick triple ding to alert on Indeterminate condition:
| In[8]:= | ![]() |
| Out[8]= |
Create an audible alert with Ding after a long calculation completes:
| In[9]:= | ![]() |
| Out[9]= |
Define a function for a TimeConstrained expression alerting Ding with returned results or Beep on $Aborted:
| In[10]:= | ![]() |
To ensure we see the two cases we need to evaluate with excessive constraints. First we do excessively short:
| In[11]:= |
| Out[11]= |
Now we try an excessively long constraint:
| In[12]:= |
| Out[12]= |
Only one ding can be heard because all notes will be produced on top of one another:
| In[13]:= |
Add a short Pause after every ding:
| In[14]:= |
Emulate the classic ringing of a rotary phone:
| In[15]:= |
This work is licensed under a Creative Commons Attribution 4.0 International License