Jump to content

Pitch Shifting and Playing Audio in Pure Javascript


GravityGamesInteractive
 Share

Recommended Posts

Hello, I'm planning on making a game for the js13k jam, since working with limited space always sounds interesting to me, and I need to learn better Javascript coding habits anyway. However, I haven't yet found a good way to change the pitch of an audio file and then play/stop it. It's probably obvious why I want to figure out how to do so (custom music format inspired by .mod files), but I want to know how to actually, well, do it, so that I can then redo it for the jam. Does anyone know if there's a way to do this? Remember, space is obviously very important (so the simpler and less lines of code required to do so, the better), and simply using a .ogg file would take far too much space.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...