Work in progress piano / music reading thing

Forum Home Forum Home > Construct 2 General > Your Creations
 Post Reply Post Reply Page  12>
Author
6,256 Rep
Post Options Post Options   Quote JohnnySix Quote  Post ReplyReply Direct Link To This Post Topic: Work in progress piano / music reading thing
    Posted: 24 Jun 2012 at 3:36am
Working on this - a friend recently started teaching the basics of reading music - so I thought I'd try create something to practice with.

Very basic at the moment (I need to add bass Clef to cover notes below C4), and add some lines in when they go off the stave, but it's mostly working.



Play it here

Edited by JohnnySix - 24 Jun 2012 at 3:38am
Back to Top
9,291 Rep
Post Options Post Options   Quote ramones Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jun 2012 at 1:03pm
Looks good. Your server isn't set up for .ogg files though so no sound in Firefox.
Back to Top
13,270 Rep
Post Options Post Options   Quote Velojet Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jun 2012 at 8:31pm
Promising!

Originally posted by ramones ramones wrote:

Looks good. Your server isn't set up for .ogg files though so no sound in Firefox.


Yes, run it in FF with Firebug enabled and you'll see the error message.

No sound in IE9 either, but that's not really a surprise :(
Back to Top
6,256 Rep
Post Options Post Options   Quote JohnnySix Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jun 2012 at 10:35pm
Originally posted by ramones ramones wrote:

Looks good. Your server isn't set up for .ogg files though so no sound in Firefox.


How do I fix it? Do I need to set permissions on the files? I just exported and uploaded, didn't know I needed to change anything.

A catastrophic fail if you can't hear the sound!
Back to Top
6,256 Rep
Post Options Post Options   Quote JohnnySix Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jun 2012 at 10:56pm
I need to reinstall FireFox/IE - I'm loading m4a/ogg via the audio element :

http://www.johnnysix.net/games/JohnnyPiano/SoundTest.html

Edited by JohnnySix - 24 Jun 2012 at 10:56pm
Back to Top
9,291 Rep
Post Options Post Options   Quote ramones Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jun 2012 at 11:41pm
You have to set the correct mime types. It depends on the server. For apache add:
Quote
AddType audio/ogg oga ogg
AddType audio/mp4 m4a

to the .htaccess file.
Back to Top
6,256 Rep
Post Options Post Options   Quote JohnnySix Quote  Post ReplyReply Direct Link To This Post Posted: 25 Jun 2012 at 1:26am
AH , thanks! To the cgi-bin folder?
Back to Top
9,291 Rep
Post Options Post Options   Quote ramones Quote  Post ReplyReply Direct Link To This Post Posted: 25 Jun 2012 at 1:55am
Nah it goes in the root folder http://www.johnnysix.net/. Well the .htaccess file in the root folder will affect the whole site. You can put a .htaccess file in any folder eg. http://www.johnnysix.net/games/ and it will only affect that folder and sub-folders.
Back to Top
6,256 Rep
Post Options Post Options   Quote JohnnySix Quote  Post ReplyReply Direct Link To This Post Posted: 25 Jun 2012 at 4:56am
Hmm, I'll ask my host if I can do that, didn't know it was the server causing it.

I made a new version ( I guess Chrome only for now ) - increased the range of notes playable/quizable and added in the extra lines for notes outside the usual 5. I tightened up the graphics on level three also, as the extra notes required more space.

http://www.johnnysix.net/games/J6Piano/




Edited by JohnnySix - 25 Jun 2012 at 4:58am
Back to Top
6,256 Rep
Post Options Post Options   Quote JohnnySix Quote  Post ReplyReply Direct Link To This Post Posted: 26 Jun 2012 at 7:53pm
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down