Miscellaneous Modules

Const LocVars Flags PlayFlag ResetOr MakeDirty WMouseBtn WorkNote UniqueNum


Const

Read Only Local Constant numeric or text Values, set with Property button.

This module has a user settable number of outputs. To change the number of outputs, click on the blue-label property button on the upper right of the module, and click on the "More" or "Fewer" button on the Outputs tab. You have the option to set custom labels and tool tips if you like.

Outputs:

Out N: Value of numeric or text constant, as set with Properties button.

Inputs: (none)


LocVars

Local numeric or text variables.

This module has a user settable number of input/output pairs. To change the number of variables, click on the blue-label property button on the upper right of the module, and click on the "More" or "Fewer" button on the Variables tab. You have the option to set custom labels and tool tips if you like.

Outputs:

Var N: Local variable.

Inputs:

Var N: Local Variable, can be numeric or text.


Flags

Duplicates the output section of the System Module, which are only directly available at the top page level. The Flags modules gives access to these values at the local macro level.

Outputs:

Reset - strobes True (1 for one loop cycle) upon Reset.

Load - strobes True (1) upon Load.

Main - this is a count of Main Loop ticks since the last reset.

Clock 1 - count of the Clock 1 loop ticks since the last reset.

Clock 2 - count of the Clock 2 loop ticks since the last reset

Tick - Tick count (timer interval) actually being used by the main loop timer.

MIDI - MIDI Real time input flags.

Refresh - strobes True (1) when the Toolbar Refresh button is pressed.

Record - True (1) while the Record button is in.

Play - True (1) while the Play button is in. This is typically used to enable MIDI output modules. Use it with a Not module to set the Hold state of modules such as Clocks.

Stop - True (1) while the Play button is NOT in; False (0) when it is in. Useful for the Hold input of Clock modules, etc.

Post - True (1) on last cycle before a patch file is saved. Use to set up initialization conditions for the next time the patch is loaded.

Snap - The current Snapshot number.


PlayFlag

Duplicates the System Module Play Flag output and gives the logical NOT of it, for a "Stop" flag.

Outputs:

Play - True (1) while the Play button is in. This is typically used to enable MIDI output modules. Use it with a Not module to set the Hold state of modules such as Clocks.

Stop - True (1) while the Play button is NOT in; False (0) when it is in. Useful for the Hold input of Clock modules, etc.

Refresh - strobes True (1) when the Toolbar Refresh button is pressed.


ResetOr

Duplicates the System Module Reset flag output and gives an OR input to accommodate other sources of reset. The OR function gives a True (1) output if any input is True, so it passes the system Reset and it also passes any reset strobe given at the input. Useful when you want an automatic System Reset of a module, plus you want a reset from other modules.

Output:

Out - True (1) for 1 cycle when the System Reset flag trips.

Input:

Or - Logically ORs with the System Reset flag and sent to the output.


MakeDirty

Force (or clear) the File Dirty flag causing a Save File dialog popup upon exit, loading another patch, etc. While the File Dirty flag is automatically set when editing modules, it is not set when changing Widget values, such as changing the value of a slider. This module gives the ability to set the dirty flag on any change.

Output:

Flag - Current Dirty flag state: NZ if marked dirty, 0 if marked clean.

Input:

Dirty - Any change to mark dirty, needing saving on exit, etc.

Clean - Any change to mark clean, so no save reminder on exit, etc.


WMouseBtn

Access the Mouse Button flag for most widgets.  Connect any output from widget module you want to monitor the mouse button to the Hand (handle) input; when the widget mouse button is depressed the Btn output goes True (1), and returns to False (0) when the mouse button is released.

Output:

Btn - True (1) while the Play button is in. This is typically used to enable MIDI output modules. Use it with a Not module to set the Hold state of modules such as Clocks.

Input:

Hand - Handle to identify the widget module to monitor; connect any output of the widget module to this input.


WorkNote

Pop up a text note in the workspace. This module has no inputs or outputs. Click on the property button on the right to pop up a mini text editor. Type or copy in whatever text you like and click on the OK button to dismiss the editor. To view hold the mouse over the module name at the top of the module; the note will display as a large tool tip. Note that the first line of the note automatically becomes the 1-line module help.

There is an option to change the module name from "WorkNote" to anything else, but doing so looses the place marker for module Help in the right click context menu.



UniqueNum

After Reset, returns consecutive unique number for each module in given group (0-99).

Outputs 

UNum: Unique number for each module instanced with given Group input (0-99).

Inputs

Group: Group number (0-99) for unique numbers.


ArtWonk is Copyright 2003-2014 by John Dunn and Algorithmic Arts. All Rights Reserved.