Code for a Bell Tone
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
-
Annabelle3985
- Posts: 122
- Joined: Sat Oct 24, 2015 1:17 am
- Operating System: Windows 7
Code for a Bell Tone
How would I make the Nyquist Code for a bell tone? Like the kind on an old fashioned phone, such as the one in this attachment? I wonder if it would be the same as generating a fire alarm tone, like this attachment?
- Attachments
-
- Jetway Alarm.WAV
- (100.16 KiB) Downloaded 93 times
-
- Telephone Bell Ring 2.mp3
- (64.9 KiB) Downloaded 76 times
-
kozikowski
- Forum Staff
- Posts: 69384
- Joined: Thu Aug 02, 2007 5:57 pm
- Operating System: macOS 10.13 High Sierra
Re: Code for a Bell Tone
The jetway alarm is a bit like banging on a bowl. It has a dominant tone, generally the resonance of the bowl with additional tones coming from different dimensions since it's not perfectly spherical.
The telephone tone is two different metal bells and one alternating clapper. The intent was to make a dissonance recognizable and difficult to ignore. It worked. I don't think many people have ever slept through a ringing deskset.
As a side note, the 48 volt battery (51v at my house) would leap up to 70 volts AC during ring. It is not prudent to be holding the two wires during a ring.
My analysis has the two tones at 1255 Hz and 3281 Hz (at least that phone). That would make sense because they're odd harmonics and 3281 is the same pitch as the more modern tone called "baby screaming on a jet."
I don't know if there is anything magic about the tone repetition. Probably. They analyzed everything down to the colors. The trick is to get all the additional sloppy sounds in there.
Koz
The telephone tone is two different metal bells and one alternating clapper. The intent was to make a dissonance recognizable and difficult to ignore. It worked. I don't think many people have ever slept through a ringing deskset.
As a side note, the 48 volt battery (51v at my house) would leap up to 70 volts AC during ring. It is not prudent to be holding the two wires during a ring.
My analysis has the two tones at 1255 Hz and 3281 Hz (at least that phone). That would make sense because they're odd harmonics and 3281 is the same pitch as the more modern tone called "baby screaming on a jet."
I don't know if there is anything magic about the tone repetition. Probably. They analyzed everything down to the colors. The trick is to get all the additional sloppy sounds in there.
Koz
- Attachments
-
- Fake2500Bell.wav
- (357.79 KiB) Downloaded 90 times
-
kozikowski
- Forum Staff
- Posts: 69384
- Joined: Thu Aug 02, 2007 5:57 pm
- Operating System: macOS 10.13 High Sierra
Re: Code for a Bell Tone
I don't know about generating that with Nyquist. That's a lot of sloppy resonances and sympathetic vibrations. At least one of those tones is the sound of banging on the rotary dial. The cartoon version of a ringing phone has the phone vibrating off the table until someone answered it. It's not that vigorous, but the whole phone body got into the act.
Koz
Koz
Re: Code for a Bell Tone
A simplified approximation, based on the peaks in the spectrum of the "Telephone Bell Ring 2.mp3" file:
Code: Select all
(abs-env
(let ((env1 (pwlv 1 0.9 1 1 0 2 0))
(env2 (pwev 1 1 1 2 0.01)))
(mult
(sum 0.7
(mult -0.3 env1
(stretch-abs 2.0 (hzosc 19.6 *saw-table*))))
env2
(stretch-abs 2.0
(sim
(mult (db-to-linear -22) (hzosc 1250))
(mult (db-to-linear -15) (hzosc 3290))
(mult (db-to-linear -26) (hzosc 5890))
(mult (db-to-linear -23) (hzosc 9000))
(mult (db-to-linear -20) (hzosc 12500)))))))
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
-
Annabelle3985
- Posts: 122
- Joined: Sat Oct 24, 2015 1:17 am
- Operating System: Windows 7
Re: Code for a Bell Tone
Banging on a bowl? I'm confused! Would the same tone be generated from this attachment?
- Attachments
-
- Jetway Alarm 3.wav
- (1.17 MiB) Downloaded 79 times
-
kozikowski
- Forum Staff
- Posts: 69384
- Joined: Thu Aug 02, 2007 5:57 pm
- Operating System: macOS 10.13 High Sierra
Re: Code for a Bell Tone
I can't listen right this second.
I was just making the point that the jetway bell is almost certainly one single bell and the telephone was intentionally designed to be two. So any code would have to take that into consideration.
Koz
I was just making the point that the jetway bell is almost certainly one single bell and the telephone was intentionally designed to be two. So any code would have to take that into consideration.
Koz
-
kozikowski
- Forum Staff
- Posts: 69384
- Joined: Thu Aug 02, 2007 5:57 pm
- Operating System: macOS 10.13 High Sierra
Re: Code for a Bell Tone
A quick word on how to apply that Nyquist post?
Would this be a good time to find out what the actual job is? Is this a sound production you can copy and paste an actual phone bell clip instead of generating it from scratch?
Because of the inter-dependencies and odd resonances, I don't think this is going to be a simple job—at least not likely to give a realistic answer.
That super-simple sound clip I posted is just whipping back and forth between the two dominant tones. Real bells would have a strike attack as the clapper hits and a decay until the next hit, alternating with the strike and decay and odd harmonics of the other bell. That's why a phone sounds like a phone. If you've ever heard a phone with one of the two bells broken or disabled, it sounds most strange.
But this is me watching.
Koz
Would this be a good time to find out what the actual job is? Is this a sound production you can copy and paste an actual phone bell clip instead of generating it from scratch?
Because of the inter-dependencies and odd resonances, I don't think this is going to be a simple job—at least not likely to give a realistic answer.
That super-simple sound clip I posted is just whipping back and forth between the two dominant tones. Real bells would have a strike attack as the clapper hits and a decay until the next hit, alternating with the strike and decay and odd harmonics of the other bell. That's why a phone sounds like a phone. If you've ever heard a phone with one of the two bells broken or disabled, it sounds most strange.
But this is me watching.
Koz
-
Annabelle3985
- Posts: 122
- Joined: Sat Oct 24, 2015 1:17 am
- Operating System: Windows 7
Re: Code for a Bell Tone
I tried putting all that in the Nyquist Generate Prompt, but there's only room for 10 lines of code. What do I do next?steve wrote:A simplified approximation, based on the peaks in the spectrum of the "Telephone Bell Ring 2.mp3" file:
Code: Select all
(abs-env (let ((env1 (pwlv 1 0.9 1 1 0 2 0)) (env2 (pwev 1 1 1 2 0.01))) (mult (sum 0.7 (mult -0.3 env1 (stretch-abs 2.0 (hzosc 19.6 *saw-table*)))) env2 (stretch-abs 2.0 (sim (mult (db-to-linear -22) (hzosc 1250)) (mult (db-to-linear -15) (hzosc 3290)) (mult (db-to-linear -26) (hzosc 5890)) (mult (db-to-linear -23) (hzosc 9000)) (mult (db-to-linear -20) (hzosc 12500)))))))
Re: Code for a Bell Tone
Which version of Audacity are you using, and what operating system?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
-
kozikowski
- Forum Staff
- Posts: 69384
- Joined: Thu Aug 02, 2007 5:57 pm
- Operating System: macOS 10.13 High Sierra
Re: Code for a Bell Tone
I had a different problem. I'm in Audacity 2.1.3. Nyquist Prompt is not available with a blank window, and the code seems to do nothing if I apply it to one minute of silence.
I kind of follow the code, but what is expected?
Koz
I kind of follow the code, but what is expected?
Koz