Programmer Guide/Macro Library/Kernal/StdLib: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 3: Line 3:
*'''Title''': {{STX}} main library
*'''Title''': {{STX}} main library
----
----
;Content:
:{|class="keinrahmen"
:{|class="keinrahmen"
|'''application management:'''
||'''application management''' || →
|[[#AppLoad|AppLoad]] ||—
|[[#AppLoad|AppLoad]] — [[#AppMain|AppMain]] · [[#AppCleanup|AppCleanup]] · [[#AppHelp|AppHelp]]
|[[#AppMain|AppMain]] ||—
|[[#AppCleanup|AppCleanup]] ||—
|[[#AppHelp|AppHelp]]
|-
|-
|—
|—
|-
|-
|'''message handling:'''
|'''message handling''' ||→
|[[#PostMessage|PostMessage]] ||—
|[[#PostMessage|PostMessage]] · [[#SetMsgHandler|SetMsgHandler]] · [[#DispatchMsg|DispatchMsg]] · [[#MsgQueue|MsgQueue]] · [[#MsgFilter|MsgFilter]] · [[#GetMessage|GetMessage]]
|[[#SetMsgHandler|SetMsgHandler]] ||—
|[[#DispatchMsg|DispatchMsg]] ||—
|[[#MsgQueue|MsgQueue]]
|-
|
|[[#MsgFilter|MsgFilter]] ||—
|[[#GetMessage|GetMessage]]
|-
|-
|—
|—
|-
|-
|'''utilities for standard {{STX}} applications:'''
|'''utilities for standard<BR>{{STX}} applications''' ||&rarr;
|[[#ExtSetup|ExtSetup]] ||&mdash;
|[[#ExtSetup|ExtSetup]] &middot; [[#PlayCursor|PlayCursor]] &middot; [[#GenerateScaleParams|GenerateScaleParams]] &middot; [[#MetaSegment|MetaSegment]]
|[[#PlayCursor|PlayCursor]] ||&mdash;
|[[#GenerateScaleParams|GenerateScaleParams]] ||&mdash;
|[[#MetaSegment|MetaSegment]]
|-
|-
|&mdash;
|&mdash;
|-
|-
|'''file functions:'''
|'''file functions''' ||&rarr;
|[[#stxFileTypeList|stxFileTypeList]] ||&mdash;
|[[#stxFileTypeList|stxFileTypeList]] &middot; [[#stxFileType|stxFileType]] &middot; [[#SectionFile|SectionFile]] &middot; [[/StdLib#FileToolBox|FileToolBox]]
|[[#stxFileType|stxFileType]] ||&mdash;
|[[#SectionFile|SectionFile]] ||&mdash;
|[[#FileToolBox|FileToolBox]]
|-
|-
|&mdash;
|&mdash;
|-
|-
|'''display functions:'''
|'''display functions''' ||&rarr;
|[[#LogWindow|LogWindow]] ||&mdash;
|[[#LogWindow|LogWindow]] &middot; [[#ConLog|ConLog]] &middot; [[#UM and EM|UM and EM]] &middot; [[#ShowItem|ShowItem]]
|[[#ConLog|ConLog]] ||&mdash;
|[[#UM and EM|UM and EM]] ||&mdash;
|[[#ShowItem|ShowItem]]
|-
|-
|&mdash;
|&mdash;
|-
|-
|'''dialog and window functions:'''
|'''dialog and window functions''' ||&rarr;
|[[#CreateMenu|CreateMenu]] ||&mdash;
|[[#CreateMenu|CreateMenu]] &middot; [[#DoModalDialog|DoModalDialog]] &middot; [[#SetModalWindow|SetModalWindow]] &middot; [[#GetWindowPos|GetWindowPos]] &middot; [[#SetWindowPos|SetWindowPos]] &middot; [[#WindowSizeDlg|WindowSizeDlg]] &middot; [[#GetMonitor|GetMonitor]] &middot; [[#GetDesktop|GetDesktop]] &middot; [[#ProgressBox|ProgressBox]] &middot; [[#InitDialogItem|InitDialogItem]] &middot; [[#SetControlMode|SetControlMode]]
|[[#DoModalDialog|DoModalDialog]] ||&mdash
|[[#SetModalWindow|SetModalWindow]] ||&mdash;
|[[#GetWindowPos|GetWindowPos]]
|-
|
|[[#SetWindowPos|SetWindowPos]] ||&mdash;
|[[#WindowSizeDlg|WindowSizeDlg]] ||&mdash;
|[[#GetMonitor|GetMonitor]] ||&mdash;
|[[#GetDesktop|GetDesktop]]
|-
|
|[[#ProgressBox|ProgressBox]] ||&mdash;
|[[#InitDialogItem|InitDialogItem]] ||&mdash;
|[[#SetControlMode|SetControlMode]]
|-
|-
|&mdash;
|&mdash;
|-
|-
|'''[[Programmer_Guide/Shell_Items/SPU|SPU]] and [[Programmer_Guide/Shell_Items/Graph|graph]] functions:'''
|'''[[Programmer_Guide/Shell_Items/SPU|SPU]] and [[Programmer_Guide/Shell_Items/Graph|graph]] functions''' ||&rarr;
|[[#SetGraphXScale|SetGraphXScale]] ||&mdash;
|[[#SetGraphXScale|SetGraphXScale]] &middot; [[#GetOutputValue|GetOutputValue]]
|[[#GetOutputValue|GetOutputValue]]
|-
|-
|&mdash;
|&mdash;
|-
|-
|'''[[Programmer_Guide/Shell_Items/SPU|SPUs]]:'''
|'''[[Programmer_Guide/Shell_Items/SPU|SPUs]]''' ||&rarr;
|[[#XScaleLinear|XScaleLinear]] ||&mdash;
|[[#XScaleLinear|XScaleLinear]] &middot; [[#XScaleBark|XScaleBark]] &middot; [[#Table2Output|Table2Output]] &middot; [[#Wave2output|Wave2output]]
|[[#XScaleBark|XScaleBark]] ||&mdash;
|[[#Table2Output|Table2Output]] ||&mdash;
|[[#Wave2output|Wave2output]]
|}
|}
;Variables and items used by this library:
;Variables and items used by this library:

Revision as of 12:45, 12 May 2011

  • File: STDLIB.STX, linked to library STX.LIB
  • Title: STx main library

application management → AppLoad — AppMain · AppCleanup · AppHelp
—
message handling → PostMessage · SetMsgHandler · DispatchMsg · MsgQueue · MsgFilter · GetMessage
—
utilities for standard
STx applications
→ ExtSetup · PlayCursor · GenerateScaleParams · MetaSegment
—
file functions → stxFileTypeList · stxFileType · SectionFile · FileToolBox
—
display functions → LogWindow · ConLog · UM and EM · ShowItem
—
dialog and window functions → CreateMenu · DoModalDialog · SetModalWindow · GetWindowPos · SetWindowPos · WindowSizeDlg · GetMonitor · GetDesktop · ProgressBox · InitDialogItem · SetControlMode
—
SPU and graph functions → SetGraphXScale · GetOutputValue
—
SPUs → XScaleLinear · XScaleBark · Table2Output · Wave2output
Variables and items used by this library
name type description

NewDialog

BSF NEWDIALOG [ srate [ ; nch ; code ]

Dialog to create a new soundfile.
argument description default
srate Sampling rate in Hz last dialog value
nch Number of channels. last dialog value
code Signal sample size (number of bits) and code. last dialog value
RESULT description
path The full pathname of the created soundfile.
empty string If the dialog was canceled or the creation fails.
Notes
  • This function uses a two step dialog. In the first the soundfile name is selected. The second is used to select the soundfile parameters.
  • The new soundfile is always the created using the Windows WAVE format.
  • On return, the soundfile is created but not opened.
See also

Navigation menu

Personal tools