Git Product home page Git Product logo

playgrounds's Introduction

AudioKit

Build Status License Platform Reviewed by Hound Twitter Follow

AudioKit is an audio synthesis, processing, and analysis platform for iOS, macOS (including Catalyst), and tvOS.

Installation

Using Xcode, you can add AudioKit and any of the other AudioKit libraries using Collections

  1. Select File -> Add Packages...
  2. Click the + icon on the bottom left of the Collections sidebar on the left.
  3. Choose Add Swift Package Collection from the pop-up menu.
  4. In the Add Package Collection dialog box, enter https://swiftpackageindex.com/AudioKit/collection.json as the URL and click the "Load" button.
  5. It will warn you that the collection is not signed, but it is fine, click "Add Unsigned Collection".
  6. Now you can add any of the AudioKit Swift Packages you need and read about what they do, right from within Xcode.

Documentation

Docs appear on the AudioKit.io Web Site. You can also generate the documentation in Xcode by pulling down the Product menu and choosing "Build Documentation".

Examples

The AudioKit Cookbook contains many recipes for simple uses for AudioKit components.

Getting help

  1. Post your problem to StackOverflow with the #AudioKit hashtag.

  2. Once you are sure the problem is not in your implementation, but in AudioKit itself, you can open a Github Issue.

  3. If you, your team or your company is using AudioKit, please consider sponsoring Aure on Github Sponsors.

playgrounds's People

Contributors

akivab avatar aure avatar megastep avatar ronyeh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

playgrounds's Issues

help AKMixer

