PHPackages                             xosofox/codesound - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. xosofox/codesound

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

xosofox/codesound
=================

Turn stuff into music

1.1.1(8y ago)419MITPHP

Since Nov 1Pushed 8y ago2 watchersCompare

[ Source](https://github.com/xosofox/codesound)[ Packagist](https://packagist.org/packages/xosofox/codesound)[ RSS](/packages/xosofox-codesound/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Codesound
=========

[](#codesound)

Works
=====

[](#works)

Add `Note` Objects to a `Sequence` which can be dumped into a wave file.

REQUIRES "sox"

 `sudo apt-get install sox` or `brew install sox`

The notes are indexed like this:

- 0 being A with 220 Hz
- 12 being A with 440 Hz
- 24 being A with 880 Hz

Example
-------

[](#example)

Play a simple A major scale

```
