Controlling multiple OSCtables with one slider control

10 views
Skip to first unread message

Erwin Engelsma

unread,
Nov 30, 2021, 3:24:31 PM11/30/21
to pyo-discuss
Hi all, I use the following program to send data to an Expert Sleepers ES 8 so I can draw modulation wave shapes to control VCO's and Filters. It works very nicely.
But it generates a frequency slider for each oscTable in the list. I would like to have ONE slider that controls ALL the OSC tables. How to do that?
(Imports not listed, also I added an ES-3 so 16 channels is possible via ASIO4ALL)

nbrOsc = 16
waveTables=[]
oscTables=[]
freqt = 0.5

s = Server(nchnls = 16, winhost = "ASIO4ALL") 
s.setInOutDevice(13)  # assumes 13 is the AIO outputdriver for Asio4ALL
s.boot()

for i in range(nbrOsc):
    waveTables.append(LinTable([(0,0), (3000,1),(8192,-0)]))
    waveTables[i].graph(yrange=(-1,1),title="{} {}".format("Amp: ", i))
    oscTables.append(Osc(waveTables[i], freq=freqt, mul=0.5))
    oscTables[i].ctrl([SLMap(min=0.01, max=500, scale="log", name="freq", init=freqt)])
    oscTables[i].out(chnl=i)
  
s.start()
s.gui(locals())
s.stop()
s.gui.stop()
s.gui.shutdown()
Reply all
Reply to author
Forward
0 new messages