Skip to content

Commit 2014642

Browse files
committed
Updated playground
1 parent e29296f commit 2014642

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1+
//: A simple playground to test SoundpipeAudioKit makes sounds
12
import AudioKit
23
import SoundpipeAudioKit
34
import Foundation
45

5-
let osc = Oscillator(amplitude: 0.3)
6+
let osc = Oscillator(amplitude: 0.2)
67

78
let engine = AudioEngine()
89
engine.output = osc
9-
osc.play()
1010

1111
try! engine.start()
1212

1313
while true {
1414
osc.frequency = Float.random(in: 200...800)
15+
osc.play()
16+
sleep(1)
17+
osc.stop()
1518
sleep(1)
1619
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<playground version='5.0' target-platform='ios' buildActiveScheme='true' executeOnSourceChanges='true' importAppTypes='true'>
2+
<playground version='5.0' target-platform='macos' display-mode='rendered' buildActiveScheme='true' executeOnSourceChanges='true' importAppTypes='true'>
33
<timeline fileName='timeline.xctimeline'/>
44
</playground>

0 commit comments

Comments
 (0)