Cabbage Logo
Back to Cabbage Site

Is there anyway to build automatical a F-Gen Table with "File-Button"

Ok. This seems to be a very special question.
But I have following this Problem.
I need a F-Table F_Gen 23.
And I knew it can be generated by ftgen
But ftgen is Controll Type I.
And I have the name of the File to be read into.
This Name is a SFile Variable from a File-Button ( Cabbage ).
Ist there any solution to get that working

Thank you in advance

Mungo1981

Something like this? The key is to trigger a separate instrument to create the function table.
test.csd (604 Bytes)

Ok, that locks like I’m locking for.
So it is my Path to integrate your Code in my Script.
Thanks so far,:grin:

But a silly question you are a one man army. I will have thanks that you will support me so much. But if you the man who work alone for Cabbage :sunglasses:

Ok, Houston we are have a problem.
It might be that I’m too stupid, but.
In my Code it wouldn’t work too print with a “print”:innocent:

Can you post your code?

This is the part of my Code who wouldn’t run.
instr 3
endin

instr 2
gSFile1 chnget “DatGew”
prints gSFile1
if changed(gSFile1) == 1 then
event “i”, 3, 0, 1
endif
endin

Ok. I’m silly:
prints work only for i time
But what’s the right counterpart for k-Rate

Ok. It’s running with printks

Ok, but:

instr 3
printks gSFile1, 0.5
endin

instr 2
gSFile1 chnget “DatGew”
printks gSFile1, 0
if changed(gSFile1) == 1 then
event “i”, 3, 0, 1
endif
endin

will make that Cabbage can not run the code.

instr 3
printks gSFile1, 0.5 ; <= When i out comment this line the code run. With it it is nothing run
endin

instr 2
gSFile1 chnget “DatGew”
if changed(gSFile1) == 1 then
event “i”, 3, 0, 1
endif
endin

Ok. I’m not knowing what I have just done right. But now the Code is working.
I think i’m to silly. So I have to say sorry.
:innocent::smirk::blush: