Output control method, program and electronic device

The electronic device dynamically adjusts output delay based on communication delays to ensure consistent and high-quality sound output by extending the delay setting time as needed, addressing the inflexibility of conventional MIDI data transmission.

JP7574838B2Active Publication Date: 2024-10-29CASIO COMPUTER CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022150796
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-09-22
Publication Date
2024-10-29
Estimated Expiration
2042-09-22

AI Technical Summary

Technical Problem

Conventional MIDI data transmission over wireless communication faces challenges in adjusting output delay flexibly and appropriately due to unpredictable communication delays, leading to potential interruptions in sound output.

Method used

An electronic device adjusts output delay by setting a delay setting time and extending it based on the width of communication delays, ensuring sound output timing is maintained by generating sound data after a specified delay time has elapsed, and dynamically adjusting this delay to accommodate varying communication conditions.

Benefits of technology

The method allows for flexible and accurate sound output timing adjustments, reducing the likelihood of delayed or incomplete sound outputs and user discomfort by dynamically adapting to communication delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007574838000001
    Figure 0007574838000001
  • Figure 0007574838000002
    Figure 0007574838000002
  • Figure 0007574838000003
    Figure 0007574838000003
Patent Text Reader

Abstract

To provide an output control method, a program, and an electronic apparatus capable of adjusting output delay further flexibly and appropriately.SOLUTION: An output control method outputs output signals in response to acquisition of information data associated with output timing information for each unit data. Output signals corresponding to the unit data are output at delay timing when a certain delay setting time has elapsed from the output timing, and if the output of the output signal is later than the delay timing, the subsequent delay setting time is extended according to the delay time width.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an output control method, a program, and an electronic device. [Background technology]

[0002] Traditionally, MIDI (Musical Instrument Digital Interface) has been widely used as performance data that defines the contents of electronic performances. When MIDI data is input to a sound output unit, a sound signal is generated from the MIDI data. By outputting this sound signal to a speaker or sound output terminal (including a headphone terminal, etc.), a performance according to the contents specified by the performance data is output.

[0003] When this MIDI data is transmitted to a sound output unit via wireless communication, delays may occur, making it difficult to output sound in real time. In response to this, Patent Document 1 discloses a technique for outputting sound at a timing obtained by adding a specified delay time to the time added to the transmission packet of MIDI data. By setting the delay time within a range that does not cause discomfort to the user's hearing, sound can be output even if a communication delay shorter than the delay time occurs. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2003-345350 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, in the above conventional technology, if a communication delay longer than the set delay time occurs, the output unit stops playing at that point. Therefore, there is a problem in that it is difficult to flexibly set a small delay time for the output unit.

[0006] An object of the present invention is to provide an output control method, a program, and an electronic device that can adjust the output delay more flexibly and appropriately. [Means for solving the problem]

[0007] In order to achieve the above object, the present invention provides Computer In response to acquisition of information data in which information on output timing is associated with each unit data, an output signal corresponding to the unit data is output at a delay timing after a certain delay setting time has elapsed from the output timing; When the output of the output signal is delayed beyond the delay timing, the delay setting time is extended according to the delay time width. This is an output control method. Effect of the Invention

[0008] According to the present invention, there is an advantage that the output delay can be adjusted more flexibly and appropriately. [Brief description of the drawings]

[0009] [Figure 1] FIG. 2 is a block diagram showing a functional configuration of the electronic device. [Diagram 2] FIG. 1 is a diagram showing the timing of transmission and reception of MIDI data and output of an output signal. [Diagram 3] 10 is a flowchart showing a control procedure of a sound output control process. [Figure 4] 13 is a flowchart showing a control procedure of an output timing setting process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the functional configuration of an electronic device 1 according to the present embodiment. The electronic device 1 analyzes performance data (information data), for example, MIDI data, received from a sound source S, generates sound output data including at least one of musical tones and voice, and generates and outputs a sound output signal (output signal) by converting the sound output data into analog form. The sound source S may be a general computer (PC) or the like (e.g., one with MIDI software installed). Alternatively, the sound source S may be an electronic musical instrument, etc., in which the performance content is converted to MIDI data, stored, and output. The output destination of the sound output signal may be, for example, a speaker L, an earphone, a headphone, or an electronic device that records the sound output signal.

