Skip to content

Instantly share code, notes, and snippets.

View Slooowpoke's full-sized avatar

Mali Slooowpoke

View GitHub Profile
@Slooowpoke
Slooowpoke / .ts
Last active May 18, 2024 20:31
MST + Xstate
/* eslint-disable no-param-reassign */
import {
getMembers, types
} from 'mobx-state-tree'
import {
createMachine
} from 'xstate'
import { interpret } from 'xstate/lib/interpreter'
// Pieced together from:
@Slooowpoke
Slooowpoke / WaveToPulseCodeModulation.java
Last active January 25, 2024 20:26
Convert .wav to .pcm (a little class to remove a .wav header from a file an create a .pcm)
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* Creates a PCM file from a Wave (.wav) file
*/
public class WaveToPulseCodeModulation {