Daily Challenge #101: Tiny piano

Daily challenge is… make a piano with just 5 blocks. You have to be able to play 8 notes, C,D,E,F,G,A,B and High C.

Yes, it is the App Inventor logo but that shouldn’t be a problem because you have to make it in Kodular.

5 Likes

Hey Peter, love the challenge.

Would initializing a list count in the number of blocks used?

This will be very hard :sweat_smile:

1 Like

All blocks will count.

Here you go DailyChallenge101_TinyPiano.apk (5.3 MB)

bild

1 Like

Nice,
I was almost there.
Now in curious :stuck_out_tongue_winking_eye: what logic you used?
The maximun that i reached was this:
image

4 Likes

I thought the same. At first I wasn’t sure if you needed the sound extension or not for he player to play the sound. But I thought “removing the extension is the only way to keep it in 5 blocks”. So that is the trick. Good one @Peter!

3 Likes

I use only one block!

I win

@Peter never said I could not collapse the blocks

7 Likes

I Will Try to make

A collapsed block still contains the blocks used. :grin:So maybe show what you did?

1 Like

Where can i get the sound

This is indeed how I did it. Like @Italo said I removed the extensions from the filenames. So instead of having to use a join block I could just use the text from the button.

For me this shows the power of a blockly based builder.

Here are the soundfiles if someone wants to use them.

G (86.0 KB) F (86.0 KB) E (85.5 KB) D (86.0 KB) C (85.5 KB) HIC (85.5 KB) B (86.5 KB) A (86.5 KB)

4 Likes

I made it Successfully

Blocks

App Result

1 Like

Unchive summary report reveals how many, but yes it’s the same as all of you have…

bild

3 Likes