[0011] The electronic device 1 includes a CPU 11 (Central Processing Unit) (control unit), a RAM 12 (Random access Memory), a storage unit 13, a communication unit 14 (receiving unit), a DSP 15 (Digital Signal Processor), and an output unit 16. Each component is electrically connected to each other via a bus.

[0012] The CPU 11 is a processor that performs arithmetic processing and controls the overall operation of the electronic device 1. The CPU 11 may be designed to be suitable for controlling the generation of sound output data. The CPU 11 may have a single processor, or may have multiple processors that operate in parallel or independently depending on the application. The CPU 11 also counts the current time based on a clock signal output by an oscillation circuit (not shown). For this purpose, the electronic device 1 is provided with an RTC (Real Time Clock) (not shown). The CPU 11 obtains the current time from the RTC when the electronic device 1 is started.

[0013] The RAM 12 provides a working memory space for the CPU 11 and stores temporary data, including MIDI data input from an external device.

[0014] The storage unit 13 is a non-volatile memory, such as a flash memory or a HDD, and stores a program 131 for generating sound output data and setting data.

[0015] The communication unit 14 controls communication operations with external devices in accordance with a defined communication standard. In this example, communication standards available for communication include the Bluetooth (registered trademark) Low Energy standard (BLE).

[0016] The DSP 15 is a dedicated circuit that analyzes MIDI data and generates sound output data. The generated sound output data is output to the output unit 16. The DSP 15 can process up to an upper limit of MIDI data in parallel to generate sound data for each, and generate sound output data by mixing these data using a mixer. The processing of the DSP 15 can also include effect processing for the output sound.

[0017] The output unit 16 includes a DAC (digital / analog converter) that converts the sound output data generated by the DSP 15 into analog form, and an output terminal for outputting the sound output signal obtained by the analog conversion to the outside. The output unit 16 may include an amplifier that amplifies the sound output signal. Furthermore, the electronic device 1 itself may include a speaker L.

[0018] The electronic device 1 may have an input terminal for receiving performance data (sound data) of a separate electronic musical instrument. The performance data may be input to the DSP 15, mixed with sound data based on MIDI data, and sent to the output unit 16.

[0019] Additionally, the electronic device 1 may include an operation reception unit having an operation button for turning on and off the power supply, a display unit having a display screen for displaying a status, and the like.

[0020] Next, the acquisition of MIDI data and sound output will be described. MIDI data includes information indicating the content of the sound to be output (such as pitch, timbre, intensity, etc.) and how it changes over time (such as accent characteristics, volume attenuation, and frequency spectrum distribution).

[0021] The electronic device 1 can receive (acquire) MIDI data from an external device by BLE (wireless communication). In BLE, data is sent in packets that are transmitted at a specified communication interval (a certain time interval). The communication interval can be variably set within a range defined by the BLE standard, but is often fixed (for example, 15 msec interval). In this embodiment, it is described that packet data is transmitted and received at a uniform communication interval. The data format of the communication content may be in accordance with a common standard (MIDI over Bluetooth Low Energy). The packet contains one or more pieces of data in which information (timestamp) on the output timing is associated with a certain content (message; unit data) of the MIDI data. The associated output timing may be the same or close to a plurality of messages within a range that the DSP 15 can process in parallel.

[0022] In wireless communication such as BLE, the time required for transmitting and receiving data may temporarily change (become longer) due to communication delays, changes in the amount of data, etc. If a sound output signal generated from the contents of received MIDI data and converted to analog is output in real time, the sound output timing may become uneven due to such changes in the time required for communication. Electronic device 1 more accurately aligns the sound output timing according to the output timing information.

