CMD VC
Contents |
Effect
Allows to make several actions with 1-bit PCM samples using the keyclick and the MSX Voice Recorder utility.
Syntaxes
- CMD VC 0
This syntax is only for the test mode, to check if all is Ok to use this instruction
- CMD VC <ActionMode>,<Parameter2>
Parameters
<ActionMode> is a number between 1 and 4
- 1 = record mode
- 2 = playback mode
- 3 = reverse mode
- 4 = speed mode
<Parameter2> is different according the selected action mode
- in record, playback and reverse modes, it must be the variable in which the sample corresponding to the VCD file has been copied or needs to be copied (in the provided example, it's the variable DA)
- in speed mode, it's a number (or a variable) between 1 and 15 to specify the speed that will be used for the sample
Example
10 CLEAR 256,&HCFFF:BLOAD"CMDVC.BIN",R 20 DEFINT A-Z 30 SP=9:CMD VC 4,SP 40 DS=(FRE(0)-256)/2:DIM DA(DS) 50 COPY"BATMAN.VCD" TO DA 60 CMD VC 2,DA 70 CMD VC 3,DA:CMD VC 2,DA