'bit 9 3 TYPE AudExpType FileNam(0 TO %MaxFiles) AS ASCIIZ * 15 'names of recorded files gFilenam(0 TO %MaxFiles) AS ASCIIZ *15 Duur(0 TO %MaxFiles) AS DWORD 'duration (ms) of samples to record FC AS LONG 'counter wich holds next filenr to use pEnv(0 TO %Maxfiles) AS SINGLE PTR 'first element of envelope array > problem: number of referenced arrays not known from start ?? Take files instead ? Flag AS DWORD 'general flag 'bit 0 = record sample ' 1 = recording busy 'bit 2 = record grain 'bit 3 = new sampl recorded 'bit 4 = master play 'bit 0: mixer initialised END TYPE TYPE GrainType length AS LONG 'in samples ' lengthInBytes AS LONG vol AS DWORD 'average abs(sample) fn AS ASCIIZ * 15 'file where it's stored pArr AS INTEGER PTR 'pointer to first element of array, if stored in array END TYPE TYPE GrRecType delta AS LONG 'samples between start of different grains length AS LONG 'of recorded grains, in samples Env AS LONG 'window used END TYPE 'TYPE RTGPCtrlType 'control values for realtimegrainplayer 'NOT IN USE RIGHT NOW ' Tog AS LONG '1 = on, 0 = of ' NrGrains AS LONG ' cUbNrGr AS LONG 'current ubound of playable grains ' cLbNrGr AS LONG 'current lbound of playable grains ' StriveTaskFreq AS SINGLE 'taskfreq we are moving towards ' StriveFact AS LONG 'factor used for calc how fast we go toStriveTaskFreq, higher = slower!!!! 'END TYPE