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 numpy as np | |
def writePitches(fn,inds,tempo=82,instrument=[0,0],add21=True,start_at= [0,0],durationsInQuarterNotes=False): | |
from MidiFile import MIDIFile | |
track = 0 | |
channel = 0 | |
time = 0 # In beats | |
duration = 1 # In beats # In BPM | |
volume = 116 # 0-127, as per the MIDI standard |
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 turtle as t | |
import math | |
WIDTH, HEIGHT = 800, 800 | |
OFFSET = -WIDTH // 2, -HEIGHT // 2 | |
import numpy as np |