[Csnd] behavior of FLsavesnap etc.
| Date | 2011-08-04 01:32 |
| From | Dennis Raddle |
| Subject | [Csnd] behavior of FLsavesnap etc. |
I'm having trouble with the FLsetsnap, FLsavesnap, FLloadsnap, and
FLgetsnap opcodes. I tried to create several FL panels including one
with a "save" button and a "load" button. As follows:
; --- this is a panel with useful valuators--
FLpanel "High freq controls gbuzz", 450, 550
.. some valuators go here...
FLpanelEnd
; --- this is a panel with save/load buttons --
FLpanel "save/load"
i_insnum_load = 101
i_insnum_save = 100
gk_button2, giha2 FLbutton "Load", 0, 0, 1, 40, 40, 10, 60, 105,
i_insnum_load, 0, 1
gk_button1, giha1 FLbutton "Save", 0, 0, 1, 40, 40, 10, 10, 105,
i_insnum_save, 0, 1
FLpanelEnd
; Instrument that does "saving"
instr 100
inumsnap, inumval FLsetsnap 1
FLsavesnap "thingy.snp"
endin
; instrument that does "loading"
instr 101
FLloadsnap "thingy.snp"
inumsnap FLgetsnap 1
endin
The save button works fine, but the problem happens when I click the
"load" button. It appears to run the "save" instrument (i100) over and
over and never executes a load.
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-08-04 15:30 |
| From | Iain McCurdy |
| Subject | RE: [Csnd] behavior of FLsavesnap etc. |
|
Hi Dennis, If you change the button type from '1' to '11' it will work. Don't ask me why, these are the mysterious hand-shakes that must be observed... Iain > Date: Wed, 3 Aug 2011 17:32:13 -0700 > From: dennis.raddle@gmail.com > To: csound@lists.bath.ac.uk > Subject: [Csnd] behavior of FLsavesnap etc. > > I'm having trouble with the FLsetsnap, FLsavesnap, FLloadsnap, and > FLgetsnap opcodes. I tried to create several FL panels including one > with a "save" button and a "load" button. As follows: > > ; --- this is a panel with useful valuators-- > FLpanel "High freq controls gbuzz", 450, 550 > .. some valuators go here... > FLpanelEnd > > > ; --- this is a panel with save/load buttons -- > FLpanel "save/load" > i_insnum_load = 101 > i_insnum_save = 100 > gk_button2, giha2 FLbutton "Load", 0, 0, 1, 40, 40, 10, 60, 105, > i_insnum_load, 0, 1 > gk_button1, giha1 FLbutton "Save", 0, 0, 1, 40, 40, 10, 10, 105, > i_insnum_save, 0, 1 > FLpanelEnd > > ; Instrument that does "saving" > instr 100 > inumsnap, inumval FLsetsnap 1 > FLsavesnap "thingy.snp" > endin > > ; instrument that does "loading" > instr 101 > FLloadsnap "thingy.snp" > inumsnap FLgetsnap 1 > endin > > > The save button works fine, but the problem happens when I click the > "load" button. It appears to run the "save" instrument (i100) over and > over and never executes a load. > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > |