Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Knowledge Base
  3. 2D Blocks
  4. Music Extension: Beats and Play Drum

Music Extension: Beats and Play Drum

Scheduled Pinned Locked Moved 2D Blocks
1 Posts 1 Posters 2.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CreatiCodeI Offline
    CreatiCodeI Offline
    CreatiCode
    wrote on last edited by admin
    #1

     

    Prerequisite

    • Working with Blocks

     

    Beat and Tempo

    A beat is a very short time. We use beats to control how long a sound is played.

    In the CreatiCode playground, 1 beat is equal to 0.25 (1/4) seconds. So, if you play a piece of music for 4 beats, it will last for exactly 1 second.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/1378ec0c-2ab0-49ac-9f0b-b241c90ccdab.PNG" width="350" style="">

    We can use tempo to define the length of one beat. Tempo is the number of beats in each minute. In CreatiCode, the default value of tempo is 240. For example, if you want to play some music at a slower speed, you can set the tempo to a smaller number.

     

    Loudness

    Loudness controls the volume of the sound.

    Loudness has different levels, which are represented by letters “p” and “f”, where “p means quiet” and “f means loud or strong”.

    The following are the loudness levels you can find in CreatiCode;

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/851c5ddd-73b0-47e0-aee1-683b87ff1439.jpg" width="650" style="">
     

     

    The Music Extension

    The Music Extension is a group of blocks that allow you to play and create your own music. With these blocks, you can play drums and notes of different instruments, at different values of beats and tempo.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/107dd58b-201b-475c-91ea-2bc7b745ae02.PNG" width="300" style="">
     

    How to add the Music Extension?

    To add a music extension to a project, click on the “Add Extension” button https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/9c2b7fd2-65a1-4371-9908-a56fc6a31409.PNG" width="130" style=""> below the blocks categories, and then select “music” from the extension library.
    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/f0f60560-2082-4216-834e-92162b473bce.PNG" width="250" style="">

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/e138a84c-04fc-4dea-8d38-181e311b81ad.gif" width="700" style="border-radius: 5px; border: 1px solid #29622d;">
     

    Music Extension Blocks

     

    The “Play drum () for () beats” Block

    This block plays a specified drum sound for some number of beats. There are 18 different types of drums and instruments which you can choose from the drop-down menu.
    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/fef77082-5795-4004-909d-f62d83c97062.PNG" width="300" style="">

    The animation below shows how to play Snare Drum for 1 beat.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/fea933b6-c9b4-4ea4-9b32-cfc4e2db7940.gif" width="400" style="border-radius: 5px; border: 1px solid #29622d;"> [audio/_L-dIbZTngLObTMDExceA4O1.m4a]
     

    The animation below shows how to play Tambourine for 4 beats.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/87f9b8b9-b2b8-4ce5-9da0-448beaa12b93.gif" width="400" style="border-radius: 5px; border: 1px solid #29622d;"> [audio/1803CCyz8aky4wtOaCBpmH8W.m4a]
     

    The “Play drum () for () beats loudness ()” Block

    This block plays a drum sound for the given number of beats at the selected loudness level. You can change the loudness level from the drop-down menu.
    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/42bae3d4-a876-4b69-b892-b531d5c82650.PNG" width="400" style="">

    Snare drum at loudness level mp:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/dd6ab09b-5146-4731-b84a-aae906c69511.gif" width="400" style="border-radius: 5px; border: 1px solid #29622d;"> [audio/2gAIeQ0waKS2Lr6tZp3WqJVe.m4a]
     

    Snare drum at loudness level ppp:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/f8c63a4f-0f85-4f30-80f1-929c116cddf0.gif" width="400" style="border-radius: 5px; border: 1px solid #29622d;"> [audio/T8A7qHxovJIXbw6JcgEpMh7J.m4a]
     

    Snare drum at loudness level fff:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/2a5ee7c1-6805-430e-9f8b-e8b19af006fa.gif" width="400" style="border-radius: 5px; border: 1px solid #29622d;"> [audio/O3OXpSMJw8qkMDx9FL4z6liq.m4a]
     

    The “Set tempo to ()” Block

    This block sets the tempo to a new value.

    Note: The value of tempo affects all the blocks in the music extension. If the value of tempo is greater than or equal to 240, the “Play drum”, “Play notes” and “Rest for () beats” blocks will play faster. If the value of tempo is less than 240, those blocks will play sounds at a slower speed.

    Tempo of 240:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/626498e2-05be-46f4-badb-b15106da789f.gif" width="400" style="border-radius: 5px; border: 1px solid #29622d;"> [audio/W3kHE4eRSwEPiAvWfN1CHjTx.m4a]
     

    Tempo of 350:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/567b941c-662c-444d-a893-94b089f0eab9.gif" width="400" style="border-radius: 5px; border: 1px solid #29622d;"> [audio/f8dVgd61GHYSSSzGfN5LNYmq.m4a]
     

    Tempo of 50:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/2be9d952-b26c-4709-8483-66418a415c9f.gif" width="400" style="border-radius: 5px; border: 1px solid #29622d;"> [audio/KnsJsN-nXIrTHZ60gEutDxBt.m4a]
     
     

    “Change tempo by ()” Block

    This block changes (increases or decreases) the value of tempo according to the given number.

    Note: To increase the value of tempo, just type a number in the input box. To decrease the value of tempo, type a number with a minus sign before it.

    Increase the value of tempo by 35.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/cc3eaf3c-04fe-4ee1-8c08-c9acf31cf6a5.gif" width="400" style="border-radius: 5px; border: 1px solid #29622d;"> [audio/SwSAv_QWIM0_oEzFXJfhgbAj.m4a]
     

    Decrease the value of tempo by -35.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/f58398ec-a7fb-402e-9ed2-29a377041bd1.gif" width="400" style="border-radius: 5px; border: 1px solid #29622d;"> [audio/ZcX_MP2MZtg4yYDppaE4aLaR.m4a]
     

    The “Tempo” Block

    This is a reporter block that reports the current value of tempo. You can also use this block to display the value of tempo on stage.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/2e7c715e-0b27-4c9d-8654-7179c6adb0be.gif" width="800" style="border-radius: 5px; border: 1px solid #29622d;">
     

    “Rest for () beats” Block

    This block pauses the sound of the blocks attached below it by the given number of beats.

    Note: The value of beat is affected by the value of tempo. If the tempo is greater than or equal to 240, the “Rest” block pauses for a very short time. If the tempo is less than 240, then the “Rest” block will have a longer pause.

    Rest for 1 beat at tempo=240

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/1d938b5d-2310-45ab-8aae-49c3d084dba0.gif" width="400" style="border-radius: 5px; border: 1px solid #29622d;"> [audio/-zRfqwBFRnszqBs8TXNQsGHB.m4a]
     

    Rest for 1 beat at tempo=80

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/e1d92710-c09e-4122-aef4-058e3323cb80.gif" width="400" style="border-radius: 5px; border: 1px solid #29622d;"> [audio/S5Rvuowbvyyitm-kMMwniCGK.m4a]
     

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode