This file contains hidden or 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
| import sys | |
| import math | |
| import numpy as np | |
| eps = np.finfo(float).eps # epsilon, minimum float value in python | |
| from scipy.fftpack import fft, ifft | |
| from scipy.signal import triang, get_window, blackmanharris | |
| sys.path.append("../../software/models/") |
This file contains hidden or 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
| ;; useful | |
| (define *beats-per-bar* (lambda () 4)) | |
| (define *next-bar* (lambda () (*metro* 'get-beat (*beats-per-bar*)))) | |
| ;; init MIDI & create a stream for my Ableton IAC device | |
| (sys:load "libs/external/portmidi.xtm") | |
| (pm_initialize) | |
| (pm_print_devices) | |
| (define *ableton* (pm_create_output_stream 7)) |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <!-- PDF.js --> | |
| <link rel="stylesheet" href="bower_components/pdfjs-dist/web/pdf_viewer.css"> | |
| <script src="bower_components/pdfjs-dist/web/compatibility.js"></script> | |
| <script src="bower_components/pdfjs-dist/build/pdf.js"></script> |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import contextlib | |
| import errno | |
| import json | |
| import os | |
| import shutil | |
| import sys | |
| import tempfile | |
| import zipfile |
This file contains hidden or 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
| import Text.ParserCombinators.Parsec | |
| fasta :: Parser [[String]] | |
| fasta = do a <- many record | |
| eof | |
| return a | |
| record :: Parser [String] | |
| record = do a <- header | |
| b <- dna |
NewerOlder