Skip to content

Instantly share code, notes, and snippets.

View damp11113's full-sized avatar
🤗
Hi dev

Dharm Pimsen damp11113

🤗
Hi dev
View GitHub Profile
@damp11113
damp11113 / Player.py
Created March 25, 2023 03:50
Python MIDI Player with built in synthesizer
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:
@damp11113
damp11113 / vu_meter.py
Last active September 15, 2023 14:56
python audio vu meter L R
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)
@damp11113
damp11113 / adrod 13.ino
Last active August 29, 2022 08:23
adrod 13
/*
* 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;
@damp11113
damp11113 / devtools.js
Created April 9, 2022 01:58
inspect-element-for-android
(function() {
var script = document.createElement('script');
script.src = "//cdn.jsdelivr.net/npm/eruda";
document.body.appendChild(script);
script.onload = function() {
eruda.init()
}
})();