{"id":18008,"date":"2025-12-11T20:50:43","date_gmt":"2025-12-12T01:50:43","guid":{"rendered":"https:\/\/scruss.com\/blog\/?p=18008"},"modified":"2025-12-11T20:50:43","modified_gmt":"2025-12-12T01:50:43","slug":"commodore-pet-startup-sound-again","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2025\/12\/11\/commodore-pet-startup-sound-again\/","title":{"rendered":"Commodore PET startup sound (again)"},"content":{"rendered":"\n<p>I&#8217;d posted the <a href=\"https:\/\/scruss.com\/blog\/2018\/02\/14\/commodore-pet-startup-chime\/\">commodore pet startup chime<\/a> before without comment, but last weekend&#8217;s goings-on at <a href=\"https:\/\/woc.tpug.ca\/\">World of Commodore 2025<\/a> have made me revisit it.<\/p>\n\n\n\n<p>Josh Bensadon had brought some very silly little devices he&#8217;d made that played the startup chime when you pressed a button. They contained a small PIC chip programmed with the PWM sequence, a tiny speaker, a battery and the switch. For certain people, it brought so much joy. Retrocomputing folks can be easily amused, it seems.<\/p>\n\n\n\n<p>I don&#8217;t have a PET, but I do have fond memories of the one we borrowed from school during the holidays around 1980. The PET doesn&#8217;t have great sound capabilities, as Dave at <a href=\"http:\/\/blog.tynemouthsoftware.co.uk\/2022\/05\/pet-sounds.html\">Tynemouth Software<\/a> notes. But looking at the captured waveform dumped from VICE&#8217;s audio output, it looks suspiciously close to four repeats of these 7 steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>80 cycles of 4329.0 Hz;<\/li>\n\n\n\n<li>40 cycles of 2164.5 Hz;<\/li>\n\n\n\n<li>20 cycles of 1082.3 Hz;<\/li>\n\n\n\n<li>10 cycles of 541.1 Hz;<\/li>\n\n\n\n<li>20 cycles of 1082.3 Hz;<\/li>\n\n\n\n<li>40 cycles of 2164.5 Hz;<\/li>\n\n\n\n<li>80 cycles of 4329.0 Hz.<\/li>\n<\/ol>\n\n\n\n<p>Conveniently, all of these steps have the same duration (0.01848 s). The odd series of frequencies seem to be coming from a clock divider: 4329.0 Hz is 1,000,000\u00a0\u00f7\u00a0231, 2164.5 Hz is 1,000,000\u00a0\u00f7\u00a0(2\u00a0\u00d7\u00a0231), and so on.<\/p>\n\n\n\n<p>The end result, cobbled together by many calls to sox, sounds like this:<\/p>\n\n\n\n<figure class=\"wp-block-audio\"><audio controls src=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2025\/12\/pet_chime.mp3\"><\/audio><figcaption class=\"wp-element-caption\">Commodore PET Synthesized Startup Chime: mp3<\/figcaption><\/figure>\n\n\n\n<p>It sounds not too bad. It doesn&#8217;t have the fade-in effect caused by the PET&#8217;s power supply coming on, but it has the right character.<\/p>\n\n\n\n<p>Its spectrogram is particularly special:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"591\" src=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2025\/12\/pet_chime-spectrogram.png\" alt=\"brightly coloured spectrogram of audio frequency against time. It's almost like a red carpet with many yellow and purple accents repeating on it, all the way up to 24 kHz\" class=\"wp-image-18013\" srcset=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2025\/12\/pet_chime-spectrogram.png 624w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2025\/12\/pet_chime-spectrogram-320x303.png 320w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2025\/12\/pet_chime-spectrogram-160x152.png 160w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><figcaption class=\"wp-element-caption\">Commodore PET Synthesized Startup Chime: spectrogram. Yes, it&#8217;s all square waves<\/figcaption><\/figure>\n\n\n\n<p>If you want the sound for a phone notification:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2025\/12\/pet_chime.ogg\">pet_chime.ogg<\/a> is for Android;<\/li>\n\n\n\n<li><a href=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2025\/12\/pet_chime-m4r.zip\">pet_chime.m4r<\/a> is for iOS. <br>(I had to zip it because WordPress)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;d posted the commodore pet startup chime before without comment, but last weekend&#8217;s goings-on at World of Commodore 2025 have made me revisit it. Josh Bensadon had brought some very silly little devices he&#8217;d made that played the startup chime when you pressed a button. They contained a small PIC chip programmed with the PWM [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[1104,2079,3117,2556,1290],"class_list":["post-18008","post","type-post","status-publish","format-standard","hentry","category-computers-suck","tag-audio","tag-commodore","tag-pet","tag-retrocomputing","tag-ringtone"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-4Gs","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/18008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/comments?post=18008"}],"version-history":[{"count":2,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/18008\/revisions"}],"predecessor-version":[{"id":18016,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/18008\/revisions\/18016"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=18008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=18008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=18008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}