Code for a Bell Tone

Using Nyquist scripts in Audacity.
Post and download new plug-ins.

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

Code for a Bell Tone

Permanent link to this post Posted by Annabelle3985 » Sun Apr 23, 2017 1:26 am

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 30 times
Telephone Bell Ring 2.mp3
(64.9 KiB) Downloaded 22 times
Annabelle3985
 
Posts: 53
Joined: Sat Oct 24, 2015 1:17 am
Operating System: Windows 7

Re: Code for a Bell Tone

Permanent link to this post Posted by kozikowski » Sun Apr 23, 2017 4:17 am

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
Attachments
Fake2500Bell.wav
(357.79 KiB) Downloaded 25 times
kozikowski
Forum Staff
 
Posts: 38230
Joined: Thu Aug 02, 2007 5:57 pm
Location: Los Angeles
Operating System: OS X 10.9 Mavericks

Re: Code for a Bell Tone

Permanent link to this post Posted by kozikowski » Sun Apr 23, 2017 4:24 am

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
kozikowski
Forum Staff
 
Posts: 38230
Joined: Thu Aug 02, 2007 5:57 pm
Location: Los Angeles
Operating System: OS X 10.9 Mavericks

Re: Code for a Bell Tone

Permanent link to this post Posted by steve » Sun Apr 23, 2017 10:15 am

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)
steve
Site Admin
 
Posts: 44998
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Code for a Bell Tone

Permanent link to this post Posted by Annabelle3985 » Sun Apr 23, 2017 6:27 pm

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 25 times
Annabelle3985
 
Posts: 53
Joined: Sat Oct 24, 2015 1:17 am
Operating System: Windows 7

Re: Code for a Bell Tone

Permanent link to this post Posted by kozikowski » Mon Apr 24, 2017 4:16 pm

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
kozikowski
Forum Staff
 
Posts: 38230
Joined: Thu Aug 02, 2007 5:57 pm
Location: Los Angeles
Operating System: OS X 10.9 Mavericks

Re: Code for a Bell Tone

Permanent link to this post Posted by kozikowski » Mon Apr 24, 2017 6:04 pm

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
kozikowski
Forum Staff
 
Posts: 38230
Joined: Thu Aug 02, 2007 5:57 pm
Location: Los Angeles
Operating System: OS X 10.9 Mavericks

Re: Code for a Bell Tone

Permanent link to this post Posted by Annabelle3985 » Mon Apr 24, 2017 6:47 pm

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)))))))


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?
Annabelle3985
 
Posts: 53
Joined: Sat Oct 24, 2015 1:17 am
Operating System: Windows 7

Re: Code for a Bell Tone

Permanent link to this post Posted by steve » Mon Apr 24, 2017 6:53 pm

Which version of Audacity are you using, and what operating system?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 44998
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Code for a Bell Tone

Permanent link to this post Posted by kozikowski » Mon Apr 24, 2017 7:26 pm

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
kozikowski
Forum Staff
 
Posts: 38230
Joined: Thu Aug 02, 2007 5:57 pm
Location: Los Angeles
Operating System: OS X 10.9 Mavericks

Next

Return to Nyquist



Who is online

Users browsing this forum: No registered users and 4 guests