Frequency Synthesis with the Commodore Amiga for Research on Perception and Memory of Pitch

Frequency Synthesis with the Commodore Amiga for Research on Perception and Memory of Pitch

Behavior Research Methods, Instruments, & Computers 1989, 21 (6), 623-626 Frequency synthesis with the Commodore Amiga for research on perception and memory of pitch ANNABEL J. COHEN and MAREK MIESZKOWSKI Dalhousie University, Halifax, Nova Scotia, Canada The potential of the Commodore Amiga as a digital synthesizer for research and demonstra­ tion in psychoacoustics and memory is discussed. Economy, ease of use, flexibility, portability, and accuracy outweigh disadvantages of narrow bandwidth, narrow dynamic range, and storage limitations for many applications encountered in pilot research and education. The Amiga also bears serious consideration for psychoacoustic studies requiring frequencies below 4000 Hz and modest signal-to-noise ratio, as exemplified by an implementation for research in absolute judg­ ment, similarity scaling, and sequential pattern tracking. Over much of the audible spectrum, humansensitivity Characteristics of the audio signal. The Amigahard­ is impressive. For example, under idealconditions, many ware is designed to generate up to 28,867.29 samples/ listeners can discriminate a frequency of 1000Hz from sec (or the sampling period is 1/28867.29 Hz = oo34641 sec = 34.641 p.sec). The numberis derivedסס. ­one of 1002 Hz (Green, 1976). In order to studythis sen sitivity and to use acoustic stimuli in other experiments from the time to scan one video line; the direct memory in perceptionand memory, the signal must be specified access (DMA) can retrieve two audio samples duringeach withgreataccuracy. Thepresent article outlines thepoten­ horizontal video scan line. The Amiga's system clock tial of the Commodore Amigaas an audiosynthesizer for period is .279365 usee, (clockfrequency is 3579545 Hz) psychoacoustic andauditoryresearchanddemonstration. and the minimum period value is derived by dividing 34.641 p.sec per sampleby .279365, the numberof p'sec The Amiga Computer and Synthesizer per clock interval, resulting in a minimum of 124timing The Amiga 1000microcomputer was first marketedin intervals (clockperiods) per sample (see Peck, Deyl, & the fall of 1985. In contrast to other 68000-based Miner, 1985, chap. 5, pp. 5-9). microcomputers developed at about the same time, such The maximum sampling rate of 28867 Hz allows fre­ as the MacIntosh and Atari, the Amiga boasted a four­ quencies up to 14433 Hz, assuming the theoretical Ny­ channel 8-bitdigitalaudiosynthesizer withstereo output. quist limit. However, to prevent aliasing distortion, the The other machines typically had one synthesizer (D/A manufacturers provided a fixed filter set at 7000 Hz, converter or analog signal) and monaural output. Com­ (30 dBattenuation), but beginning to havean effecteven modorehad a historyof successful innovation in musical at 4000 Hz, according to Amiga specifications (Peck synthesis. Two years earlier, the companyhad provided et al., 1985,chap. 5, p. 26). The fixedfilter reducesthe the most sophisticated sound chip for a home computer, effective frequency range of the synthesizer. More re­ the SID (soundinterfacedevice)on the Commodore-64, cently,the Amiga 500wasintroduced as a lowercostver­ which controlledthree independent analog voices. With sionof the 1000,havingidentical audiofacilities but with an additional voice and complete digital control of sig­ some relaxation of the filter. More specifically, the Am­ nals, the Amigaofferedmuchmore. For example, it pro­ iga filter has two components; on the Amiga500, one of vided a flexibility of waveform specification far greater theseis connected to thepower-on LED(see Finkel, 1987, than did analog function generators of comparablecost, schematic A500-3). By disconnecting the power-on LED which are typically limited to fixed waveforms (usually through software, the filter attenuation for higher frequen­ sine, square, triangle, and pulse). cies can be lowered by about 10 dB, as measured by sweeping a frequency source under both bypassed and original filter conditions. Because only one component This work was supported by a grant to A. 1. Cohen from the Natural of the filter can be bypassed in any case, the difference Sciences and Engineering Research Council of Canada. Programs were betweenthe originaland the alteredfilteris notdramatic. written by Ron Whitaker. Wayne Zelmer, Larry Henrickson, and Shawn Figure 1 represents a squarewaveof 600 Hz produced Currie assisted with the technical measurements, some of which were by the Amiga. By many standards, the results of this made at the School of Human Communication Disorders at Dalhousie University. Inquiries concerning the availability of the program may squarewavetest are quite respectable. Modestdistortion be addressed to Annabel 1. Cohen, Department of Psychology, Dal­ (e.g., the overshooting) reflectsthe bandwidth limitation housie University, Halifax, Nova Scotia B3H 411. imposed by the filter, This limitation nevertheless per- 623 Copyright 1989 Psychonomic Society, Inc. 624 COHEN AND MIESZKOWSKI (DB) 9Il ") · · 88 JI n J se J se I i i 248 58Ill! 7S 18llilii 1~8 fRIOOOC Y(HZ) Figure 1. Oscilloscoperepresentation of a square wave of 600 Hz. ( Dll) llll mits examination of fundamental frequencies over the mu­ b ) · n sical and much of the speech range. Figure 2 (panel a) J se shows a Fourier analysis (computed by Signal Technol­ tI J se ogy Inc. Interactive Laboratory System ILS software) of J 4il a 250-msec 6OO-Hz complex tone consisting of the first I 38 six and the eighth harmonics. The harmonics 0, 2, 3, rI ~" 4, 5, 6, and 8) in panel a are prominent as they should 'n 2lI be, indicating the reliability of the method for the study [ 'J Ie of complex tone stimuli. (For comparison, a Fourier anal­ • J J 8 ysis of a 250-msec sine wave of the same fundamental I r -18 JI produced by a voltage-controlled Tektronix TM503 os­ L ~ cillator is also shown in Figure 2, panel b). 2588 5888 75811 IIlIiil liiJ! The 8-bit DIA converter provides 256 amplitude steps, fRJ:OOD(Y(HZ l which determines a theoretical signal-to-noise (SIA) range of 48 dB, limiting studies to this dynamic range. More important however is the actual SIN ratio. Regression of ~ the 256 output voltages on 256 DAC levels from -128 C) to 127 indicated modest nonlinear distortion for both out­ put channels and an actual SIN level of around 7 bits (SIN = 42 dB). The Fourier analysis of an Amiga sine wave by the ILS program indicated a third harmonic 32 dB down from the fundamental, as can be seen in Figure 2 (panel c). This compares reasonably well with the ana­ logue signal of panel b; nevertheless, the Amiga would not be adequate for studies of pure tones at high intensi­ ties, without other modifications (e.g., adding an analog filter over the range of the third harmonic for small ranges ofstimuli; or, for a more general solution, adding digital dither; see Vanderkooy & Lipshitz, 1984). 2588 5888 7588 It is possible to use the Amiga as a synthesizer within FREOODlC YI HZ ) these constraints. Application depends upon a number of other factors discussed below. Signal-generation algorithm. The present implemen­ Figure 2. ILS Fourier analysis of a complex tone generated by the Amiga having the first 6 and 8th harmonics (a); for compari­ tation for psychoacoustic research is written in the C son, a sine tone generated by a voltage-controlled oscillator (b)j a programming language. Our algorithm maximizes ac­ sine tone generated by the Amiga (c). All fundamentals are 600 Hz curacy at the expense of computer overhead by numeri- and of 2So-msec duration. AMIGA SOUND SYNTHESIS 625 cally specifying the entire wave. The chosen number of CH ANNEL 2 (RIG H T) system clock points/sample is 171, and the correspond­ ing sampling frequency is 20933.0117, allowing for the generation of any frequency within the bandlimited range as previously described. The duration of a sample is 47.771 usee. A 500-msec note will take 10,466 bytes of CHANNEL 1 computer memory. One megabyte of memory permits a (LEFT) library of95 notes (994,270 bytes) in the experiment. The number of bytes per tone is limited, since less than 400,000 bytes are accessible by the sound-generating chip at anyone time. With the above sampling rate, genera­ tion of a tone of up to approximately 20-sec duration is possible. Thus, within certain restrictions, for any given Figure 4. Oscilloscope Lissajous Figure for two 10000Hz sine experiment, a library of tones that vary widely in num­ waves, each generated by a separate Amiga channel. Perfect phase ber, waveform, and duration can be created. coherence is indicated by a straight line. Many psychoacoustic researchers use noise stimuli. Al­ though not needed for our current applications, high qual­ (Figure 4) for a lOOO-Hz wave. Phase also can be con­ ity noise can also be produced by our algorithm, which trolled. creates each sample of the wave independently, again sub­ ject to the memory-access limitation mentioned above. As Applications Eggermont and Smith (1984) demonstrated with 32K sam­ Programs have been written for studies of absolutejudg­ ples (an order of magnitude less than that available to the ment, discrimination, and similarity scaling of tones and Amiga sound chip), noise generated in software by a uni­ of melodies. Software has also been developed for studies form distribution of random numbers can easily exceed of sequential tracking of tone sequences. 1 Responses and specifications produced by commercially available ana­ reaction times are recorded on-line. log noise or pseudonoise generators often used in psy­ In a typical study of absolute judgment (Cohen, 1988), choacoustic research. As yet, however, we have not made the experimenter first defines the tones to be used. In the such tests on noise generated by the Amiga. parameter file, one line per tone specifies fundamental In order to avoid onset and offset transients, it is neces­ frequency, relative intensity of each of the first 10 har­ sary to provide a smooth envelope.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    4 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us