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;
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
add a comment
|
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
sorry for the poor formatting
– STSchoen
Mar 28 at 20:42
add a comment
|
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
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
audiokit
asked Mar 28 at 20:40
STSchoenSTSchoen
162 bronze badges
162 bronze badges
sorry for the poor formatting
– STSchoen
Mar 28 at 20:42
add a comment
|
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
add a comment
|
1 Answer
1
active
oldest
votes
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
add a comment
|
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment
|
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
add a comment
|
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
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
answered Mar 29 at 21:11
STSchoenSTSchoen
162 bronze badges
162 bronze badges
add a comment
|
add a comment
|
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
sorry for the poor formatting
– STSchoen
Mar 28 at 20:42