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.

AUM Mozaic: '1 active, all other standby' toggle for Audio Unit Extensions

edited April 2023 in General App Discussion

hi
For anyone so totally new in midi-world and Mozaic script-language as I am, maybe this a useful script. Mozaic is only used as a distribution station: getting input from a midi controller (Mac keyboard in my case) and sending output to AUM midi control.
I couldn't find this script anywhere, only for muting channels (which was the basis for my script) .
So after a lot of trial and error here come my lines ;)


    @OnLoad
        // my stand-by CC notes start at 60
        // my init AUM desk: channel strip with note 60 is active, all others in standby
        active = 0
        modeFlags = [ 1, 0, 0] // number of channel strips, add zero's for more strips  
    @End
    
    @OnMidiInput 
        // only switch when not active
        if modeFlags[ ( MIDIByte2 - 60 ) ] = 0
            modeFlags[ ( MIDIByte2 - 60 )] = 1
            SendMIDIThru
    
            // reset active
            SendMIDIOut MIDIByte1, ( 60+ active ), MIDIByte3
            modeFlags[ active ] = 0
            active = ( MIDIByte2 - 60 )
        endif
    @End

Comments

  • Hi @netty - nice job. 😎

    If you edit that post to put three "back ticks" ( ``` ) on a line all by themselves before and after the code, the forum won't mess with the formatting.

  • thanks!

  • wimwim
    edited April 2023

    That's strange. It didn't fix the code block like it should have. It should end up looking like this:

    @OnLoad
    // my stand-by CC notes start at 60
    active = 0
    numbChannels = 3 // number of channels 
    modeFlags = [ 1, 0, 0]
    @End
    
    @OnMidiInput 
    // only switch when not active
    if modeFlags[ ( MIDIByte2 - 60 ) ] = 0
    modeFlags[ ( MIDIByte2 - 60 )] = 1
    SendMIDIThru
    // reset active
    SendMIDIOut MIDIByte1, ( 60+ active ), MIDIByte3
    modeFlags[ active ] = 0
    active = ( MIDIByte2 - 60 )
    endif
    
  • code-style doesn't seem to work

  • I just typed the

    <

    pre> in the post... works

  • edited April 2023

    @netty said:
    I just typed the <pre><code> in the post... works

    This site uses Markdown, which is a bit simpler than HTML, though some HTML can leak through. Three backticks alone on a line before and after a code block is the easy way to disable formatting. Note that I enclosed your HTML in single backticks to make it visible.

  • that didn't work, so i typed the html
    don't know if it is Safari bug...

    @uncledave said:

    @netty said:
    I just typed the <pre><code> in the post... works

    This site uses Markdown, which is a bit simpler than HTML, though some HTML can leak through. Three backticks alone on a line before and after a code block is the easy way to disable formatting. Note that I enclosed your HTML in single backticks to make it visible.

  • @netty is it possible that you didn’t use backticks? The test below was entered on my iPhone in Safari on my iPhone.

    @onload
      Do some stuff
      Do some more stuff
    @End 
    
  • testing one two

  • is there a difference

    is there a difference

  • I copied the backticks from Wim when I first edited my post
    That didn't go well ;)

  • @netty said:
    I copied the backticks from Wim when I first edited my post
    That didn't go well ;)

    He would have escaped them to make them visible.

  • heshes
    edited April 2023

    @uncledave said:

    @netty said:
    I copied the backticks from Wim when I first edited my post
    That didn't go well ;)

    He would have escaped them to make them visible.

    Meaning, you don't want to copy the \ characters (called 'escape' characters) that precede each backtick when you copy the backticks in Wim's post.

  • but they where not escaped

    @hes said:

    @uncledave said:

    @netty said:
    I copied the backticks from Wim when I first edited my post
    That didn't go well ;)

    He would have escaped them to make them visible.

    Meaning, you don't want to copy the \ characters (called 'escape' characters) that precede each backtick when you copy the backticks in Wim's post.

  • wimwim
    edited April 2023

    If ida know'd what a thread hijack that would post would trigger I would have stayed out of it. Yeh, it wasn't the escape characters but something else I don't get. I looked into it as soon as it happened. Copying and pasting the exact same thing into another post didn't have the original problem. Go figure. Leave it to the AB forum to lose the original point of any discussion. 😂

    Anyhooooo. Nice script @netty. You might be able to benefit from learning about midi busses in AUM (see the help file). They can get around some of these channel issues. Your solution is perfect for what you're trying to do though.

  • edited April 2023

    thanks @wim for bringing it back to where we were ;)

    you know one thing that made it so complicated for me to get a grasp of midi in AUM is this:
    midi uses the term 'channel', a lot of AUM info uses 'channel' when talking about 'channel strips'
    so I got mixed up often not knowing which was meant...
    but in the end I learned a lot and got to what I wanted
    that I also had to use Sidecar to prepare for a live-setup was not a minor complicating factor ;)

Sign In or Register to comment.