Skip to content

Instantly share code, notes, and snippets.

View StartAutomating's full-sized avatar

James Brundage StartAutomating

View GitHub Profile
@StartAutomating
StartAutomating / StrudelExperiments.ps1
Created September 18, 2026 05:39
Gist some Strudel Experiments
$bit38 = [uri]"https://strudel.cc/#c2V0Y3BtKDEyOC8yKQokbjE6IG5vdGUoYAo8Z0AwLjUgZ0AwLjUgZyBmIGUgZz4oMyw4KQpgKS5zb3VuZCgic2luZSIpLmNvbG9yKCJ5ZWxsb3cgZ29sZGVucm9kIikuX3BpYW5vcm9sbCgpLl9zY29wZSgpCiRuMV8yOiBub3RlKGA8CjxnQDAuNSBnQDAuNSBnIGYgZSBnPigzLDgpCj5gKS5zb3VuZCgic2luZSIpLmNvbG9yKCJyZWQgb3JhbmdlIikuanV4KHJldikuX3BpYW5vcm9sbCgpLl9zY29wZSgpCgokbjI6IG5vdGUoYDwKPGFAMC41IGFAMC41IGEgYyBiIGE%2BKDMsOCkKPmApLnNvdW5kKCJzaW5lIHRyaSIpLmNvbG9yKCJncmVlbiBsaW1lIikucGhhc2VyKDEpLl9waWFub3JvbGwoKS5fc2NvcGUoKQoKJG4zOiBub3RlKGA8CjxhQDAuNSBhQDAuNSBhIGMgYiBhPigzLDgpCj5gKS5zb3VuZCgic2luZSB0cmkiKS5jb2xvcigiYmx1ZSBjeWFuIikuanV4KHJldikuX3BpYW5vcm9sbCgpLl9zY29wZSgpCgoK"
$bitBouncy = [uri]"https://strudel.cc/#c2V0Y3BtKDEyOC8yKQoKCi8qCiAgQHRpdGxlIEJpdCBCb3VuY3kKICBAYnkgCiovCgpjb25zdCBjYWZlMjYgPSBub3RlKCJbPGMgYSBmIGU%2BKDIsNildIikuY29sb3IoIiM0NDg4ZmYiKQpjb25zdCBjYWZlMzggPSBub3RlKCJbPGMgYSBmIGU%2BKDMsOCldIikuY29sb3IoInJlZCIpCi8vY29uc3QgY2FmZTQ2ID0gbm90ZSgiWzxjIGEgZiBlPig0LDYpXSIpLmNvbG9yKCJ5ZWxsb3ciKQpjb25zdCBjYWZlNTggPSBub3RlKCJbPGMgYSBmIG
@StartAutomating
StartAutomating / rhapsody-in-blue.strudel
Created September 18, 2026 01:27
Gist Rhapsody in Blue in Strudel
setcpm(32)
// Track 1 (C:major)
$: note(`<
[- - - - - - - - - - - - - f3 g3 f3] [[g3,f3] - - g3 - f3 - g3 - - f3 - g3 - - f3 - g3 - f3 - g3 - f3 - g3 - - a3 - a#3 - c4 - d4 - d#4 - - f4 - g4 - a4 - - a#4 - c5 - d5 - d#5 - - f5 - g5 - - a5 - - -] [a#5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - g#5 - a#5 - g#5 - - - - f#5 - - - - g#5 - - - - f#5 - - - - g#5 - - - - - f#5 - - - -] [f5 d#5 d5 c#5 - d#5 e5 f5]
[- - - - - - - - d5 - - - - - - - a#4 - - c5 - a#4 - a4 - g#4 - - - - - - - - - - - - - - f#4 - - - - - - - f4 - - - - - - - f4 - - - - - - -] [a#3 - - - - - - - [g3,b3] - - - - - - - - - - - - - - c4 g#3 - - - - - - [a#3,d4] - - - - - - - - [g3,b3] - - - - - - - - - - - - - - c4 g#3 - - - - - - -] [[a#3,d4] - - - - - - - f4 - - - - - - g4 - g#4 g4 g#4 - - - f4 - - - - - - - g4 g#4 - g4 g#4 - - - f4 - - - - - - - g4 - g#4 g4 g#4 - - f4 - - - - - - - - -] [a#4 - - - - - - [c4,e4,c#4] - - - - - - - - - - - - - - - [c#4,f4] - - - - - - - [d#4,g4] - - - - - - - - [c4,e4] - - - - - - - - - -
@StartAutomating
StartAutomating / Notemoji.ps1
Created September 14, 2026 04:49
Gist get notes as notemoji
$notemoji = foreach ($note in $fromDecps) {
$fraction = @($note -split '@')[1] -as [double]
$timelessNote = $note -replace '@.+?$'
$timelessNote = $timelessNote -replace '\#', '♯'
switch ($fraction) {
(1/4) {
$timelessNote + " `u{1D15F}"
}
(1/2) {
$timelessNote + " `u{1D1E3}"
@StartAutomating
StartAutomating / Midi.ps1
Created September 14, 2026 04:45
Gist get midi
<#
.SYNOPSIS
Get Midi
.DESCRIPTION
Reads MIDI files
.NOTES
Adapted with care from JavaScript.
.LINK
https://github.com/carter-thaxton/midi-file/blob/master/lib/midi-parser.js
#>
@StartAutomating
StartAutomating / MidiToFrequency.ps1
Created September 14, 2026 03:46
Gist convert from midi note to frequency
<#
.SYNOPSIS
Converts Midi to a Frequency
.DESCRIPTION
Converts a Midi note value to an audio frequency
.LINK
https://en.wikipedia.org/wiki/MIDI_tuning_standard
#>
param(
# The midi note number
@StartAutomating
StartAutomating / wav.ps1
Created September 11, 2026 03:09
Gist make me a .wav
<#
.SYNOPSIS
`.wav` stream
.DESCRIPTION
Creates a `.wav` stream.
.LINK
https://en.wikipedia.org/wiki/WAV#WAV_file_header
#>
param(
# The number of channels
@StartAutomating
StartAutomating / SortClipboard.ps1
Created September 6, 2026 21:32
Gist sort the clipboard
@(@(Get-Clipboard) -split '(?>\r\n|\n)' | Sort-Object) -join [Environment]::NewLine | Set-Clipboard
@StartAutomating
StartAutomating / NoteFrequency.ps1
Created July 11, 2026 20:42
Gist tell me the musical note frequency
<#
.SYNOPSIS
The Note Frequencys
.DESCRIPTION
The frequencies for musical notes.
.NOTES
Adapted from the [Web Audio API Keyboard Synth](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Simple_synth)
.LINK
https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Simple_synth
#>
@StartAutomating
StartAutomating / all-form-input-types.html.ps1
Created May 26, 2026 23:50
Gist a PowerShell html form with all of the input types
<#
.SYNOPSIS
A form with all input types
.DESCRIPTION
A example of a `<form>` with all html `<input>` types at time of writing
.NOTES
This is mainly for copying, pasting, and testing.
Please customize your form.
.EXAMPLE
@StartAutomating
StartAutomating / Convert-Word.ps1
Last active April 28, 2026 21:34
Gist Convert Word Documents to Different Formats
function Convert-Word {
<#
.SYNOPSIS
Converts Word Documents
.DESCRIPTION
Converts Word Documents to a few formats:
* `docx`
* `doct`
* `html`