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:
if trigger(gkPlay,0.5,0)==1 then
gkOnOff = 1
elseif trigger(gkStop,0.5,0)==1 then
gkOnOff = 0
aSig oscil gkOnOff/2*gkKickVol, 440
outs aSig, aSig
kActive = 1
kNonActive = 0
if gkOnOff==1 then
elseif gkOnOff==0 then
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 = 1
giBPM 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
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?