Heey, i try to use AKMixer, in last version of AudioKit, and i follow steps to play my mix, but, i can`t play.
this is my code:

let a1 = try? AKAudioFile(readFileName: "x.mp3", baseDir: .resources)
let a2 = try? AKAudioFile(readFileName: "y.mp3", baseDir: .resources)
let a3 = try? AKAudioFile(readFileName: "z.mp3", baseDir: .resources)

let mixer = try? AKMixer([AKAudioPlayer(file: a1!), AKAudioPlayer(file: a2!), AKAudioPlayer(file: a3!)])

AudioKit.output = mixer

do {
     mixer?.volume = 1
     try AudioKit.start()            
}catch {
     print("Fail!")
}

the result of this code: no sound comes out and following log message:

2018-07-19 17:18:22.250612-0300 AKForever[306:14884] [DYMTLInitPlatform] platform initialization successful
AKAudioPlayer.swift:updatePCMBuffer():564:read 465408 frames into buffer
AKAudioPlayer.swift:updatePCMBuffer():564:read 403200 frames into buffer
AKAudioPlayer.swift:updatePCMBuffer():564:read 446976 frames into buffer

Doesn't build on xcode 10.2 due to various path issues

On Mojave
Fresh install of XCode

Showing Recent Messages
👎 ~~~~~/Xcode/Playgrounds-master/Xcode/Pods/Target Support Files/Pods-AudioKitPlaygrounds/Pods-AudioKitPlaygrounds.debug.xcconfig: unable to open file (in target "AudioKitPlaygrounds" in project "AudioKitPlaygrounds") (in target 'AudioKitPlaygrounds')

Could not build Objective-C module 'AudioKitPlaygrounds'

macOS Version(s) Used to Build

macOS 11 Big Sur

Xcode Version(s)

Xcode 13.2.1

Description

I am trying to run AudioKitPlaygrounds. Building an running the Hello World sample I get the following error messages:

Screen Shot 2023-03-25 at 23 12 02

Thanks for any help.

Crash Logs, Screenshots or Other Attachments (if applicable)

No response

Can't build Playgrounds in Xcode 11.5 with Swift 5.2.4

I get the following error:

Module compiled with Swift 5.0 cannot be imported by the Swift 5.2.4 compiler: /Users/alexgawley/Documents/code/iOS/AudioKit/Playgrounds/Xcode/Pods/AudioKit/macOS/AudioKitUI.framework/Modules/AudioKitUI.swiftmodule/x86_64.swiftmodule

Use of unimplemented initializer 'init(property:value:range:taper:format:frame:callback:)' for class 'AudioKitUI.AKSlider'

AkSliders in Playgrounds give this error. Which init method shoud I use?
Fatal error: Use of unimplemented initializer 'init(property:value:range:taper:format:frame:callback:)' for class 'AudioKitUI.AKSlider'

For example, this init is called in Playground.

AKSlider(property: "Modulating Multiplier",
                 value: fmBank.modulatingMultiplier,
                 range: 0 ... 2
) { multiplier in
    fmBank.modulatingMultiplier = multiplier
}

Xcode and Pod versions:
Xcode 12.2

  • AudioKit (4.11.2):
    • AudioKit/Core (= 4.11.2)
    • AudioKit/UI (= 4.11.2)
  • AudioKit/Core (4.11.2)
  • AudioKit/UI (4.11.2):
    • AudioKit/Core

Production Panning method in customised View

Here I am trying to display panning parameters inside my customised view with slider. I could run your code for,

addView(AKSlider(property: "Speed", value: effect.speed, range: 0.1 ... 25) { sliderValue in
                         effect.speed = sliderValue
                   })

But I need to run this inside my custom view and slider. How could I do this?

Sporth example doesn't run

error: Sporth Based Generator.xcplaygroundpage:75:88: error: 'characters' is unavailable: Please use String directly
length: line.characters.count),
^~~~~~~~~~

error: Sporth Based Generator.xcplaygroundpage:88:101: error: 'characters' is unavailable: Please use String directly
length: line.characters.count),
^~~~~~~~~~

error: Sporth Based Generator.xcplaygroundpage:93:88: error: 'characters' is unavailable: Please use String directly
length: line.characters.count),
^~~~~~~~~~

error: Sporth Based Generator.xcplaygroundpage:75:88: error: 'characters' is unavailable: Please use String directly
length: line.characters.count),
^~~~~~~~~~

error: Sporth Based Generator.xcplaygroundpage:88:101: error: 'characters' is unavailable: Please use String directly
length: line.characters.count),
^~~~~~~~~~

error: Sporth Based Generator.xcplaygroundpage:93:88: error: 'characters' is unavailable: Please use String directly
length: line.characters.count),

Unable to build AudioKitPlaygrounds in Xcode 14 on M2 mac

macOS Version(s) Used to Build

macOS 13 Ventura

Xcode Version(s)

Xcode 14

Description

Sorry if this is something obvious but i'm struggling to get playgrounds to build.

I downloaded the latest version of the playgrounds zip from the git repo.

Did pod install (it installed audiokit 4.11.2)

Opened workspace and pressed build.

Received this build error

Screenshot 2023-03-07 at 12 22 21

I changed the deployment target to 12.0, and then got these AKPlaygroundUgens issues.

Screenshot 2023-03-07 at 12 51 08

Any help would be really appreciated, thanks

Crash Logs, Screenshots or Other Attachments (if applicable)

No response

M1 Mac: No such module 'AudioKitPlaygrounds'

CleanShot 2021-05-27 at 13 28 33@2x

So I must to doing something simple wrong, but in the above you can see I've got it building (build succeeded message in the header there) but I still see the prebuild error No such module 'AudioKitPlaygrounds'

I had to switch it to "Rosetta" to get the build to succeed. I'm on an M1 MacBook Air.

"Unable to open file" error.

I'm unable to build the playground on Xcode 12.0.1. I get this error message :

"{home"/Documents/code/Playgrounds/Xcode/Pods/Target Support Files/Pods-AudioKitPlaygrounds/Pods-AudioKitPlaygrounds.debug.xcconfig: unable to open file (in target "AudioKitPlaygrounds" in project "AudioKitPlaygrounds")"

Any ideas?

Drawbar Organ is buggy

The drawbar playground is misleadingly simplistic. The AKOscillatorBank stop-note signals for the drawbars collide with those of additionally-played notes. I figured this out the hard way when trying to adapt the example to use with a MIDI controller. Hold key X, then press and release key Y, and all of the overlapping notes of key X turn off.

(I've been trying to construct a workable alternative, but I'm fairly new to AudioKit and haven't mastered the finer points yet. I suspect I need to get a better handle on AKOperation?)

Got problem to run in XCcode 11

The error message is something like:

expression failed to parse, fixed expression suggested:
#sourceLocation(file: "Introduction and Hello World.xcplaygroundpage", line: 1)

book format too old

I get an error when trying to open the playground book in the latest Playgrounds app.
IMG_0097

More information around .playgroundbook limitations

This isn't a technical issue with AudioKit or this .playgroundbook themselves–it's more about clarifying some beginner questions I have 😃.

Well, I've just started playing with AudioKit's APIs–and I'm lovin' them all–aiming to implement a .playgroundbook project which consists of allowing readers to design and visualize–e.g. through { sine, square, sawtooth }waves form plots– musical algorithms making use of audio streams generated with math functions–e.g. the following code:

func sineWave(t: Double) -> Double {
    
    func sin(α: Double) -> Double {
        return Foundation.sin(2.0 * M_PI * t * α)
    }
    
    return sin(α: 440.0)

}

where the second returned function gets run 44000 times per second and returns a Double between -1 and 1 which represents the wave amplitude.

After reading the APIs–and observing a few regular playgrounds of yours–I noticed I should use a few classes–mainly responsible for oscillators–e.g.:

  • AKOscillator
  • AKOutputWaveformPlot

Just like you did in awesome exemples here:

captura de tela 2017-03-23 as 00 15 38

But, what you said here scared me a bit:

[...] *It is not a complete copy of AudioKit's functionality and only contains a fraction of the playgrounds available from within Xcode. There are no synthesis or analysis playgrounds [...]

My point is: is there any known issues related to using the APIs used here in .playgroundbooks? Would AKOscillator, AKPlaygroundView, AKOutputWaveformPlot–and others–be suitable in such special kind of playground? Have you tried anything like this before? Any suggestions?

Also, I'm kinda a newbie with Playground (Book)s as well 😭

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.