-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathProject 24.py
143 lines (135 loc) · 2.86 KB
/
Project 24.py
1
import Adafruit_BBIO.PWM as PWMfrom time import sleep# Middle CC = 261.63D = 293.66Db = 277.18E = 329.63Eb = 311.13F = 349.23G = 392Gb = 369.99A = 440Ab = 415.30B = 493.88Bb = 466.16#High CHD = 587.33HEb = 622.25HG = 783.99#LOW CLG = 196.00while True: PWM.start("P9_14", 50, G, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, G, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, G, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Eb, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Bb, 1) sleep(0.2) PWM.stop("P9_14") PWM.start("P9_14", 50, G, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Eb, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Bb, 1) sleep(0.2) PWM.stop("P9_14") PWM.start("P9_14", 50, G, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, HD, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, HD, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, HD, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, HEb, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Bb, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, G, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Eb, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Bb, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, LG, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, LG, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, HG, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, HG, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Gb, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, F, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, E, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Eb, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, E, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Ab, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Db, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, C, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, B, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Bb, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, A, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Bb, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Eb, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Gb, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, Bb, 1) sleep(0.3) PWM.stop("P9_14") PWM.start("P9_14", 50, G, 1) sleep(0.3) PWM.stop("P9_14") PWM.cleanup() sleep(10)