A little piano...

Just BASIC Games
cassiope01
Posts: 56
Joined: Sat Jun 06, 2009 7:27 am
Location: FRANCE, Montpellier

A little piano...

Post by cassiope01 »

A guy on the french forum shared some music notes WAV files.
So I've coded this little toy :)

Little piano

I chose the common keys of AZERTY and QWERTY keyboards for playing with keyboard. (see the groupbox "Clavier" )

Del = delete the last note
Enter = play the melody
R = save/load a melody (save will not be in WAV format ;) )
+/- = increase/decrease the imposed tempo.
RAZ = delete all the actual melody

You can try to move the mouse on the piano with the left button pressed.

Updated with tsh73 addon and fixes.

Have fun ;)
You do not have the required permissions to view the files attached to this post.
Last edited by cassiope01 on Wed Oct 31, 2012 4:54 pm, edited 1 time in total.
tsh73
Posts: 46
Joined: Fri May 04, 2007 12:03 pm

Re: A little piano...

Post by tsh73 »

Changes:
1) added variable "lang".
lang = 0 works as now.
lang = 1 change messages to English (or what deems more English to me) ;)
2) now "tempo" shown refers to beats per minute.
You do not have the required permissions to view the files attached to this post.
JustMe
Posts: 1
Joined: Tue Oct 30, 2012 8:22 pm

Re: A little piano...

Post by JustMe »

Tres jolie! It looks very nice and the piano sounds beautiful.
merci
cassiope01
Posts: 56
Joined: Sat Jun 06, 2009 7:27 am
Location: FRANCE, Montpellier

Re: A little piano...

Post by cassiope01 »

With the help of Roland (for the sound files) and tsh73 :D but many thanks :P