Programmer Guide/Macro Library/Kernal/StdLib: Difference between revisions
From STX Wiki
< Programmer Guide | Macro Library | Kernal
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
|[[#AppHelp|AppHelp]] | |[[#AppHelp|AppHelp]] | ||
|- | |- | ||
|&mdash | |— | ||
|- | |- | ||
|'''message handling:''' | |'''message handling:''' | ||
Line 23: | Line 23: | ||
|[[#GetMessage|GetMessage]] | |[[#GetMessage|GetMessage]] | ||
|- | |- | ||
|&mdash | |— | ||
|- | |- | ||
|'''utilities for standard {{STX}} applications:''' | |'''utilities for standard {{STX}} applications:''' | ||
Line 31: | Line 31: | ||
|[[#MetaSegment|MetaSegment]] | |[[#MetaSegment|MetaSegment]] | ||
|- | |- | ||
|&mdash | |— | ||
|- | |- | ||
|'''file functions:''' | |'''file functions:''' | ||
Line 39: | Line 39: | ||
|[[#FileToolBox|FileToolBox]] | |[[#FileToolBox|FileToolBox]] | ||
|- | |- | ||
|&mdash | |— | ||
|- | |- | ||
|'''display functions:''' | |'''display functions:''' | ||
Line 47: | Line 47: | ||
|[[#ShowItem|ShowItem]] | |[[#ShowItem|ShowItem]] | ||
|- | |- | ||
|&mdash | |— | ||
|- | |- | ||
|'''dialog and window functions:''' | |'''dialog and window functions:''' | ||
Line 66: | Line 66: | ||
|[[#SetControlMode|SetControlMode]] | |[[#SetControlMode|SetControlMode]] | ||
|- | |- | ||
|&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:''' | ||
Line 72: | Line 72: | ||
|[[#GetOutputValue|GetOutputValue]] | |[[#GetOutputValue|GetOutputValue]] | ||
|- | |- | ||
|&mdash | |— | ||
|- | |- | ||
|'''[[Programmer_Guide/Shell_Items/SPU|SPUs]]:''' | |'''[[Programmer_Guide/Shell_Items/SPU|SPUs]]:''' |
Revision as of 10:44, 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