Browse Source

Initial commit

master
Erin 8 years ago
commit
677846f5d0
3 changed files with 39 additions and 0 deletions
  1. +11
    -0
      .editorconfig
  2. +11
    -0
      .gitignore
  3. +17
    -0
      notes.md

+ 11
- 0
.editorconfig View File

@ -0,0 +1,11 @@
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.rs]
indent_style = space
indent_size = 4

+ 11
- 0
.gitignore View File

@ -0,0 +1,11 @@
### Rust ###
# Generated by Cargo
# will have compiled files and executables
/target/
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock
Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk

+ 17
- 0
notes.md View File

@ -0,0 +1,17 @@
# *
## music
### engine
* custom-designed, 2a03 APU-like sound architecture
* event, not register based
#### channels
* 3 pulse
* 3 saw|tri
* 1 noise
* 2 wave
* sample: [i8]
Every channel can have the following parameters set:
* `panning: i8`. 0 is centered, -127 is full left, and 127 is full right.
* `volume: u8`. Given `f32` samples, a volume of 255 corresponds to an amplitude of 1.0, and a volume of 0 to an amplitude of 0.
* `note: u8`

Loading…
Cancel
Save