Abstract:
A recording/reproducing method and device for an automatic performing piano which not only seizes performance information according to occurrence and timing of an on-event, but also converts the performance information according to actual emission timing in each respective recording and reproducing process steps, thereby achieving accurate performance reproduction with balance and high fidelity. Since a time lag between depression of key and emission of sound varies with the intensity in depressing of the keys, this time lag is incorporated into performance information to be stored, a key drive solenoid can be actuated or terminated in immediate response to the output of key depression or release data, respectively.

Description:
BACKGROUND OF THE INVENTION 
     This invention relates to a recording/reproducing method and device for controlling sound emission for an automatic performing piano, and more specifically to such a piano which is immune from inaccuracy of performance in sound reproduction due to the time lag of emission of sound caused by variations in intensity of depressed keys. 
     A conventional automatic performing piano has suffered from imbalance of sound emission timing between strong key strokes and weak key strokes. This is due to the time period from a depress-key command (on-event) to actual emission of sound during which a solenoid is energized. 
     Some prior art methods try to solve this problem by adopting a sound prohibited time period T 1 , as shown in FIG. 11, in designing the value of electric power L drv  to be supplied to the solenoid for the depressed keys. In the figure, L 1  is an original voltage level, L 2  is a start-up voltage level, and L 3  is a holding voltage level. T 2  is a time period to sustain the start-up voltage level. The sound prohibited time period T 1  is provided at the first stage of the application of electric power L drv  in order to correct emission timing. The sound prohibited time period T 1  is determined according to depression intensity data included in depression data, such that the stronger the key stroke is, the longer the duration of the sound prohibited time period T 1 . The maximum value of the sound prohibited time period T 1  is 100 milliseconds. 
     In formulating or formatting recorded performance information to be later reproduced, the prior art methods and devices define the occurrence of an on-event and off-event as the timing of depression and release of a key, respectively, which are detected by key sensors 7 and 8 shown in FIG. 3. However, this method suffers from the following problem. 
     Since hammer systems and other mechanisms respond to strong key strokes more quickly than to weak key strokes as shown in FIG. 12A and FIG. 12B, a time period of emission delay in recording TD rec-on , which is the time lag between occurrence of an on-event t on  and actual sound emission t music , shortens as the key stroke intensifies. Therefore, in recording an original performance by a performer, simultaneous occurrence of an on-event for a strong key stroke and a weak key stroke must be interpreted in actual sound emission as a strong key stroke followed by a weak key stroke as shown in FIG. 12C to reproduce the performance with fidelity and accuracy. The prior art method and device thus fails to reproduce performance with high fidelity and accuracy because of the definition of an on-event and an off-event as the actual timing of depression and release of key, respectively. 
     Moreover, the following problem occurs in determining the sound prohibited time period T 1  simply according to depression intensity in designing a chart or amount of electric power L drv  for the performance information thus recorded. Since recording is executed according to the occurrence timing of on-event shown in the graph of FIG. 13, but not to the actual and acoustic or sound emission timing shown in the second graph of FIG. 13, the recorded interval of emission INT rec  between a strong key stroke and an immediately following weak key stroke is shorter than the actual interval of emission INT act . 
     Further, by providing the sound prohibited time period T 1  again in the sound reproduction steps, the reproduced interval of emission between the two key strokes is further shortened as shown in the fourth and fifth graphs of FIG. 13. Consequently, the time period for holding emission of the former of two successive key strokes may be corroded and shortened by the sound prohibited time period T 1  for the latter, occasionally resulting in failure to reproduce the sound for the former key stroke. 
     SUMMARY OF THE INVENTION 
     Wherefore, an object of this invention is to provide a recording/reproducing method and device for an automatic performing piano which not only seizes performance information according to occurrence timing of an on-event, but also converts the performance information according to actual emission timing in each recording and reproducing process step, thereby reproducing the performance with balance and high fidelity. 
     In order to achieve the above object, the recording method of this invention includes steps S1-S3 shown in FIG. 1. In step S1, key depression data and key release data are formulated according to detected depression or release of a key and the traveling speed of the key being depressed and released. In step S2, a time lag between depression of a key and emission of sound in recording is incorporated into the depression data and the release data. The time lag varies with the travel speed of the keys. In step S3, the depression data and the release data are stored as performance information in sequence according to the sequence of the performance. 
     The reproducing method according to this invention includes steps S4-S6 shown also in FIG. 1. In step S4, a time lag between depression of a key and emission of sound in reproduction is incorporated into the performance information. The time lag varies according to the depression intensity included in the depression data. In step S5, the depression data and the release data are output according to the sequence of the performance. In step S6, a solenoid is immediately actuated or its actuation terminated according to the depression data or the release data, respectively. The solenoid is driven by electric power having a value determined according to the depression intensity included in the depression data. 
     According to the recording/reproducing method of this invention, correct timing can be provided for sound emission and sound cessation both during recording and reproduction. This is accomplished by incorporating the time lag between the depression of a key and emission of sound during both the recording and reproduction process steps. A further feature is the adoption of a unique method wherein a solenoid is actuated or its actuation terminated in immediate response to an on-event command or an off-event command, respectively. 
     Either of the recording method and the reproducing method of the present invention may be independently used according to the respective specified present method. 
     The reproducing device according to this invention comprises, as shown in FIG. 2, performance information storing means M1, depression/release timing detection means M2, depression intensity calculation means M3, performance information formulation means M4, performance information output means M5, and solenoid drive means M6. The performance information storing means M1 stores the key depression data and the key release data in turn as performance information. The depression/release timing detection means M2 detects the timing of depression and release of a key according to the distance the key traveled in being depressed or released. The depression intensity calculation means M3 calculates the depression intensity according to the traveling speed of the key being depressed. The performance information formulation means M4 formulates performance information comprising the depression data and the release data according to the timing of key depression or release detected, and the depression intensity calculated, and provides the performance information storing means M1 with the key depression data and the key release data in sequence along the performance. The performance information output means M5 outputs the key depression data and the key release data stored in the performance information storing means M1 in sequence to reproduce the performance. The solenoid drive means M6 actuates a solenoid by means of electric power having a value which is determined according to the depression intensity comprised in the key depression data, and terminates the electric power to the solenoid in response to the key release data. 
     The performance information formulation means M4 according to one aspect of this invention comprises a first incorporation means M7, a first temporary storing means M8, and a first timing means M9. The first incorporation means M7 incorporates sound emission delay in recording into the key depression data and the key release data. The delay of sound emission is a time lag between depression of a key and actual sound emission, and varies with key depression intensity. The first temporary storing means M8 temporarily stores the key depression data and the key release data with the delay of emission in recording incorporated therein. The first timing means M9 arranges the timing to send out the key depression data and the key release data to the performance information storing means M1 after the expiration of the time period of the emission delay in recording which is incorporated in the key depression and release data. 
     The performance information output means M5 according to another aspect of this invention comprises a second incorporation means M10, a second temporary storing means M11, and a second timing means M12. The second incorporation means M10 incorporates delay of sound emission in reproduction into the key depression data and the key release data read out from the performance information memory means M1. The emission delay in reproduction is a time lag between depression of key and emission of sound in reproduction, and varies with the key depression intensity. The second temporary storing means M11 temporarily stores the key depression data and the key release data with the emission delay in reproduction incorporated therein. The second timing means M12 arranges the timing to send out the key depression data and the key release data stored within the second temporary storing means M11 to the solenoid drive means M6 after the expiration of the time period of the emission delay in reproduction incorporated in the key depression and the key release data. Once given the key depression data or the key release data, the solenoid drive means M6 is driven or terminated in immediate response. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a fowchart to exemplifying a recording/reproducing method according to the present invention; 
     FIG. 2 is a block diagram showing the structure of a recording/reproducing device according to the present invention; 
     FIG. 3 is a cross sectional schematic view showing a piano key and the sensors for measuring the depression intensity according to one embodiment of this invention; 
     FIG. 4 is a block diagram showing the relation between a control unit and other elements of an automatic piano. 
     FIGS. 5A and 5B taken together are a flowchart of the recording process of one embodiment according to the present invention; 
     FIG. 6 is a graph showing an example of map data referred to in the present recording process; 
     FIG. 7 is a table illustrating the contents of a temporary memory during the recording process steps; 
     FIGS. 8A and 8B taken together are a flowchart of the reproduction process of another embodiment according to the present invention. 
     FIG. 9 is a graph representing an example of the mapped data referred to in the present reproduction process steps; 
     FIG. 10 is a table representing the contents of the temporary memory during reproduction process; 
     FIG. 11 is an example of a time diagram adopted in the prior art reproducing method; 
     FIGS. 12A, 12B, and 12C are timing diagram illustrating the problems inherent in the prior art recording method; and 
     FIG. 13 is a timing diagram showing the problems inherent in the prior art reproducing method. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
     An embodiment of the recording/reproducing method and device for an automatic performing piano according to the present invention will now be explained hereunder. 
     An automatic performing piano 1, FIG. 3, of one embodiment is provided with stepped shutters 5 bellow keys 3, and control unit 10. Below each of the keys 3 is located key sensors 7 and 8, each comprising a light emitting element and a light receiving element. The control unit 10 detects the time and the time lag when the stepped shutters 5 are intermediate or between either or both the key sensors 7 and the key sensors 8 thus blocking the light path. The control unit 10 formulates performance information including key number, timing of depression of a key, timing of release of a key, and depression intensity. 
     Each of the control units 10, FIG. 4, includes a CPU 11, ROM 12, RAM 13, back-up RAM 14, and a clock 15. Control unit 10 is connected to the key sensors 7 and 8 via an input/output port 16. The control units 10 are also connected to floppy disc drivers 23, solenoids 25, an operation panel 27, and a display 29 via the input/output port 16. The floppy disc drivers 23 control floppy discs 21 storing performance information. The solenoids 25 drive keys 3 during an automatic reproduction of performance. The operation panel 27 is provided for selecting an operation mode such as recording, reproducing (playback), or other similar modes. 
     The above hardware structure is in common with the prior art devices. The present automatic performing piano according to one embodiment is characteristic in recording a performance as shown in the steps specified in FIGS. 5 and 5B. 
     This process starts, S100, when the recording mode is selected on the operation panel 27. In this embodiment, recording and reproduction modes are conducted according to the so called &#34;event method&#34;. 
     It is first examined whether the signals from the key sensors 7 and 8 (though shown in FIG. 3 is for a single key, key sensors 7 and 8 are provided for all the eighty-eight keys) have changed in response to the depression or release of a key, step S101. If the signals have changed, the timing t on  at which an on-event (key depression) occurred, or the timing t off  (key release) at which off-event occurred is determined by the detected value of the key sensors 7 and 8, S102. Specifically, the timing t on  is determined by the timing when the value of a key sensor 7 changes from &#34;on&#34; to &#34;off&#34;, and the timing t off  is determined by the timing when the value of a key sensor 8 changes from &#34;off&#34; to &#34;on&#34;. 
     Subsequently, it is examined whether the change of signals is due to the depression of a key, S102a. If the timing t on  was detected at S102, depression is detected. Then a time lag Δt between the timing when the value of the key sensors 8 changed from &#34;on&#34; to &#34;off&#34; and the timing when the value of the key sensors 7 changed from &#34;on&#34; to &#34;off&#34; is calculated (S103). 
     Next, depression intensity data P on  is calculated according to the time lag Δt, S104. In the figure, K is a coefficient for logical operation, and is predetermined according to the location and the size of the shutters 5 and other factors. A time period of emission delay in recording, TD rec-on , is then calculated according to the depression intensity data P on , S105. The emission delay in recording is due to the traveling speed of the keys 3 which causes a time lag between the occurrence of an on-event and the actual emission of sound, and is a result of the mechanical driving of the hammer systems. 
     Depression data D on  is then formulated by combining the depression intensity data P on , the key number, and the occurrence timing of the on-event t on , S106. 
     If, however, it is determined in S102a that the signal change is due to release of a key, a time delay period of cessation in recording, TD rec-off , which is a time lag between the occurrence and timing of the off-event, t off , and the actual timing of cessation of sound is determined S107. 
     Subsequently, release data D off  is formulated by combining the occurrence timing of off-event T off , key number, and depression intensity data P on , S106 in the same manner as in formulating depression data D on . The depression intensity data P on  for the release data D off  is zero in general. 
     The depression data D on  thus prepared is then combined with the emission delay in recording, TD rec-on , to become a set of performance information data D on  +TD rec . On the other hand, the release data D off  is combined with the cessation delay in recording TD rec-off  to become another set of performance information data D off  +TD rec . The performance information data D on  +TD rec  or the performance information data D off  +TD rec  is temporarily stored in an unoccupied channel of an assigner specifically provided for recording within the RAM 13, S108. In this embodiment, one assigner comprises sixty-four channels. 
     Since the time period of emission delay in recording TD rec-on  is a time lag between occurrence and timing of an on-event detected in response to depression of a key by a performer and actual emission of sound, the time period becomes longer as the depression intensity P on  diminishes, within the range of several milliseconds to 100 milliseconds as shown in FIG. 6. In this embodiment, the emission delay in recording TD rec-on  is actually derived using the depression intensity data P on , mapped out within the ROM 12, given the actual depression intensity data P on  calculated at step S103, and assigned a specific value through interpolation or other similar means. 
     On the other hand, the time delay period of cessation in recording, TD rec-on , in this embodiment is preset at 35 milliseconds which is a representative value of the traveling speed of the keys 3 in response to release of a key. The traveling speed varies according to the mechanical characteristics of the keys 3 and other moving members or parts. 
     In a highly skilled performance, keys may be slowly released intentionally. In order to reproduce the performance, so called &#34;off-velocity&#34; is calculated in the same manner as at steps S102-S105 according to the time lag between the detected values of the key sensors 7 and 8 in changing from &#34;off&#34; to &#34;on&#34;. The relation between the off-velocity and cessation delay in recording TD rec-off  may be mapped out such that as the off-velocity decreases, the time delay period of cessation in recording TD rec-off  lengthens. The time delay period of cessation in recording TD rec-off  can be calculated according to this mapped out relation between the off-velocity and the cessation delay in recording TD rec-off . 
     As a result of the process step at step S108, the RAM 13 stores, in hexadecimal notation, recording delay data TD rec  at a first byte, key number data K No , at a second byte, and depression intensity data P on  at a third byte as shown in FIG. 7. Although the figure shows only key depression data D on , the key release data D off  is stored in the same manner. 
     Subsequently, the present method examines whether a certain short time period ΔTD (5 milliseconds in this embodiment) has passed, S108a. If not, the process returns to step S101. If it is determined to be &#34;NO&#34; at step S101, the process proceeds directly to step S108a, skipping steps S102-S108. 
     If it is determined to be &#34;YES&#34; at step S108a, the short time period ΔTD is subtracted from the recording delay data TD rec  temporarily stored at the channel which is to be processed firstly among the other channels within the assigner for recording, S108b. It is then examined whether the recording delay data TD rec  after the subtraction is 0 milliseconds, S109. If so, the information is stored as performance information on the floppy disc 21, S110. Subsequently, it is examined whether the process steps at S108 and S109 are completed for all the channels, S111. If there is any channel for which the process steps have not been completed, the predetermined value ΔTD is subtracted from the recording delay data TD rec  of the channel, S108b, and then steps beginning at steps S109 and thereafter are repeated. If it is determined to be &#34;NO&#34; at step S109, the process proceeds to step S111, skipping step S110. 
     According to the recording method thus conducted, the balance between emission timing and cessation timing of actual performance can be maintained in recording. Specifically, occurrence timing of an on-event t on  and of an off-event t off  are not only seized according to mechanical operation, but are corrected to be performance information reflecting actual timing of sound emission and of cessation in emission. 
     The reproducing method according to another embodiment of this invention begins by selecting reproduction mode on the operation panel 27 and proceeds as shown in FIGS. 8A and 8B. 
     It is first examined whether there is any performance information to be read out from the floppy disc 21, S201. Specifically, by determining from the performance information the sequence of the depression data D on  and the release data D off , it is determined whether to read out either of the depression data, D on , and the release data, D off . Since an event method is also adopted in this reproduction process, the characteristics of depression data D on  and release data D off  are independent from each other. 
     The performance information to be read out, if any, is read out from the floppy disc 21, S201a, and whether the information was caused by an on-event is determined, S201b. If the information was caused by on-event, i.e. the information is depression data D on , a time period of sound emission delay in reproduction TD play-on  is calculated according to the depression intensity data P on , S202. On the other hand, if the performance information read out is release data D off , time delay period of cessation in reproduction TD play-off  is set, S203. The time period of sound emission delay in reproduction TD play-on  calculated is added to depression data D on  to formulate performance information data D on  +TD play . Alternatively, the time delay period of cessation in reproduction TD play-off  is added to the release data D off  to formulate D off  +TD play . The performance information data D on  +TD play  or D off  +TD play  is temporarily allocated at an unoccupied channel of an assigner for reproduction within the RAM 13, S204. The assigner for the reproduction mode also comprises sixty-four channels. 
     As shown in FIG. 9, as depression intensity data P on  increases, the time period of emission delay in reproduction TD play-on  lengthens within the range from several milliseconds to 100 milliseconds. Therefore, the sound emission delay in reproduction TD play-on  is also derived utilizing the depression intensity P on , mapped out within the ROM 12, given the actual depression intensity data P on , and assigned a specific value through interpolation or other similar methods. On the other hand, the time delay period of cessation in reproduction is set at 35 milliseconds which is a representative value of the traveling speed of the keys 3. The traveling speed of the keys 3 depends on the mechanical characteristics of the keys 3 and other moving or active members. Therefore, the value of the time delay period of cessation in reproduction TD play-off  may be varied by incorporating the calculated off-velocity of the keys. 
     As a result of the process step at step S204, each channel of the assigner for reproduction within the RAM 13 stores, in hexadecimal notation, reproduction delay data TD play  at a first byte, key number K No . at a second byte, and depression intensity data P on  at a third byte as shown in FIG. 10. Although the figure shows only the key depression data D on , the key release data D off  is stored in the same manner. 
     Subsequently, it is examined at step S211a if a short time period ΔTD (5 milliseconds in this embodiment) has passed, S211a. If it is determined to be &#34;NO&#34;, the process returns to step S201. If a &#34;NO&#34; is determined at S201, the process proceeds directly to step S211a, skipping the process steps therebetween. 
     If a &#34;YES&#34; is determined at step S211a, the short time period ΔTD is subtracted from the reproduction delay data TD play  temporarily allocated to the channel which is to be processed first among the other channels within the assigner for reproduction, S211b. Then it is examined if there is any reproduction delay data TD play  which has become 0 milliseconds due to the subtraction, S212. 
     If it is determined to be &#34;YES&#34; at the step S212, a key solenoid is driven or its driving voltage terminated according to either the depression data D on  or the release data D off  combined with the reproduction delay data TD play  which has become 0 milliseconds, S213. Subsequently, it is examined whether the process at step S211b and thereafter are completed for all the channels of the assigner for reproduction, S214. If there is any channel for which the process is not complete, the short time period ΔTD is subtracted from the reproduction delay data TD play  of the performance information temporarily allocated at the given channel, S211b, and steps S212 and thereafter are repeated. If it is determined to be &#34;NO&#34; at step S212, the process proceeds to step S214, skipping the process at step S213. 
     Thus the solenoid is driven or terminated favorably reflecting the actual desired timing of sound emission and cessation, in direct response to the performance information. Specifically, since occurrence timing of an on-event t on  and occurrence timing of an off-event t off  are output according to actual emission timing, the circuit driving the solenoid need not calculate a delay or sound prohibited time period. Therefore, the solenoid can be immediately driven or its activation terminated in direct response to an on-event or an off-event, respectively. 
     In the prior art device and method, in comparison, with the delay or sound prohibited time period provided intermediate or between an on-event command and excitation of solenoids, occurrence of an on-event does not immediately trigger the actuation of the key solenoids. In case of successive strokes on the same key (hora staccato for example), the time period to maintain the holding voltage level L 3  for the former strong key stroke is often corroded and shortened by the sound prohibited time period for the latter weak key stroke as shown in FIG. 13. The sound prohibited time period is thus detrimental to a precisely balanced reproduction of performance, occasionally resulting in failure to emit the sound for the former strong key stroke. 
     In the reproduction method according to this invention, however, solenoids are driven or terminated in immediate response to an on-event or an off-event, respectively. Since the on-event and off-event commands are provided according to emission timing and cessation timing in reproduction, respectively, corrosion or cut-off of the time period of sound emission for the former strong key stroke is successfully prevented. 
     This invention has been described above with reference to a preferred embodiment as shown in the drawings. Modifications and alterations may become apparent to one skilled in the art upon reading and understanding the specification. Despite the use of the embodiment for illustration purposes, it is intended to include all such modifications and alterations within the scope and the spirit of the appended claims. 
     In this spirit, it should also be noted that in the embodiments as shown and described, the recording method of this invention is accompanied by the reproducing method of this invention, however, either the recording method or the reproducing method can be independently adopted. Moreover, the recording delay data TD rec  and the reproduction delay data TD play  for matching emission timing with cessation timing may be a negative value. In this case, the predetermined value ΔTD is added, and not subtracted.