[0023] When there are many settings for the sound to be output within the transmission interval of packet data, it may not be possible to include all the output contents in a single packet, and the data may be divided into multiple packets. Also, with data that is set to generate many small sounds, the amount of data per unit time of performance (for example, about the packet transmission interval) tends to be large. For these reasons, if all the necessary contents cannot be received and acquired by the time the sound is output, the sound will not be output correctly, and some sounds will be output with a delay.

[0024] In the electronic device 1, in addition to the output timing information, a delay setting time is further set, and the timing of the sound output is delayed uniformly by the delay setting time from the designated output timing. If MIDI data of all sound output contents related to the output timing is received during this delay setting time, sound output data corresponding to the received contents is generated, and sound is output according to the MIDI data. In the electronic device 1, the MIDI data is output to the DSP 15 at a timing when the delay setting time has elapsed from the output timing, and the sound output data is generated by the DSP 15. The sound output data is further sent to the output unit 16 and converted to analog to obtain a sound output signal. The DSP 15 and the output unit 16 constitute the signal generating unit of this embodiment, and the processing of the DSP 15 and the output unit 16 is included in the sound output signal generating processing of this embodiment.

[0025] On the other hand, if the delay time is set too long, the time lag between the input and the output cannot be ignored, which may cause the user to feel uncomfortable. Therefore, it is recommended that the delay time be set as short as possible while still allowing accurate sound output based on MIDI data.

[0026] It is conceivable that such a delay setting time may be specified by the user (including the case where the delay setting time is specified within the MIDI data). However, it is not easy to precisely adjust the delay setting time while taking into account the amount of MIDI data per unit time. When considering accuracy, the delay setting time tends to be longer than necessary.

[0027] In the electronic device 1 of this embodiment, the delay setting time is set to an initial value when MIDI data reception starts. If the output of the sound output signal is not in time for the output timing and delay setting time, the setting is changed so that the subsequent delay setting time is extended by the amount of delay. In other words, the electronic device 1 allows a deviation in the sound output only when a delay that exceeds a certain delay setting time occurs, thereby sequentially making adjustments.

[0028] 2(a) is a sequence diagram showing the timing of transmitting and receiving MIDI data and outputting a sound output signal. Note that this diagram is a schematic diagram for the purpose of explanation, and does not reflect the actual amount of data or the output frequency of the sound output signal. Note that the time lag between the timing of transmitting a packet from the sound source (external device) and the timing of receiving the packet data at the electronic device 1 is ignored here because it is approximately constant and short.

[0029] Packet data of MIDI data is transmitted from the sound source at time intervals dTc. Each of the n messages in the packet is provided with output timing information. The output timing information may be provided in a form that uniquely identifies the output timing, even if it is not specified according to the format. This output timing information is, for example, a counter value that circulates at a certain time period. The time period Tp is not particularly limited, but is sufficiently longer than the break in sound that may occur in a typical song, for example, about 8 seconds. Information on the length of one period is also stored in advance in the electronic device 1.

[0030] When the electronic device 1 receives packet data, it acquires the output timing of the data for each message and associates it with the current time counted by the CPU 11. The criterion for the association may be any, and for example, the value of the output timing attached to the first message of the first received packet data may be associated with the current time at that time. Based on the sound output setting time thus obtained, the current time, and the delay setting time, the time from generating sound output data from the message to outputting a sound output signal is set. For example, in the first packet transmission, the packet data includes messages to output sound at timings T01 and T02. Based on the delay setting time dtr that has been set, the waiting setting time Tw from the reception of data to the generation and output of a sound signal is set.

