Skip to content

Commit 124aae8

Browse files
committed
Added basic playground
1 parent b4b2801 commit 124aae8

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//: Simple Playground to test if STKAudioKit is working
2+
import AudioKit
3+
import STKAudioKit
4+
import Foundation
5+
6+
let shaker = Shaker()
7+
8+
let engine = AudioEngine()
9+
engine.output = shaker
10+
11+
try! engine.start()
12+
13+
while true {
14+
let type = ShakerType(rawValue: (0...22).randomElement()!)!
15+
print(type)
16+
shaker.trigger(type: type)
17+
sleep(1)
18+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<playground version='5.0' target-platform='macos' display-mode='rendered' buildActiveScheme='true' executeOnSourceChanges='true' importAppTypes='true'>
3+
<timeline fileName='timeline.xctimeline'/>
4+
</playground>

0 commit comments

Comments
 (0)