Git Product home page Git Product logo

ausequencer's Introduction

AUSequencer

An example project/playground for a custom Audio Unit MIDI Sequencer that you can edit the steps (including the step count and the MIDI events (note, pitch, cc) of each step) and work with both Audiobus MIDI and AKMIDI in Ableton Link sync. Also, a future base for MIDI sequencer AUv3 plugin.

Main idea is creating an AudioUnit within an AKNode and initialize Audiobus audio sender port with that audio unit. Also, we are going to need a pair of Audiobus MIDI sender and receiver ports as well.

In the render loop of the AU, we are going to calculate the beat by Ableton Link time calculation utils.

When we advance the next beat, we are going to pull the step data from sequencer (which we can edit while sequencer is playing) and send the MIDI data of the step with either CoreMIDI (AKMIDI) or Audiobus MIDI according to Audiobus' coreMIDISendingEnabled property which returns true when user sets up an Audiobus session with our app.

In that way, we could bring the AudioKit, Audiobus, Ableton Link and AUv3 concepts together and hopefully create a MIDI Sequencer more useful than AudioToolbox'es MusicPlayer/MusicSequencer/MusicTrack API's.

You are going to need AudioKit and Audiobus pods with a pod install as well as LinkKit of Ableton Link, which you are going to add manually due to the privacy of the SDK.

In this example, I'm going to implement an arpeggiator which works by either MIDI keyboard commands or sequencing the MIDI notes which basically automating the MIDI Keyboard commands.

Arpeggiator will be halfstep based. If it has 4 steps with values (0, +2, -1, +4), if you press C4 on MIDI keyboard than it will produce (C4 + 0 = C4, C4 + 2 = D4, C4 - 1 = B3 and C4 + 4 = E4). If you put two steps to the sequencer with C4 and D4 than it will produce (1st step = C4, D4, B3, E4, 2nd step = D4, E4, C#4, F#4).

ausequencer's People

Contributors

cemolcay avatar kant 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.