Build Your Kit page and full Micromelon website

Complete website build including:
- Build Your Kit store page with cart system, sectioned layout
  (Hardware, Software, Attachments, Spare Parts), inline quote
  request form, and sticky sidebar summary
- 16+ pages: Education, Platform, Resources, News, About Us,
  Download, Contact, Rover, Code Editor, Robot Simulator, etc.
- 89+ MDX resource articles and 18 news posts
- Store product images scraped from micromelon.com.au
- Quote request API route with Airtable integration
- Dynamic back links and cover photos on resource pages
- Redesigned downloads page
- Fixed corrupted MDX code blocks
This commit is contained in:
Tim Hadwen
2026-02-28 19:00:42 +10:00
parent 5233233662
commit 707c49dd3f
320 changed files with 22333 additions and 107 deletions

View File

@@ -0,0 +1,122 @@
---
title: "Activity: Making Music (Beginner)"
date: "2024-12-31"
categories: ["Activities", "All", "Simulator Activities"]
tags: ["Buzzer", "Beginner", "Variables"]
excerpt: "Use the Rovers speaker to make it play songs. Learn to combine the world of music and robotics by going through sheet music and coding the Rover to play each note. Activity Demonstration Basics of Music:When it comes to reading sheet mu"
featuredImage: "/images/resources/activity-making-music-beginner.jpg"
---
Use the Rovers speaker to make it play songs. Learn to combine the world of music and robotics by going through sheet music and coding the Rover to play each note.
![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/1b373aca-f5dd-4d23-8d4b-8c9fc5e61f74/IMG_1856.jpg)
Activity Demonstration
### Basics of Music:
When it comes to reading sheet music for this task, we will be using two pieces of information from each note. The tone of the note and how long the note is played.
As the image to the right shows, a note can sit on a line or a space. You may find many notes of the same letter (tone) but at a higher pitch (different octave)
![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/ba06dbea-f91c-4616-9c89-3cbedb2d06cb/Notes.jpg)
Songs can be divided into a rhythm, the constant beat the music follows. Shown in the diagram to the right, we have the note durations. One whole note (semibreve) lasts for 4 beats. Next, minums last for 2, and crotchets last for 1. Well only use semibreves, minums, and crotchets for basic songs.
![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/dc4935ce-d22c-47ab-ad15-03107fac7252/rhythm.jpg)
Below is an example of Mary Had a Little Lamb in sheet music. The letters have already been written below the notes. This is the example we will use for the guide, but feel free to find your own songs or even write your own music!
![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/a581c6da-2f3e-4473-93d9-2e684388d54d/Mary+had+a+little+lamb.png)
## Code:
**Constant - **A constant is a variable that never changes when the code is run. In python, we write this in all capitals with underscores between words.
#### 1) Setting the Constants:
![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/297498c0-f5e0-4c19-bf26-62e1fff9db75/Constants.PNG)
Now we need to start setting up the framework in our code to make music. Well begin by setting constants for each of the note lengths. A constant is a value used repeatedly throughout the code that never changes, which is perfect for what we need here. As all the notes are multiples of the Crotchet, we can use the diagram above and some simple multiplication to set all the constants. We also need to decide on an octave to use, so make a comment to remember this. For this example, well use octave 4.
#### 2) Making the Music:
![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/5cd901e3-6999-4462-a423-f2b6122f4e10/note.PNG)
This part can take a little while, but we will use the Play Note and the Delay blocks to play each note individually. The Play Note block starts playing the note on the Rover, and the Delay block controls how long the note is played. We use the constants we made before to control how long we delay. Do this for each note in the song with the correct note lengths.
#### Complete Code:
We went through and completed part of the example song. Try to finish the rest of the song on your own:
![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/234908a0-d1a5-497b-be40-81b752fe8f74/song.PNG)
### Up Next:
Ready to challenge yourself with faster ways to code music? Head on over to the intermediate or advanced Making Music guides!
[
Activity: Making Music (Intermediate)
](/resources/activity-making-music-intermediate)
[
Activity: Making Music (Advanced)
](/resources/activity-making-music-advanced)
### Related Posts
Resources
[
![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/1639455538805-9NI7CPKR7IYG6D4RBKAN/high+quality+sumo.png)
](/resources/creating-a-sumo-unit)
[All](/resources?category=All)
[Creating A Sumo Unit For Your Digital Technologies Class](/resources/creating-a-sumo-unit)
[All](/resources?category=All)
How to run a sumo unit in your digital technologies classroom.
[Read More →](/resources/creating-a-sumo-unit)
[All](/resources?category=All)
[
![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/1637464845856-BBPD7GTIIHHOSJCFORWF/the+ultrasonic+sensor.png)
](/resources/ultrasonic-sensor)
[All](/resources?category=All), [Guides](/resources?category=Guides)
[The Ultrasonic Sensor](/resources/ultrasonic-sensor)
[All](/resources?category=All), [Guides](/resources?category=Guides)
Learn all about the ultrasonic sensor!
[Read More →](/resources/ultrasonic-sensor)
[All](/resources?category=All), [Guides](/resources?category=Guides)
[
![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/1625616494179-LZHZP5MUA0E0MQKEB7HC/cropped+image+4.png)
](/resources/year-7-digital-tech-at-st-peters)
[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)
[Case Study: Year 7 Digital Tech at St Peters Lutheran College](/resources/year-7-digital-tech-at-st-peters)
[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)
See how Meg Foley at St Peters conducted a challenge for their Year 7s using Micromelon.
[Read More →](/resources/year-7-digital-tech-at-st-peters)
[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)