File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Playgrounds/Hello World.playground Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1+ //: A simple playground to test SoundpipeAudioKit makes sounds
12import AudioKit
23import SoundpipeAudioKit
34import Foundation
45
5- let osc = Oscillator ( amplitude: 0.3 )
6+ let osc = Oscillator ( amplitude: 0.2 )
67
78let engine = AudioEngine ( )
89engine. output = osc
9- osc. play ( )
1010
1111try ! engine. start ( )
1212
1313while true {
1414 osc. frequency = Float . random ( in: 200 ... 800 )
15+ osc. play ( )
16+ sleep ( 1 )
17+ osc. stop ( )
1518 sleep ( 1 )
1619}
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments