event macros

From: Will Riley <virtualfilmlot_at_gmail.com>
Date: Wed Dec 26 2018 - 18:19:31 CET
Hi,

Using the midishrc below, I fire up midish, run the perf1 macro, hit i -
all the mapping and routing works well, and everything records/plays back.
Life is pretty damn good.

I'd like to create some macros that send pc, and cc settings to all
instruments (system-wide defaults/presets basically) on-the-fly both in
performance (i) mode and record modes - is this possible?

If i enter
> oaddev {pc wsad 10}
oaddev: no current chan

Seems like that should work in context, but no - what's a better way to
approach this?
Midish is brilliant, btw/fwiw...
Many thanks

midishrc:

# AMT8 interface
# take over all ports for now
dnew 0 "24:0" rw
dnew 1 "24:1" rw
dnew 2 "24:2" rw
dnew 3 "24:3" rw
dnew 4 "24:4" rw
dnew 5 "24:5" rw
dnew 6 "24:6" rw
dnew 7 "24:7" rw

# set up i/o
inew vfx0 {0 0}
inew vfx1 {0 1}
inew vfx2 {0 2}
inew mobi {4 0}
inew imp {7 0}

onew vfxsyn {0 3}
onew wsad {1 0}
onew m1k1 {2 1}
onew m1k2 {3 1}
onew onull {4 0}
onew e4xt {5 0}
onew motm {6 0}

metrocf {non onull 60 100} {non onull 59 80}

tnew trk1

proc perf1 {
    fnew perf1
    fmap {any vfx0} {any vfxsyn}
    fmap {any vfx1} {any wsad}
    fmap {any vfx2} {any m1k1}
    fmap {any vfx2} {any m1k2}
    fmap {any imp} {any motm}
    fmap {any mobi} {any m1k1}
    fmap {any mobi} {any m1k1}
    # map Impulse faders 1-4 to instrument volume
    fmap {ctl imp 41} {ctl vfxsyn 7}
    fmap {ctl imp 42} {ctl wsad 7}
    fmap {ctl imp 43} {ctl m1k1 7}
    fmap {ctl imp 43} {ctl m1k2 7}
}
Received on Wed, 26 Dec 2018 09:19:31 -0800

This archive was generated by hypermail 2.1.8 : Thu Dec 27 2018 - 01:33:01 CET