Categories
BLOG

scratch and play

Play Note () for () Beats (block)

Play Note () for () Beats
Category Music
Type Stack

The Play Note () for () Beats block is a music block and a stack block. The block will play the specified note with the set instrument for the specified amount of beats.

This block was titled play note () for () secs prior to Scratch 1.2, but was changed with the introduction of the set tempo to () block.

The block will play any numbered note between C (0) and B♭ (130). While the block’s keyboard graphic shows notes up to C (132), notes 131 and 132 cannot actually be selected, and a number outside the range given above cannot be typed into the block. If a number outside the available range is given to the block, through use of a variable or otherwise, the block will play the lowest or highest possible note, either 0 or 130, depending on whether the number is less than 0 or greater than 130, respectively.

Contents

  • 1 Example Uses
  • 2 Notation
    • 2.1 Notes
    • 2.2 Beats
  • 3 See Also

Example Uses

As the block plays a note, it is widely used when a song is played with the music blocks. Some common uses for Play Note () for () Beats include:

  • Easy sound effects (numbers up to 130 still work); very high and low notes make interesting sounds
  • Musical projects where you control instruments
  • Creating a song made by blocks

Notation

The Play Note () for () Beats can sometimes be tricky to get used to since the notes and rhythms are notated with numbers, unlike sheet music. These diagrams may help:

Notes

There are 131 notes on Scratch’s keyboard, numbered from 0 (C-1, about 8.18 Hz) to 130 (B♭9, about 14917.24 Hz). Each note is 1 number larger than the previous, and the ratio of frequency is always 12 √ 2 (approximately 1.06), with A4 being 440 Hz.

Note Note number Frequency
C3 48 131 Hz
C♯3/D♭3 49 139 Hz
D3 50 147 Hz
D♯3/E♭3 51 156 Hz
E3 52 165 Hz
F3 53 175 Hz
F♯3/G♭3 54 185 Hz
G3 55 196 Hz
G♯3/A♭3 56 208 Hz
A3 57 220 Hz
A♯3/B♭3 58 233 Hz
B3 59 247 Hz
C4 (middle C) 60 262 Hz
C♯4/D♭4 61 277 Hz
D4 62 294 Hz
D♯4/E♭4 63 311 Hz
E4 64 330 Hz
F4 65 349 Hz
F♯4/G♭4 66 370 Hz
G4 67 392 Hz
G♯4/A♭4 68 415 Hz
A4 69 440 Hz
A♯4/B♭4 70 466 Hz
B4 71 494 Hz
C5 72 523 Hz

Beats

This table shows the beat number values for the most common rhythms in the most common time signatures, interpreted in the most basic way.

Play Note () for () Beats (block) Play Note () for () Beats Category Music Type Stack The Play Note () for () Beats block is a music block and a stack block. The

ScratchX

With Experimental Extensions, you can create Scratch projects that connect with external hardware (such as electronic devices and robotics) and online resources (including web data and web services).

Spotify

micro:bit

Text to Speech

Arduino

Kreg Hanning, David Mellis

Scratch

With the Scratch programming language, you can create your own interactive stories, games, and animations — and share your creations with others in an online community. Take me to Scratch

ScratchX

On the ScratchX website, you can play with Experimental Extensions to Scratch. Because these extensions are experimental and not endorsed or supported by the Scratch Team, they are available only on the ScratchX site, not the main Scratch site. Try out ScratchX

Who uses ScratchX?

Anyone can access and play with Experimental Extensions on ScratchX. Integrate Twitter feeds into your Scratch project, connect with hardware like Arduino and Raspberry Pi, and much much more.

Developers can use ScratchX to create and test new Experimental Extensions. Learn more about ScratchX in our developer documentation

Gallery of Experimental Extensions

With Experimental Extensions, you can create Scratch projects that connect with external hardware and online resources. Try examples below to see the wide variety of things you can do with Experimental Extensions!

If you are a developer with an extension that you’d like to submit to our gallery, read more about the submission process here.

Arduino

Kreg Hanning, David Mellis

Control Arduino boards

Arduino 101

Control Arduino/Genuino 101 boards

Clarifai

Stefania Druga & Eesh Likhith

Recognize images from your webcam.

EV3+Scratch

Control LEGO EV3 robots wirelessly

EV3+Scratch (Hebrew Version)

Control LEGO EV3 over USB (Hebrew)

Firebase Mesh

Broadcast messages to other projects!

Fischertechnik robots

TXT controller programming (Hebrew)

Intel® RealSense™

Shachar Oz, Yaron Yanai, Yotam Salmon

Hand Gestures, face tracking, voice commands

iRobot® Create® 2

Control iRobot® Create® 2

ISS Tracker

International Space Station tracker

Leapmotion

Hand and finger tracking

littleBits

Control littleBits creations

Make!Sense

Stephen Lewis, Deqing Sun, Steven Holmes

Sensor interface board and sensors

micro:bit

Control micro:bit over bluetooth

PocketLab for Scratch

The PocketLab by Myriad Sensors, Inc

Real time PocketLab sensor data!

Poppy Ergo Jr.

Stefania Druga & Eesh Likhith

Control the Poppy Ergo Jr. robot

rb4s – A Controller For The RedBot

Control and Monitor a RedBot Robot

Roamer

Kevin Rands, Dave Ewins, Dave Catlin

Programming Roamer® with ScratchX

Scratch3D

Stephen Lewis, John Goodwin

Fully 3D Environment

Sound Synthesizer

Synthesize sound effects and music

Spotify Music

Animate and remix millions of songs!

Text to Speech

Use Scratch to read text out loud

Thymio

