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
import ui | |
import math | |
import numpy as np | |
from PIL import Image | |
import Image | |
import ImageOps | |
import ImageChops | |
import io | |
import scene | |
import time |
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
import ui | |
import math | |
import numpy as np | |
from PIL import Image | |
import matplotlib.pyplot as plt | |
import Image | |
import ImageOps | |
import ImageChops | |
import io | |
import scene |
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
from objc_util import * | |
from ctypes import * | |
from coreaudioconstants import * | |
import numpy as np | |
#In the render method of the AudioRenderer, change 110 to f if you want to control the frequency | |
''' Adapted from https://www.cocoawithlove.com/2010/10/ios-tone-generator-introduction-to.html | |
''' |
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
from objc_util import * | |
from ctypes import * | |
from coreaudioconstants import * | |
import numpy as np | |
''' Adapted from https://www.cocoawithlove.com/2010/10/ios-tone-generator-introduction-to.html | |
''' | |
AudioUnitRenderActionFlags=c_uint32 |
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
from objc_util import * | |
from ctypes import * | |
from coreaudioconstants import * | |
import numpy as np | |
''' Adapted from https://www.cocoawithlove.com/2010/10/ios-tone-generator-introduction-to.html | |
''' | |
AudioUnitRenderActionFlags=c_uint32 |
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
import os, math, wave, array | |
import sound | |
import ui | |
import photos | |
import console | |
from scene import * | |
import time | |
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
# generate wav file containing sine waves | |
import os, math, wave, array | |
import sound | |
import ui | |
import photos | |
import console | |
from scene import * | |
import time | |
import numpy as np |