VoiceRopeDB.mesa
Copyright © 1986 by Xerox Corporation. All rights reserved.
Doug Terry, June 5, 1986 11:45:38 am PDT
Swinehart, June 25, 1986 11:23:48 am PDT
Routines for storing voice ropes in a database and manipulating their structure. This interface is internal to the voice rope package.
DIRECTORY
LoganBerry USING [Entry, OpenDB],
RefID USING [nullID],
Rope USING [ROPE],
Thrush USING [EncryptionKey],
VoiceTemp USING [TuneID];
VoiceRopeDB:
CEDAR
DEFINITIONS = {
Handle: TYPE = REF HandleRec;
HandleRec:
TYPE =
RECORD [
voiceRopeDB: LoganBerry.OpenDB←RefID.nullID,
voiceInterestDB: LoganBerry.OpenDB←RefID.nullID,
voiceRopeDBName: Rope.ROPE,
voiceInterestDBName: Rope.ROPE
];
TuneList: TYPE = LoganBerry.Entry;
Header: TYPE = LoganBerry.Entry;
ID: TYPE = Rope.ROPE;
Database operations
Error: ERROR [ec: ATOM, explanation: Rope.ROPE ← NIL];
Open:
PROC [dbName: Rope.
ROPE]
RETURNS [handle: Handle ←
NIL];
Prepares the given database for service.
Read:
PROC [handle: Handle, ropeID: ID]
RETURNS [header: Header, length:
INT, struct: TuneList];
Returns the structure of the given voice rope.
Write:
PROC [handle: Handle, struct: TuneList]
RETURNS [ropeID: ID, length:
INT];
Writes the voice rope information into the database.
Voice rope structure
SimpleTuneList:
PROC [tuneID: VoiceTemp.TuneID, start:
INT, length:
INT, key: Thrush.EncryptionKey]
RETURNS [list: TuneList];
Builds a tune list with a single tune's information.
NextTuneOnList:
PROC [list: TuneList]
RETURNS [tuneID: VoiceTemp.TuneID, start:
INT, length:
INT, key: Thrush.EncryptionKey, rest: TuneList];
Returns information about the next tune on the list; assumes that list really points to a properly structured TuneList so doesn't bother to check attribute types. The rest of the list is returned so this routine can be repetitively called to get all the tunes on the list.
TuneListInterval:
PROC [list: TuneList, start:
INT, length:
INT]
RETURNS [new: TuneList];
Returns the tune list representing the structure of the voice rope interval. Warning: this operation modifies the original list!
}.
Doug Terry, June 3, 1986 3:30:54 pm PDT
Created internal DB interface.
changes to: DIRECTORY, VoiceRopeDB, OpenDB, ReadVoiceRope, WriteVoiceRope, SimpleTuneList, NextTuneOnList, TuneListInterval
Swinehart, June 25, 1986 9:26:15 am PDT
New Thrush
changes to: DIRECTORY , SimpleTuneList , NextTuneOnList , TuneListInterval