Git Product home page Git Product logo

collatz-conjecture-audio's Introduction

Collatz Sequence Music

This is a set of Python scripts that generate music and sound based on the Collatz sequence, a mathematical concept. Here's a brief description of each script:

  • collatz_resequencer.py: This script takes an input .wav file and resequences it according to the Collatz sequence, producing a new .wav file as output. The starting point of the Collatz sequence can be set with the --collatz-base argument.

Example usage from the command line:

python collatz_resequencer.py input.wav output.wav --collatz-base 10
  • gen_collatz.py: This script generates a .wav file where each sample's frequency is determined by the Collatz sequence.

  • gen_collatz_microtonal.py: This script generates a .wav file with a series of microtonal frequencies determined by the Collatz sequence.

  • gen_collatz_midi.py: This script generates a MIDI file where the note values are determined by the Collatz sequence.

Feel free to experiment with these scripts and modify them to suit your needs. If you create any interesting sounds or music with these scripts, we'd love to hear it!

Contributing

If you want to contribute, just fork and PR. Make sure you include the wav result from the script you contribute. Do not limit yourself to Collatz Conjecture either however named this repo is :)

Screenshots

See how these samples look when loaded into Ableton Live's Wavetable instrument:

samples/collatz.wav

collatz.wav This is a very useful sample, but be advised the frequency range of samples might go above the human hearing limit of 20~22khz

samples/collatz_midi.wav

Yes, this one sounds as it looks: bland. What would you do with it? Share! collatz_midi.wav

samples/collatz_microtonal.wav

collatz_microtonal.wav

collatz-conjecture-audio's People

Contributors

buanzo avatar

Stargazers

 avatar

Watchers

 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.