Control the Thymio robot with Scratch!

Twitter

Connor Hudson, Kreg Hanning

Use Twitter in your projects!

Vernier Go!Motion

Vernier Software & Technology

Use position data in Scratch

Vernier Go!Temp

Vernier Software & Technology

Use temperature data in Scratch

Weather

Sayamindu Dasgupta, Kreg Hanning

Access live weather information

Xi – Multi uC Interconnect

Control for Arduino, RPi and BBB

Privacy Policy

ScratchX is a platform that enables people to test experimental functionality built by developers for the visual programming language Scratch. The purpose of this website is to provide a playground for people to test experimental content. We wrote this privacy policy to explain what information we access and how we use it. If you have any questions regarding this policy, you can contact us.

External Services

GitHub Pages: Developers who link their content to ScratchX are required to host their experimental content on an external service called GitHub pages, which is governed by GitHub’s own Terms of Service and Privacy Policy. The ScratchX site itself is also hosted on GitHub pages, and is governed by their terms and policy (in addition to the ScratchX terms and policy).

Google Analytics: Using an external service called Google Analytics, we collect some data about where you click and which parts of the site you visit. This “click data” helps us figure out ways to improve the website. Information collected and processed by Google Analytics includes the user’s IP address, network location, and geographic location. Google Analytics acquires all of its information directly from the user, by installing a cookie (see below) on your computer, if you have enabled JavaScript. We do not share any information (other than aggregate statistics) that we collect with Google, and Google does not collect any personal identifying information about you. You can read Google Analytics’ privacy policy here.

Cookies: Google Analytics (above) uses cookies in order to gather information about your use of the ScratchX website. A cookie is a small text file that Google Analytics can send to your browser for storage on your computer.

How do we use your information?

  • Via Google Analytics, we gather browsing data so that we know how people use the website.
  • Other than as described above, we will never share personally identifiable information about you with any other person, company, or organization, except as required to comply with our obligations under the law.

Notifications of Changes to the Privacy Policy

We review our Privacy Policy on a periodic basis, and we may modify our policies as appropriate. We may also change or update our Privacy Policy if we add new services or features. If we make any changes to our privacy practices, we will amend this Privacy Policy accordingly and post the amended policy on the ScratchX website. We encourage you to review our Privacy Policy on a regular basis.

What is ScratchX?

ScratchX is a platform that enables people to test experimental functionality built by developers for the visual programming language Scratch.

What’s the difference between Scratch and ScratchX?

Scratch is a programming language and online community where you can create your own interactive stories, games, and animations. ScratchX is a separate experimental platform built to test experimental Scratch features, also known as Experimental Extensions. There is no login or community component to ScratchX, and projects created within ScratchX can only be run on ScratchX.

What are Scratch Extensions?

Scratch extensions make it possible for Scratch to interface with external hardware and information outside of the Scratch website through new blocks. Extensions are written in JavaScript for the ScratchX project editor.

What is the difference between Experimental and Official Extensions?

Experimental Extensions are extensions created for Scratch by the community; they are not managed or endorsed by Scratch in any way. Experimental Extensions can run only in the ScratchX environment. Official Extensions can be found and run from within Scratch 2.0 (both online and offline editors), accessible in the ‘More Blocks’ section of the blocks menu.

Are Experimental Extensions safe?

The Scratch Team has created ScratchX to enable people to create and test Experimental Extensions. However, the Scratch Team does not endorse, support or maintain specific Experimental Extensions. People using Experimental Extensions should be careful not to provide any personal details such as login passwords or personally-identifiable information if prompted by an Experimental Extension.

How do I use ScratchX?

There are three pathways into ScratchX. If you have been given or sent a .sbx file, you can load that into ScratchX via the homepage (look for ‘Open an Extension Project’). If you have been sent a ScratchX URL (starts with ‘scratchx.org/’), you can click your link and the extension will load automatically, or you can enter that URL into the box on the homepage (look for ‘Open an Extension URL’). Lastly, if you don’t have an example extension, you can try out one on the site by visiting the Gallery page and clicking on an example extension there.

I made a cool project on ScratchX. How do I share it?

Click the ‘Save’ button at the top of the page to download your project as an .sbx file on to your local computer. You can then send this file to other people, and they can upload your file onto ScratchX to play with your project.

Where can I find example Experimental Extensions to play around with?

You can find a list of example extensions in the ScratchX Gallery. We plan to add more extensions to this page in the coming months.

What is a ScratchX URL?

Developers who make extensions for ScratchX can choose to create a custom web address or URL that points to their extension and/or demo project. Clicking on a ScratchX extension URL will take you directly to a project with an extension loaded.

What is an .sbx file?

The SBX (.sbx) ScratchX file format is the file format used to encode ScratchX projects when they are downloaded to a user’s computer. SBX files can only be used on the ScratchX site. Other Scratch environments use different formats, including the .sb2 format for Scratch 2.0 (read more here) and .sb format for Scratch 1.4 (read more here).

Why can’t I open .sbx files in Scratch 2.0 or the offline editor?

Experimental Extensions are extensions created for Scratch by the community and are not managed or endorsed by Scratch in any way. Because of this, we do not allow Experimental Extensions to run on the larger Scratch site.

Extensions on ScratchX are experimental and are not reviewed by the Scratch Team or the MIT Media Lab.

Scratch is a project of the Lifelong Kindergarten Group at the MIT Media Lab.

Oh Noes! Scratch project cannot display.
Flash player is disabled, missing, or less than version 10.2.

ScratchX With Experimental Extensions, you can create Scratch projects that connect with external hardware (such as electronic devices and robotics) and online resources (including web data and