ScratchData LogoScratchData
Back to TheGamer6's profile

Doppler Effect Simulation

THTheGamer6•Created August 9, 2022
Doppler Effect Simulation
42
33
666 views
View on Scratch

Instructions

Adjust the source's speed and height, then listen to the resulting sound frequency at the observer's location. Green circle: Source (for example, a car) Blue circle: Observer (the person or animal listening)

Description

The frequency (in hertz, or Hz) is calculated based on the number of waves crossing the observer and the time between each wave appearing. NOTE: The sound frequency jumps up and down because the simulation is not perfect. The more sound waves, the smoother the change in sound. Also, you might hear a little "skip" in the sound. It happens at the end of the audio file, and I tried to remove it but couldn't. --- CHANGELOG --- • 8/25/2022: Fixed a glitch where pressing the "Change Sound Waves" button as soon as a new wave appears causes that wave to look different from all the others. • 10/22/2023: Updated the pitch formula so that the sound more closely matches the frequency (I think I've figured it out now!). • 12/7/2023: Made each wave's outline smaller. That way, the waves don't become too thick as they spread out, making the simulation more realistic. Inspired by Math Is Fun's Doppler effect simulation: https://www.mathsisfun.com/physics/doppler-effect.html 440 Hz sound from https://www.youtube.com/watch?v=teb64y-D2sA #doppler #effect #simulation #sound #waves #physics #educational #science

Project Details

Project ID720656262
CreatedAugust 9, 2022
Last ModifiedApril 22, 2025
SharedAugust 20, 2022
Visibilityvisible
CommentsAllowed