Audiobus: Use your music apps together.

What is Audiobus?Audiobus is an award-winning music app for iPhone and iPad which lets you use your other music apps together. Chain effects on your favourite synth, run the output of apps or Audio Units into an app like GarageBand or Loopy, or select a different audio interface output for each app. Route MIDI between apps — drive a synth from a MIDI sequencer, or add an arpeggiator to your MIDI keyboard — or sync with your external MIDI gear. And control your entire setup from a MIDI controller.

Download on the App Store

Audiobus is the app that makes the rest of your setup better.

touch gui element "fader" movement up/down detection?

hi coders, how to do this properly?
pseudocode:

fader(){
pv = get parameter value
v = get value from touch fader movement
if v > last_v
pv = pv + 1
else
pv = pv - 1
}

thanks:)

Comments

  • edited July 2022

    The naive math would be:

    pv = pv + (v - last_v)

    But that will give you a cumulative error.

    Better would be:

    • when fader is first touched:

      • initial_v = v
      • initial_pv = pv
    • on movement:

      • pv = initial_pv + (v - initial_v)

    (assuming v is the current fader position)

  • exactly what i wanted!:)
    thank you very much @SevenSystems

Sign In or Register to comment.