[0031] The set standby time Tw is calculated from the currently acquired timing Tk, the current time U, the reference timing TB, the reference time UB, the set delay time dtr, and the time period Tp of the counter value indicating the timing, as shown in the following formula (1). Tw=(Tk+n×Tp-TB)-(U-UB)+dtr … (1) The variable n is an integer equal to or greater than 0, and is incremented by 1 when the value of the timing Tk becomes smaller than the previous timing T(k-1). As a result, the first term on the right side represents the time from the reference timing TB to the current output timing. The value obtained by adding the reference time UB to this first term on the right side becomes the time Uk of the timing Tk. Furthermore, the value obtained by adding the delay setting time dtr to the time Uk is specified as the setting time of the actual output timing. The waiting setting time Tw from the current time U to the output timing can be calculated by subtracting the current time U from this setting time. In actual calculations, the difference (time) between the current time U and the reference time UB can be calculated first, as in formula (1), and then this can be subtracted from the sum of the first term on the right side and the delay setting time dtr.

[0032] The second packet transmission includes a message to output sound at timings T03 and T04. The third packet transmission includes a message to output sound at timings T05 to T07. The amount of data transmitted in this third packet transmission is greater than that in the second packet transmission.

[0033] The fourth packet transmission contains a message to output sound between timings T08 and T10. However, the timing at which the data is received has already exceeded the timing at which the delay setting time dtr has elapsed since timing T08. In this case, the calculated waiting setting time Tw becomes a negative value, and the magnitude (absolute value) of this negative value is determined as the time difference dts (time width). Sound data according to the message content is instantly generated and output with a time difference dts from other normal sound outputs.

[0034] Fig. 2(b) shows in detail a case where the data reception timing is later than the expected output timing at which sound should have been output. The output timing attached to the message data is earlier in time than the data reception timing. The expected output timing (delay timing) after the delay setting time dtr from the output timing is also earlier than the data reception timing.

[0035] In this case, sound data is generated immediately at the data reception timing, converted to analog, and a data output signal is output (actual output timing). The time difference dts representing the output delay at this time is the calculated waiting time setting time Tw (negative value) with its sign inverted. When such a situation occurs, the time difference dts is added to the delay time setting time dtr before correction (the waiting time setting time Tw is subtracted), to obtain the corrected delay time setting time.

[0036] When generating sound output data after timing T09, a new delay setting time dtr2 is set. This delay setting time dtr2 is set to the time difference between timing T08 and the timing at which sound is actually output. In other words, the delay setting time dtr2 is obtained by adding the time difference dts to the delay setting time dtr before correction.

[0037] The sound output signals corresponding to the messages to be output as sounds at times T11 and T12 sent in the fifth packet transmission are also generated and output with a delay of the above-mentioned new delay setting time dtr2.

[0038] 3 is a flowchart showing a control procedure by the CPU 11 of the sound output control process executed by the electronic device 1 of this embodiment. The sound output control process, which is an output control method of this embodiment, is started, for example, when the electronic device 1 is started up, and is executed continuously.

[0039] The CPU 11 starts the output timing setting process described below (step S101). The CPU 11 determines whether there is any message data for which the waiting setting time Tw set in the output timing setting process described below has elapsed (which is the delay timing) (step S102). As described below, the waiting setting time Tw is the difference between the acquisition time of the message data and the time when the delay setting time dtr has elapsed from the time related to the output timing associated with the message data. If it is determined that there is no message data for which the waiting setting time Tw has elapsed ("NO" in step S102), the CPU 11 repeats the process of step S102.

[0040] If it is determined that there is message data for which the standby setting time Tw has elapsed ("YES" in step S102), CPU 11 outputs the message data to DSP 15 (step S103). As a result, CPU 11 causes DSP 15 and output unit 16 to execute a sound output signal generation process. That is, DSP 15 generates sound output data based on the message data and outputs it to output unit 16, and output unit 16 converts this to analog and outputs it as a sound output signal. If there are multiple pieces of message data, CPU 11 causes them to be input in parallel to DSP 15, and generates sound data in parallel. Then, the processing of CPU 11 returns to step S102. The processes in steps S102 and S103 constitute the output control means of the program 131 in this embodiment.

