Hello,
I am trying to understand how the reserved channels work when a patch is exported as a VST in Reaper.
Here is a simple instrument which aims at displaying the BPM off the host… but I don’t get anything.
Could someone explain me why , please?
Thank you for your help.
form caption(“Untitled”) size(400, 300), colour(58, 110, 182), pluginID(“def1”)
numberbox bounds(10, 80, 80, 60), channel(“Numbox”), text(“name”), textbox(120), range(0, 340, 120),identchannel(“NumR”)
; Initialize the global variables.
sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1
gkTempo init 120
instr 1
gkTempo chnget “HOST_BPM”
if changed(gkTempo)==1 then
SMessage sprintfk “text(”%d")",gkTempo
chnset SMessage,“NumR”
endif
endin
;causes Csound to run for about 7000 years…
;f0 z
i 1 0 3600