| / --- | T-T | --- \ | / --- | T-T | --- \ | |
|---|---|---|---|---|---|---|
| 1 | 3 | 5 | 3v |
SI |
SC |
|
| 2 | 4 | 6 | SO |
SD |
GND |
|
| \ --- | --- | --- / | \ --- | --- | --- / |
(Note: this is the cable pinout, flip diagram horizontally to visualise GBA port instead)
| ''' | |
| Converts a .WAV music file into MIDI using a bunch of numbers and stuff | |
| The gist of the program is: | |
| - Load a mono WAV file | |
| - Move a rolling window along the audio | |
| - Multiply that window by a "hanning taper window" (this step is optional, it’s basically multiplying it by a bell-curve-like shape so the middle of the window has the most influence) | |
| - Run an FFT on that window | |
| - Set the velocity of each piano note to the average magnitude of its closest frequencies |
| use std::hash::{Hash, Hasher}; | |
| const CRC64_ECMA182_POLY: u64 = 0x42F0E1EBA9EA3693; | |
| const CRC64_TABLE: [u64; 256] = { | |
| let mut crc64table = [0u64; 256]; | |
| let mut i = 0u64; | |
| while i < 256 { | |
| let mut crc = 0u64; |
| #!/usr/bin/env python3 | |
| # By AlexApps99 | |
| # This Python script will generate an Anki deck from a PDF file of Remembering the Kanji 1, 6th edition. | |
| # To use it, just use the command "python3 create_rtk_deck.py RTK.pdf RTK.apkg" | |
| # Feel free to customize/modify it however you want, public domain code. | |
| # There is unused functionality for getting stories/text too. | |
| # If you have any questions on how to use this feel free to contact me. | |
| # Dependencies: | |
| # - genanki | |
| # - beautifulsoup4 |