Loopy Pro: Create music, your way.

What is Loopy Pro?Loopy Pro is a powerful, flexible, and intuitive live looper, sampler, clip launcher and DAW for iPhone and iPad. At its core, it allows you to record and layer sounds in real-time to create complex musical arrangements. But it doesn’t stop there—Loopy Pro offers advanced tools to customize your workflow, build dynamic performance setups, and create a seamless connection between instruments, effects, and external gear.

Use it for live looping, sequencing, arranging, mixing, and much more. Whether you're a live performer, a producer, or just experimenting with sound, Loopy Pro helps you take control of your creative process.

Download on the App Store

Loopy Pro is your all-in-one musical toolkit. Try it for free today.

AudioKit - Playing MIDI - noteOn vs noteOff - notes cancel out chords

Hello.

I have a little problem with the MIDI out from AudioKit.
I made a UIButton that gives out the note "C" on a "Touch down" event and stopsgiving out the note on a "Touch Up Inside" event. So on noteOn the velocity goes up to 100 and and on noteOff the velocity goes to 0.

I did the same with a UIButton that gives out a C-chord (C-E-G).

The problem is that when I keep the C-CHORD button pressed and then I press the C-NOTE button and release it again, then the C-note stops playing for the chord also. So I added an E and G button and when I tap all three note buttons the chord completely disappears/stops. Which is not what I want. I want to be able to play both at the same time.

So I figured I should just use a different channel for the chords and notes. That didn't work. Same problem.
So I figured I will just use something like midiNotes=AKMIDI() and midiChords=AKMIDI(). That didn't work. Same problem.

Does anyone here know how to solve this?

Thanks so much in advance!

Comments

  • @analog_matt has got to know this one.

  • You can't have two notes on for the same note and voice. The first note-off will stop that note from sounding, as expected. How channels are mapped to voices is up to each receiver (synth).

    So, when sending note-off you could check to see if the note is currently playing due to another key/button being pressed, and if so skip sending the note-off. Personally I'd solve this with a reference counting array with one integer per midi note (0-127). Button press: do +1, button release: do -1. Send note-on when value goes from 0 to 1, send note off when value goes from 1 to 0.

  • edited December 2017

    Hi,
    For those who need support with the AudioKit framework, could you please do us a favor and post on Stack Overflow with the tag "AudioKit", instead of posting anything on this forum?

    There's a couple of very important reasons for this:

    • We do not want to overrun Michael Tyson's forum here with AK support. He is gracious enough to us already.
    • By having all the support in one place it helps other people and allows it to be more manageable

    Thank you very much,
    <3

  • Ah sorry about that. Won't happen again, I will point all questions towards SO in the future!

Sign In or Register to comment.