Skip to content

Instantly share code, notes, and snippets.

View mwicat's full-sized avatar

Marek Wiewiorski mwicat

View GitHub Profile
@mwicat
mwicat / .gitignore
Last active December 22, 2021 21:53
# Jekyll
_site
.sass-cache
.jekyll-metadata
# Ruby
Gemfile.lock
# Byte-compiled / optimized / DLL files
__pycache__/
@mwicat
mwicat / influxdb_get.py
Created December 17, 2021 02:09
influxdb_get.py
#!/usr/bin/env python3
import datetime
import os
import time
from dotenv import load_dotenv
from influxdb_client import InfluxDBClient
#!/usr/bin/env python3
import os
import random
import time
from dotenv import load_dotenv
from influxdb_client import InfluxDBClient, Point
load_dotenv(os.path.expanduser('~/.noise-monitor.env'))
@mwicat
mwicat / LICENSE.md
Last active December 17, 2021 03:20

The MIT License (MIT)

Copyright (c) 2021-present Marek Wiewiorski

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@mwicat
mwicat / LICENSE.md
Last active December 17, 2021 15:19

The MIT License (MIT)

Copyright (c) 2021-present Marek Wiewiorski

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@mwicat
mwicat / Shift Pitch.ksp
Last active December 23, 2021 23:17
Shift Pitch.ksp
on init
set_script_title("Shift Sample")
declare ui_knob $Shift (-24, 24, 1)
$Shift := 0
set_knob_defval ($Shift,0)
make_persistent ($Shift)
set_knob_unit ($Shift,$KNOB_UNIT_ST)
set_control_help ($Shift,"Shift: Shifts the pitch in semitones while simultaneously compensating with
midi transpose in the opposite direction. The result is an increase or decrease in overtones.")
end on
on init
set_script_title("Shift Sample")
declare ui_knob $Pitch (-24, 24, 1)
declare ui_knob $Velocity (-127, 127, 1)
declare $VelocityTarget
declare $VolumeAdd
declare $NoteTarget
@mwicat
mwicat / .gitignore-juce
Created December 25, 2021 21:01
.gitignore-juce
._*
*.mode1v3
*.pbxuser
*.perspectivev3
*.user
*.ncb
*.suo
*.ilk
*.pch
*.pdb
import sys
import os
from PyQt5.QtCore import QUrl
from PyQt5.QtWidgets import *
from PyQt5.QtWebEngineWidgets import QWebEngineView as QWebView
fn = os.path.expanduser('~/tmp/report.pdf')
import gzip
import os
import re
import xml.etree.cElementTree as etree
from ctypes import *
VstInt32 = c_int32.__ctype_be__
VstFloat = c_float.__ctype_be__