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[...]
>> Read the full article on trelford.com
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us
Built with WebSharper