3-Dimensional Sound: различия между версиями

Материал из Поле цифровой дидактики
м (1 версия импортирована)
Строка 1: Строка 1:
{{Scripting Tutorials
|Description=Приготовление 3-х мерного звучания
}}
'''3-dimensional sound''' (3D sound) is a type of manipulation of audio output to give the illusion that sound is coming from different directions. It has become possible in [[Scratch 3.0]] due to new [[Sound Blocks|Sound blocks]], mainly [[Set () Effect to () (Sound block)|<sb>set [ v] effect to ()::sound</sb>]] and [[Change () Effect by () (Sound block)|<sb>change [ v] effect by ()::sound</sb>]].
'''3-dimensional sound''' (3D sound) is a type of manipulation of audio output to give the illusion that sound is coming from different directions. It has become possible in [[Scratch 3.0]] due to new [[Sound Blocks|Sound blocks]], mainly [[Set () Effect to () (Sound block)|<sb>set [ v] effect to ()::sound</sb>]] and [[Change () Effect by () (Sound block)|<sb>change [ v] effect by ()::sound</sb>]].



Версия 12:22, 29 августа 2022

Описание Приготовление 3-х мерного звучания
Область знаний
Область использования (ISTE)
Возрастная категория


Поясняющее видео
Близкие рецепту понятия
Среды и средства для приготовления рецепта:

3-dimensional sound (3D sound) is a type of manipulation of audio output to give the illusion that sound is coming from different directions. It has become possible in Scratch 3.0 due to new Sound blocks, mainly seteffectto and changeeffectby.

This technique is only effective on devices using stereo speakers, headphones, or earphones. It will not have the desired effect on monophone speakers.

Scripts

To make 3-dimensional sound, create the following scripts in the sprite that will play the sound, with "listener" representing the sprite in the position that the person hearing the sound would be in:

whenclickedrepeatuntilplayingsound=0playsoundsounduntildoneendstopallsoundswhenclickedrepeatuntilplayingsound=0setvolumeto200-distancetolistenersetpanleft/righteffecttoxposition-xpositionoflistenerend

If the sound has to repeat infinitely instead of the script repeating until something happens, the repeat until blocks should be changed to forever blocks:

whenclickedforeverplaysoundsounduntildoneendwhenclickedforeversetvolumeto200-distancetolistenersetpanleft/righteffecttoxposition-xpositionoflistenerend

See Also