- Edited
giuliomoroRunning multiple MIDI devices is not a top priority, but it would be nice to connect a hub to the bela and just use any of the controllers that one has connected.
The strange thing now, is that realtime audio in does not work with the latest bela2 (it could be connected perhaps?)
- and so, this might not be portMIDI related.
in the examples, the audio loopback still works, but none of my 50+ audio examples work any longer
- and the console does not report any issues.
As a test example, you could just use the previous example with the 'ins' opcode
- this works on the laptop and this worked previously
I tried forcing the comandline with a -iadc and -odac and --realtime and --daemon, but this made no difference.
<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 16
nchnls = 2
0dbfs = 1
instr 1 ; Stereo delay with normal and cross-feedback
ilevl = p4 ; Output level
idelay1 = p5/1000 ; L delay in ms
idelay2 = p6/1000 ; R delay in ms
ifdbk1 = p7 ; L feedback
ifdbk2 = p8 ; R feedback
ifdbkx = p9 ; X Feedback
ifreq1 = p10 ; L cutoff
ifreq2 = p11 ; R cutoff
imix = p12 ; Mix: 0=Dry 1=Delay
afdbk1 init 0
afdbk2 init 0
ainL, ainR ins
ain = ainL+ainR
;ain soundin "sp_hellorcb.aif" ; Does NOT work on Bela
;ain diskin "sp_hellorcb.aif", 1 ; WORKS on Bela
ain1 = ain + afdbk1*ifdbk1 + afdbk2*ifdbkx
ain2 = ain + afdbk2*ifdbk2 + afdbk1*ifdbkx
adelay1 delay ain1, idelay1
adelay2 delay ain2, idelay2
adelay1 butterlp adelay1, ifreq1
adelay2 butterlp adelay2, ifreq2
afdbk1 = adelay1
afdbk2 = adelay2
aout1 = adelay1*imix + ain*(1 - imix)
aout2 = adelay2*imix + ain*(1 - imix)
outs1 aout1*ilevl
outs2 aout2*ilevl
endin
</CsInstruments>
<CsScore>
;Delay in ms, Filt in Hz. Total feedback should be <1?
; Strt Leng Levl DelyL DelyR FeedL FeedR XFeed FiltL FiltR Mix
i1 0.00 10.00 1.00 500 400 0.40 0.40 0.40 2500 2500 0.50
e
</CsScore>
</CsoundSynthesizer>