I have an instr set up that runs in Csound Android. I’ve designed a front end in the Android version of Cabbage, I’ve set up everything but now want to bring in the instr.
The current Cabbage instr I have temporarily uses a trigger to activate a simple osc and LED but I would like it to activate a score event. It appears I probably should use event_i in a seperate instr to trigger the one I want to add. So essentially I’m starting with this:
instr 1
gkKickVol chnget"KickVol"
gkPlay chnget"Play"
gkStop chnget"Stop"
if trigger(gkPlay,0.5,0)==1 then
gkOnOff = 1
elseif trigger(gkStop,0.5,0)==1 then
gkOnOff = 0
endif
aSig oscil gkOnOff/2*gkKickVol, 440
outs aSig, aSig
;Metronome LED
kActive = 1
kNonActive = 0
if gkOnOff==1 then
chnset kActive,“LED”
elseif gkOnOff==0 then
chnset kNonActive,“LED”
endif
endin
This works fine. Now I need to alter this so that the Play and Stop buttons activate triggers in another instrument. This is the instr currently in a seperate csd:
sr = 44100 ksmps = 32 nchnls = 2 0dbfs = 1giBPM init 0.01666667*92
giMeasure init 1/4
gaRvbSend init 0
instr Kick ; trigger Kick
ktrigger metro giBPMgiMeasurep4
schedkwhen ktrigger, 0, 0, 4, 0, 0.1, 0, p5
endin
Any suggestions as to how to link the Play/Stop buttons in the existing Cabbage instr to activate the Kick instr would be appreciated.
PS the above line for Kick should read giBPM times giMeasure etc. but for some odd reason I can not get it to show properly in this post. Is there a proper way to accomplish this? Will uploaded csd files show in this window?