mapping arbitrary frequency to midi note using audiokit microtonality

24 Views Asked by At

I am trying to map midi notes (defined in one octave) to change the output of an example application (dunneaudiokit synth). Is there a way to change the mapping without getting into the guts of the application which plays midi notes? I saw one question about this but looking for an example. Given a frequency array of 12 notes how to remap all midi outputs to these frequencies and their octaves? Thanks

I've tried the following:

import Microtonality

class DunneSynthConductor: ObservableObject, HasAudioEngine {
   let engine = AudioEngine()
   var instrument = Synth()
    
// let midiTuning = TuningTableBase()
   TuningTableBase.setFrequency(690, at: 69)

which caused syntax errors.

0

There are 0 best solutions below