[0041] Fig. 4 is a flowchart showing a control procedure by the CPU 11 of the output timing setting process started in step S101 of Fig. 3. After being started, this output timing setting process is executed in parallel with the sound output control process.

[0042] The CPU 11 sets an initial setting value to the delay setting time dtr (step S111). The initial setting value is a value that the electronic device 1 has in advance. Alternatively, the initial setting value may be a value accepted by a user's input operation to an operation acceptance unit (not shown), or the last previously set delay setting time may be stored in the storage unit 13 and used.

[0043] The CPU 11 determines whether or not the communication unit 14 has received packet data via BLE (step S112). If it is determined that the packet data has not been received ("NO" in step S112), the CPU 11 repeats the process of step S112.

[0044] If it is determined that packet data has been received ("YES" in step S112), CPU 11 determines whether or not there is unacquired message data in the received packet data (step S113). If it is determined that there is no unacquired message data ("NO" in step S113), the process of CPU 11 returns to step S112.

[0045] If it is determined that there is unobtained message data ("YES" in step S113), the CPU 11 obtains one piece of message data from the packet data (step S114).

[0046] The CPU 11 determines whether the acquired data is the first data of the performance (step S115). If it is determined that the data is the first data ("YES" in step S115), the process of the CPU 11 proceeds to step S117.

[0047] If it is determined that the acquired data is not the first data ("NO" in step S115), the CPU 11 determines whether the timing Tk attached to the currently acquired message data is one or more cycles after the most recent timing T(k-1) in terms of the time period of the counter value (step S116). The CPU 11 determines whether the current time is advanced by nearly one cycle from the time U(k-1) associated with the timing T(k-1) of the previously acquired message data, and whether it is assumed that sound output within one cycle from the time is specified. For this purpose, the CPU 11 stores in the RAM 12 the latest of the output timings Uk calculated so far. The CPU 11 then determines whether the difference between the current time U and the time Uk is greater than a reference value of about the cycle time Tp (for example, a time shorter than the cycle time Tp by about several cycles of the time interval dTc related to the transmission of packet data). If it is determined that the difference between the current time U and the time Uk is greater than the reference value ("YES" in step S116), the processing of CPU 11 proceeds to step S117. Note that before proceeding to the processing of step S117, CPU 11 may perform the same processing as step S111 to initialize the delay setting time dtr. If it is determined that the difference between the current time U and the time Uk is not greater than the reference value (is less than the reference value) ("NO" in step S116), the processing of CPU 11 proceeds to step S118.

[0048] When the process proceeds to step S117, the CPU 11 sets the currently acquired timing Tk as the reference timing TB, and sets the current time U as the reference time UB corresponding to the reference timing TB (step S117). Then, the process proceeds to step S118.

[0049] When the process proceeds to step S118, the CPU 11 acquires the current time U, and calculates the waiting time Tw until the process of generating a sound signal from the current message data is executed according to the above formula (1) (step S118).

[0050] The CPU 11 determines whether the waiting time setting Tw is less than 0 (negative value) (step S119). If it is determined that the waiting time setting Tw is not less than 0 (is equal to or greater than 0) ("NO" in step S119), the process of the CPU 11 returns to step S113.

[0051] If it is determined that the waiting time setting Tw is less than 0 (is a negative value) ("YES" in step S119), the CPU 11 subtracts the waiting time setting Tw from the current delay time setting dtr (step S120). That is, the CPU 11 increases (extends) the delay time setting dtr by the amount of delay in the generation and output of the sound signal. The processes of steps S119 and S120 constitute an extension control means in the program 131 of this embodiment.

