Skip to content

Instantly share code, notes, and snippets.

View mwicat's full-sized avatar

Marek Wiewiorski mwicat

View GitHub Profile
@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:

#!/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 / 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
@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 / teensy_sine.c
Created December 14, 2021 01:32
Teensy audio library test - sine wave
#include <Audio.h>
// GUItool: begin automatically generated code
AudioSynthWaveformSine sine1; //xy=595,300
AudioOutputAnalogStereo dacs2; //xy=884,334
AudioConnection patchCord1(sine1, 0, dacs2, 0);
// GUItool: end automatically generated code
void setup() {
AudioMemory(10);
@mwicat
mwicat / vibrato.dsp
Created December 13, 2021 11:58
Vibrato effect implementation in Faust DSP
declare name "vibrato";
declare version "0.0";
declare author "mwicat";
declare description "Vibrato effect.";
import("stdfaust.lib");
// os.oscrs - https://github.com/grame-cncm/faustlibraries/blob/master/oscillators.lib#L982
// Sinusoidal (sine) oscillator based on 2D vector rotation
lfo = os.oscrs;
@mwicat
mwicat / foo.java
Created December 3, 2021 21:31
max/msp java external
/*
$ javac -cp "/Applications/Max.app/Contents/Resources/C74/packages/max-mxj/java-classes/lib/max.jar" foo.java
*/
import com.cycling74.max.*;
public class foo extends MaxObject {
String name;
float velocity;
int factor;
# You can set any of LinnStrument's note pad to any color by sending
# LinnStrument a series of three MIDI Control Change messages:
#
# 1) CC20: Column number of note pad to change (control key column is 0, left
# play column is 1, right play column is 25)
# 2) CC21: Row number of note pad to change (bottom row is 0, top is 7)
# 3) CC22: Color to change it to (0=as set in Note Lights settings,
# 1=red, 2=yellow, 3=green, 4=cyan, 5=blue,
# 6=magenta, 7=off, 8=white, 9=orange, 10=lime and 11=pink).
#
@mwicat
mwicat / minilogue_xd__MIDIImp.txt
Created July 31, 2021 14:35
KORG minilogue xd Implementation
KORG minilogue xd Implementation Revision 1.01 (2020.2.10)
1.TRANSMITTED DATA
1-1 CHANNEL MESSAGES [H]:Hex, [D]:Decimal
+--------+---------+-------------+-----------------------------------------------------+
| Status | Second | Third | Description |
| [Hex] | [H] [D] | [H] [D] | |
+--------+---------+-------------+-----------------------------------------------------+
@mwicat
mwicat / minilogue_MIDIimp_rev.txt
Created July 31, 2021 14:34
KORG minilogue Implementation
KORG minilogue Implementation Revision 1.10 (2016.07.10)
1.TRANSMITTED DATA
1-1 CHANNEL MESSAGES [H]:Hex, [D]:Decimal
+--------+---------+-------------+-----------------------------------------+
| Status | Second | Third | Description |
| [Hex] | [H] [D] | [H] [D] | |
+--------+---------+-------------+-----------------------------------------+