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

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현