[0052] The CPU 11 determines whether the obtained delay setting time dtr is greater than a predetermined maximum setting value dtr_max (maximum setting time) of the delay setting time (step S121). If it is determined that the delay setting time dtr is greater than the maximum setting value dtr_max ("YES" in step S121), the CPU 11 sets the delay setting time dtr to the maximum setting value dtr_max (step S122). Then, the processing of the CPU 11 proceeds to step S123. If it is determined that the delay setting time dtr is not greater than the maximum setting value dtr_max (is equal to or less than the maximum setting value dtr_max) ("NO" in step S121), the processing of the CPU 11 proceeds to step S123.

[0053] When the process proceeds to step S123, the CPU 11 sets the waiting setting time Tw to 0 (step S123). Then, the process of the CPU 11 returns to step S113.

[0054] As described above, the output control method of this embodiment outputs a sound output signal corresponding to the message data at a delay timing that is a certain delay setting time dtr from the output timing in response to obtaining MIDI data in which output timing information is associated with each message in a packet, and if the output of the sound output signal is delayed beyond the delay timing, the delay setting time dtr is extended in accordance with the delay time difference dts. In this way, when a situation occurs in which the performance output of the actual MIDI data does not meet the appropriate timing, the delay setting time dtr is extended in sequence according to the degree of delay. In this way, the electronic device 1 sets the delay setting time more flexibly and appropriately. This allows the electronic device 1 to prevent the delay setting time dtr from being extended more than necessary, and at the same time, to reduce the frequency of inaccurate sound output during performance.

[0055] In addition, when the output of a sound output signal corresponding to certain message data is delayed beyond the delay timing, the delay setting time dtr related to the output timing of a sound output signal corresponding to the message data following this message data is set to a delay setting time extended according to the time difference dts. In this way, the time difference dts is reflected in the delay setting time dtr from the next message data in which the time difference dts occurs, so that the delay setting time dtr can be quickly extended to the level of the delay time that is actually occurring. Therefore, with this output control method, subsequent outputs are less likely to be delayed beyond the setting.

[0056] In addition, in this output control method, MIDI data is acquired at a certain time interval dTc for each one or a plurality of message data, i.e., for each packet data. When the time interval dTc is set for transmitting and receiving packet data in this way, it is easy for cases to occur where all information required for accurate sound output cannot be acquired in time. In the output control method of this embodiment, the delay setting time dtr is adjusted while detecting such cases in real time. Therefore, the output control method can save the user the trouble of measuring or predicting the amount of data in each time range of a song in advance to determine the delay setting time dtr.

[0057] Also, the MIDI data may include multiple message data with the same output timing information. Since multiple sounds can be output simultaneously in the MIDI data, each of these may be included in multiple different messages. Also, due to restrictions on packet capacity, such message data may be included in different packets in the sound output section with a large amount of data. In this case, the above-mentioned output control method cannot perform accurate sound output until all the data of the multiple different packets is received. Therefore, the setting of the delay setting time dtr is important for accurate sound output. Therefore, in the output control method of this embodiment, by flexibly changing the delay setting time dtr, both inaccurate sound output and unnecessary time lag increase can be suppressed.

[0058] In addition, in the output control method of this embodiment, a sound output signal corresponding to message data is generated and output at a delay timing. In other words, the generation of the sound output signal itself is suspended until the delay timing. As a result, in the output control method, after acquiring all the necessary message data, sound data is generated for each, and an appropriately mixed sound output signal can be obtained.

[0059] In addition, in this output control method, a maximum setting value dtr_max of the delay setting time dtr is determined, and when the output of the sound output signal is delayed from the output timing by more than the maximum setting value dtr_max, the delay setting time dtr is set to be equal to or less than the maximum setting value dtr_max. For example, the delay setting time dtr can be set equal to the maximum setting value dtr_max. By not increasing the delay setting time dtr in this way without limit, the time lag between the input of the performance data and the output of the sound output signal can be kept within a range that does not cause problems for the user.

