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 mido import MidiFile | |
import time | |
import easygui | |
import fluidsynth | |
import os | |
os.system(f'title seclect midi file') | |
midi_file = easygui.fileopenbox(filetypes=['*.mid', '*.midi'], title='Select a MIDI file') | |
# check file type | |
try: |
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 pyaudio | |
import numpy as np | |
import time | |
CHUNK = 2**11 | |
p = pyaudio.PyAudio() | |
stream = p.open(format=pyaudio.paInt16, channels=2, rate=44100, input=True, input_device_index=5, frames_per_buffer=CHUNK) |
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
/* | |
* Created by damp11113 | |
* | |
* This example code is in github https://gist.github.com/damp11113/62af5256702c661086f8ae6d2bb6716e | |
*/ | |
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
int lcdColumns = A5; | |
int lcdRows = A4; |
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
(function() { | |
var script = document.createElement('script'); | |
script.src = "//cdn.jsdelivr.net/npm/eruda"; | |
document.body.appendChild(script); | |
script.onload = function() { | |
eruda.init() | |
} | |
})(); |
NewerOlder