34 lines
1.3 KiB
Markdown
34 lines
1.3 KiB
Markdown
## Background
|
|
Like many, I also watched the 4 Chords music video from the The Axis of Awesome on youtube roughly a decade ago. At the time, it provided a possible explination on why pop songs seemed somewhat unoriginal to me despite most of my peers enjoying pop. After that thought I resumed playing side two of The Wall and queued up Quadrophenia to play next.
|
|
|
|
Playing around with the provided [popgen.py](https://github.com/pdx-cs-sound/popgen) is both neat and addictive. I have decided that the focus of this portolio objective will be to reimpliment this program in rust, for the following reasons:
|
|
* Rust is more efficient, and it would be fun to run this on an embedded device which could be resource constrained.
|
|
* Rust is cool and it would serve me well to practice and keep up better with it
|
|
* Reimplementing the code forces me to essentially understand every line
|
|
* Despite being given explicit permission to do so with proper attribution, I prefer not to officially commit the code of another to my repository having a commit matching my name.
|
|
|
|
## Setup
|
|
|
|
It is required to install the [rustup rust toolchain](https://rustup.rs/)
|
|
|
|
## Run
|
|
```bash
|
|
# Basic
|
|
cargo run
|
|
|
|
# See help
|
|
cargo run -- --help
|
|
|
|
# Example with flags
|
|
cargo run -- -b 80 --root C[2]
|
|
```
|
|
|
|
|
|
## View Source
|
|
[popgen.rs](./src/popgen.rs)
|
|
|
|
## Access outputs
|
|
|
|
|
|
## Reflections, Results, Analysis
|