This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//RewriteCond %{REQUEST_URI} !^/index\.php.* [NC] | |
//RewriteRule ^(.*)$ /index.php | |
//RewriteCond %{REQUEST_URI} ^/site [NC] | |
//RewriteRule site index.php | |
if ( isset($_SERVER['REDIRECT_URL']) ) { | |
// REDIRECT_URL - PHP_SELF | |
// http://localhost/test/ym/something/or/other?woot=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def rangeDiff(pcs): | |
# Return the difference between the first and last items of a list of pitch class sets | |
diff = (pcs[len(pcs) - 1] - pcs[0]) | |
if diff < 0: | |
diff += 12 | |
return diff | |
def cycleLeft(pcs): | |
# Return a single cyclic left permutation of a pitch class set | |
# Ex: [a,b,c] -> [b, c, a] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import flash.utils.ByteArray; | |
public class Compressor | |
{ | |
private var attackTime:Number = 0.001; | |
private var releaseTime:Number = 0.130; | |
private var slope:Number = 0.5; | |
private var thresh:Number = -0.1; |