I've built the libraries from source for macOS Xcode 10.2 but I can't get MIDI out to work. MIDI input seems fineAKAmplitudeEnvelope unexpected behaviour

Is there a general way of solving the Maxwell equations?

"Dear Stack Exchange, I am very disappointed in you" - How to construct a strong opening line in a letter?

Are there any rules around when something can be described as "based on a true story"?

Is Having my Players Control Two Parties a Good Idea?

How to tell a professor the answer to something he doesn't know?

Fill a bowl with alphabet soup

Print the sequence

My professor says my digit summing code is flawed. Is he right?

Does Windows 10 Fast Startup feature drain battery while laptop is turned off?

Did Feynman cite a fallacy about only circles having the same width in all directions as a reason for the Challenger disaster?

Is there a practical way of making democratic-like system skewed towards competence?

How does the Trump administration justify tariffs on luxury goods?

Shortest way to get an EOF Error

How did Ron get five hundred Chocolate Frog cards?

Why are Starfleet vessels designed with nacelles so far away from the hull?

How to handle shared mortgage payment if one person can't pay their share?

What can I do to avoid potential charges for bribery?

Calculate Mean and Standard Deviation, when given the confidence interval and sample size

Is data science mathematically interesting?

Is there an engine that finds the best "practical" move?

What is the meaning of "shop-wise" in "… and talk turned shop-wise"?

Giving a character trauma but not "diagnosing" her?

SSH from a shared workplace computer

Would removing the "total cover" part of a Paladin's Divine Sense unbalance the feature?



I've built the libraries from source for macOS Xcode 10.2 but I can't get MIDI out to work. MIDI input seems fine


AKAmplitudeEnvelope unexpected behaviour






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









1

















I'm learning the AudioKit framework and it was necessary to build the framework from source as the 4.2 binaries aren't compatible with the 5.0 compiler in Xcode 10.2. I have not been able to Get MIDI output working to either a physical device or using a virtual port to another app.



I can't get the examples MIDI output playground to work. I get no errors but also no MIDI output
I'm using the following:



import AudioKitPlaygrounds
import AudioKit

let midi = AudioKit.midi

midi.openOutput()

import AudioKitUI

class LiveView: AKLiveViewController, AKKeyboardDelegate

var keyboard: AKKeyboardView!

override func viewDidLoad()
addTitle("MIDI Output")

keyboard = AKKeyboardView(width: 440, height: 100)
keyboard.delegate = self
addView(keyboard)

addView(AKButton(title: "Go Polyphonic") button in
self.keyboard.polyphonicMode = !self.keyboard.polyphonicMode
if self.keyboard.polyphonicMode
button.title = "Go Monophonic"
else
button.title = "Go Polyphonic"

)


func noteOn(note: MIDINoteNumber)
midi.sendEvent(AKMIDIEvent(noteOn: note, velocity: 127, channel: 3))
AKLog("sending note (note)")


func noteOff(note: MIDINoteNumber)
midi.sendEvent(AKMIDIEvent(noteOff: note, velocity: 0, channel: 3))



import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true
PlaygroundPage.current.liveView = LiveView()









share|improve this question


























  • sorry for the poor formatting

    – STSchoen
    Mar 28 at 20:42

















1

















I'm learning the AudioKit framework and it was necessary to build the framework from source as the 4.2 binaries aren't compatible with the 5.0 compiler in Xcode 10.2. I have not been able to Get MIDI output working to either a physical device or using a virtual port to another app.



I can't get the examples MIDI output playground to work. I get no errors but also no MIDI output
I'm using the following:



import AudioKitPlaygrounds
import AudioKit

let midi = AudioKit.midi

midi.openOutput()

import AudioKitUI

class LiveView: AKLiveViewController, AKKeyboardDelegate

var keyboard: AKKeyboardView!

override func viewDidLoad()
addTitle("MIDI Output")

keyboard = AKKeyboardView(width: 440, height: 100)
keyboard.delegate = self
addView(keyboard)

addView(AKButton(title: "Go Polyphonic") button in
self.keyboard.polyphonicMode = !self.keyboard.polyphonicMode
if self.keyboard.polyphonicMode
button.title = "Go Monophonic"
else
button.title = "Go Polyphonic"

)


func noteOn(note: MIDINoteNumber)
midi.sendEvent(AKMIDIEvent(noteOn: note, velocity: 127, channel: 3))
AKLog("sending note (note)")


func noteOff(note: MIDINoteNumber)
midi.sendEvent(AKMIDIEvent(noteOff: note, velocity: 0, channel: 3))



import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true
PlaygroundPage.current.liveView = LiveView()









share|improve this question


























  • sorry for the poor formatting

    – STSchoen
    Mar 28 at 20:42













1












1








1








I'm learning the AudioKit framework and it was necessary to build the framework from source as the 4.2 binaries aren't compatible with the 5.0 compiler in Xcode 10.2. I have not been able to Get MIDI output working to either a physical device or using a virtual port to another app.



