1. Technical Field of the Invention
The present invention relates to a waveform data processing apparatus with a dedicated data bus suitably used for connection among musical sound processing devices.
2. Prior Art
A sound board mounted on an electronic musical instrument, personal computer or the like is equipped with a plurality of LSIs which processes musical sound signals, and these LSIs are connected by connection lines for transmitting and receiving the musical sound signals, thereby enabling necessary functions. Here, an example of the sound board mounted on the electronic musical instrument is shown in
The musical sound signals which have been applied the effect processing are again supplied to the sound generator LSIs 102, 104. In addition, the sound generator LSIs 102, 104 also exchange musical sound signals between them. Then, the musical sound signals to be finally output are supplied from the sound generator LSI 104 to a DA converter 110 where they are converted into analog signals. 114 denotes a plug-in board which can be added optionally and is equipped with an additional waveform synthesizing section, DSP or the like. This plug-in board 114 is plugged into a connector 112 as necessary.
Furthermore, another configuration of the sound board is shown in
In the examples of
On the other hand, a technique is known in which a hardware common connection state is shared by a plurality of nodes, while a exchanging state of signals is set depending on the function that will finally be needed, thereby setting a logical connection relationship. For example, the applicant has proposed a network standard called mLAN (trademark) wherein an electronic musical instrument or equipment such as a synthesizer or digital mixer, and a computer or the like are connected by serial cables on an IEEE1394 interface, thereby exchanging musical sound signals or music performance information.
In addition, Japanese Patent Publication Laid-open No. 5-188967 discloses a technique in which an AD converter, hard disk and a waveform memory are connected on a common bus, and waveform data or the like is exchanged among these nodes on a time-divisional basis.
As described above, in the examples of
In this case, it is important that a suitable kind of standard is employed to connect the LSIs to the bus 156. The mLAN™ mentioned above is based on the assumption that independent equipment such as the synthesizer or digital mixer is to be the node, so that signal compositions are complicated and it is impracticable to adapt individual LSIs to the mLAN standards. Moreover, the technique disclosed in Japanese Patent Publication Laid-open No. 5-188967 allows the specific nodes that are shown in this publication to exchange waveform data or the like, but can not be adapted to various kinds of nodes in a general and multi-purpose manner.
This invention has been attained in view of the circumstances described above, and is intended to provide a waveform data processing apparatus capable of securing high versatility with a simple circuit.
In order to solve the problems mentioned above, the present invention is characterized by comprising the following constitution. It should be noted that references in parentheses are examples.
A waveform data processing apparatus according to a first aspect of the invention comprises: a bus (A bus 262) that transfers data signals (ADAT) of waveform data; a plurality of transmitting nodes (15, 16, 17) that transmits the data signals to the bus; a plurality of receiving nodes (15, 16, 17) that receives the data signals from the bus; and a clock generator (251) that generates a word clock signal (WCK) per sampling period, and the waveform data processing apparatus is characterized in that each of the transmitting nodes transmits the data signals to the bus per the sampling period in predetermined order, and each of the receiving nodes selectively acquires a necessary signal from the data signals output from each of the transmitting nodes and processes the acquired data signal per the sampling period.
Furthermore, according to the constitution set forth in
Furthermore, according to the constitution set forth in
Furthermore, another waveform data processing apparatus according to the first aspect of the invention comprises: a bus (A bus 262) that transfers data signals of waveform data; at least one transmitting node (15, 16, 17) that transmits the data signals to the bus; and at least one receiving node (15, 16, 17) that receives the data signals from the bus, and the waveform data processing apparatus is characterized in that the transmitting node operates on the basis of a first operation clock signal (system clock signal) and generates a sync clock signal (ACLK) on the basis of the first operation clock signal, and outputs the sync clock signal and a first data signal synchronous with the sync clock signal to the bus; and the receiving node operates on the basis of a second operation clock signal (system clock signal), receives the sync clock signal and the first data signal per sampling period, and converts the received first data signal into a second data signal synchronous with the second operation clock signal.
Furthermore, a still another waveform data processing apparatus according to the first aspect of the invention comprises: a bus (A bus 262) that transfers data signals (ADAT) of waveform data; a plurality of transmitting nodes (15, 16, 17) that transmits the data signals to the bus; a plurality of receiving nodes (15, 16, 17) that receives the data signals from the bus; and a clock generator (251) that generates a word clock signal (WCK) per sampling period, and the waveform data processing apparatus is characterized in that each of the transmitting nodes transmits the data signals having an n (“4” or “16”)-bit width, and the n-bit width can be set to different values for each transmitting node, and each of the transmitting nodes divides the waveform data having an m (“32”)-bit width into m/n words of partial data per sampling period and outputs the partial data as the data signals; and each of the receiving nodes inputs the m/n words of partial data having an n-bit width per sampling period, and restores the m-bit width waveform data from the input m/n words of partial data.
Furthermore, a still another waveform data processing apparatus according to the first aspect of the invention comprises: a bus (A bus 262) that transfers data signals (ADAT) of waveform data; at least one transmitting node (15, 16, 17) that transmits the data signals related to a plurality of waveform data to the bus; and a plurality of receiving nodes (15, 16, 17) that receives the data signals from the bus; and a clock generator (251) that generates a word clock signal (WCK) per sampling period, and the waveform data processing apparatus is characterized in that the transmitting node transmits the data signals having an n (“4” or “16”)-bit width, and the n-bit width can be set to different values for each unit of the waveform data, and the transmitting node divides the waveform data having an m (“32”)-bit width into m/n words of partial data in accordance with the bit width n corresponding to the waveform data per sampling period, and outputs the partial data as the data signals using m/n time slots; and each of the receiving nodes selectively receives at least one unit of waveform data from the plurality of waveform data, and receives m/n words of partial data correspondingly to the bit width n of the waveform data to be received, per sampling period, and then restores the at least one unit of waveform data having an m-bit width from the received m/n words of partial data.
A waveform data processing apparatus according to a second aspect of the invention comprises: a bus (A bus 262) that transfers data signals (ADAT) of waveform data; a clock generator (251) that generates a word clock signal (WCK) per sampling period; a plurality of transmitting nodes (15, 16, 17) that transmits the data signals to the bus per frames synchronously with the word clock signal; and a plurality of receiving nodes (15, 16, 17) that receives the data signals from the bus synchronously with the word clock signal, and the waveform data processing apparatus is characterized in that each of the transmitting nodes is assigned one or a plurality of frames that are each given different frame numbers, detects a transmission frame by which each of the transmitting nodes should transmits data per sampling period, and transmits the data signal of the waveform data related to the corresponding frame to the bus; and at least one frame number by which the data is to be received is designated for each of the receiving nodes, and each of the receiving nodes detects a reception frame by which each of the receiving nodes should receive data, per sampling period, and receives the data signals of waveform data related to the corresponding frame from the bus.
Furthermore, according to the constitution set forth above, the waveform data processing apparatus is characterized in that the frame numbers given to the frames are consecutive numbers.
Furthermore, according to the constitution set forth above, the waveform data processing apparatus is characterized in that each of the transmitting nodes transmits the waveform data of a plurality of channels to the bus in each corresponding transmission frame.
Furthermore, according to the constitution set forth above, the waveform data processing apparatus is characterized in that each of the receiving nodes selectively receives the waveform data of one or a plurality of channels in each corresponding reception frame.
Furthermore, a transmitting node (15, 16, 17) transfers data of a plurality of frames on a time divisional basis per sampling period and is connected to a bus comprising a plurality of data signal lines (10) and one frame signal line (13), and thus transmits data to the bus, and the transmitting node is characterized by comprising: a frame counter (402) that counts frame numbers on the basis of frame signals (AFRM) transferred from the frame signal line (13) per sampling period; a first register (476) that stores a frame number of a transmission frame by which the transmitting node transmits data; a second register (464) that stores data to be transmitted in the transmission frame; a comparator (452) that outputs a coincidence signal when detecting that the frame number output by the frame counter corresponds to the frame number stored in the first register (476); and a transmitting section (458, 466) that forms a frame signal (AFRM) of the transmission frame and transmits the frame signal to the frame signal line (13) in response to the coincidence signal, and also transmits the data stored in the second register to the data signal line (10). Furthermore, according to the constitution set forth above, the transmitting node is characterized in that a controller for controlling the transmitting node is connected to the transmitting node, and when a plurality of transmitting nodes is connected to the bus, the controller writes different frame numbers into the first registers of the transmitting nodes.
Furthermore, according to the constitution set forth above, the transmitting node is characterized in that the second register stores data of a plurality of channels, and the transmitting section (450) sequentially outputs the waveform data of the plurality of channels to the data signal line (10) in the transmission frame.
Furthermore, a receiving node (15, 16, 17) transfers data of a plurality of frames on a time divisional basis per sampling period and is connected to a bus comprising a plurality of data signal lines (10) and one frame signal line (13), and thus receives data from the bus, and the receiving node is characterized by comprising: a frame counter (402) that counts frame numbers on the basis of frame signals (AFRM) transferred from the frame signal line (13) per sampling period; a first register (472) that stores a frame number of a reception frame by which the receiving node receives data; a second register (416) that stores data to be received by the reception frame; a comparator (408) that outputs a coincidence signal when detecting that the frame number output by the frame counter corresponds to the frame number stored in the first register (472); and a receiving section (400) that selectively takes data in the frame from the data signal line (10) into the second register in response to the coincidence signal.
Furthermore, according to the constitution set forth above, the receiving node further comprises a data counter (406) that counts the number of input data in the reception frame, and the receiving node is characterized in that data of a plurality of channels are transferred on the bus in each of the plurality of frames; the first register also stores offset values of data to be received in the reception frame; the comparator (408) outputs another coincidence signal on condition that a counting result in the data counter corresponds with an offset value stored in the first register; and the receiving section (400) selectively takes the data from the data signal line (10) into the second register depending on whether or not the counting result in the data counter corresponds with the offset value, in the reception frame.
A waveform data processing apparatus according to a third aspect of the invention comprises: a bus (262) that transfers data signals (ADAT) through a plurality of time slots on a time divisional basis per sampling period; a plurality of transmitting nodes (15, 16, 17) that transmits the data signals to the bus; at least one receiving node (15, 16, 17) that receives the data signals from the bus; and a controller (212) for setting a different transmission slot to each of the transmitting nodes, and setting a reception slot corresponding to one of the transmission slots to the receiving node, and the waveform data processing apparatus is characterized in that each of the transmitting nodes detects a time slot related to a designated transmission slot per sampling period, and supplies waveform data to the bus (262) in the detected time slot; and the receiving node detects a time slot related to a designated reception slot per sampling period, and receives the waveform data from the bus (262) in the detected time slot.
Furthermore, according to the constitution set forth above, the controller (212) detects a kind of each transmitting node connected to the bus (262), and sets the transmission slot of each transmitting node on the basis of the detection result.
Furthermore, according to the constitution set forth above, the controller (212) detects a kind of receiving node connected to the bus (262), and sets the reception slot of the receiving node on the basis of the detection result.
Furthermore, according to the constitution set forth above, the waveform data processing apparatus further comprises an instruction input section (206) that receives user instructions from a user, and the controller (212) sets a transmission slot of at least one transmitting node and a reception slot of the receiving node in accordance with the user instruction.
Furthermore, according to the constitution set forth above, the waveform data processing apparatus further comprises an instruction input section (206) that designates an operation mode in response to an instruction from a user, and the controller (212) sets transmission slots of the plurality of transmitting nodes and a reception slot of the receiving node in accordance with the designated operation mode.
Furthermore, according to the constitution set forth above, the waveform data processing apparatus further comprises an instruction input section (206) that designates a logical link state between the transmitting nodes and the receiving node in response to an instruction from the user, and the controller (212) sets a reception slot for the receiving node in accordance with the designated link state and sets the transmission slots of the plurality of transmitting nodes.
Furthermore, according to the constitution set forth above, in the waveform data processing apparatus, the controller (212) detects a kind of system in which the waveform data processing apparatus is installed, and sets transmission slots of the plurality of transmitting nodes and a reception slot of the receiving node on the basis of the detection result.
a) through 1(c) are block diagrams of a conventional sound generation unit and an inventive sound generation unit, respectively.
a) and 6(b) are diagrams showing arrays of bits corresponding to transmission bit widths.
a) through 11(c) are block diagrams showing specific configurations of a waveform processing section 320.
1. General Configuration of Embodiment
1.1. Overall Configuration
Next, a hardware configuration of a musical sound synthesizing apparatus in one embodiment of the present invention will be described in reference to
250 denotes a sound generation unit, which synthesizes musical sound signals by means of processing described later. 208 denotes a display device, which displays various kinds of information such as setting state of the sound generation unit 250 for the users. 210 denotes an external storage device, which is constituted by a hard disk, flexible disk and the like. 212 denotes a CPU, which controls each section of the musical sound synthesizing apparatus via a CPU bus 218 on the basis of a predetermined control program. 214 denotes a ROM, which stores the control program of the CPU and the like. 216 denotes a RAM, which is used as a work memory of the CPU 212.
Furthermore, inside the sound generation unit 250, 252, 254 denote sound generator LSIs, which generate waveform data on the basis of performance information, produced sound parameters and the like supplied via the CPU bus 218, and also apply effect processing to the waveform data on the basis of effect parameters or the like similarly supplied. 256, 258 and 260 denote expanded boards, which perform various kinds of processing such as synthesizing processing, effect processing and recording processing of the waveform data, suitably to their kinds, and enable the sound generation unit 250 to achieve desired functions together with the sound generator LSIs 252, 254.
262 denotes a bus (hereinafter referred to as A bus) for transferring waveform data, which transfers waveform data among the sound generator LSIs 252, 254 and expanded boards 256, 258 and 260. Generally, in a communication network, in many cases, a header including information such as an address of a transmitting end and transmission channel is attached to the data to be transmitted so as to constitute a packet, and this packet is transmitted. In addition, in order to avoid collision of transmitted data when a plurality of transmitting nodes starts transmission at the same time, the network is provided with a system that conducts arbitration based on identifiers and addresses of the nodes. As compared with such a network, since only the waveform data that are not attached with the transmitting-end address, transmission channel or the like are transmitted on the A bus 262, it is possible to accomplish a significantly high transmission efficiency per transmission clock. Controller (CPU 212) is connected to the respective transmitting nodes, which are connected to the A bus 262, via the bus (CPU bus 218) different from the A bus 262, and the controller sets different transmission timings to the respective transmitting nodes to prevent collision. The A bus 262 itself is not provided with an arbitration function, so that a configuration is much simpler than that of the conventional network.
Furthermore, as an amount of transferred waveform data is great between the sound generator LSIs 252 and 254, part of the waveform data is transmitted via direct connection lines 253. 264 denotes a DA converter, which converts part of the waveform data from an output channel of the sound generator LSI 252 into analog signals. Sound is produced from the converted analog signals via a sound system 220.
251 denotes a word clock generator, which generates a word clock WCK rising every sampling period. This word clock WCK is supplied to each section in the sound generation unit 250. 268 denotes a word clock external input terminal, which is provided to receive a word clock WCK from the external in place of the word clock WCK generated by the word clock generator 251. This is used to synchronize the sampling periods with external devices.
Out of the components mentioned above, a “sound board” in the present embodiment is constituted by the bus such as the CPU bus 218 or A bus 262, semiconductor circuits such as the MIDI•I/O section 202, extra I/O section 204, CPU 212, ROM 214, RAM 216, word clock generator 251, sound generator LSIs 252, 254 and DA converter 264, an interface (not shown) for connecting the external storage device 210, connectors (not shown) for connecting the panel switch section 206 and display device 208 to the CPU bus 218, connectors (not shown) for connecting the expanded boards 256, 258 and 260, and a power source circuit (not shown) which provides a power source to the entire. The connectors for the expanded boards 256, 258 and 260 are connected to both the CPU bus 218 and A bus 262, and these expanded boards are built detachably from the “sound board” via the connectors.
1.2. Bus Configuration and Timing
Those components such as the sound generator LSIs 252, 254 and expanded boards 256, 258 and 260 that input and output waveform data via the A bus 262 are called “nodes”. A connection relationship between each node and the A bus 262 is shown in
These nodes input and output data signals ADAT, direction signals ADIR and clock signals ACLK to and from the A bus 262. Input and output terminals for these signals are connected to the A bus 262 in a wired OR form. In other words, as long as a “0” signal is not output from any of the nodes, the signals on the A bus 262 always become “1”. At the moment when one of the nodes outputs a signal such as the data signal ADAT, the input and output terminals of other nodes are set in a high impedance state, and an output signal from the above one node is received as necessary. Here, the data signal ADAT is a signal of the waveform data or the like that should be exchanged among the nodes. Further, the clock signal ACLK is a clock signal synchronous with the data signal ADAT.
The CPU 212 sets periods to output the data signal ADAT and clock signal ACLK for each node so as to prevent overlap. This period is referred to as a “frame”. The direction signal ADIR is set to “0” during this frame period, thereby forbidding other nodes to output signals. Each node outputs a frame signal AFRM which rises earlier by an equivalent of one clock of the clock signal ACLK than the direction signal ADIR rise to “1”. The frame assigned to each node is defined by “how many frames are there after the word clock WCK has risen”. Therefore, it is possible for each node to know the timing to start its frame by counting the number of times that frames have been generated after the word clock WCK had risen (more specifically, by counting the number of times that the frame signal AFRM has risen).
Here, depending on the order of generation after the word clock WCK has risen, the frames are each indicated as frame #0, frame #1, frame #2, . . . . One or a plurality of transmission frames can be assigned to each node in one sampling period. Here, timing charts in which the frame #2 is assigned to the node 15, the frame #0 to the node 16, and the frame #1 to the node 17 as the transmission frames will be described in reference to
The fact that the word clock WCK has risen at a time t0 of
At a time t2 when data output from the node 16 is finished, the node 16 rises the direction signal ADIR to “1”. The frame signal AFRM is raised to “1” one period of the clock signal ACLK earlier than the time t2. Detecting the first time that the frame signal AFRM rises on the A bus 262, the node 17 recognizes that a next frame is the frame #1 assigned to the node 17 itself.
After the direction signal ADIR has risen, the node 17 operates similarly to the abovementioned node 16 at a time t3 after a predetermined margin time has passed. That is, the direction signal ADIR and frame signal AFRM of the node 17 are raised to “0”, and the clock signal ACLK is raised on every predetermined clock cycle, and in synchronization with this, the data signal ADAT is output to the data signal line 10. In addition, the margin time between the frames is provided to avoid collision of data.
Next, the fact that the node 17 has raised the frame signal AFRM to “1” is detected by the node 15. As this is the second time that the frame signal AFRM rises after the word clock WCK has risen, the node 15 recognizes that a next frame is the frame #2 assigned to the node 15 itself. After the direction signal ADIR of the node 17 has risen to “1” at a time t4, the node 15 performs output processing in the same manner as described above at a time t5 after a predetermined margin time has passed.
One frame is assigned to each node in the example described above, but a plurality of transmission frames may be assigned to one node in one sampling period. In this way, after the output processing from all the frames is finished, the lines of the A bus 262 are kept in the high impedance state until the word clock WCK rises next. Here, the wired ORs having waveforms shown in
In the present embodiment, the clock cycle and clock speed of the clock signal ACLK can be optionally set for each node. In other words, in each node, the clock speed in one frame is set depending on the amount of data to be transmitted to other nodes and the bit width of the data signal line 10. Further, the clock cycle may preferably be decided in accordance with the node whose processing speed is the slowest, among the node which transmits data (hereinafter referred to as transmitting node) and one or a plurality of nodes which receives the data (hereinafter referred to as receiving node).
1.3. Format of Data Signal
As described above, either 16 bits or 4 bits can be selected for the bit width of the data signal line 10, and only one part of it can have a 4-bit width. If the 4-bit width is adopted, a data transfer speed is decreased, but the number of wires can be reduced. This can lower the cost for the connectors and the like, so that it is conceivable, for example, that the 4-bit width is adopted to only the parts contacting the expanded boards 256, 258 and 260 where the connectors are needed.
In such a case, when the transmitting node connected to the 16-bit width part of the data signal line 10 outputs data to both the 16-bit width receiving node and another 4-bit width receiving node, it is necessary to output data with bit widths corresponding to the respective receiving nodes. In that case, if a plurality of frames is assigned to the transmitting node per corresponding receiving node, it is possible to transmit the waveform data with the bit width that is changed for each frame.
Furthermore, even when the waveform data is transmitted to both of the receiving nodes, it is not always necessary to divide the waveform data into a plurality of frames, and the bit width may be set for each time slot. That is, data may be output with the 16-bit width in part of the time slots within one frame, and data may be output with the 4-bit width in other time slots. In this case, each receiving node recognizes the time slot that it needs in one frame, and thus receives a data signal with a corresponding bit width.
In the present embodiment, the width of data exchanged between nodes is basically 32 bits. A unit of 32 bits is referred to as “one unit” in the present specification. That is, one unit of data is output by use of 2 (=32/16) time slots when the data signal line 10 has a 16-bit width and by use of 8 (=32/4) time slots when the data signal line 10 has a 4-bit width. Bit arrays for the respective bit widths are shown in
Generally, it is possible for electronic musical instruments to perform processing such as generation of musical sound signals of a plurality of channels. Plural units of data can be transmitted and received between the nodes in one frame, so that, for example, if one unit is assigned to one channel amount of data, the waveform data of a maximum of 32 bits of the channel corresponding to the unit can be exchanged between the nodes. Further, a stereo L channel and R channel may be assigned to one unit, and 16-bit waveform data of the L, R channels may be packed into the one unit. Alternatively, independent two channels may be assigned to one unit. A length of each frame is decided not depending on the number of channels of the waveform data to be transmitted in the frame, but depending on the number of units to which the channels to be transmitted are assigned.
1.4. General Configuration of Nodes
Next, a general configuration of the nodes will be described in reference to
Here, in the original data signal ADAT, the bits are arrayed as described in
450 denotes a transmitting section, which converts the bit arrays of the data output from the waveform processing section 320 as described in
The control data stored in the control register 470 contains frame numbers assigned to the node 300, a period and clock speed of the clock signal ACLK, parameters for the waveform processing section 320, and the like. 490 denotes a parameter ROM, which stores the kind of node 300, the number of channels that permit transmission and receiving, parameters of maximum receiving and transmission rates and the like. Contents in the parameter ROM 490 are read by the CPU 212 when power is applied to the musical sound synthesizing apparatus.
Since the configuration in
1.4.1. Details of Time Slot Conversion Section 306
Details of the operation of the time slot conversion section 306 will here be described in reference to
Next, a “system clock” shown in the diagram is a clock generated by the operation clock generation section mentioned above, and has a frequency two times as high as that of the clock signal ACLK to be output, in the shown example. However, the shown clock signal ACLK, that is, the clock signal ACLK received via the buffer amplifier 304 is a signal generated by another node, and its frequency is not synchronized with the system clock of the node 300 because the system clocks of the nodes are independent of each other.
The intermediate data is latched every time the clock signal ACLK rises, and the latching result is the data signal ADAT′ shown in the diagram. This data signal ADAT′ is supplied to the receiving section 400. The clock signal ACLK is latched every time the system clock falls. A current latching result is compared with the latching result of the previous falling timing every time the clock signal ACLK is latched, and if a rising of the clock signal ACLK is detected (i.e., if the previous latching result is “0” and the current latching result is “1”), a fetch signal ACLK′ is set to “1” in a half period of the system clock.
The fetch signal ACLK′ is set to “0” in other cases. This fetch signal ACLK′ is supplied to the receiving section 400 together with the data signal ADAT′, as a timing signal for fetching in the data signal ADAT′. In this way, in the present embodiment, each receiving node generates the fetch signal ACLK′ and data signal ADAT′ in synchronization with the system clock generated by itself, so that it is possible to compensate for differences of frequencies and phases in the system clocks among the nodes.
1.4.2. Details of Receiving Section 400
Next, a detailed configuration of the receiving section 400 will be described in reference to
For example, if the node 300 receives “100” units of data in one sampling period, a set of frame number and offset value is stored in an address “100” in the order of generation. 474 denotes a data line bit number register, which stores the bit width of the data signal ADAT correspondingly to the addresses of the receiving control register 472. In addition, the bit width of data in a unit, which is indicated by an offset value of the reception frame designated by the frame number, corresponds to the frame number and the offset value, so that it will be “16 bits” if a number stored in the data line bit number register 474 is “0”, and “4 bits” if “1”.
Furthermore, inside the receiving section 400, 402 denotes a frame counter, which counts the number of times that the frame signal AFRM on the A bus 262 has fallen, and is reset at the right time when the word clock WCK rises. In this way, a counting result of the frame counter 402 will be the frame number at the present moment. 404 denotes a word counter, which counts the number of fetch signals ACLK′ in each frame, and is reset at the right time when each frame signal AFRM falls. In this way, a counting result of the word counter 404 will be a present word number in each frame.
406 denotes an offset counter, which outputs the offset value (unit number) of the frame presently being received by counting the word numbers output from the word counter 404. More specifically, the bit width of the data signal ADAT′ presently being received is specified on the basis of the content stored in the data line bit number register 474, so that if the bit width is “16”, the word number divided by “2” is the present offset value, and if the bit width is “4”, the word number divided by “8” is the present offset value.
410 denotes a fetch counter, which stores read addresses of the receiving control register 472 and data line bit number register 474. This fetch counter 410 is incremented by “1” in accordance with coincidence signals RCX described later, and reset by the word clock WCK. Counting results of the fetch counter 410 are used as the read addresses of the receiving control register 472 and data line bit number register 474. Therefore, at the start of each sampling period, the frame number, offset value and bit width of an address “0” of the registers 472, 474 are read.
408 denotes a comparator, which compares the frame number output by the frame counter 402 with the frame number stored in the present read address of the receiving control register 472, and also compares the offset value output by the offset counter 406 with the offset value stored in the present read address of the receiving control register 472. If both the frame number and the offset value correspond, the coincidence signal RCX is raised to “1”. If at least one of the frame number or offset value does not correspond, the coincidence signal RCX is set to “0”.
Now, when the coincidence signal RCX rises to “1”, the count result of the fetch counter 410 is incremented by “1”. Accordingly, contents in the next address of the registers 472, 474 will then be read, and the coincidence signal RCX immediately falls to “0”. 412 denotes a fetch register section, which is composed of 4-bit registers IN1 to IN8. When the bit width of the data signal ADAT′ is “4”, data of “8” words are sequentially latched by the registers IN1 to IN8 in the successive “8” slots.
Furthermore, when the bit width of the data signal ADAT′ is “16”, data of successive “2” slots are latched. That is, the data of the first slot is latched by the registers IN1 to IN4, and the data of the next slot is latched by the registers IN5 to IN8. 414 denotes a bit sorting section, which sorts the bits of the data latched by the registers IN1 to IN8 into the normal bit arrays per unit (32 bits).
416 denotes a received data register, which latches the sorted data synchronously with the coincidence signal RCX. The received data register 416 has a plurality of addresses, and can store one unit of waveform data for each address. The counting results of the fetch counter 410 mentioned above are used for write addresses into the received data register 416. The waveform data stored by the received data register 416 is read by the waveform processing section 320 as needed.
1.4.3. Details of Transmitting Section 450
Next, a detailed configuration of the transmitting section 450 will be described in reference to
Furthermore, 478 denotes a data line bit number register, which stores the number of bits of the transmission data signal ADAT in each of the transmission frames. In addition, the bit width in the transmission frame is “16 bits” if a value stored by the data line bit number register 478 is “0”, and “4 bits” if “1”. As described above, a plurality of transmission frames can be assigned to one node in one sampling period, in the present embodiment. In this way, for example, the data signal ADAT can be output at a high rate in one transmission frame to the receiving nodes with high processing speed, and the data signal ADAT can be output at a low rate in other transmission frames to other receiving nodes with low processing speed. Moreover, it is preferable that individual different transmission frames are also assigned to a plurality of receiving nodes with different bit width (4 or 16 bits) of data line.
Inside the transmitting section 450, 452 denotes a comparator, which compares the frame number of each transmission frame stored by the transmission control register 476 with the present frame number supplied from the frame counter 402 in the receiving section 400, and outputs a signal “1” if the present frame number corresponds to the frame number of any frame. Further, 454 denotes a comparator, which compares, in each frame, the number of transmission units in the transmission frame with the counting result of a read counter 462 described later, and outputs a signal “1” if the counting result is below the number of transmission units.
456 denotes an S flag setting circuit, which sets an S flag (transmission flag) to “1” in a state where the comparators 452, 454 both outputs the signal “1”, and sets the S flag to “0” in other cases. 458 denotes a timing signal generation section, which generates the clock signal ACLK on the basis of the transmission rate stored by the transmission control register 476 and sets both the direction signal ADIR and frame signal AFRM to “0” when the S flag rises to “1”.
Furthermore, in the timing signal generation section 458, the frame signal AFRM is first raised to “1” when the S flag becomes “0”. Then, output of the clock signal ACLK is stopped one period of the clock signal ACLK late, and the direction signal ADIR is raised to “1” (see
462 denotes the read counter, which counts the number of transmitted units on the basis of the values stored by the data line bit number register 478, in the same manner as the offset counter 406 in the receiving section 400 described above. The counting results are supplied as the read addresses to the transmission data register 464. In this way, the 32-bit waveform data stored by the transmission data register 464 are sequentially accessed and read. 466 denotes a bit selection section, which selects part of the bits (see
2. Specific Configuration of Embodiment
2.1. Specific Configuration Example of Waveform Processing Section 320
Next, a specific configuration example of the waveform processing section 320 is shown in
The synthesized 16-part of waveform data is output onto the A bus 262 via the transmitting section 450. Here, one part of the waveform data is assigned to one unit on the A bus 262. As to forms of accumulation, for example, the waveform data of the sound production channel in each part that produces monaural sound may be accumulated in one series to generate one-channel waveform data, or a pan may be controlled to accumulate in two series so as to generate two-channel waveform data. When sound is produced in stereo, it is preferable to place sound production channels which produce L (left) and R (right) sounds of the same tone each in different parts.
Next, a waveform processing section 320b in
Next, a waveform processing section 320c in
373 denotes a multi DPS (plural blocks of DSPs), which applies effect processing or the like to the waveform data supplied from the mixer 372, and supplies the results to the mixer 372. The micro program, effect coefficient, delay control data and the like that specify the effect processing are set in the control register 470 by the CPU 212. 374 denotes an I/O section, which carries out 16-channel input and output to and from a serial bus, and carries out 2-channel input and output to and from a bus for the DA converter.
Here, a channel configuration in the mixer 372 will be described in reference to
A total of 400 mixing channels (MIX#1 to #400) are provided for, for example, level adjustment of the waveform data thus input. Moreover, at least 114 output channels are secured which mix and output data output from the mixing channels. The output channels include 32 channels (DSP#1 to #32) for the multi DPS 373 and 82 channels (EXT#1 to #82) for external output. In addition, the 82 channels for data output include 64 channels for outputting data to the A bus 262 and the remaining 18 channels for outputting data to the I/O section 374. Further, with the number of channels for data output less than “82”, these channels may be used by being assigned to output data to the A bus 262 (64 maximum) and to output data to the I/O section 374 (18 maximum).
2.2. Specific Example of Overall Configuration (1)
Next, an example will be described in which specific functions are set for the sound generator LSIs 252, 254 and the expanded boards 256, 258 and 260, in the sound generation unit 250 of the present embodiment. First,
The 16-part sound generator 256a outputs 16-channel waveform data, and its configuration is as described in
Internal configurations of the sound generator LSIs 252, 254 are as described in
In
Furthermore, from the sound generator LSI 254 to the sound generator LSI 252, 16-channel waveform data is supplied via the direct connection line 253, and 14-channel waveform data is supplied via the A bus 262. In the latter 14-channel waveform data, 2 channels are provided for transmission of the waveform data output in stereo from the sound generator LSI 252, and this waveform data is mixed with the waveform data output in stereo from the sound generator LSI 252 in the mixer 372 of the sound generator LSI 252. The mixed stereo waveform data is output to the DA converter 264 via the I/O section 374 of the sound generator LSI 252. Moreover, 4 channels provide the waveform data to which effect processing is applied by the effector 258a, and 8 channels provide the waveform data to be output to the external via the digital input output section 260a.
The 4-channel and 8-channel waveform data are mixed with other waveform data generated by the sound generator LSI 252, and the 4-channel and 8-channel waveform data resulted from the mixing are respectively supplied to the effector 258a and the digital input output section 260a. The effector 258a applies effect processing to the 4-channel waveform data supplied via the sound generator LSI 252, and the result is output as the 4-channel waveform data to the sound generator LSIs 252, 254.
The digital input output section 260a outputs the 8-channel waveform data, which is supplied from the sound generator LSI 252, to the external device as digital audio signals, and also supplies 8-channel audio signals received from the external device to the sound generator LSIs 252, 254. Next,
Furthermore, a frame #1 is assigned as a transmission frame of the sound generator LSI 254. Only 14-channel waveform data is output to the sound generator LSI 252 as the waveform data output to other components from the sound generator LSI 254 via the A bus 262, so that a time equivalent to 14 channels (time equivalent to 14 units) is assigned to the frame #1. Further, a frame #2 is assigned as a transmission frame of the 16-part sound generator 256a. The 16-part sound generator 256a outputs 16-channel waveform data to the sound generator LSIs 252, 254, but these sound generator LSIs perform reception at the same time, so that a time equivalent to 16 channels is assigned to the frame #2. Similarly, frames #3, #4 are each assigned as transmission frames of the effector 258a and the digital input output section 260a, and lengths corresponding to the number of output channels of the waveform data are assigned to the frames #3, #4.
2.3. Specific Example of Overall Configuration (2)
The sound generation unit 250 in the present embodiment can also achieve functions totally different from the functions accomplished as a mere sound generation unit. As an example of this,
The AD converter 256b receives 16-channel analog signals from the external device, and converts them into 16-channel waveform data. The multitrack recorder 258b records/reproduces 16-channel audio signals, and the DA converter 260b converts each of supplied 8-channel waveform data into analog signals and outputs them to the external device.
In
Furthermore, from the sound generator LSI 254 to the sound generator LSI 252, 16-channel waveform data is supplied via the direct connection line 253, and 26-channel waveform data is supplied via the A bus 262. In the latter 26-channel waveform data, 2 channels are simply supplied to the sound generator LSI 252, but 16 channels provide the waveform data recorded by the multitrack recorder 258b, and 8 channels provide the waveform data output to the external via the DA converter 260b.
The 16-channel and 8-channel waveform data are mixed with other waveform data generated by the sound generator LSI 252, and the 16-channel and 8-channel waveform data resulted from the mixing are each supplied to the multitrack recorder 258b and the DA converter 260b. When the multitrack recorder 258b is in a recording state, the 16-channel waveform data supplied via the sound generator LSI 252 is recorded. When the multitrack recorder 258b is in a reproducing state, the reproduced results are output as the 16-channel waveform data to the sound generator LSIs 252, 254.
Furthermore, the DA converter 260b converts the 8-channel waveform data supplied via the sound generator LSI 252 into analog signals, and outputs them to the external device. Next,
Furthermore, a frame #1 is assigned as a transmission frame of the sound generator LSI 254. Only 26-channel waveform data is output to the sound generator LSI 252 as the waveform data output to other components from the sound generator LSI 254 via the A bus 262, so that a time equivalent to 26 channels is assigned to the frame #1. Further, frames #2, #3 are assigned as transmission frames of the AD converter 256b and the multitrack recorder 258b, and lengths corresponding to the number of output channels of the waveform data are assigned to the frames #2, #3. In addition, the DA converter 260b functions only as a receiving node and does not output waveform data to the A bus 262, and thus is not assigned a transmission frame.
3. Operation in the Embodiment
Next, operations in the present embodiment will be described.
First, when the power source of the musical sound synthesizing apparatus in the present embodiment is turned on, contents in the parameter ROM 490 of each node are read by the CPU 212, thereby detecting a kind of each node and the like. Next, executable operation modes are listed on the display device 208 in accordance with the presently mounted nodes. The executable operation modes would be, for example, “general-purpose sound generator (FIG. 13)”, “sound generator for electronic pianos”, “sound generator for synthesizers”, and “multitrack recording apparatus (FIG. 15)”. When a user selects one of these operation modes, detailed parameters (e.g., the number of parts of the waveform data to be synthesized by the sound generator, detailed contents of the effects, mixing ratio of a plurality of channels) corresponding to the selected operation mode and the like can further be set.
When the above setting is finished, detailed operation contents of each node is decided. More specifically, the number of frames provided in one sampling period, a frame in which each node becomes the transmitting node and a frame in which each node becomes the receiving node are decided, and the offset value is further decided in the frame in which each node becomes the receiving node. Also, detailed timing relations among the frames are decided.
For example, when the waveform data should be transferred from a certain transmitting node to one or plurality of receiving nodes, a receiving and transmission rate is decided in accordance with the node that has the highest transmission rate or lowest receiving rate of all the transmission and receiving nodes. Further, the clock speed of the clock signal ACLK in each frame is decided depending on the amount of data to be transmitted and received and the bus width, and a length of each frame is decided. When all the parameters are decided in this way, these parameters are written into the control registers 470 of the nodes by the CPU 212. This enables the musical sound synthesizing apparatus to function in the desired operation mode.
Furthermore, if the user can freely edit the logical connection states among the nodes, a user's original operation mode can be made in addition to the operation modes listed when the power source is turned on. In that case, the CPU 212 automatically decides a transmission slot (transmission frame number and the number of units) in which each node carries out transmission in accordance with a set logical connection state, and/or a reception slot (reception frame and unit number) in which each node carries out reception, and the slots are set in the receiving control register 472 and transmission control register 476 of the nodes. Here, the CPU 212 sequentially assigns different transmission slot numbers to the nodes so that the same transmission slot is not set in different nodes. Moreover, a sum of the numbers of units in a plurality of transmission slots is checked whether or not it exceeds the transfer capability of the A bus 262 per sampling period, and if it exceeds, a warning can be given to the user.
Alternatively, the user may also be allowed to freely designate the transmission frame and/or the number of units in each node. In that case, the CPU 212 checks whether or not the same frame number is designated as a transmission frame in any two of the plurality of nodes, and if the same frame number is designated, a warning can be given to the user or one of the frame number can be automatically corrected. Moreover, when the number of transmission units in a plurality of nodes exceeds the transfer capability of the A bus 262, a warning of this fact can be given.
In this way, according to the present embodiment, the logical connection state can be freely set without changing a physical connection state in the sound generation unit 250. As a result, it is possible to enrich the variation of the functions or operation modes achieved by the sound generation unit 250, and to significantly expand its versatility.
4. Modifications
The present invention is not limited to the embodiments described above, and can be modified in various ways, for example, as follows:
As described above, according to the first aspect of the present invention, each transmitting node transmits data signals to the bus per sampling period in predetermined order, and each receiving node selectively obtains a necessary signal from the data signals, so that it is possible to freely set a logical connection state from an optional transmitting node to an optional receiving node, thereby enabling high versatility with a simple circuit.
Furthermore, with a configuration in which a data signal is converted to a data signal synchronous with the operation clock of a transmitting node on the basis of the operation clock of the receiving node, for example, the waveform data can be transmitted and received without providing a buffer or the like that stores the waveform data of a plurality of samples, thereby making it possible to simplify the circuit configuration. Moreover, with a configuration in which a bit width n for each transmitting node can be set to different values for each transmitting node, the data line width can be reduced as needed to decrease costs.
As described above, according to the second aspect of the present invention, each transmitting node transmits a data signal to the bus in a detected transmission frame, and each receiving node receives the data signal from the bus in a detected reception frame, so that it is possible to freely set a logical connection state from an optional transmitting node to an optional receiving node, thereby enabling high versatility with a simple circuit.
As described above, according to the third aspect of the present invention, once a controller designates a transmission slot and reception slot for each transmitting node and the receiving node, data is then transferred between each transmitting node and the receiving node without the intervention of the controller, so that it is possible to freely set a logical connection state from an optional transmitting node to an optional receiving node, thereby enabling high versatility with a simple circuit.
Number | Date | Country | Kind |
---|---|---|---|
2002-266848 | Sep 2002 | JP | national |
2002-266860 | Sep 2002 | JP | national |
2002-266878 | Sep 2002 | JP | national |
This application is a division of application Ser. No. 10/655,386 (now U.S. Pat. No. 7,220,908), filed on Sep. 4, 2003, the entire contents of which are incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
4412470 | Jones | Nov 1983 | A |
5121667 | Emery et al. | Jun 1992 | A |
5614685 | Matsumoto et al. | Mar 1997 | A |
5949011 | Ichiki | Sep 1999 | A |
6088364 | Tokuhiro | Jul 2000 | A |
6189060 | Kodama | Feb 2001 | B1 |
6226697 | Tokuhiro | May 2001 | B1 |
6279057 | Westby | Aug 2001 | B1 |
6291757 | Yamanoue | Sep 2001 | B1 |
6401228 | Ichikawa et al. | Jun 2002 | B1 |
6643674 | Kamiya et al. | Nov 2003 | B2 |
6700050 | Sakurada et al. | Mar 2004 | B2 |
6775246 | Kuribayashi et al. | Aug 2004 | B1 |
20020080783 | Fujimori | Jun 2002 | A1 |
Number | Date | Country |
---|---|---|
04-249933 | Sep 1992 | JP |
05-188967 | Jul 1993 | JP |
07-226754 | Aug 1995 | JP |
11-202864 | Jul 1999 | JP |
11-202868 | Jul 1999 | JP |
2001-094627 | Apr 2001 | JP |
2002-251183 | Sep 2002 | JP |
Number | Date | Country | |
---|---|---|---|
20060219088 A1 | Oct 2006 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10655386 | Sep 2003 | US |
Child | 11450162 | US |