Monokeys
0
comment
on 6/2/2013 8:15 AM
Press a key to hear a note: GAFBB should sound familiar to fans of 70s sci-fi. I wanted to programmatically generate sound effects for a retro game I’m working on. Generating wave files using F# turned out to be less than 30 lines of code: open System.IO /// Write WAVE PCM soundfile (8KHz Mono 8-bit) let write stream (data:byte[]) = use writer = new BinaryWriter(stream) // RIFF writer.Write("RIFF"B) let size = 36 + data.Length in write[...]
.
IntelliFactory Offices Copyright (c) 2024 IntelliFactory. All rights reserved.
| | | Trainings | | |
Built with