[0060] The delay setting time dtr is set to an initial setting value when MIDI data reception starts. The required length of the delay setting time dtr may vary depending on the song. Therefore, in the output control method of this embodiment, the delay setting time dtr can be reset to an appropriate time for the performance by returning it to its initial value for each performance.

[0061] In addition, the program 131 of this embodiment functions as an output control means for controlling a computer (electronic device 1) that outputs a sound output signal in response to acquisition of MIDI data in which output timing information is associated with each message data, so that the sound output signal corresponding to the message data is output at a delay timing a certain delay setting time dtr has elapsed from the output timing, and as an extension control means for extending the delay setting time dtr in response to the delay time difference dts when the output of the sound output signal is delayed beyond the delay timing. The program 131 for executing the process related to the output control method can be easily installed and executed on a computer. This allows the delay setting time dtr to be easily and flexibly set without complex hardware settings, etc. Therefore, according to this program 131, it is possible to effectively and balancedly suppress the disturbance of the sound output caused by the delay in receiving the message data and the discomfort felt by the user caused by the increase in the time lag.

[0062] The electronic device 1 of this embodiment also includes a DSP 15 and an output unit 16 as a signal generating unit that outputs a sound output signal in response to acquisition of MIDI data in which information on output timing is associated with each piece of message data, and a CPU 11. The CPU 11 controls so that a sound output signal corresponding to the message data is output at a delay timing that is a certain delay setting time dtr after the output timing. If the output of the sound output signal is delayed from the delay timing, the CPU 11 extends the delay setting time dtr according to the delay time difference dts. In this way, when a situation occurs in which the actual performance output does not keep up with the appropriate timing set by the MIDI data, the delay setting time dtr is extended in sequence according to the degree of the situation. In this way, the electronic device 1 can set the delay setting time more flexibly and appropriately. This allows the electronic device 1 to prevent the delay setting time dtr from being extended more than necessary, and at the same time, to reduce the frequency of inaccurate sound output.

[0063] The present invention is not limited to the above-described embodiment, but may be modified in various ways. For example, in the above embodiment, the delay setting time dtr is extended by the same length as the time difference dts by which the sound output is delayed, but this is not limited to this. For example, the delay setting time dtr may be extended by a time width obtained by multiplying the time difference dts by a coefficient slightly larger than 1. Alternatively, the delay setting time dtr may be extended by a time width obtained by adding a uniform additional extension width to the time difference dts.

[0064] In the above embodiment, the sound output data (digital data) is generated immediately before (almost simultaneously with) the generation (analog conversion) of the sound output signal, but this is not limited to the above. For example, the sound output data generated in advance may be temporarily stored in a buffer, and then converted (generated) into a sound output signal by the output unit 16 at an appropriate timing or after a specific time has elapsed.

[0065] In the above embodiment, the MIDI data is transmitted to the electronic device 1 by BLE, but the present invention is not limited to this. The MIDI data may be acquired based on other communication standards that the electronic device 1 can acquire. The communication interval at this time does not necessarily have to be constant. Even in the case of BLE, the communication interval may be variable.

[0066] Furthermore, the performance data received by the electronic device 1 may be in any data format.

[0067] In addition, the determination of whether the delay setting time exceeds the maximum setting value dtr_max is not limited to the above process. For example, the comparison may be performed before actually subtracting the negative waiting setting time Tw from the delay setting time dtr. In addition, if subtracting the waiting setting time Tw causes the delay setting time dtr to exceed the maximum setting value dtr_max, the process of subtracting the waiting setting time Tw may be stopped.

[0068] In the above embodiment, the generation process of the sound output data by the DSP 15 is controlled by the CPU 11, but this is not limited to the above. The CPU 11 itself may perform the generation process of the sound output data by software. That is, the signal generation unit of this embodiment may be the CPU 11.

[0069] Furthermore, the output timing of the sound output signal at the delay timing does not have to be controlled by the CPU 11. For example, the output unit 16 may control the output timing, and the CPU 11 may only monitor the timing and change the delay setting time dtr.

