Skip to content

kioku-systemk/GLSLSound

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GLSLSound

GLSL sound framework

Support

  • Windows Chrome
  • macOS Safari, Chrome
  • iOS Safari etc.

Usage

<html>
    <head>
        <script src="glslsound.js"></script>
        <script>
        var soundShader = "vec2 mainSound(float time){ return vec2( sin(6.2831 * 440.0 * time) * exp(-3.0 * time) );}";
        window.onload = function () {
            sound = new GLSLSound();
            sound.compileShader(soundShader);
            sound.prepare(3.0);
            sound.play();
        }
        </script>
    </head>
<body>
</body>
</html>

About

GLSL sound framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published