Skip to content

As AudioKit AKOperations can't trigger arbitrary code, I made 2 classes to solve the problem using AKSequencer.

Notifications You must be signed in to change notification settings

laurentVeliscek/SelectorClock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SelectorClock

As AudioKit AKOperations can't trigger arbitrary code, I made 2 classes to solve the problem using AKSequencer.

SelectorMidiInstrument.swift is a dummy AKMidiInstrument that trig functions each time it recaive a NoteOn

SelectorClock.swift instanciates a SelectorMidiInstrument slaved by a sequencer.

So you can very easily hook any function to be triggered at regular intervals.

I posted an example of ViewController that uses SelectorClock.

I tried to document my code so it should be very easy to tweak to fit your needs.

:-)

About

As AudioKit AKOperations can't trigger arbitrary code, I made 2 classes to solve the problem using AKSequencer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages