home *** CD-ROM | disk | FTP | other *** search
- Randsam - a Random sample player
-
- This is PUBLIC DOMAIN.
- This program was written by Steven Lagerweij.
- The Idea from Bas van Andel.
-
- What is randsam ?
- randsam is a program that plays random soundsamples at random
- times, with random volume, random cycles, and a bit random period.
- Randsam consists of two programs which are QUITRAND and RANDSAM.
-
- RANDSAM should be run in the background (run,runback etc).
- Randsam has no options.
-
- Quitrand is used to ask randsam things.
- Quitrand knows the following options:
- play Ask randsam to play all available samples
-
- conf This displays some settings in randsam
-
- If you like to monitor randsam for a while:
- copy quitrand ram:
- resident c:execute
- Then make a script like this one :
- ram:quitrand conf
- execute scriptname
-
- quit Tell randsam you don't want him anymore
-
- To run randsam a config-file must exist in s: and it's name must be play.config
- This play.config file has the following form
-
- ----------------------------------|----------------------------|
- ConfigFile form : | Example config : |
- ----------------------------------|----------------------------|
- mindelay maxdelay maxdiff | 5 900 100 |
- mincyc maxcyc | 1 3 |
- numsamples | 3 |
- sample1 speed volume cyclenum | disk:dir/file1 428 64 1 |
- ... | disk:dir/file2 428 0 0 |
- ... | dsk2:ddd/lala3 210 50 4 |
- ----------------------------------------------------------------
-
-
- mindelay : Is the minimum waittime between samples in SECONDS.
- maxdelay : Is the maximum waittime between samples in SECONDS.
- maxdiff : Is the maximum value that can be subtracted or added
- to the period value of the current sample.
- mincyc : Is the minimum number cycles.
- maxcyc : Is the maximum number of cycles.
- Numsamples: this number is the number of samples described after this value.
-
- sample1 : COMPLETE filepath to open the sample.
- speed : The period (sample speed) value of the sample.
- volume : replay volume. If the volume is 0 a random volume value is taken.
- cyclenum : The number of times that the sample will be repeated.
- if the 'cyclenum' of the current sample is zero
- and 'maxcyc' is not zero , only then a
- random number is taken between mincyc and maxcyc.
-
- NOTE that: Each value may be seperated by either a space or a CR (return).
- You MUST enter ALL values in the order shown above.
- Do NOT use SPACES in the FILENAMES! (NOT possible!)
- --------------------------------------------------------------------
-
-
- Source Code is included. It was compiled with lattice C v4.0
- If you modify it please send me the 'update', and tell me what you've done.
- please leave my name in the program.
-
- These progams are only to be distributed as public domain.
- Otherwise don't sell these programs without my permission.
-
- Distribution:
- Always include the following files :
- randsam executable
- Quitrand executable
- randsam.doc This file
- Quitrand.c Source Code
- randsam.c Source Code
- randcmd.h Source hdr
- play.config sample config
-
- Any suggestions, donations, bugs, annoying things, well whatever
- can be send to:
- Steven Lagerweij
- Buizerdstraat 4
- 4143BA
- Leerdam, Netherland
-