Phillip Trelford's blog articles

0
comment
on 6/13/2013 11:43 PM
Last night the F#unctional Londoners Meetup put on a Hands On Machine Learning session at Skills Matter in London. It was a really well attended event, so much so that we had to put a cap on the number of attendees when we reached 70 registrations. The material was recycled from a well received session by Mathias Brandewinder at the San Francisco Bay Area F# User Group in May. I find F# a very good fit for Machine Learning, in fact my first use of F# was for the player matchmaking on Halo 3. The goal of[...]
>> Read the full article
.
0
comment
on 6/12/2013 11:46 PM
This week I added a simple tremolo effect to my mini-keyboard project Monokeys. Tremolo is a trembling effect, and sometimes seen in Low Frequency Oscillators. I found an example of Coding some Tremolo and wrote the formula as an F# function: let tremolo freq depth i = (1.0 - depth) + depth * (sineWave freq i) ** 2.0 Then I added sliders for the frequency and depth to compose the shape of a sound: let tremolo i = tremolo tremoloFreq.Value tremoloD[...]
>> Read the full article
.
0
comment
on 6/11/2013 11:32 PM
There’s a fair amount of excitement with the recent announcements of the new XBox One and PS4 consoles with exciting new harder specs and TV features. There has never been a better time to own an PS3 or XBox 360. On the “old” consoles there’s a massive back catalogue of quality games to choose from, many at knock down prices or available pre-owned. If you want a console for TV the PS3 has a blu-ray player, an optional remote control and supports services like NetFlix and LoveFilm, it’s also quite quiet. If[...]
>> Read the full article
.
0
comment
on 6/7/2013 12:23 AM
After a while websites start to look the same: Af And most websites use the same server-side programming language: And the other programming languages look the same. PHP PHP supports classes these days: class Person { public $firstName; public $lastName; public function __construct($firstName, $lastName = '') { //Optional param $this->firstName = $firstName; $this->lastName = $lastName; } public function greet() { return "Hello, I’m " . $this->firstName . " " . $this->lastName . ".[...]
>> Read the full article
.
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[...]
>> Read the full article
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper