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

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 16: Line 16:
|[[#SetMsgHandler|SetMsgHandler]] ||—
|[[#SetMsgHandler|SetMsgHandler]] ||—
|[[#DispatchMsg|DispatchMsg]] ||—
|[[#DispatchMsg|DispatchMsg]] ||—
|[[#MsgQueue|MsgQueue]] ||—
|[[#MsgQueue|MsgQueue]]
|-
|-
|[[#MsgFilter|MsgFilter]] ||—
|[[#MsgFilter|MsgFilter]] ||—
|[[#GetMessage|GetMessage]] ||—
|[[#GetMessage|GetMessage]]
|-
|-
|-
|-
|'''utilities for standard applications:'''
|'''utilities for standard {{STX}} applications:'''
|[[#ExtSetup|ExtSetup]] ||—
|[[#ExtSetup|ExtSetup]] ||—
|[[#PlayCursor|PlayCursor]] ||—
|[[#PlayCursor|PlayCursor]] ||—
|[[#GenerateScaleParams|GenerateScaleParams]] ||—
|[[#GenerateScaleParams|GenerateScaleParams]] ||—
|[[#MetaSegment|MetaSegment]] ||—
|[[#MetaSegment|MetaSegment]]
|-
|-
|-
|'''file functions:'''
|'''file functions:'''
|[[#stxFileTypeList|stxFileTypeList]] ||—
|[[#stxFileTypeList|stxFileTypeList]] ||—
|[[#stxFileType|stxFileType]] ||—
|[[#stxFileType|stxFileType]] ||—
|[[#SectionFile|SectionFile]] ||&mdash
|[[#SectionFile|SectionFile]] ||—
|[[#FileToolBox|FileToolBox]] ||&mdash
|[[#FileToolBox|FileToolBox]]
|-
|-
|-
|'''display functions:'''
|'''display functions:'''
|[[#LogWindow|LogWindow]] ||—
|[[#LogWindow|LogWindow]] ||—
|[[#ConLog|ConLog]] ||—
|[[#ConLog|ConLog]] ||—
|[[#UM and EM|UM and EM]] ||&mdash
|[[#UM and EM|UM and EM]] ||—
|[[#ShowItem|ShowItem]] ||&mdash
|[[#ShowItem|ShowItem]]
|-
|-
|-
|'''dialog and window functions:'''
|'''dialog and window functions:'''
Line 43: Line 48:
|[[#DoModalDialog|DoModalDialog]] ||&mdash
|[[#DoModalDialog|DoModalDialog]] ||&mdash
|[[#SetModalWindow|SetModalWindow]] ||—
|[[#SetModalWindow|SetModalWindow]] ||—
|[[#GetWindowPos|GetWindowPos]] ||—
|[[#GetWindowPos|GetWindowPos]]
|-
|[[#SetWindowPos|SetWindowPos]] ||—
|[[#SetWindowPos|SetWindowPos]] ||—
|[[#WindowSizeDlg|WindowSizeDlg]] ||—
|[[#WindowSizeDlg|WindowSizeDlg]] ||—
|[[#GetMonitor|GetMonitor]] ||—
|[[#GetMonitor|GetMonitor]] ||—
|[[#GetDesktop|GetDesktop]] ||—
|[[#GetDesktop|GetDesktop]]
|[[#ProgressBox|ProgressBox]] ||&mdash
|-
|[[#InitDialogItem|InitDialogItem]] ||&mdash
|[[#ProgressBox|ProgressBox]] ||—
|[[#SetControlMode|SetControlMode]] ||&mdash
|[[#InitDialogItem|InitDialogItem]] ||—
|[[#SetControlMode|SetControlMode]] ||—
|-
|-
|-
|'''[[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:'''
|[[#SetGraphXScale|SetGraphXScale]] ||—
|[[#SetGraphXScale|SetGraphXScale]] ||—
|[[#GetOutputValue|GetOutputValue]] ||—
|[[#GetOutputValue|GetOutputValue]]
|-
|-
|-
|'''[[Programmer_Guide/Shell_Items/SPU|SPUs]]:'''
|'''[[Programmer_Guide/Shell_Items/SPU|SPUs]]:'''
Line 60: Line 69:
|[[#XScaleBark|XScaleBark]] ||—
|[[#XScaleBark|XScaleBark]] ||—
|[[#Table2Output|Table2Output]] ||—
|[[#Table2Output|Table2Output]] ||—
|[[#Wave2output|Wave2output]] ||—
|[[#Wave2output|Wave2output]]
|}
|}
;Variables and items used by this library:
;Variables and items used by this library:

Revision as of 10:37, 12 May 2011

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

Content
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 &mdash 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