Skip to content

Instantly share code, notes, and snippets.

View davide99's full-sized avatar
🎯
Focusing

Davide Pisanò davide99

🎯
Focusing
View GitHub Profile
@edgar-bonet
edgar-bonet / homodyne.ino
Created March 1, 2016 12:00
Homodyne detection of a 1 kHz signal
/*
* homodyne.ino: Homodyne detection of a 1 kHz signal.
*
* This program continuously samples analog input 0 and uses an homodyne
* detection scheme to identify a signal at 1 kHz (+/- 24 Hz @ -3dB).
*
* The analog-to-digital converter is set to "free running mode" and
* takes one sample every 104 us. The samples are multiplied by two
* generated signals at 1 kHz (the "local oscillator"), in quadrature to
* one another. The products are then low-pass filtered with a time
@laptrinhcomvn
laptrinhcomvn / Sublime Text 3 cheating.md
Last active November 17, 2023 06:53
Sublime Text 3 patching

Ref: https://gist.github.com/vertexclique/9839383

Important Note

Please use built-in Terminal.app (of Mac OS X) to type and rune the command, do not use another tool (like iTerm2).

Common step after enter run the patch command:

  • After run the commands, start new Sublime Text app, go to Main Menu > Help > Enter License. On the popup type in any text (example "a") and click Use Licence .
@nicolamontecchio
nicolamontecchio / wav2mono.cpp
Created October 12, 2010 14:42
convert a wav file to mono, using libsndfile
#include <iostream>
#include <sndfile.h>
using namespace std;
/**
* Convert an audio file to mono format (input in first arg, output in second)
*/
int main(int argc, char** argv)
{
if (argc != 3)