User Tools

Site Tools


x68000:x-basic

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
x68000:x-basic [2014/12/14 01:25] – [AUTO] eidisx68000:x-basic [2019/08/27 20:45] (current) – external edit 127.0.0.1
Line 42: Line 42:
 |**Standard function**| |**Standard function**|
  
-|  **Written expressions:**|abs<color red>**(n)**</color> |+|  **Written expressions:**|abs(<color red>**n**</color>|
 |  **Argument:**|float | |  **Argument:**|float |
 |  **Return value:**|float | |  **Return value:**|float |
Line 52: Line 52:
 |**GRAPH.FNC**| |**GRAPH.FNC**|
  
-|  **Written expressions:**|apage<color red>**(pa)**</color> |+|  **Written expressions:**|apage(<color red>**pa**</color>|
 |  **Argument:**|char | |  **Argument:**|char |
 |  **Returns:**|void | |  **Returns:**|void |
Line 71: Line 71:
 |**Standard function**| |**Standard function**|
  
-|  **Written expressions:**|asc<color red>**(st)**</color> |+|  **Written expressions:**|asc(<color red>**st**</color>|
 |  **Argument:**|str | |  **Argument:**|str |
 |  **Return value:**|int | |  **Return value:**|int |
Line 84: Line 84:
 |**Standard function**| |**Standard function**|
  
-|  **Written formula:**|atan<color red>**(n)**</color> |+|  **Written formula:**|atan(<color red>**n**</color>|
 |  **Argument:**|float | |  **Argument:**|float |
 |  **Return value:**|float | |  **Return value:**|float |
Line 95: Line 95:
 |**Standard function**| |**Standard function**|
  
-|  **Written expressions:**|atof<color red>**(st)**</color> |+|  **Written expressions:**|atof(<color red>**st**</color>|
 |  **Argument:**|str | |  **Argument:**|str |
 |  **Return value:**|float | |  **Return value:**|float |
Line 115: Line 115:
 |**Standard function**| |**Standard function**|
  
-|  **Written expressions:**|atoi<color red>**(st)**</color> |+|  **Written expressions:**|atoi(<color red>**st**</color>|
 |  **Argument:**|str | |  **Argument:**|str |
 |  **Return value:**|int | |  **Return value:**|int |
-|  <color red>**Function:**</color>|Converts the <color red>**st**</color> string to int type number. <color red>**st**</color> is a sequence of characters that can be converted (0~9, +, -) to int type number. The conversion is aborted if there is a character for which the int type value can not be determined. |+|  <color red>**Function:**</color>|Converts <color red>**st**</color> string to int type number. <color red>**st**</color> is a sequence of characters that can be converted (0~9, +, -) to int type number. The conversion is aborted if there is a character for which the int type value can not be determined. |
 | |Space or tab characters at the begining of <color red>**st**</color> will be ignored. <color red>**st**</color> also requires at least one or more digits. | | |Space or tab characters at the begining of <color red>**st**</color> will be ignored. <color red>**st**</color> also requires at least one or more digits. |
 | |<color red>**st**</color> can not be null character. | | |<color red>**st**</color> can not be null character. |
Line 133: Line 133:
 |**Command**| |**Command**|
  
-|  **Written expressions:**|auto [line number] [incremental] |+|  **Written expressions:**|auto **[**<color red>**line number**</color>**] [**<color red>**incremental**</color>**]** |
 |  **Abbreviation:**|a. | |  **Abbreviation:**|a. |
-|  <color red>**Function:**</color>|Automatically genetares line number at the beginning of each program line. | +|  <color red>**Function:**</color>|Automatically genetares <color red>**line number**</color> at the beginning of each program line. | 
-| |You can omit the incremental switch but in that case they will automatically increment by 10 |+| |You can omit the <color red>**incremental switch**</color> but in that case lines will automatically increment by 10 |
 | |If a line number overlaps with existing line, the contents of the line will be displayed. In this case you can press return key without typing anything and it will not change the contents of the line. | | |If a line number overlaps with existing line, the contents of the line will be displayed. In this case you can press return key without typing anything and it will not change the contents of the line. |
 | |Press BREAK key (or CTRL+C) to release the auto function. The current program line will not be saved. | | |Press BREAK key (or CTRL+C) to release the auto function. The current program line will not be saved. |
Line 149: Line 149:
 |**AUDIO.FNC**| |**AUDIO.FNC**|
  
-|  **Written expressions:**|a_play(na,sf,md[,lng]) |+|  **Written expressions:**|a_play(<color red>**na**</color>,<color red>**sf**</color>,<color red>**md**</color>**[**,<color red>**lng**</color>**]**) | 
 +|  **Argument:**|Numeric one-dimensional array name (<color red>**na**</color>),char(<color red>**sf**</color>,<color red>**md**</color>,<color red>**lng**</color>) | 
 +|  **Return value:**|void | 
 +|  <color red>**Function:**</color>|Plays PCM data of specified <color red>**na**</color> array. | 
 +| |na ... Number of one-dimensional array name that contains the PCM data. | 
 +| |sf ... sampling frequency | 
 +| |<file> 
 +0 ... 3.9KHz 
 +1 ... 5.2KHz 
 +2 ... 7.8KHz 
 +3 ... 10.4KHz 
 +4 ... 15.6KHz 
 +</file>
 +| |As a general rule, use the same sampling frequency <color red>**sf**</color> for playback and when recording with a_rec function, if you want to play music. The sound will not play normally if other frequencies are used. | 
 +| |md ... audio output mode (audio signal output mode from the audio output terminal of the computer) | 
 +| |<file> 
 +0 ... silence 
 +1 ... left channel 
 +2 ... right channel 
 +3 ... stereo output 
 +</file>
 +| |lng ... length from 0 index of na array to play | 
 +| |Values that can be used as <color red>**lng**</color> are from 1 to subscript+1 of the declared <color red>**na**</color> array. | 
 +| |All PCM data will be played if <color red>**lng**</color> is omitted. | 
 +|  **Use cases:**| | 
x68000/x-basic.1418484342.txt.gz · Last modified: 2019/08/27 20:44 (external edit)