Giter VIP home page Giter VIP logo

gm1k's Introduction

This repository contains two pieces of music using plain JS:

  • 410
  • Cycling with Euclid

410 - Generative music in 410 bytes of Javascript

The prompt for day 14 of Genuary 2024 was to produce a generative piece that uses less than 1K of source code. This one uses standard browser audio APIs to produce a soundscape.

Live version is at https://mnvr.github.io/gm1k.

Source code for the demo is in index.html – it is a standalone, 410 character, HTML file. The song it plays is a remix of Sierpinski Harmony by viznut (the creator of bytebeat).

See x for a longer version with more comments and explanations.

Cycling with Euclid – A song in E(3, 8)

The prompt for day 31 of Genuary 2024 was to produce a generative piece of music. I made a neverending song using only HTML/JS/CSS without using any dependencies or libraries. While code size was not a concern, the resulting files is just 250 lines too.

Live version is at https://mnvr.github.io/gm1k/e.

Source code is in e/index.html – a standalone HTML file (you can just open it in your browser and play it directly too). The song it plays is a composition using Euclidean rhythms. The bassline and the trill rhythms are E(3,8) and E(7, 8), around which totters around the main Euclidean rhythm that cycles through E(3,4) to E(11, 12).

I also wrote a tutorial about Euclidean rhythms that explains the code behind the song.

Postscript

Rest of my (visual) Genuary 2024 artworks are at mrmr.io/gen24.

gm1k's People

Contributors

mnvr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.