Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cemolcay/ausequencer
(WIP) MIDI Sequencer Audio Unit
https://github.com/cemolcay/ausequencer
ableton-link audio-unit audiobus audiokit auv3 midi midi-sequencer
Last synced: 6 days ago
JSON representation
(WIP) MIDI Sequencer Audio Unit
- Host: GitHub
- URL: https://github.com/cemolcay/ausequencer
- Owner: cemolcay
- Created: 2018-03-02T22:22:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-28T07:53:31.000Z (about 5 years ago)
- Last Synced: 2024-12-15T13:14:03.972Z (11 days ago)
- Topics: ableton-link, audio-unit, audiobus, audiokit, auv3, midi, midi-sequencer
- Language: Objective-C++
- Size: 43 KB
- Stars: 31
- Watchers: 9
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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).