I want to make this sound using an 8 Ohm speaker and a single transistor. We are also exploring hardware solutions... with an actual bell and hammer operated by a solenoid
I know that there are cheap mp3 players I know that I can play .WAV files from an SD card directly but this all involve SD cards, more components, more cost and more work.
Due to to simple pinging sound I thought to use the tone library. I have not used it before.
Can somebody point me in a direction towards an array which contains the right values to reproduce this sound. Or how can I could make such an array myself from recording a YT video?
The pinging sound you hear in the clip is by no means simple. Due to their great inharmonicity and erratic sound waveform, bells in general are particularly difficult to synthesize right. At any rate, you'll need to control parameters such as attack, decay, sustain and release. The tone library will certainly fail at such a task.
Well it does, but I understand your comment. The bell is just a small part of a larger project which I may have neglect to mention as I did not see any relevance. The bell will mostlikely be operated by an attiny or an arduino.
The end goal is making a railway telegraph blocksignaling module.
The thing will get a 3 position toggle switch as well as a separate button or lever. With the toggle switch you can set any of the 3 LEDs on the other side and with the button/lever you get to ping the bell on the other side.
That aliexpress module seems like a good solution, worth checking out.
The pinging sound you hear in the clip is by no means simple. Due to their great inharmonicity and erratic sound waveform, bells in general are particularly difficult to synthesize right. At any rate, you'll need to control parameters such as attack, decay, sustain and release. The tone library will certainly fail at such a task.
I love to see this kinds of different expertise on a forum like this. Thank you, most informative.
An arduino-less solution is not yet from the table. But it would make life easier
I think that to realise a realistic bell sound electronically, you need to read up on audio DSP. and synthesis.
The reference to ADSR envelopes is completely relevant.
I remember (a long time ago) the only way we could ‘fake’ a bell sound live was using the ADSR and waveform generators in a professional synthesiser.
The reason bells ‘work so well’, is they ‘cut through’ ambient sound by having a significantly different waveform profile.
It’s a bit like synthesising the colour ‘gold’ compared with a ‘flat’ colour… Gold is a texture that reflects the immediate environment with respect to the viewer and prevailing light conditions…. Same with a bell in the soundscape.
TL;DR The easiest shortcut is an MP3 audio clip, otherwise you. need to generate a relatively complex audio waveform.