Re: Live setup question with Carla

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sep 25 2018, David Adler has written:
...
I'm using a mididings router for exactly that purpose.

It has 2 inputs and 8 outputs, all either Jack or Alsa,
depending on the backend selected.
...
Thanks David, this looks seems to fit the bill exactly!

Best wishes,

Jeanette

Run it with
$ mididings -f <filename>

with <filename> containing the following:


from mididings import *

# setup backend, names and ports

config(

  # select alsa backend, alsa or jack
  backend = 'alsa',

  # alsa/jack client name
  client_name = 'adingsroute',

  # two inputs, one to control scenes, one for the
  in_ports = ['data', 'ctl'],

  # 16 output ports
  out_ports = [
    'CH-1',
    'CH-2',
    'CH-3',
    'CH-4',
    'CH-5',
    'CH-6',
    'CH-7',
    'CH-8',
  ],
)


run(
  scenes = {
    32:  Scene('input -> CH-1',
      Port('CH-1')
    ),
    33:  Scene('input -> CH-2',
      Port('CH-2')
    ),
    34:  Scene('input -> CH-3',
      Port('CH-3')
    ),
    35:  Scene('input -> CH-4',
      Port('CH-4')
    ),
    36:  Scene('input -> CH-5',
      Port('CH-5')
    ),
    37:  Scene('input -> CH-6',
      Port('CH-6')
    ),
    38:  Scene('input -> CH-7',
      Port('CH-7')
    ),
    39:  Scene('input -> CH-8',
      Port('CH-8')
    ),
  },
  # ctl data: filter by port and stuff,
  # use number of EVENT_* for scene selection
control = PortFilter('ctl') >> CtrlFilter(31,32,33,34,35,36,37,38) >> CtrlValueFilter(0) >> SceneSwitch(EVENT_CTRL),

  # input data: filter by port
  pre = PortFilter('data'),
)
...

--
 * Website: http://juliencoder.de - for summer is a state of sound
 * SoundCloud: https://soundcloud.com/jeanette_c
 * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
 * GitHub: https://github.com/jeanette-c
 * Twitter: https://twitter.com/jeanette_c_s

Do you even know what I like
Just what I'm living for,
What I adore <3
(Britney Spears)
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
https://lists.linuxaudio.org/listinfo/linux-audio-user




[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux