Latest 1.0.0
Homepage https://github.com/matthiasplappert/MPSoundEngine
License MIT
Platforms osx 10.7, requires ARC
Frameworks AudioToolbox
Authors

Version
Platform

MPSoundEngine allows you to very easily synthesise sounds for mono or stereo output on OS X.

Usage

MPSoundEngine is designed to be as easily usable as possible. There are two concrete subclasses,
MPMonoSoundEngine and MPStereoSoundEngine. You interact with them through MPSoundChannel objects.

This project also includes an example. To run the example project; clone the repo, and run pod install from the Example directory first.

Mono Sound

Here’s how to synthesise the musical note A as a mono signal.

MPMonoSoundEngine *engine = [[MPMonoSoundEngine alloc] init];
engine.channel.frequency = 440.0; // 440 Hz is the musical note A
[engine start];

Stereo Sound

Here’s how to synthesise the musical note A on the left channel and the musical note C on the right channel as a stereo signal.

MPStereoSoundEngine *engine = [[MPStereoSoundEngine alloc] init];
engine.leftChannel.frequency = 440.0; // 440 Hz is the musical note A
engine.rightChannel.frequency = 261.00; // 261 Hz is the musical note C
[engine start];

Installation

MPSoundEngine is available through CocoaPods, to install
it simply add the following line to your Podfile:

pod "MPSoundEngine"

Author

Matthias Plappert, [email protected]

Acknowledgments

This code is partly based on an example provided by Alex Chaffee on stackoverflow.

License

MPSoundEngine is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MPSoundEngine",
    "version": "1.0.0",
    "summary": "A simple engine for OS X that can synthesise sounds from a given frequency for mono or stereo output.",
    "homepage": "https://github.com/matthiasplappert/MPSoundEngine",
    "license": "MIT",
    "authors": {
        "Matthias Plappert": "[email protected]"
    },
    "source": {
        "git": "https://github.com/matthiasplappert/MPSoundEngine.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://twitter.com/mplappert",
    "platforms": {
        "osx": "10.7"
    },
    "requires_arc": true,
    "source_files": "Classes",
    "frameworks": "AudioToolbox"
}

Pin It on Pinterest

Share This