I can't get the examples MIDI output playground to work. I get no errors but also no MIDI output
I'm using the following:



import AudioKitPlaygrounds
import AudioKit

let midi = AudioKit.midi

midi.openOutput()

import AudioKitUI

class LiveView: AKLiveViewController, AKKeyboardDelegate

var keyboard: AKKeyboardView!

override func viewDidLoad()
addTitle("MIDI Output")

keyboard = AKKeyboardView(width: 440, height: 100)
keyboard.delegate = self
addView(keyboard)

addView(AKButton(title: "Go Polyphonic") button in
self.keyboard.polyphonicMode = !self.keyboard.polyphonicMode
if self.keyboard.polyphonicMode
button.title = "Go Monophonic"
else
button.title = "Go Polyphonic"

)


func noteOn(note: MIDINoteNumber)
midi.sendEvent(AKMIDIEvent(noteOn: note, velocity: 127, channel: 3))
AKLog("sending note (note)")


func noteOff(note: MIDINoteNumber)
midi.sendEvent(AKMIDIEvent(noteOff: note, velocity: 0, channel: 3))



import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true
PlaygroundPage.current.liveView = LiveView()









share|improve this question














I'm learning the AudioKit framework and it was necessary to build the framework from source as the 4.2 binaries aren't compatible with the 5.0 compiler in Xcode 10.2. I have not been able to Get MIDI output working to either a physical device or using a virtual port to another app.



I can't get the examples MIDI output playground to work. I get no errors but also no MIDI output
I'm using the following:



import AudioKitPlaygrounds
import AudioKit

let midi = AudioKit.midi

midi.openOutput()

import AudioKitUI

class LiveView: AKLiveViewController, AKKeyboardDelegate

var keyboard: AKKeyboardView!

override func viewDidLoad()
addTitle("MIDI Output")

keyboard = AKKeyboardView(width: 440, height: 100)
keyboard.delegate = self
addView(keyboard)

addView(AKButton(title: "Go Polyphonic") button in
self.keyboard.polyphonicMode = !self.keyboard.polyphonicMode
if self.keyboard.polyphonicMode
button.title = "Go Monophonic"
else
button.title = "Go Polyphonic"

)


func noteOn(note: MIDINoteNumber)
midi.sendEvent(AKMIDIEvent(noteOn: note, velocity: 127, channel: 3))
AKLog("sending note (note)")


func noteOff(note: MIDINoteNumber)
midi.sendEvent(AKMIDIEvent(noteOff: note, velocity: 0, channel: 3))



import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true
PlaygroundPage.current.liveView = LiveView()






audiokit






share|improve this question













share|improve this question











share|improve this question




share|improve this question



share|improve this question










asked Mar 28 at 20:40









STSchoenSTSchoen

162 bronze badges




162 bronze badges















  • sorry for the poor formatting

    – STSchoen
    Mar 28 at 20:42

















  • sorry for the poor formatting

    – STSchoen
    Mar 28 at 20:42
















sorry for the poor formatting

– STSchoen
Mar 28 at 20:42





sorry for the poor formatting

– STSchoen
Mar 28 at 20:42












1 Answer
1






active

oldest

votes


















1


















I figured it out. It turns out that AudioKit was actually sending on channel 4 instead of channel 3. Looks like the channel index is off by 1.

Per the developer MIDI channels are indexed from 0, not 1 so this is expected behavior






share|improve this answer



























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406516%2five-built-the-libraries-from-source-for-macos-xcode-10-2-but-i-cant-get-midi-o%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown


























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1


















    I figured it out. It turns out that AudioKit was actually sending on channel 4 instead of channel 3. Looks like the channel index is off by 1.

    Per the developer MIDI channels are indexed from 0, not 1 so this is expected behavior






    share|improve this answer






























      1


















      I figured it out. It turns out that AudioKit was actually sending on channel 4 instead of channel 3. Looks like the channel index is off by 1.

      Per the developer MIDI channels are indexed from 0, not 1 so this is expected behavior






      share|improve this answer




























        1














        1










        1









        I figured it out. It turns out that AudioKit was actually sending on channel 4 instead of channel 3. Looks like the channel index is off by 1.

        Per the developer MIDI channels are indexed from 0, not 1 so this is expected behavior






        share|improve this answer














        I figured it out. It turns out that AudioKit was actually sending on channel 4 instead of channel 3. Looks like the channel index is off by 1.

        Per the developer MIDI channels are indexed from 0, not 1 so this is expected behavior







        share|improve this answer













        share|improve this answer




        share|improve this answer



        share|improve this answer










        answered Mar 29 at 21:11









        STSchoenSTSchoen

        162 bronze badges




        162 bronze badges

































            draft saved

            draft discarded















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406516%2five-built-the-libraries-from-source-for-macos-xcode-10-2-but-i-cant-get-midi-o%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown









            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript