Some more wrangling in Processing, some new results experimenting with interpolating texts. The problem with previous tests was that if the files aren’t the exact same length, remaining characters were simply dumped at the end of the resulting file. While character-accurate, it isn’t really an interpolation. Instead, this new version finds the ratio between the number of characters in the two texts. For example:
File one = 351,155 characters
File two = 194,138 characters
This makes the ratio between the two files ~2/1. The code reads two characters in the longer file, interpolates them, and then interpolates that result against a single character from the first file. Two examples are below using Shakespeare’s sonnet #51 and 117.
The sonnets interpolated using a ratio-interpolation:
1234567891011121314 lclanel slodij eigsnA otfe sdaceturtrdc dltrnIiamtrhnohddoascoar nioeoEaacehshOodsdi lhtoodrnion lrlaoosrfn EtosiniSi iieintiItgsaIaonaniid hr maueccsiouAneo ioEj hciefsmhsal hiimtrm gimstyaelaanrAautlrd s otalige lfsr hdohinasucsouodleiahofoEoseooTnhsd rlhsd noirlh rononiiena lsaihTsrnOaauohcnieslaomtsa mtelaseriinirOtyaddnOooisltaiococnoi fceutcpnlaons egn hocalo InhsRih tr whselr. olrrolcsrouatndrwsideaaSohou s olsnoiatrhd rtdndisrrmtlrlrnihstAnhtordtiehte rt ctdau poloiducdaelnreoieii fhco sfhevlnti aeHnaN ilhtleisce rotddcdoh se gordsnfhmtlai dTnlroiiremtso psf o
The text above, run through Microsoft Word’s spell-check:
1234567891011121314 cannel solid deigns often sdaceturtrdc dltrnIiamtrhnohddoascoar nioeoEaacehshOdds lhtoodrnion lrlaoosrfn EosinSi iieintiItgsaIaonaniid hr maueccsiouAnew ice hciefsmhsal hitter gimstyaelaanrAuld s totalize lifer hdohinasucsouodleiahofoEosoothed rills north rononiiena lashTsrnOaauohcnieslaomtsa mtelaseriinirOtyaddnOooisltarococo fceutcpnlaons egg horal InnsRah try wheel. olrrolcsrouatndrwsideaaShoo s olsnoiatrhd rtdndisrrmtlrlrnihstAnhtordtiehte rat coda poloiducdaelnreoieii face sheltie ashcan ilhtleisce rotddcdoh se gordsnfhmtlai dTnlroiiremtso puff o
1 |