Posts

Post not yet marked as solved
2 Replies
4.9k Views
Hi! I am trying to develop an application that uses Core MIDI to instantiate a connection to my Macbook via Audio MIDI Setup. I have created a client within my application and that shows up under the directory in Audio MIDI Setup on my macbook. Now I am stuck trying to figure out how to send MIDI from my app to my computer. I have tried MIDISend, and using CreateOutputPort. Both are successful in the sense that I don't get zeros when printing to the console, but nothing changes in the DAW when I set the controller and number values to the exact numbers I created in my app.I have a feeling that I am missing a network connection within my app somehow so that it recognizes my computer as a source, but I have not yet found an effective method to do this.Any information as to how I get midi to send from my app to my DAW on my computer would be greatly appreciated!I am trying to make this for my final project in one of my coding classes.Thanks!-GH
Posted Last updated
.
Post not yet marked as solved
4 Replies
1.3k Views
Hey Everyone!So I am having an issue where I put two sliders on my GUI in Swift and the second one ends up controlling itself, and the first one. However whenever I move the first slider it only effects itself and not the second one. Does anyone know why this is happening? I am using seperate variables for each action function but I still have this weird interference. Here is my code in the view controller:class ViewController: UIViewController { @IBOutlet weak var MidiSlider1: UISlider! @IBOutlet weak var MidiLabel: UILabel! @IBAction func MidiValueChange(_ MidiSlider1: UISlider) { let controllerChange = 0xB0; // hexadecimal equivalent of controller change, channel 0 let controllerNumber = 0x0A; // the assigned controller number for something like panning midi1.midiSend(status: controllerChange, controlID: controllerNumber, value: Int(MidiSlider1.value)); MidiLabel.text = "\(Int(MidiSlider1.value))" print(Int(MidiSlider1.value)); } @IBOutlet weak var MidiSlider2: UISlider! @IBOutlet weak var MidiLabel2: UILabel! @IBAction func MidiValueChange2(_ MidiSlider2: UISlider) { let controllerChange2 = 0xB0; let controllerNumber2 = 0x0B; midi1.midiSend(status: controllerChange2, controlID: controllerNumber2, value: Int(MidiSlider2.value)); MidiLabel2.text = "\(Int(MidiSlider2.value))" print(Int(MidiSlider2.value)); }}Thank you for taking the time to review this!- Greg
Posted Last updated
.