[0070] In addition, the judgment condition in step S116 for initializing the delay setting time dtr may be different from the above. For example, the difference from the current time U may be calculated not from the time Uk of the most recent timing Tk, but from the current time acquired in the previous step S118. Alternatively, the delay setting time dtr may be initialized when it is accepted that the user has performed a reset operation by inputting an operation acceptance unit (not shown). In addition, the delay setting time dtr may be initialized not after the processing in step S116, but when a state in which there is no unacquired data continues for a specified time or more in the processing in step S113.

[0071] Further, the above embodiment is directed to output control of data relating to sound, but the present invention can also be utilized for output control of data relating to information other than sound (information data).

[0072] In the above description, the storage unit 13 is exemplified by a non-volatile memory such as a flash memory as a computer-readable medium for storing the program 131 related to the output control of the present invention, but is not limited thereto. As other computer-readable media, other non-volatile memories such as MRAM, HDDs (Hard Disk Drives), and portable recording media such as CD-ROMs and DVD disks can be applied. In addition, a carrier wave is also applied to the present invention as a medium for providing data of the program according to the present invention via a communication line. In addition, the specific configurations, contents and procedures of the processing operations, etc. shown in the above embodiments can be modified as appropriate without departing from the spirit of the present invention. The scope of the present invention includes the scope of the invention described in the claims and its equivalents. [Explanation of symbols]

[0073] 1 Electronic equipment 11 CPU 12 RAM 13 Storage section 131 Programs 14 Communications Department 15 DSP 16 Output section L Speaker S sound source Tw Waiting time setting dtr, dtr2 delay setting time dtr_max maximum setting value DTS time difference

Claims

1. A computer In response to acquisition of information data in which information on output timing is associated with each unit data, an output signal corresponding to the unit data is output at a delay timing after a certain delay setting time has elapsed from the output timing; When the output of the output signal is delayed beyond the delay timing, the delay setting time is extended according to the delay time width. Output control method.

2. An output control method as described in claim 1, wherein, when the output of the output signal corresponding to a certain unit data is delayed beyond the delay timing, the computer sets the delay setting time for the output timing of the output signal corresponding to the unit data following the certain unit data to a delay setting time that is extended according to the time width.

3. An output control method as described in claim 1, wherein the computer acquires the information data for one or more of the unit data at a certain time interval.

4. 2. The output control method according to claim 1, wherein the information data includes a plurality of the unit data to which the same output timing information is added.

5. An output control method as described in claim 1, wherein the computer generates and outputs the output signal corresponding to the unit data at the delayed timing.

6. A maximum setting time of the delay setting time is determined, When the output of the output signal is delayed from the output timing by more than the maximum set time, the computer sets the delay set time to be equal to or less than the maximum set time. The output control method according to claim 1.

7. 2. The output control method according to claim 1, wherein the delay setting time is set to an initial setting value when reception of the information data starts.

8. A computer of an electronic device that outputs an output signal in response to acquisition of information data in which output timing information is associated with each unit data, an output control means for controlling the output signal corresponding to the unit data to be output at a delay timing when a certain delay setting time has elapsed from the output timing; an extension control means for extending the delay setting time in accordance with a time width of the delay when the output of the output signal is delayed beyond the delay timing; A program that functions as a

9. a signal generating unit that outputs an output signal in response to acquisition of information data in which information on output timing is associated with each unit data; A control unit; Equipped with The control unit is Controlling so that the output signal corresponding to the unit data is output at a delay timing when a certain delay setting time has elapsed from the output timing; When the output of the output signal is delayed beyond the delay timing, the delay setting time is extended according to the delay time width. electronic equipment.

Citation Information

Patent Citations

  • Musical sound generation system, communication terminal, and sound source module

    JP2003345350A

  • Delay control electronic musical instrument and playing in concert system

    JP2005195982A

  • Performance data transmitter and performance data receiver

    JP2013015643A