This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $bit38 = [uri]"https://strudel.cc/#c2V0Y3BtKDEyOC8yKQokbjE6IG5vdGUoYAo8Z0AwLjUgZ0AwLjUgZyBmIGUgZz4oMyw4KQpgKS5zb3VuZCgic2luZSIpLmNvbG9yKCJ5ZWxsb3cgZ29sZGVucm9kIikuX3BpYW5vcm9sbCgpLl9zY29wZSgpCiRuMV8yOiBub3RlKGA8CjxnQDAuNSBnQDAuNSBnIGYgZSBnPigzLDgpCj5gKS5zb3VuZCgic2luZSIpLmNvbG9yKCJyZWQgb3JhbmdlIikuanV4KHJldikuX3BpYW5vcm9sbCgpLl9zY29wZSgpCgokbjI6IG5vdGUoYDwKPGFAMC41IGFAMC41IGEgYyBiIGE%2BKDMsOCkKPmApLnNvdW5kKCJzaW5lIHRyaSIpLmNvbG9yKCJncmVlbiBsaW1lIikucGhhc2VyKDEpLl9waWFub3JvbGwoKS5fc2NvcGUoKQoKJG4zOiBub3RlKGA8CjxhQDAuNSBhQDAuNSBhIGMgYiBhPigzLDgpCj5gKS5zb3VuZCgic2luZSB0cmkiKS5jb2xvcigiYmx1ZSBjeWFuIikuanV4KHJldikuX3BpYW5vcm9sbCgpLl9zY29wZSgpCgoK" | |
| $bitBouncy = [uri]"https://strudel.cc/#c2V0Y3BtKDEyOC8yKQoKCi8qCiAgQHRpdGxlIEJpdCBCb3VuY3kKICBAYnkgCiovCgpjb25zdCBjYWZlMjYgPSBub3RlKCJbPGMgYSBmIGU%2BKDIsNildIikuY29sb3IoIiM0NDg4ZmYiKQpjb25zdCBjYWZlMzggPSBub3RlKCJbPGMgYSBmIGU%2BKDMsOCldIikuY29sb3IoInJlZCIpCi8vY29uc3QgY2FmZTQ2ID0gbm90ZSgiWzxjIGEgZiBlPig0LDYpXSIpLmNvbG9yKCJ5ZWxsb3ciKQpjb25zdCBjYWZlNTggPSBub3RlKCJbPGMgYSBmIG |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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] - - - - - - - - - - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $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}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .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 | |
| #> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| `.wav` stream | |
| .DESCRIPTION | |
| Creates a `.wav` stream. | |
| .LINK | |
| https://en.wikipedia.org/wiki/WAV#WAV_file_header | |
| #> | |
| param( | |
| # The number of channels |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @(@(Get-Clipboard) -split '(?>\r\n|\n)' | Sort-Object) -join [Environment]::NewLine | Set-Clipboard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .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 | |
| #> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Convert-Word { | |
| <# | |
| .SYNOPSIS | |
| Converts Word Documents | |
| .DESCRIPTION | |
| Converts Word Documents to a few formats: | |
| * `docx` | |
| * `doct` | |
| * `html` |
NewerOlder