From e581271ea0fa105b275f62b2aa9465f4dbdfc680 Mon Sep 17 00:00:00 2001 From: Ben Guo Date: Thu, 4 Jun 2015 19:02:55 -0400 Subject: [PATCH] update example --- .../ChaosHarmonizer/ViewController.swift | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Examples/ChaosHarmonizer/ChaosHarmonizer/ViewController.swift b/Examples/ChaosHarmonizer/ChaosHarmonizer/ViewController.swift index 260e4ea..da1f64e 100644 --- a/Examples/ChaosHarmonizer/ChaosHarmonizer/ViewController.swift +++ b/Examples/ChaosHarmonizer/ChaosHarmonizer/ViewController.swift @@ -15,16 +15,12 @@ class ViewController: NSViewController { if let first = messages.first { if first.on { let possibleChords = [ -// ChordQuality.Major, -// ChordQuality.Minor, -// ChordQuality.Sus2, -// ChordQuality.Sus4, -// ChordQuality.DominantSeventh, -// ChordQuality.DominantEleventhFlatNineFlatThirteen, -// ChordQuality.DominantEleventhFlatNineFlatThirteen, -// ChordQuality.DominantNinthSharpElevenFlatThirteen, -// ChordQuality.DominantThirteenthSharpEleven, - ] + ChordQuality.Heptads + ChordQuality.Major, + ChordQuality.Minor, + ChordQuality.Sus2, + ChordQuality.Sus4, + ] +// + ChordQuality.Pentads let index = arc4random_uniform(UInt32(possibleChords.count)) let quality = possibleChords[Int(index)] let intervals = quality.intervals