commit 677846f5d0996de928e2f3271add20fe992fe6f1 Author: Erin Date: Thu Jul 20 15:47:33 2017 -0500 Initial commit diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..599ded0 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..050ca6d --- /dev/null +++ b/.gitignore @@ -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 diff --git a/notes.md b/notes.md new file mode 100644 index 0000000..6ab8a83 --- /dev/null +++ b/notes.md @@ -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`