# I want to make any sharps or flats in music

**URL:** https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776
**Category:** Arcade
**Tags:** music, game
**Created:** [August 10, 2023, 4:27pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776 "2023-08-10T16:27:03Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![YuminCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yumincoding/32/11482_2.png) [@YuminCoding](https://forum.makecode.com/u/YuminCoding)
#### Post date: [August 10, 2023, 4:27pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/1 "2023-08-10T16:27:03Z")

</div>

Hi there. i am YuminCoding.  
I had a question about putting music in arcade makecode. While I was doing my skill map, I came across a note with a # in one of the songs. So far, I haven’t been able to put # or flat, but I’m wondering how to do it. If you look at the picture below, you may understand, so please refer to it.

 ![스크린샷 2023-08-10 오후 1.55.20](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/3/3db22de2168c54b0ed1d102cf85b93281b452b6e.png)  
can you see some notes having a #?  
I was curious about this note, so I asked. I’m glad it’s not that there’s no way at all.  
And I have one other question for you.  
in ‘image transformation test’([https://arcade.makecode.com/27800-70465-05726-62974](https://arcade.makecode.com/27800-70465-05726-62974)), this is showing that object rotation. i see a code, that code is It looks like the following picture:  
 ![스크린샷 2023-08-10 오후 2.05.55](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/9cca8c4dec90b91c34195ec35a9c89b66610c1ec.jpeg)  
and this picture:  
 ![스크린샷 2023-08-10 오후 2.07.04](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/c26d946a1b9d80f589e77a879f8fb560f5369189.png)  
this block is `change rotation of [mySprite] by [rotationAmount] Degrees` block.  
I wonder which category (Extension) can I get this block from? I wish I had an answer for this too.  
thank you. from YuminCoding

---

<div class="post-metadata">

### Author: ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)
#### Post date: [August 10, 2023, 4:31pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/2 "2023-08-10T16:31:14Z")

</div>

There is a better rotation extension here: [https://github.com/jwunderl/pxt-scaling](https://github.com/jwunderl/pxt-scaling)

---

<div class="post-metadata">

### Author: ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)
#### Post date: [August 10, 2023, 4:32pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/3 "2023-08-10T16:32:02Z")

</div>

For the sharps and flats, select the note you want to change and use the J key on your keyboard to toggle through sharps and flats.

---

<div class="post-metadata">

### Author: ![frandev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/frandev/32/27644_2.png) [@frandev](https://forum.makecode.com/u/frandev)
#### Post date: [August 11, 2023, 9:30pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/4 "2023-08-11T21:30:29Z")

</div>

You can also use CTRL.

---

<div class="post-metadata">

### Author: ![YuminCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yumincoding/32/11482_2.png) [@YuminCoding](https://forum.makecode.com/u/YuminCoding)
#### Post date: [August 15, 2023, 8:26pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/5 "2023-08-15T20:26:55Z")

</div>

# Hello, Luke

Hello. thanks to reply it my pending.  
**There is something I would like to ask you.**  
This Github project uses blocks as a format for _specifying values._  
This block is a _ **block format,** _ so this is **not this block.**

> But don’t be discouraged yet. Here’s a hint.

This block is a slightly light brown value change block, similar to the block color in the arcade-storytelling extension. And the block must be in some extension (in Github).  
**this is an js code:**

> `enum SpriteKindLegacy { Player, Projectile, Food, Enemy } controller.right.onEvent(ControllerButtonEvent.Repeated, function () { rotationAmount = rotationIncrement rotate() }) controller.left.onEvent(ControllerButtonEvent.Pressed, function () { rotationAmount = 0 - rotationIncrement rotate() }) controller.right.onEvent(ControllerButtonEvent.Pressed, function () { rotationAmount = rotationIncrement rotate() }) function rotate () { transformSprites.changeRotation(mySprite, rotationAmount) transformSprites.changeRotation(mySprite2, rotationAmount) mySprite.say("" + transformSprites.getRotation(mySprite) + " degrees") } controller.left.onEvent(ControllerButtonEvent.Repeated, function () { rotationAmount = 0 - rotationIncrement rotate() }) let rotationAmount = 0 let rotationIncrement = 0 let mySprite2: Sprite = null let mySprite: Sprite = null mySprite = sprites.create(img""" ...........ccccc66666........... ........ccc4444444444666........ ......cc444444444bb4444466...... .....cb4444bb4444b5b444444b..... ....eb4444b5b44444b44444444b.... ...ebb44444b4444444444b444446... ..eb6bb444444444bb444b5b444446.. ..e6bb5b44444444b5b444b44bb44e.. .e66b4b4444444444b4444444b5b44e. .e6bb444444444444444444444bb44e. eb66b44444bb444444444444444444be eb66bb444b5b44444444bb44444444be fb666b444bb444444444b5b4444444bf fcb666b44444444444444bb444444bcf .fbb6666b44444444444444444444bf. .efbb66666bb4444444444444444bfe. .86fcbb66666bbb44444444444bcc688 8772effcbbbbbbbbbbbbbbbbcfc22778 87722222cccccccccccccccc22226678 f866622222222222222222222276686f fef866677766667777776667777fffef fbff877768f86777777666776fffffbf fbeffeefffeff7766688effeeeefeb6f f6bfffeffeeeeeeeeeeeeefeeeeebb6e f66ddfffffeeeffeffeeeeeffeedb46e .c66ddd4effffffeeeeeffff4ddb46e. .fc6b4dddddddddddddddddddb444ee. ..ff6bb444444444444444444444ee.. ....ffbbbb4444444444444444ee.... ......ffebbbbbb44444444eee...... .........fffffffcccccee......... ................................ """, SpriteKindLegacy.Player) mySprite.setPosition(16, 16) mySprite2 = sprites.create(img""" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . """, SpriteKindLegacy.Player) mySprite2.setPosition(96, 56) mySprite2.setImage(transformSprites.scale2x(sprites.food.bigBurger)) rotationIncrement = 10`

Among these codes, `transform Sprites.change Rotation((), ())` is the **js code of the corresponding block.** Please find more diligently on _Github._ thank you.  
from cuteyumin1004 😃 😃 😃 😃 😃

---

<div class="post-metadata">

### Author: ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)
#### Post date: [August 16, 2023, 4:28pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/6 "2023-08-16T16:28:59Z")

</div>

??? I’m not too sure what you’re asking but I’ve used both extensions and the graphical quality of the brown sprite transform extension is worse than the sprite scaling one. The only difference is that you have to define the image as a separate variable for the sprite scaling. If you want an example just look at my [Card Game: Sprites behaving in satisfying, unintentional ways](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445) I initially used the brown one but switched to the scaling one

---

<div class="post-metadata">

### Author: ![YuminCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yumincoding/32/11482_2.png) [@YuminCoding](https://forum.makecode.com/u/YuminCoding)
#### Post date: [October 10, 2023, 4:47pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/7 "2023-10-10T16:47:17Z")

</div>

Oh wait, i have a solution now!  
let me check your code.

---

<div class="post-metadata">

### Author: ![YuminCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yumincoding/32/11482_2.png) [@YuminCoding](https://forum.makecode.com/u/YuminCoding)
#### Post date: [October 10, 2023, 4:47pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/8 "2023-10-10T16:47:27Z")

</div>

wait. where these extensions come from? `stats`, `blockObject`, `Sprite transforms`.

---

<div class="post-metadata">

### Author: ![YuminCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yumincoding/32/11482_2.png) [@YuminCoding](https://forum.makecode.com/u/YuminCoding)
#### Post date: [October 30, 2023, 4:53pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/9 "2023-10-30T16:53:27Z")

</div>

Wow luke, i found a **answer now!!!**  
sometimes i tried make this file: setting.ts, and more extension maded!  
i think you was used this solution 😮😮😮  
well, i should copy your code now.

---

<div class="post-metadata">

### Author: ![YuminCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yumincoding/32/11482_2.png) [@YuminCoding](https://forum.makecode.com/u/YuminCoding)
#### Post date: [October 30, 2023, 5:14pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/10 "2023-10-30T17:14:37Z")

</div>

OOF PiX, i’m sorry but i can’t use a CTRL button to use sharp and flat. but KIKIvsIT was right.  
but you didn’t wrong. in windows, i think can do toggle sharp and flat.

---

<div class="post-metadata">

### Author: ![frandev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/frandev/32/27644_2.png) [@frandev](https://forum.makecode.com/u/frandev)
#### Post date: [October 30, 2023, 9:26pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/11 "2023-10-30T21:26:04Z")

</div>

cool! btw, i don’t use windows. that might be it…

---

<div class="post-metadata">

### Author: ![goldtopaz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/goldtopaz/32/28622_2.png) [@goldtopaz](https://forum.makecode.com/u/goldtopaz)
#### Post date: [October 31, 2023, 6:52am UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/12 "2023-10-31T06:52:00Z")

</div>

so pencil sharpening right?

---

<div class="post-metadata">

### Author: ![YuminCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yumincoding/32/11482_2.png) [@YuminCoding](https://forum.makecode.com/u/YuminCoding)
#### Post date: [October 31, 2023, 5:58pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/13 "2023-10-31T17:58:08Z")

</div>

oopz is this linux?  
or… what is your computer;;;

---

<div class="post-metadata">

### Author: ![YuminCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yumincoding/32/11482_2.png) [@YuminCoding](https://forum.makecode.com/u/YuminCoding)
#### Post date: [October 31, 2023, 5:58pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/14 "2023-10-31T17:58:13Z")

</div>

sharp & flat. that is right.

---

<div class="post-metadata">

### Author: ![YuminCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yumincoding/32/11482_2.png) [@YuminCoding](https://forum.makecode.com/u/YuminCoding)
#### Post date: [October 31, 2023, 6:13pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/15 "2023-10-31T18:13:47Z")

</div>

oh, KIKIvsIT, thank you! that working!

---

<div class="post-metadata">

### Author: ![frandev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/frandev/32/27644_2.png) [@frandev](https://forum.makecode.com/u/frandev)
#### Post date: [October 31, 2023, 10:49pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/16 "2023-10-31T22:49:35Z")

</div>

It’s a chromebook. It is based on Linux…  
That might be it.

---

<div class="post-metadata">

### Author: ![YuminCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yumincoding/32/11482_2.png) [@YuminCoding](https://forum.makecode.com/u/YuminCoding)
#### Post date: [November 6, 2023, 7:22pm UTC](https://forum.makecode.com/t/i-want-to-make-any-sharps-or-flats-in-music/21776/17 "2023-11-06T19:22:24Z")

</div>

Bruh what chromebook lol  
I understand.
