WO1997031363A1 - Systeme audio de micro-ordinateur a compensation en frequence des donnees de tableaux d'ondes - Google Patents
Systeme audio de micro-ordinateur a compensation en frequence des donnees de tableaux d'ondes Download PDFInfo
- Publication number
- WO1997031363A1 WO1997031363A1 PCT/US1997/002811 US9702811W WO9731363A1 WO 1997031363 A1 WO1997031363 A1 WO 1997031363A1 US 9702811 W US9702811 W US 9702811W WO 9731363 A1 WO9731363 A1 WO 9731363A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- frequency
- patch
- data
- wavetable
- system memory
- Prior art date
Links
- 230000015654 memory Effects 0.000 claims abstract description 137
- 238000000034 method Methods 0.000 claims abstract description 60
- 230000005236 sound signal Effects 0.000 claims abstract description 55
- 230000008569 process Effects 0.000 claims abstract description 42
- 239000000872 buffer Substances 0.000 description 12
- 238000001914 filtration Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 4
- 238000005070 sampling Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 238000002604 ultrasonography Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G10H7/00—Instruments in which the tones are synthesised from a data store, e.g. computer organs
- G10H7/002—Instruments in which the tones are synthesised from a data store, e.g. computer organs using a common processing for different operations or calculations, and a set of microinstructions (programme) to control the sequence thereof
- G10H7/004—Instruments in which the tones are synthesised from a data store, e.g. computer organs using a common processing for different operations or calculations, and a set of microinstructions (programme) to control the sequence thereof with one or more auxiliary processor in addition to the main processing unit
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G10H7/00—Instruments in which the tones are synthesised from a data store, e.g. computer organs
- G10H7/02—Instruments in which the tones are synthesised from a data store, e.g. computer organs in which amplitudes at successive sample points of a tone waveform are stored in one or more memories
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G10H2230/00—General physical, ergonomic or hardware implementation of electrophonic musical tools or instruments, e.g. shape or architecture
- G10H2230/025—Computing or signal processing architecture features
- G10H2230/031—Use of cache memory for electrophonic musical instrument processes, e.g. for improving processing capabilities or solving interfacing problems
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G10H2240/00—Data organisation or data communication aspects, specifically adapted for electrophonic musical tools or instruments
- G10H2240/171—Transmission of musical instrument data, control or status information; Transmission, remote access or control of music data for electrophonic musical instruments
- G10H2240/201—Physical layer or hardware aspects of transmission to or from an electrophonic musical instrument, e.g. voltage levels, bit streams, code words or symbols over a physical link connecting network nodes or instruments
- G10H2240/275—Musical interface to a personal computer PCI bus, "peripheral component interconnect bus"
Definitions
- This invention relates to a PC audio system including a wavetable audio synthesizer and a memory which supplies frequency compensated wavetable data More particularly, this invention relates to a PC audio system, including a wavetable audio synthesizer and wavetable cache, which interfaces with a PC system memory supplying frequency compensated wavetable data
- Wavetable synthesizers generate sounds through digital processmg of entire digitized sound waveforms or portions of digitized sound waveforms stored in wavetable memory See U.S. patent apphcation serial No 08/334,461, entitled “Digital Signal Processor Architecture for Wavetable Audio Synthesizer,” by Norris, et al , which is incorporated herein by reference
- Wavetable synthesizers generate sounds by "playing back” from wavetable memory, to a digital to-analog converter (DAC), a particular digitized waveform
- DAC digital to-analog converter
- the addressing rate of the wavetable data controls the frequency or pitch of the analog output
- the bit width of the wavetable data affects the resolution of the sound being generated For example, better resolution can be achieved with 16-bit wide data versus 8-bit wide data 16-bit digital audio is becoming the standard in the industry
- Wavetable synthesizers have apphcation in personal computers
- personal computers are manufactured with only limited audio capabilities These limited capabilities provide monophomc tone generation to provide audible signals to the user concerning various simple functions, such as alarms or other user alert signals
- the typical personal computer system has no capability of providing stereo, high-quality audio which is a desired enhancement for multimedia and video game applications, nor do they have built-in capability to generate or synthesize music or other complex sounds
- Music synthesis capability is necessary when the user desires to use a musical composition apphcation to produce or record sounds through the computer to be played on an external instrument, or through analog speakers and in multimedia (CD-ROM) applications as well
- a number of add-on products have been developed
- One such hne of products is referred to in the industry as a sound card
- These sound cards are circuit boards carrying a number of integrated circuits, many times including a wavetable synthesizer, wavetable memory and other associated circuitrv which the user installs in expansion slots provided by the computer manufacturer
- the expansion slots provide an interface to the system bus thereby enabling the host processor to access sound generation and control functions on the board under the control of apphcation software
- Typical sound cards also provide MIDI interfaces and game ports to accept inputs from MIDI instruments such as keyboard and joysticks for games
- One prior art sound card is that offered by Advanced Gravis and Forte under the name
- This sound card is an expansion slot embodiment which incorporates into one chip (the "GF-1") a wavetable synthesizer, MIDI and game interfaces, DMA control and Adlib Sound Blaster compatibility logic.
- the Ultrasound card includes on-board DRAM (1 megabyte) for wavetable data; an address decoding chip; separate analog circuitry for interfacing with analog inputs and outputs; a separate programmable ISA bus interface chip; an interrupt PAL chip; and a separate digital-to-analog/analog-to-digital converter chip. See U.S. patent apphcation serial No. 072,838, entitled “Wave Table Synthesizer,” by Travers, et al., which is incorporated herein by reference.
- On-board sound card memory typically has a size of between one-half to four megabytes and stores all the wavetable data used to synthesize music. At a cost of about $25.00 per megabyte, sound card memory cost is a significant factor in the overall cost of the sound card. Therefore, if PC system memory could be used to supply the wavetable data, thereby eliminating or reducing the need for sound card memory, sound cards would be less expensive.
- PC system memory to store wavetable data, however, raises some concerns
- One concern is that available PC system memory is limited and cannot be spared for wavetable data. However, this should be less of a concern m future state-of-the-art PCs which are expected to contain larger system memories and should have space available for wavetable data.
- Another concern with using system memory is the numerous accesses to memory that are required by prior art synthesizers
- prior art wavetable synthesizers which can synthesize thirty -two independent voices (i.e., instrument sounds) must access memory thirty-two times every 22.7 microseconds to retrieve the required data samples. If this number of accesses was made to system memory, an unacceptably high percentage of the system bus bandwidth would be used for synthesizer operations, and thus less of the bus bandwidth could be used for other PC operations.
- synthesizer might process wavetable data faster than it receives it from system memory ( ⁇ .e., faster than the system's maximum bus latency) Such a situation would be unacceptable since the processed data would have gaps, and undesirable pops would occur in the synthesized music as it is played.
- the PC audio circuit of the present invention is designed to interface with and provide audio enhancement to a host personal computer of the type including a central processor, system memory and system bus.
- the PC audio circuit includes a cache memory that is of a significantly reduced size and cost and can only store portions of the total wavetable data at a time.
- the PC audio circuit processes the data and generates digital audio signals, such as music or sound effects. Because the cache memory is of reduced size and cost, the PC audio circuit has a lower overall cost than prior art systems. Unlike prior art PC audio systems, the PC audio circuit of the present invention processes several frames of data samples for a voice before processing the next designated voice. Thus, several wavetable data samples for a given voice can be retrieved from system memory at one time and made available in the cache memory, thereby reducing the total number of accesses to memory required and the percentage use of system bus bandwidth. Processing the data samples in this manner also allows for certain parallel processing operations.
- the PC audio circuit of the present invention retrieves several wavetable data samples at once, it is preferable that a voice's data samples be organized together in a block in system memory. Thus, if a consecutive series of data samples are requested, they can be accessed using the system memory's page mode which will increment through the data samples in the block.
- the bus between system memory and the PC audio circuit is a PCI bus, thereby enabling data accessed through the page mode to be transmitted to the PC audio circuit in burst mode.
- the PC audio circuit of the present invention includes a PCI bus interface block, an internal address data bus, digital signal processor, output control state machine, internal bus arbiter, and cache memory.
- the PC audio circuit can be formed on a monolithic integrated circuit, which includes the cache memory or with the cache memory external to the integrated circuit. Data in the system memory is transmitted over the PCI bus, through the PCI interface block, over the internal bus, and into the cache memory.
- the digital signal processor performs computations and other processing to translate the data samples in the cache memory into digital audio signals suitable for conversion into desired analog audio signals.
- the DSP can generate up to 32 independent digital audio signals or voices at a 44.1 KHz frame rate.
- the digital audio signals generated for each voice by the DSP are accumulated in the cache memory, or can be accumulated in a separate cache memory, until they are ready to be output to an external digital-to-analog converter (DAC).
- DAC digital-to-analog converter
- the output control state machine controls the transmission ofthe accumulated data from the cache out to the external DAC at a sample rate of 44.1 KHz.
- the internal bus arbiter (IBA) is responsible for directing traffic between the various blocks that will access the internal bus, including the OCSM, the cache, the PCI interface block, and the DSP.
- the internal bus operates at 33 MHz, along with most of the logic, from a clock that is provided as part of the PCI standard.
- the cache preferably is a low-cost SRAM having a capacity of about 8 to 32 kilobytes
- the available memory in the cache can be assigned to data sample storage, accumulator storage, and general storage for the DSP.
- Data samples can be stored in data queues A and B, while the digital audio signals generated by the DSP can be stored in accumulator queues A and B.
- data queues A and B each store up to 64 16-bit data samples for each of 32 voices, while accumulator queues A and B each accumulate the generated data samples for up to 32 voices The generated data samples are accumulated together m accumulator queue A or B as one set of 64 16-bit data samples
- the PCI interface block detects when there is a need to update the cache with data samples and initiates bus master requests.
- the addresses in system memory from which the data samples are to be retrieved are sent from the PCI interface block to the PCI address bus Under the control of the PCI interface block, data samples retrieved from system memory are transmitted on the internal data bus to the cache.
- 128 data samples are loaded into the cache (64 data samples in each of data queues A and B) for each active voice.
- the DSP processes the data samples in one ofthe data queues, for the first active voice. The other data queue is presently inactive. Then, the DSP processes the data samples for the next designated active voice. As the DSP processes these data samples, the data samples just generated by the DSP are accumulated in one of the accumulator queues. This process continues until all active voices have been processed, and then the accumulator queues toggle and the other accumulator queue will accumulate generated data samples while the accumulated data samples in the first accumulator queue can be output to an external DAC.
- the PCI interface block sends requests on the PCI bus for additional data samples from system memory
- the data samples retrieved from system memory are stored in the first data queue, thereby writing over the data samples ust processed. While these data samples are being retrieved, the DSP processes the data samples in the other queue. Then, the data queues toggle, and the process contmues, allowing up to 64 data samples to be processed at a time.
- the DSP processes the data samples at the same frequency as the sampling frequency used during analog- to-digital conversion (recording) ofthe original audio signal
- the resulting audio signal will sound the same (i.e., have the same frequency) as the original audio signal used to create the data samples.
- F frequency ratio
- the latency problem for F c > 2 can be avoided by having the PC audio circuit retrieve only the data samples which will be processed and not the data samples which will be skipped by the DSP. Thus, all the data samples retrieved and stored in a data queue will be processed.
- This feature is implemented by providing means in PCI interface block for accessing the F c values for the active voices, and then calculating the next system memory address for retrieving data samples for a given voice based on the current system memory address and the F c value. Retrieving only select samples for each active voice when F c > 1 reduces the available PCI bandwidth since the burst mode cannot be used for transmitting the data samples. Even if the burst mode is not used, the PC audio circuit's percentage usage of the bandwidth may be acceptable, but the percentage usage will be less desirable.
- the PC audio system includes driver software which facilitates the creation of frequency compensated files or patches of wavetable data which are stored in system memory and can be transmitted to cache memory in burst mode, thereby reducing the PCI bus bandwidth requirements.
- the driver software facilitates the creation of a frequency compensated version of the original patch, containing only every fourth sample. This frequency compensated file or patch is stored in system memory and can be transmitted in burst mode to the PC audio circuit for processing by the DSP.
- a suitable PC audio system includes a PC audio circuit, of the type described above, driver software, and a MIDI or a comparable file.
- the MIDI file contains parameters that define the song or other audio signals to be generated by the PC audio circuit.
- the driver software performs the function of interpreting the parameters contained in the file and programming the PC audio circuit to generate the desired audio signals from wavetable data in system memory. As discussed below, the driver software also contains instructions which control the function of deriving frequency compensated patches for high F c voices.
- the system CPU determines for a given voice the ratio ofthe desired frequency for the voice to the recording frequency ofthe data in system memory associated with the voice. For F c > 2.0, the CPU drives a frequency compensated patch as described below.
- a frequency compensated patch can be derived a number of ways.
- One way, which requires the least CPU processing, is to copy or transpose a fraction of the wavetable data samples from the original patch for the voice into a new file or patch stored in system memory.
- the fraction of data samples transposed to the new patch is based on the F c value calculated by the system CPU.
- the frequency compensated patch has a frequency that is higher than the frequency of the original patch. For example, if every fourth data sample is copied from the original patch to create the frequency compensated patch, the frequency compensated patch has a frequency which is four times the frequency of the original patch; the frequency compensated patch has an effective frequency (F eff ) equal to four.
- the goal when deriving frequency compensated patches is to provide an effective patch frequency which is high enough that the PC audio circuit does not have to more than double the patch's frequency to generate the desired audio signals
- Another way of deriving frequency compensated patches is to digitally filter the original patch of wavetable data samples.
- Digitally filtering requires more CPU processing but is preferred over the above technique since digitally filtering removes the high frequency component of wavetable data such that the generated digital audio signals have less noise
- One example of a digital filtering technique is to take the average of every nth sample
- Another example, which requires even more CPU processing power, is to calculate the average of the moving average
- the system CPU can be directed by the driver software to either: (1) derive all of the required frequency compensated patches ust prior to the PC audio circuit's processing of the MIDI file, or (2) derive each patch as the PC audio circuit processes through the file
- the PC audio circuit When the PC audio circuit processes a frequency compensated patch, adjustments must be made to account for the higher frequency of the patch.
- the driver software programs the PC audio circuit to make these adjustments
- Fig. 1 is a block diagram of the PC audio circuit of the present invention as interfaced with the system bus of a host computer,
- Fig. 2 depicts how memory can be assigned in the cache memory of the present invention
- Fig 3 is a block diagram of the PCI bus interface block of the present invention as interfaced with system and internal buses;
- Fig. 4 is a block diagram of an output control state machine of the present invention as interfaced with internal buses, and
- Fig. 5 is a block diagram of a PC audio system which provides frequency compensated wavetable data in accordance with the present invention Detailed Description '" I. PC AUDIO CIRCUIT OVERVIEW
- the following description sets forth the preferred and alternative embodiments of a PC audio circuit which can be formed on a monoUthic integrated circuit.
- the PC audio circuit is designed to interface with and provide audio enhancement to a host personal computer of the type including a central processor, system memory and system bus.
- the fundamental difference between the PC audio circuit of the present invention and prior art PC audio circuits is that the local memory is of a significantly reduced size (e.g., 8-32 kilobytes) and can only store portions of the total wavetable data at a time. Instead, all the wavetable data (e.g., 1-4 megabytes) is stored in system memory of the host PC and transferred in portions to the PC audio circuit's local memory, also known as a cache memory, as needed by the PC audio circuit.
- the PC audio circuit uses the data to generate digital audio signals such as music or sound effects.
- the typical frame rate for audio is 44.1 KHz. At this frame rate, each frame is approximately 22.7 microseconds. Thus, if a prior art PC audio circuit generates 32 voices during a frame, 32 data accesses must be made to memory during this short time period. This is not a problem if the data accesses are to local memory. If the number of accesses is made to system memory, however, bus bandwidth usage and bus latency would become a concern.
- the PC audio circuit of the present invention processes several frames of data samples for a voice before processing the next designated voice.
- several wavetable data samples for a given voice can be retrieved from system memory at one time and made available in the cache memory, thereby reducing the total number of accesses to memory required and the percentage use of bus bandwidth.
- Processing the data samples in this manner also allows for certain parallel processing operations. For example, while a plurahty of data samples are being processed for active voices, other groups of data samples can be retrieved from system memory and made available for processing in the PC audio circuit's cache memory. This ensures a continuous supply of data and reduces concerns about the bus access latency.
- the PC audio circuit ofthe present invention retrieves several wavetable data samples at once, it is preferable that a voice's data samples be organized together in a block in the system memory. Thus, if a consecutive series of data samples are requested, they can be accessed using the system memory's page mode which will increment through the data samples in the block. If the bus between system memory and the PC audio circuit is a PCI bus (i.e., a higher performance bus), data accessed through the page mode can be transmitted to the PC audio circuit in burst mode (i.e., at a faster rate). Use of the burst mode decreases the maximum bus latency and the percentage of bandwidth usage. II. PC AUDIO CIRCUIT ARCHITECTURE
- FIG. 1 illustrates the preferred architecture of the PC audio circuit.
- the PC audio circuit 10 includes a PCI bus interface block 12, internal address data bus 14, digital signal processor 16, output control state machine 18, internal bus arbiter 20, and cache memory 22. Data is passed from the PCI bus 24, through PCI interface block 12, over the internal bus 14, and mto the cache 22.
- the PC audio circuit 10, including cache 22, can be formed on a monolithic integrated circuit
- the dashed box in Figure 1 represents the perimeter of a preferred embodiment of such an integrated circuit. Alternatively, the cache 22 may be external to the circuit.
- the digital signal processor (DSP) 16 operates on the data similarly to the wavetable synthesizer DSP disclosed in U.S. patent apphcation Serial No. 08/334,461, by Norris, et al., which is incorporated herein by reference.
- the DSP 16 of the present mvention performs computations and other processing to translate raw wavetable data mto digital audio signals suitable for conversion mto the desired analog audio signals
- the DSP 16 operates from instructions stored in ROM code 26 and preferably can generate up to 32 independent digital audio signals or voices at a 44.1 KHz frame rate Unlike the wavetable synthesizer disclosed in the above-referenced patent apphcation, however, the DSP 16 of the present invention processes several frames of wavetable data samples from voice to voice, rather than one data sample per voice per frame.
- the implementation details for DSP 16 are withm the level of skill possessed by those of ordinary skill m the art.
- the digital audio signals generated for each voice by DSP 16 are accumulated m cache 22, or can be accumulated m a separate cache memory, until they are ready to be output on port 28 to an external audio digital-to-analog converter (DAC).
- the output control state machine (OCSM) 18 is responsible for transmitting the accumulated data from the cache 22 out to the external DAC at the sample rate of 44 1 KHz. OCSM 18 utilizes its own 16 9344 MHz clock 30 to ensure synchronization with to the sample rate.
- the mternal bus arbiter (IBA) 20 is responsible for directing traffic between the various blocks that will access the internal bus 14, including the OCSM 18, the cache 22, the PCI mterface block (PCI I F block) 12 and the DSP 16.
- the mternal bus 14 operates at 33 MHz, along with most of the logic, from a clock 32 that is provided as part of the PCI standard.
- the mternal bus 14 has a 32-bit data bus and a 16-bit address bus.
- the address map for the internal bus is as follows:
- PCI Bus The PCI bus is assigned a block of 256 I/O (byte wide) addresses through standard PCI plug and play circuitry. These addresses are used by the system's central processor as follows- I/O Address Range Data (hexadecimal)
- Wavetable Cache RAM preferably is a low-cost SRAM having a capacity of about
- the available memory m cache 22 can be assigned to data sample storage, accumulator storage, and general storage for DSP 16 Figure 2 depicts how the available memory can be suitably assigned between data sample storage and accumulator storage
- Data samples can be stored in data queues "A" and "B", while the digital audio signals generated by DSP 16 (generated data samples) can be stored m accumulator queues "A" and "B " See Figure 2
- Data queues A and B can each store up to 64 16-bit data samples for each of 32 voices
- Accumulator queues A and B each can accumulate the generated data samples for up to 32 voices
- the generated data samples are accumulated together in queue A or B as one set of 16-bit data samples There can be up to 64 data samples m a set.
- Data queues A and B together can store up to 8 kilobytes
- accumulator queues A and B together can store up to 256 bytes Additional memory can be provided m cache 22 for general DSP storage
- one of the two data queues for a voice is used to store data samples as they are retrieved from system memory while the other data queue supplies data samples to the DSP 16
- data queue A supphes data samples to DSP 16
- data queue B stores data samples retrieved from system memory
- Data queue B is filled with the next set of data samples to be processed by DSP 16, and must be filled before the DSP completes the processing of the data samples m data queue A Otherwise, there will be undesirable gaps m the generated digital audio signals
- data queues A and B are toggled, and DSP 16 processes the data samples stored m data queue B, and data samples retrieved from system memory are stored in data queue A This process continues as long as DSP 16 processes data samples
- one of the accumulator queues is used to supply accumulated data samples to an external DAC, while the other accumulator accumulates data samples generated by DSP 16
- accumulator queue A supphes accumulated data samples
- accumulator queue B accumulates data samples
- the generated data samples for all of the active voices must be accumulated m accumulator queue B before all the data samples m accumulator queue A have been transmitted to the external DAC Otherwise, there will be gaps m the analog signal
- accumulator queues A and B toggle, and data samples accumulated m data queue B are transmitted to the external DAC, and generated data samples are accumulated m data queue A
- An address map for a wavetable cache suitable for the present invention is as follows Address Range Data (hexadecimal)
- PCI mterface block 12 includes PCI mterface controller 34, buffers 36 and 38, mternal bus address register 40, and PCI I F block repsters 42.
- PCI controller 34 is connected to the PCI address bus, buffers 36 and 38, mternal bus address register 40, and PCI I/F block registers 42.
- Buffer 36 connects to the PCI data bus, PCI controller 34, mternal bus address register 40, and the mternal data bus
- buffer 38 connects to the PCI address bus, PCI controller 34, and PCI I/F block registers 42.
- Internal bus address register 40 connect to PCI controller 34, the mternal address bus, the mternal data bus, and buffer 36
- PCI I/F block registers 42 are connected to buffer 38, PCI controller 34, and the internal data and address buses.
- PCI I F block registers 42 contain status and address information which indicates which voice requires additional data samples to be stored in cache and the address in system memory to obtain the data samples. A detailed description of these registers is set forth in the above address map for the mternal bus.
- Internal bus address register 40 is used by the system central processor to access the PC audio circuit registers on the internal bus. For example, the central processor may need access to the PCI I/F block registers order to write system memory addresses which indicate wavetable data storage locations. Internal bus address register 40 also stores the addresses of cache 22 at which wavetable data samples from system memory are stored. As set forth m the I/O address table above, the central processor accesses a register on the mternal bus by writing its address, via buffer 36, in the internal bus address register 40. Read or write accesses to a particular register is provided through the port specified m the above table.
- PCI mterface controller 34 Based on the status information stored m PCI I/W block registers 42, PCI mterface controller 34 detects when there is a need to update cache 22 with data samples and initiates bus master requests Under the control of PCI mterface controller 34, the addresses m system memory from which data samples are to be retrieved are sent from the PCI mterface block registers 42, through buffer 38, to the PCI address bus. Retrieved data samples from system memory are sent on the PCI data bus to buffer 36. Under the control of PCI mterface controller 34, data samples m buffer 36 are transmitted on the internal data bus to cache 22. The addresses m cache 22 for storing the data samples are contamed in mternal bus address register 40 and transmitted on the mternal address bus.
- PCI mterface block 12 can request data samples for more than one active voice at a time.
- PCI controller 34 calculates the cache addresses for storing the data samples by determining which voice is bemg updated, whether queue A or B is bemg updated, and which 32-bit word of the queue is being updated
- PCI controller 34 contams thirty-two 5-bit counters — one for each voice — to determine which sample in the queue is the next to be updated by the PCI mterface block 12
- PCI interface block registers 42 include thirty-two 1-bit toggle registers — one for each voice — to indicate which queue each voice is currently usmg These registers toggle each tune a queue is filled by the PCI interface block 12
- the PCI controller 34 stores the calculated cache addresses in the mternal bus address register 40 and controls when they are output onto the internal address bus
- the implementation details of PCI mterface block 12 are withm the level of skill possessed by those of ordinary skill m the art
- FIG. 4 sets forth a block diagram of OCSM 18 As illustrated, OCSM 18 mcludes a control block 46, with buffer, address decode and control block 48, 7-bit counter 50, and 22 66 microsecond tuner 54 As illustrated, control block 46 is connected to the mternal address and data buses, the address decode and control block 48, the 7-bit counter 50, and FIFO 52 Address decode and control block 48 is connected to the mternal address bus, control block 46, 7-bit counter 50, and timer 54 Seven-bit counter 50 is connected to address decode and control block 48, control block 46, and FIFO 52 The seven-bit counter is described m the above address map for the internal bus, and is referred to as the OCSM sample count register FIFO 52 can store two data samples, one in a top location and the other in a bottom location, and is connected to control block 46, 7-bit counter 50, timer 54, and an external DAC Timer 54 connects to address decode and control block 48, FI
- the DSP 16 enables OCSM 18 by writing to its control register
- OCSM 18 by writing to its control register
- two data samples are transmitted, under the control of control block 46, on the internal data bus from an accumulator queue m cache 22 through the buffer in the control block 46, into FIFO 52 Every 22.66 microseconds, as indicated by timer 54, the FIFO 52 shifts the data sample in the bottom location to the top location, thereby enabling it to be output to the external DAC
- the data sample previously in the top location is discarded
- another data sample is retrieved from cache 22 and stored m the bottom location of FIFO 52, and, under the control of address decode and control block 48, the 7- bit counter 50 is incremented
- Address decode and control block 48 calculates the addresses of data samples to be retrieved from cache 22 from the 7-bit counter 50 and cache address information supplied on the mternal address bus These calculated addresses are sent to control block 46 where they are used to request specific data samples from cache 22
- Internal bus arbiter 20 is a simple arbiter that has a fixed priority for bus requests from (l) the DSP 16 (lowest priority), (n) the PCI bus mterface block 12 (middle priority), and (m) the OCSM 18 (highest priority) Arbiter 20 grants bus access to the requestmg device havmg highest p ⁇ o ⁇ ty, at which pomt that device is free to d ⁇ ve the address bus and either the READ or WRITE signal If the access is a read, then the priority device will capture or use the data from the data bus; if the access is a wnte, then the pnonty device will d ⁇ ve the data bus.
- the implementation details of arbiter 20 are withm the level of skill possessed by those of ordinary skill m the art
- 128 data samples are loaded mto the cache 22 (64 data samples m each of data queues A and B) for each active voice. Assummg 32 active voices, this makes the worst case for required memory:
- additional memory may be provided for general DSP operations.
- the DSP 16 processes the data samples m one ofthe data queues, for the first active voice (e.g , voice 0) The other data queue is presently mactive Then, DSP 16 processes the data samples for the next designated active voice (e.g., voice 1). As DSP 16 processes these data samples, the data samples just generated by DSP 16 are accumulated m one ofthe accumulator queues This process continues until all active voices have been processed, and then the accumulator queues toggle and the other accumulator queue will accumulate generated data samples while the accumulated data samples m the first accumulator queue can be output to the external DAC.
- the accumulator queues toggle and the other accumulator queue will accumulate generated data samples while the accumulated data samples m the first accumulator queue can be output to the external DAC.
- the PCI mterface block 12 sends requests on the PCI bus for additional data samples from system memory.
- the data samples retrieved from system memory are stored m the first data queue, thereby w ⁇ tmg over the data samples ust processed.
- the DSP 16 processes the data samples m the other queue Then, the data queues toggle, and the process continues, allowing up to 64 data samples to be processed at a time If DSP 16 processes the data samples at the same frequency as the sampling frequency used dunng analog- to-digital conversion (recording) ofthe onginal audio signal, then when the audio signals generated by the DSP are converted to analog and played, the resultmg audio signal will sound the same (i.e., have the same frequency) as the onginal audio signal used to create the data samples When the frequency ofthe audio signal bemg played is the same as the recording frequency, its frequency ratio (F equals 1.
- the latency problem for F c > 2 can be avoided by havmg the PC audio circuit 10 retneve only the data samples which will be processed and not the data samples which will be skipped by DSP 16 Thus, all the data samples retrieved and stored in a data queue of cache 22 will be processed
- the implementation details for this feature are within the level of skill possessed by those of ordinary skill in the art
- the PC audio system mcludes dnver software which facilitates the creation of frequency compensated files or patches of wavetable data which are stored in system memory and can be transmitted to cache memory 22 in burst mode, thereby reducmg the PCI bus bandwidth requirements
- FIG. 5 sets forth a block diagram of a PC audio system which can provide frequency compensated patches as descnbed above
- the PC audio system mcludes a PC audio circuit 10, ofthe type described above, dnver software 62, and a MIDI or comparable file 64 PC audio circuit 10 is connected to system memory 60 through PCI bus 24
- File 64 contams parameters that define the song or other audio signals to be generated by PC audio circuit 10.
- the dnver software 62 performs the function of interpreting the parameters contained in file 64 and programming PC audio circuit 10 to generate the desired audio signals from wavetable data in system memory
- the dnver software 62 also contains instructions which control the function of providing frequency compensated patches for high F c voices
- Step 1 retrieve the parameters for a note or voice m file 64.
- Step 2 Calculate the voice's desired F c from these parameters and the frequency of wavetable data in system memory associated with the voice.
- Step 3 If F c > 2 0, denve a frequency compensated patch from the patch of wavetable data stored m system memory which is associated with the voice The frequency compensated patch is stored m system memory
- the system CPU determines for a given voice m file 64 whether the voice is to be played at a frequency higher than the frequency of the wavetable data m system memory for that voice The ratio ofthe desired frequency to the frequency of the data m system memory determines the F c for that voice The CPU then compares the F c value to 2 0 For c F > 2 0, the CPU denves a frequency compensated patch as desc ⁇ bed below. Steps 1-3 are repeated for each voice in file 64.
- a frequency compensated patch can be denved a number of ways.
- One way, which requires the least CPU processing, is to copy or transpose a fraction of the wavetable data samples from the original patch for the voice into a new file or patch stored m system memory.
- the fraction of data samples transposed to the new patch is based on the F c value calculated by the system CPU.
- the frequency compensated patch has a frequency that is higher than the frequency of the onginal patch For example, if every fourth data sample is copied from the original patch to create the frequency compensated patch, the frequency compensated patch has a frequency which is four times the frequency ofthe original patch; the frequency compensated patch has an effective frequency (F eff ) equal to four
- Another way of denvmg frequency compensated patches is to digitally filter the onginal patch of wavetable data samples.
- Digitally filtering requires more CPU processmg but is preferred over the above technique of transposmg a fraction of the wavetable data samples m a patch.
- the high frequency component of a patch of wavetable data translates mto noise m a frequency compensated patch
- Digitally filte ⁇ ng removes the high frequency component and thus results m a frequency compensated patch providing cleaner sound.
- Another example of a digital filtering technique, which requires even more CPU processmg power, is to calculate the average of the movmg average.
- the system CPU can be directed by the dnver software 62 to either: (1) denve all of the required frequency compensated patches just pnor to the PC audio circuit's 10 processing of MIDI file 64; or (2) denve each patch as the PC audio circuit 10 processes through file 64.
- the former technique requires more memory since all the frequency compensated patches are denved and stored in system memory pnor to processmg by the PC audio circuit 10.
- the former techmque also causes a delay before the MIDI file 64 can be played.
- the later technique is preferred if the CPU has enough power and excess time to perform the necessary calculations as file 64 is processed
- frequency compensated patches have apphcation m PC audio systems which obtain wavetable data from local rather than system memory.
- digitally filtering patches of wavetable data filters out high frequencies which translate mto noise when the patch is played at a frequency higher than the recordmg frequency (e.g., F c > 2).
- Wavetable data, stored in a local memory and to be used by a wavetable synthesizer to generate digital audio signals with a high frequency ratio, can be preprocessed, through the above digital filtering techniques, such that the synthesizer generates clean digital audio signals
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Electrophonic Musical Instruments (AREA)
Abstract
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
DE69702336T DE69702336T2 (de) | 1996-02-21 | 1997-02-21 | Audiosystem für pc mit frequenzkompensierten wellenformdaten |
EP97907795A EP0882286B1 (fr) | 1996-02-21 | 1997-02-21 | Systeme audio de micro-ordinateur a compensation en frequence des donnees de tableaux d'ondes |
JP9530362A JP2000505566A (ja) | 1996-02-21 | 1997-02-21 | 周波数補正されたウェーブテーブル・データを備えるpcオーディオシステム |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US60455896A | 1996-02-21 | 1996-02-21 | |
US08/604,558 | 1996-02-21 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO1997031363A1 true WO1997031363A1 (fr) | 1997-08-28 |
Family
ID=24420092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US1997/002811 WO1997031363A1 (fr) | 1996-02-21 | 1997-02-21 | Systeme audio de micro-ordinateur a compensation en frequence des donnees de tableaux d'ondes |
Country Status (5)
Country | Link |
---|---|
EP (1) | EP0882286B1 (fr) |
JP (1) | JP2000505566A (fr) |
KR (1) | KR100384685B1 (fr) |
DE (1) | DE69702336T2 (fr) |
WO (1) | WO1997031363A1 (fr) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999059132A1 (fr) * | 1998-05-14 | 1999-11-18 | Sony Computer Entertainment Inc. | Dispositif et procede de generation de tonalite |
JP3235557B2 (ja) | 1998-01-09 | 2001-12-04 | ヤマハ株式会社 | 波形再生装置、波形録音再生装置、波形出力回路、波形入出力回路、波形再生方法および波形録音再生方法 |
US6366971B1 (en) | 1998-01-09 | 2002-04-02 | Yamaha Corporation | Audio system for playback of waveform sample data |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10219357B4 (de) | 2002-04-30 | 2004-03-11 | Advanced Micro Devices, Inc., Sunnyvale | Verbesserter Datentransfer in Audiocodeccontrollern |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4508001A (en) * | 1983-07-29 | 1985-04-02 | Nippon Gakki Seizo Kabushiki Kaisha | Electronic musical instrument using large-capacity recording medium |
EP0474177A2 (fr) * | 1990-09-05 | 1992-03-11 | Yamaha Corporation | Dispositif générateur de signal sonore |
WO1992015087A1 (fr) * | 1991-02-15 | 1992-09-03 | Studio Audio & Video Limited | Techniques de stockage de donnees musicales |
-
1997
- 1997-02-21 DE DE69702336T patent/DE69702336T2/de not_active Expired - Fee Related
- 1997-02-21 EP EP97907795A patent/EP0882286B1/fr not_active Expired - Lifetime
- 1997-02-21 WO PCT/US1997/002811 patent/WO1997031363A1/fr active IP Right Grant
- 1997-02-21 JP JP9530362A patent/JP2000505566A/ja not_active Ceased
- 1997-02-21 KR KR10-1998-0706429A patent/KR100384685B1/ko not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4508001A (en) * | 1983-07-29 | 1985-04-02 | Nippon Gakki Seizo Kabushiki Kaisha | Electronic musical instrument using large-capacity recording medium |
EP0474177A2 (fr) * | 1990-09-05 | 1992-03-11 | Yamaha Corporation | Dispositif générateur de signal sonore |
WO1992015087A1 (fr) * | 1991-02-15 | 1992-09-03 | Studio Audio & Video Limited | Techniques de stockage de donnees musicales |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3235557B2 (ja) | 1998-01-09 | 2001-12-04 | ヤマハ株式会社 | 波形再生装置、波形録音再生装置、波形出力回路、波形入出力回路、波形再生方法および波形録音再生方法 |
US6366971B1 (en) | 1998-01-09 | 2002-04-02 | Yamaha Corporation | Audio system for playback of waveform sample data |
US6553436B2 (en) | 1998-01-09 | 2003-04-22 | Yamaha Corporation | Apparatus and method for playback of waveform sample data and sequence playback of waveform sample data |
WO1999059132A1 (fr) * | 1998-05-14 | 1999-11-18 | Sony Computer Entertainment Inc. | Dispositif et procede de generation de tonalite |
US6180864B1 (en) | 1998-05-14 | 2001-01-30 | Sony Computer Entertainment Inc. | Tone generation device and method, and distribution medium |
Also Published As
Publication number | Publication date |
---|---|
EP0882286A1 (fr) | 1998-12-09 |
JP2000505566A (ja) | 2000-05-09 |
EP0882286B1 (fr) | 2000-06-21 |
KR100384685B1 (ko) | 2003-08-14 |
DE69702336T2 (de) | 2001-02-15 |
DE69702336D1 (de) | 2000-07-27 |
KR19990087044A (ko) | 1999-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6100461A (en) | Wavetable cache using simplified looping | |
US5689080A (en) | Computer system and method for performing wavetable music synthesis which stores wavetable data in system memory which minimizes audio infidelity due to wavetable data access latency | |
US5717154A (en) | Computer system and method for performing wavetable music synthesis which stores wavetable data in system memory employing a high priority I/O bus request mechanism for improved audio fidelity | |
US5847304A (en) | PC audio system with frequency compensated wavetable data | |
US5753841A (en) | PC audio system with wavetable cache | |
US20010045155A1 (en) | Method of compressing a midi file | |
US5763801A (en) | Computer system and method for performing wavetable music synthesis which stores wavetable data in system memory | |
US5809342A (en) | Computer system and method for generating delay-based audio effects in a wavetable music synthesizer which stores wavetable data in system memory | |
JP3163984B2 (ja) | 楽音発生装置 | |
EP0882286B1 (fr) | Systeme audio de micro-ordinateur a compensation en frequence des donnees de tableaux d'ondes | |
EP0801784A1 (fr) | Systeme audio pour micro-ordinateur avec antememoire a tableau de signaux analogiques | |
EP1267560B1 (fr) | Générateur de tonalité partageant des paramètres entre des canaux | |
US5918302A (en) | Digital sound-producing integrated circuit with virtual cache | |
US7381879B2 (en) | Sound waveform synthesizer | |
US5548655A (en) | Sound processing apparatus | |
EP1024475B1 (fr) | Dispositif et procede de generation de sons musicaux, systeme de restitution et support d'enregistrement de donnees | |
JP3855711B2 (ja) | 音波形データ用ディジタル信号処理装置 | |
KR20010021575A (ko) | 음 발생 장치 및 방법 | |
US5956680A (en) | Virtual audio generation and capture in a computer | |
US7561931B1 (en) | Sound processor | |
JP2709965B2 (ja) | Bgm再生に用いる音楽伝送再生システム | |
JP3758267B2 (ja) | 音源回路設定方法、該方法によって設定される音源回路を備えたカラオケ装置、および記録媒体 | |
JP3695404B2 (ja) | 波形処理デバイス | |
JP2014112198A (ja) | 音発生装置 | |
JPH11220791A (ja) | サウンドプロセッサ |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AK | Designated states |
Kind code of ref document: A1 Designated state(s): JP KR |
|
AL | Designated countries for regional patents |
Kind code of ref document: A1 Designated state(s): AT BE CH DE DK ES FI FR GB GR IE IT LU MC NL PT SE |
|
DFPE | Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101) | ||
121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
WWE | Wipo information: entry into national phase |
Ref document number: 1997907795 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 1019980706429 Country of ref document: KR |
|
WWP | Wipo information: published in national office |
Ref document number: 1997907795 Country of ref document: EP |
|
WWP | Wipo information: published in national office |
Ref document number: 1019980706429 Country of ref document: KR |
|
WWG | Wipo information: grant in national office |
Ref document number: 1997907795 Country of ref document: EP |
|
WWG | Wipo information: grant in national office |
Ref document number: 1019980706429 Country of ref document: KR |