Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
![]() | Version 1.9 Build 1556 |
|
Package | synthesis | |
Module | componentmodels | |
Tool | componentlist |
The howmany argument indicates how many components to append to the list.
howmany | How many components to simulate | ||
Allowed: | A positive integer | ||
Default: | 1 | ||
log | Send a message to the logger | ||
Allowed: | Boolean | ||
Default: | T |
include 'componentlist.g' cl := emptycomponentlist(); cl.simulate(2) cl.edit(1); cl.setflux(2, [2.78, 0, 0, 0]); cl.rename('test.cl'); cl.close();This example creates a componentlist with two components. The component editor gui is then called on the first component to set the parameters to the desired ones, and the setflux function is used to modify the second one. The list is then saved on disk. I use short scripts like this a lot during testing.
I expect bad things will happen if you save the list to disk, using the close function, before having shut down the editor gui (using the done button) or if you modify the same component using any of the set functions while it is being modified by the gui.