Electronic apparatus, sound data discrimination method, and sound data discrimination program

The electronic device efficiently discriminates between MIDI modulated and audio signals from multiple input sources by sequential channel analysis, addressing processing load issues and ensuring timely and accurate audio output.

JP2024141232APending Publication Date: 2024-10-10ROLAND CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023052758
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-10

AI Technical Summary

Technical Problem

Existing audio playback devices face increased processing loads due to the need to accurately discriminate between MIDI modulated signals and audio signals from multiple input systems, which can lead to reduced response times and inefficient output.

Method used

An electronic device and method that discriminates between PP data and audio data by sequentially determining the input from multiple channels, reducing processing load by analyzing MIDI modulation signals and audio signals in a sequential manner, allowing for efficient output of audio data from various input sources.

Benefits of technology

The solution enables efficient and timely output of audio data by reducing processing load and preventing false detections, ensuring good response times and accurate discrimination between MIDI modulated and audio signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024141232000001_ABST
    Figure 2024141232000001_ABST
Patent Text Reader

Abstract

To provide an electronic apparatus, a sound data discrimination method, and a sound data discrimination program that enable a processing load when sound data including a MIDI modulation signal or an audio signal is output from a plurality of input means to be reduced.SOLUTION: A left channel and a right channel for sound data input from a disk drive 50, a personal computer (PC) 51 and a portable terminal 52 (input source) are respectively set to an input system, and discrimination of sound data is sequentially performed for each input system. By sequentially switching the input systems of input sources to determine input signals, sound data input in each of the input sources can be discriminated without discriminating all the input sources and input systems simultaneously. Accordingly, a processing load when data including audio data or PP data as the sound data from the plurality of input sources can be reduced.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an electronic device, a voice data discrimination method, and a voice data discrimination program. [Background technology]

[0002] Patent Document 1 describes a method in which player piano data (hereinafter abbreviated as "PP data"), which is sound data in which a MIDI modulated signal modulated with MIDI data is set to one of the left or right channels and an audio signal is set to the other channel, is recorded on a music CD, and the music CD is then played on an audio playback device 30. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2002-94593 A Summary of the Invention [Problem to be solved by the invention]

[0004] Some music CDs have PP data recorded as audio data, and some have only audio signals set in the left and right channels as audio data. Therefore, in order to accurately play back audio data from music CDs in the audio playback device 30, it is necessary to analyze the audio data read from the music CD and determine whether the audio data is based on PP data or only on audio signals.

[0005] However, nowadays, in addition to music CDs, audio data is input through multiple input systems using wireless and wired communication, and each input system is configured to be able to input audio data independently. Therefore, in order to accurately play back the audio data input through each input system of the audio playback device 30, the audio data input through all the input systems must be constantly discriminated, which poses a problem of increased processing load on the audio playback device 30.

[0006] The present invention has been made to solve the above-mentioned problems, and aims to provide an electronic device, an audio data discrimination method, and an audio data discrimination program that can reduce the processing load when outputting audio data containing MIDI modulation signals or audio signals from multiple input means. [Means for solving the problem]

[0007] In order to achieve this object, the electronic device of the present invention outputs audio data consisting of either PP data in which a MIDI modulated signal obtained by modulating MIDI data is set in one of the left or right channels and an audio signal is set in the other channel, or audio data consisting of an audio signal alone, and is equipped with a plurality of input means for inputting the audio data, a sequential discrimination means for sequentially switching a target input means among the plurality of input means and discriminating whether the audio data input from the target input means is either PP data or audio data, a PP output means for, if the audio data input from the target input means is PP data, decoding and outputting the MIDI modulated signal in the PP data and outputting the audio signal in the PP data, and an audio output means for, if the audio data input from the target input means is audio data, outputting the audio signal in the audio data by the sequential discrimination means.

[0008] The audio data discrimination method of the present invention is a method executed by an electronic device that has a plurality of input means for inputting audio data, and outputs audio data consisting of either PP data in which a MIDI modulated signal obtained by modulating MIDI data is set in one of the left or right channels and an audio signal is set in the other channel, or audio data consisting of an audio signal only, and includes the following steps: a sequential discrimination step of sequentially switching a target input means among the plurality of input means and discriminating whether the audio data input from the target input means is either PP data or audio data; a PP output step of, if the audio data input from the target input means is PP data as a result of the sequential discrimination step, decoding and outputting the MIDI modulated signal in the PP data, and outputting the audio signal in the PP data; and an audio output step of, if the audio data input from the target input means is audio data as a result of the sequential discrimination step, outputting the audio signal in the audio data.

[0009] Furthermore, the audio data discrimination program of the present invention is executed by a computer having a plurality of input units for inputting audio data, and for outputting audio data consisting of either PP data in which a MIDI modulated signal obtained by modulating MIDI data is set in one of the left or right channels and an audio signal is set in the other channel, or audio data consisting of an audio signal alone, and causes the computer to execute the following steps: a sequential discrimination step of sequentially switching a target input unit among the plurality of input units and discriminating whether the audio data input from the target input unit is either PP data or audio data; a PP output step of, if the audio data input from the target input unit is PP data as a result of the sequential discrimination step, decoding and outputting the MIDI modulated signal in the PP data, and outputting the audio signal in the PP data; and an audio output step of, if the audio data input from the target input unit is audio data as a result of the sequential discrimination step, outputting the audio signal in the audio data. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is a diagram illustrating the appearance of an electronic piano. [Diagram 2] FIG. 11 is a diagram illustrating discrimination of audio data. [Diagram 3] FIG. 2 is a functional block diagram of the electronic piano. [Figure 4] FIG. 2 is a block diagram showing the electrical configuration of the electronic piano. [Diagram 5] 13 is a flowchart of a main process. [Figure 6] 13 is a flowchart of a sequential determination process. [Figure 7] 13A is a flowchart of a PP content discrimination process, and FIG. 13B is a flowchart of an audio PP content discrimination process. [Figure 8] 13A is a flowchart of a PP decoding process, and FIG. 13B is a flowchart of an audio playback process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] A preferred embodiment will be described below with reference to the accompanying drawings. First, an overview of an electronic piano 1 according to this embodiment will be described with reference to Fig. 1. Fig. 1 is a diagram showing the external appearance of the electronic piano 1. The electronic piano 1 is an electronic device that produces musical tones based on the performance of a user H, musical tones based on MIDI data, which is music data conforming to the MIDI (Musical Instrument Digital Interface) standard, and musical tones by reproducing audio signals in voice data.

[0012] The electronic piano 1 is provided with a keyboard 2, setting keys 3 to which various settings are input by the user H, and an LCD 4 to display the setting status of the various settings. The keyboard 2 is an input device for acquiring performance information from the performance of the user H. The keyboard 2 has a plurality of keys 2a arranged thereon, and performance information conforming to the MIDI standard in response to the pressing / releasing of the keys 2a by the user H is output to a CPU 10 (see FIG. 4) and output as musical tones.

[0013] The keyboard 2 is also provided with solenoids 2b that independently drive each of the keys 2a up and down. When a note-on in the performance information is acquired from MIDI data input from a disk drive 50 or the like (described later), the solenoid 2b drives the key 2a downward, thereby realizing the key being pressed. On the other hand, when a note-off in the performance information is acquired from the MIDI data, the solenoid 2b drives the key 2a upward, thereby realizing the key being released.

[0014] By synchronizing the pressing / releasing of the keys 2a by the solenoid 2b based on the input MIDI data with the production of musical tones based on the MIDI data, it becomes possible for the user H to see the electronic piano 1 playing automatically. Hereinafter, driving the solenoid 2b based on such MIDI data to operate the keys 2a will be referred to as "automatic operation of the keys 2a."

[0015] The electronic piano 1 of this embodiment is configured to be able to output musical tones based on input voice data in addition to outputting musical tones from the keyboard 2. The input voice data includes audio data and player piano data (PlayerPiano data, hereinafter abbreviated as "PP data"). The audio data is recorded with audio signals on both the left and right channels. When audio data is input as voice data, the audio signal in the audio data is emitted.

[0016] In the PP data, a MIDI modulated signal obtained by modulating MIDI data is set in the left channel of the audio data, and an audio signal is set in the right channel. In this embodiment, pulse modulation is used as the modulation method for the MIDI modulated signal of the PP data. Various modulation methods (for example, the pulse width used for modulation) are appropriately adopted depending on the user H or manufacturer who creates the PP data.

[0017] When PP data is input as audio data, the audio signal contained in the right channel of the PP data is emitted, and the MIDI modulated signal contained in the left channel is decoded into MIDI data and output as a musical tone, and further the key 2a is automatically operated using the MIDI data.

[0018] Sound data composed of the above-mentioned audio data or PP data is input from a plurality of input sources at any timing to the electronic piano 1 of this embodiment. The input sources of sound data include a disk drive 50 that reads sound data from an optical disk such as a music compact disk (music CD) connected to the electronic piano 1, a personal computer (PC) 51 connected to the electronic piano 1, and a mobile terminal 52 connected to the electronic piano 1 via wireless communication.

[0019] In order to accurately output the audio data input from these multiple input sources at any timing, it is necessary to constantly distinguish the audio data input from all input sources, but this increases the processing load of the electronic piano, and there is a risk that the audio data will not be output with good response. Therefore, in this embodiment, the audio data is distinguished for each of the left and right channels of the audio data from the input sources in sequence, thereby reducing the processing load of the electronic piano 1 required for distinguishing the audio data. The method of distinguishing audio data in this embodiment will be described with reference to FIG. 2.

[0020] 2 is a diagram for explaining discrimination of audio data. In this embodiment, the left channel / right channel of audio data input from the disk drive 50, the PC 51, and the mobile terminal 52 are each set as an "input system," and discrimination of the audio data is performed sequentially for each input system.

[0021] Specifically, six input systems are provided: a left channel for audio data input from disk drive 50, a right channel for audio data input from disk drive 50, a left channel for audio data input from PC 51, a right channel for audio data input from PC 51, a left channel for audio data input from portable terminal 52, and a right channel for audio data input from portable terminal 52. Hereinafter, the "left channel for audio data input from disk drive 50" and other input systems will be abbreviated as "disk drive 50 left channel" and the like.

[0022] The order of the input systems for identifying the input signals is as follows: disk drive 50·left channel→disk drive 50·right channel→PC 51·left channel→PC 51·right channel→mobile terminal 52·left channel→mobile terminal 52·right channel.

[0023] If it is determined that the input signal is PP data or audio data as a result of input system identification, the identification by sequentially switching the input system is stopped and the identified input signal is output. On the other hand, if identification has been performed up to "portable terminal 52, right channel" but PP data or audio data has not been identified, identification of the input signal from the first "disk drive 50, left channel" is repeated again. Hereinafter, identifying the input signal by sequentially switching the input system is referred to as "sequential identification."

[0024] The specific discrimination of the input signal is performed by monitoring the signal input to the target input system for a predetermined period of time LN. The area Sc in Fig. 2 represents the target input system for which discrimination is performed and the period.

[0025] In this embodiment, the time LN is set to a time length of 500 samples of audio data. For example, if the sampling frequency of the audio data is 44.1 kHz, the time LN is set to 500 / 44100 seconds (approximately 11.3 milliseconds). Note that the time LN may be more than or less than 500 samples of audio data.

[0026] A signal input to a target input system is observed for a period of time LN, and it is confirmed whether a predetermined pulse width (e.g., 260 microseconds or 300 microseconds) is continuously detected in the signal for a predetermined pulse count threshold value. The pulse count threshold value in the sequential discrimination of this embodiment is set to "10" according to the length of the above-mentioned time LN and the predetermined pulse width.

[0027] The pulse count threshold in the sequential discrimination is not limited to 10, and may be greater than or less than 10. Even when a value other than 10 is set as the pulse count threshold in the sequential discrimination, it is preferable to set the pulse count threshold in the sequential discrimination to a value according to the length of the time LN or the predetermined pulse width.

[0028] When a predetermined pulse width is detected consecutively for a number of times equal to the pulse count threshold, the signal input to that input system is determined to be a MIDI modulated signal. Furthermore, the modulation method of the MIDI modulated signal is analyzed from the detected pulse width. The analysis of the modulation method of the MIDI modulated signal uses known technology.

[0029] On the other hand, if the predetermined pulse width is not detected consecutively for the pulse count threshold in the signal input for the time LN, the absolute values ​​of the levels of the input signals are added (integrated) and it is confirmed whether the added value exceeds the predetermined level. If the added value exceeds the level threshold, the signal input to that input system is determined to be an audio signal.

[0030] If the specified pulse width is not detected consecutively for the pulse count threshold value and the sum of the levels of the input signals does not exceed a specified level, the input system is determined to be a no-signal system in which no signal is being input.

[0031] If, through this determination, it is determined that the signal from the input system corresponding to the left channel is a MIDI modulated signal, the audio data input from the input sources corresponding to these input systems is determined to be PP data, and the MIDI modulated signal of the left channel of the PP data is decoded to output musical tones based on the MIDI data, automatically operate the key 2a, and output an audio signal of the right channel of the PP data.

[0032] Furthermore, when the signal from the input system corresponding to the left channel is determined to be an audio signal, the voice data input from the input sources corresponding to these input systems is determined to be audio data, and audio signals of the left channel and right channel of that audio data are output.

[0033] Even if it is determined that there is no signal in the input system corresponding to the left channel, but the signal from the input system corresponding to the right channel of the same input source is an audio signal, the voice data input from the input sources corresponding to these input systems is determined to be audio data, and audio signals of the left and right channels of that audio data are output.

[0034] On the other hand, if there are no signals in the input system corresponding to the left channel and the input system corresponding to the right channel of the same input source, it is determined that no audio data is being input from the input sources corresponding to these input systems, the determination of that input system is terminated, and the determination of the signal input to the next input system is continued.

[0035] In this way, by sequentially switching between the input systems of multiple input sources and identifying the input signals, it is possible to identify the audio data input at each input source without identifying all the input sources and input systems at the same time. This reduces the processing load when outputting audio data or PP data included in the audio data from multiple input sources. Also, by sequentially identifying the input systems, it is possible to identify the audio data in all the input systems of multiple input sources. This prevents a situation in which the audio data cannot be identified depending on the input source and input system.

[0036] As described above, when an input signal is determined to be an audio signal or a MIDI modulated signal and the input signal is to be output, the determination is stopped in sequence. This allows the processing power of the electronic piano 1 to be concentrated on outputting the input signal, for example, on decoding the MIDI modulated signal, and therefore allows the input signal to be output with good response.

[0037] In addition, when the user H switches the input source of the audio data, and the supply of the audio data from the input source to which the audio data was previously being input is interrupted, the sequential determination is restarted. This allows the user H to output the audio data from the input source after the user H has switched, without operating the electronic piano 1.

[0038] However, when there is no signal in the input system corresponding to the left channel and the signal from the input system corresponding to the right channel of the same input source is an audio signal, the sound data input from that input source is determined to be audio data, and the audio signals of the left and right channels of that audio data are output. However, in this case, a MIDI modulation signal is actually set in the left channel, but the left channel may temporarily have no signal at the timing when the sequential determination is performed.

[0039] Furthermore, if, during sequential determination, it is determined that the left channel signal is an audio signal and then user H switches the audio data input from the input source to PP data, then after sequential determination the left channel signal will switch from an audio signal to a MIDI modulated signal.

[0040] In these cases, if the MIDI modulated signal of the left channel is output as an audio signal, the pulse signal of the MIDI modulated signal will be emitted as is, which may cause the listener to feel uncomfortable.

[0041] Therefore, in this embodiment, even if the sound data from the input source is determined to be audio data, the determination as to whether the sound data from the input source is audio data or PP data is continued, and if the sound data is PP data, the output of audio data is switched to the output of PP data. Such determination performed while audio data is being output is called "in-output determination." The method of determining sound data in the in-output determination is the same as the method in the sequential determination described above, but the pulse count threshold used to determine whether the input signal is a MIDI modulated signal is set to "100."

[0042] This type of output discrimination prevents the MIDI modulated signal in the PP data from being emitted as is, even if the PP data is determined to be audio data in the sequential discrimination, or if the audio data from the corresponding input source is switched from audio data to PP data, thereby minimizing the sense of discomfort felt by the listener.

[0043] Furthermore, the pulse count threshold for the output determination ("100") is set to a value greater than the pulse count threshold for the sequential determination ("10"). That is, in the output determination, the number of pulses observed to determine whether a signal is a MIDI modulated signal is increased, reducing false positives of MIDI modulated signals and enabling more accurate determination of whether a signal is a MIDI modulated signal or not.

[0044] On the other hand, in the sequential discrimination, a smaller value is set for the pulse count threshold than for the output discrimination, so that it is possible to quickly determine whether or not the signal is a MIDI modulated signal. This allows for rapid discrimination while switching input systems using sequential discrimination.

[0045] The pulse count threshold in the on-output determination is not limited to 100, and may be greater than or less than 100. Even when a value other than 100 is set as the pulse count threshold in the on-output determination, it is preferable to set the pulse count threshold in the on-output determination to a value greater than the pulse count threshold in the above-described sequential determination.

[0046] Next, the function of the electronic piano 1 will be described with reference to Fig. 3. Fig. 3 is a functional block diagram of the electronic piano 1. As shown in Fig. 3, the electronic piano 1 has an input means 100, a sequential determination means 101, a PP output means 102, and an audio output means 103.

[0047] The input means 100 is a means for inputting audio data, and is realized by the external input / output device 19 and the wireless communication device 20, which will be described later in Fig. 4. A plurality of input means 100 are provided in the electronic piano 1. The sequential determination means 101 is a means for sequentially switching between target input means 100 among the plurality of input means 100, and determining whether the audio data input from the target input means 100 is either PP data or audio data, and is realized by the CPU 10, which will be described later in Fig. 4.

[0048] The PP output means 102 is a means for decoding and outputting a MIDI modulated signal in the PP data when the voice data input from the target input means 100 is determined to be PP data by the sequential determination means 101, and outputting an audio signal in the PP data, and is realized by the CPU 10. The audio output means 103 is a means for outputting an audio signal in the audio data when the voice data input from the target input means 100 is determined to be audio data by the sequential determination means 101, and is realized by the CPU 10.

[0049] In this way, by sequentially switching the input means 100 that identifies the audio data, it is possible to identify the audio data input by each input means 100 without identifying all the input means simultaneously. This reduces the processing load when outputting audio data containing MIDI modulation signals or audio signals from multiple input means 100. Furthermore, by sequentially identifying the input means 100, it is possible to identify the audio data for all of the multiple input means 100. This makes it possible to prevent a situation in which the audio data is not identified by the input means 100.

[0050] Next, the electrical configuration of the electronic piano 1 will be described with reference to Fig. 4. Fig. 4 is a block diagram showing the electrical configuration of the electronic piano 1. The electronic piano 1 has a CPU 10, a flash ROM 11, a RAM 12, the above-mentioned keyboard 2, setting keys 3, and LCD 4, a sound source 13, a digital signal processor 14 (hereinafter referred to as "DSP 14"), an external input / output device 19, and a wireless communication device 20, each of which is connected via a bus line 15.

[0051] The CPU 10 is a calculation device that controls each unit connected by a bus line 15. The flash ROM 11 is a rewritable non-volatile storage device that stores programs executed by the CPU 10, fixed value data, etc., and includes a control program 11a. When the control program 11a is executed by the CPU 10, the main process of FIG. 5 is executed.

[0052] The RAM 12 is a memory for rewritably storing various work data, flags, etc. when the CPU 10 executes a program, and is provided with a pulse count threshold 12a in which the above-mentioned pulse count threshold is stored, a pulse detection count 12b in which the number of times a predetermined pulse width is continuously detected from a signal input from a target input system is stored, a level addition value 12c in which the addition value of the absolute value of the level of the signal input from the target input system is stored, a MIDI detection flag 12d in which whether or not a MIDI modulated signal has been detected, an audio detection flag 12e in which whether or not an audio signal has been detected, and a loop count 12f in which the number of loops corresponding to the observation time of the input system in sequential discrimination is stored.

[0053] The sound source 13 is a device that outputs waveform data based on performance information input from the CPU 10. The DSP 14 is a calculation device that processes the waveform data input from the sound source 13. A digital-to-analog converter (DAC) 16 is connected to the DSP 14, an amplifier 17 is connected to the DAC 16, and a speaker 18 is connected to the amplifier 17.

[0054] The external input / output device 19 is a device for inputting and outputting information from an external device. The above-mentioned disk drive 50 and PC 51 are connected to the external input / output device 19, and audio data from these is input. The wireless communication device 20 is a device for wirelessly communicating with an external device. Audio data from the above-mentioned mobile terminal 52 is input via the wireless communication device 20.

[0055] Next, the processing executed by the CPU 10 of the electronic piano 1 will be described with reference to Figures 5 to 8. Figure 5 is a flowchart of the main processing. The main processing is processing that is executed when the power of the electronic piano 1 is turned on.

[0056] The main processing first sets the operation mode of the electronic piano 1 to "automatic detection mode," sets the input system to "disk drive 50, left channel," sets the pulse count threshold 12a to 10, sets the MIDI detection flag 12d and audio detection flag 12e to "off," and sets the pulse detection count 12b, the level addition value 12c, and the loop count 12f to 0 (S1). The operation modes of the electronic piano 1 include an "automatic detection mode" that performs the above-mentioned sequential discrimination, a "PP decode mode" that outputs PP data, and an "audio playback mode" that outputs audio data.

[0057] After the process of S1, acquisition of a signal from the input system (i.e., "disk drive 50, left channel" set in the process of S1) is started (S2). After the process of S2, the operation mode is confirmed (S3). In the process of S3, if the operation mode is the automatic detection mode (S3: "automatic detection mode"), a sequential determination process of S4 is performed, if the operation mode is the PP decode mode (S3: "PP decode mode"), a PP decode process of S5 is performed, and if the operation mode is the audio playback mode (S3: "audio playback mode"), an audio playback process of S6 is performed. The sequential determination process of S4, the PP decode process of S5, and the audio playback process of S6 will be described with reference to FIGS. 6 to 8.

[0058] 6 is a flowchart of the sequential discrimination process. The sequential discrimination process first checks whether the value of the loop count 12f is equal to or greater than the value corresponding to the above-mentioned time LN (S20). After the process of S20, the input system is changed to the next input system (S21), and the loop count 12f is set to 0 (S22).

[0059] That is, because monitoring and discrimination of the signal of the target input channel by the PP content discrimination process of S23 and the audio discrimination process of S27 described later has continued for time LN, the target input channel is switched to the next input channel. The order of the input channels to be discriminated is, as described above, disc drive 50·left channel → disc drive 50·right channel → PC 51·left channel → PC 51·right channel → mobile terminal 52·left channel → mobile terminal 52·right channel.

[0060] After the process of S22, or if the value of the loop count 12f is smaller than the value corresponding to the above-mentioned time LN (S20: No), the PP content determination process of S23 is executed. Here, the PP content determination process will be described with reference to Fig. 7(a).

[0061] 7(a) is a flowchart of the PP content discrimination process. The PP content discrimination process first checks whether a predetermined pulse width (e.g., 0.2 ms or 0.3 ms) has been detected consecutively from a signal acquired from a target input system (S40). More specifically, it is checked whether the predetermined pulse width has been detected for the first time from the target input system, or whether the predetermined pulse width has been detected consecutively.

[0062] In the process of S40, if a predetermined pulse width is detected from the signal acquired from the target input system (S40: Yes), 1 is added to the pulse detection count 12b (S41). After the process of S41, it is confirmed whether the value of the pulse detection count 12b is equal to or greater than the pulse count threshold 12a (S42). In the process of S42, if the value of the pulse detection count 12b is equal to or greater than the pulse count threshold 12a (S42: Yes), the signal acquired from the target input system is determined to be a MIDI modulated signal, and the MIDI detection flag 12d is set to ON (S43). After the process of S43, the level addition value 12c is set to 0 (S44).

[0063] In the process of S40, if a predetermined pulse width is not consecutively detected from the signal acquired from the target input system (S40: No), or after the process of S44, the pulse detection count 12b is set to 0 (S45). In the process of S42, if the value of the pulse detection count 12b is smaller than the value of the pulse count threshold 12a, or after the process of S45, the PP content discrimination process ends.

[0064] Returning to Fig. 6, after the PP content discrimination process of S23, it is confirmed whether the MIDI detection flag 12d is on (S24). If the MIDI detection flag 12d is on in the process of S24 (S24: Yes), the operation mode is set to "PP decode mode" (S25), and the MIDI detection flag 12d is set to off (S26). As a result, the audio data of the input source corresponding to the input system that was discriminated as a MIDI modulated signal, i.e., PP data, in the PP content discrimination process of S23 is output in the PP decode process of S5 described later in Fig. 8(a).

[0065] In the process of S24, if the MIDI detection flag 12d is off (S24: No), the audio determination process of S27 is executed. Here, the audio determination process will be described with reference to Fig. 7(b).

[0066] 7B is a flowchart of the audio discrimination process. The audio discrimination process starts with adding the absolute value of the level of the signal acquired from the target input system to the level addition value 12c (S50). After the process of S50, it is confirmed whether the level addition value 12c is equal to or higher than a predetermined level (S51).

[0067] In the process of S51, if the level addition value 12c is equal to or higher than a predetermined level (S51: Yes), the audio detection flag 12e is set to ON (S52), and the level addition value 12c is set to 0 (S53). In the process of S51, if the level addition value 12c is lower than the predetermined level (S51: No), or after the process of S53, the audio determination process ends.

[0068] Returning to Fig. 6, after the audio discrimination process of S27, it is confirmed whether the audio detection flag 12e is on (S28). If the audio detection flag 12e is on in the process of S28 (S28: Yes), the operation mode is set to "audio playback mode" (S29), the pulse count threshold 12a is set to 100 (S30), and the audio detection flag 12e is set to off (S31). As a result, the audio data of the input source corresponding to the input system discriminated as an audio signal, i.e., audio data, in the audio discrimination process of S27 is output in the audio playback process of S6 described later in Fig. 8(b).

[0069] After the processes of S26 and S31, the pulse detection count 12b, the level addition value 12c, and the loop count 12f are set to 0 (S32). In the process of S28, if the audio detection flag 12e is off (S28: No), the loop count 12f is incremented by 1 (S33). After the processes of S32 and S33, the sequential determination process is terminated.

[0070] Next, the PP decoding process of S5 will be described with reference to Fig. 8(a). Fig. 8(a) is a flowchart of the PP decoding process. The PP decoding process first checks (S60) whether PP data has been detected as audio data from the target input source, i.e., the input source (disk drive 50, PC 51, or mobile terminal 52) corresponding to the input system to which the MIDI modulated signal is input by the PP content determination process of S23.

[0071] In the process of S60, if PP data is detected (S60: Yes), a MIDI modulated signal of the detected PP data is acquired (S61), and the acquired MIDI modulated signal is decoded into MIDI data and output (S62). In the process of S62, the decoded MIDI data is output as a musical tone, and the key 2a is automatically operated using the MIDI data. After the process of S62, an audio signal of the detected PP data is acquired, and the acquired audio signal is sounded (S63).

[0072] If no PP data is detected from the target input source in the process of S60 (S60: No), for example if the input of PP data from the target input source is interrupted or if the output of the MIDI data or audio signal obtained from the PP data in the previous process of S62 or S63 has failed, the operation mode is set to "automatic detection mode" (S64) in order to perform the sequential discrimination process of S4 again. After the processes of S63 and S64, the PP decoding process ends.

[0073] Next, the audio playback process of S6 will be described with reference to Fig. 8(b). Fig. 8(b) is a flowchart of the audio playback process. The audio playback process first checks whether audio data has been detected as voice data from the target input source, i.e., the input source corresponding to the input system to which the audio signal is input by the audio discrimination process of S27 (S70).

[0074] In the process of S70, if audio data is detected (S70: Yes), an audio signal of the detected audio data is acquired, and the acquired audio signal is output (emitted as sound) (S71). After the process of S71, the PP content determination process of S23 is executed.

[0075] After the PP content discrimination process in S23, it is confirmed whether the MIDI detection flag 12d is on (S72). If the MIDI detection flag 12d is on in the process of S72 (S72: Yes), this means that PP data is being input from the target input source, so in order to perform the PP decoding process in S5, the operation mode is set to "PP decode mode" (S73), the MIDI detection flag 12d is set to off (S74), and the pulse detection count 12b, the level addition value 12c, and the loop count 12f are set to 0 (S75).

[0076] If audio data is not detected in the process of S70 (S70: No), for example, if the input of audio data from the target input source is interrupted or if the output of an audio signal has failed in the previous process of S71, the operation mode is set to "automatic detection mode" (S76) in order to perform the sequential discrimination process of S4 again.

[0077] After the processes of S75 and S76, in order to prepare for the next sequential determination in the automatic detection mode, the pulse count threshold 12a is set to 10 (S77). In the process of S72, if the MIDI detection flag 12d is off (S72: No), or after the process of S77, the audio playback process ends.

[0078] Returning to Fig. 5, after the processes in S4 to S6, other processes in the electronic piano 1 are executed (S7), and the processes in S3 and after are repeated.

[0079] Although the above description is based on the above embodiment, it can be easily imagined that various improvements and modifications are possible.

[0080] In the above embodiment, the input sources for inputting voice data are the disk drive 50, the PC 51, and the mobile terminal 52, but are not limited to these. Voice data may be input from an input source other than these (for example, a voice data distribution server connected to the Internet).

[0081] Moreover, the output of musical tones and the automatic operation of the key 2a are not limited to being performed by the same MIDI data, but may be performed by separate MIDI data. In this case, the MIDI data for outputting musical tones and the MIDI data for automatically operating the key 2a may be obtained from separate input sources, such as obtaining the MIDI data for outputting musical tones from the disk drive 50 and obtaining the MIDI data for automatically operating the key 2a from the PC 51.

[0082] In the above embodiment, an input system is configured for each of the left channel / right channel of the input source, but the configuration of the input system is not limited to this. For example, the input sources may be combined into one input system. In this case, the signals input from the left channel / right channel of the input source may be discriminated in parallel, or the left channel / right channel of the input source may be discriminated alternately. In addition, a plurality of input sources (for example, the disk drive 50 and the PC 51) may be one input system.

[0083] In the above embodiment, the order of the input systems to be identified is disk drive 50·left channel → disk drive 50·right channel → PC 51·left channel → PC 51·right channel → portable terminal 52·left channel → portable terminal 52·right channel, but this is not limited to this. For example, the order of the input systems to be identified may be randomly changed each time.

[0084] Also, the number of times the input channel has been identified may be counted and stored for each input channel, and identification may be performed in the order of the number of times the input channel has been identified. This allows identification to be performed in the order of the input channel (input means) that User H has input voice data to, thereby shortening the time lag from when User H starts inputting voice data until the voice data is identified and played back.

[0085] In the above embodiment, the PP data is set to a MIDI modulated signal obtained by modulating MIDI data in the left channel, and an audio signal in the right channel, but this is not limited to the above. The PP data may be set to an audio signal in the left channel, and a MIDI modulated signal in the right channel. In this case, the order of the input systems in the discrimination may be set so that the right channel precedes the left channel ("right channel -> left channel").

[0086] In the above embodiment, the audio data is recorded as audio signals in both the left channel and the right channel, but this is not limited to this. The audio data may be recorded as audio signals in either the left channel or the right channel (so-called monaural), or a channel other than the left channel and the right channel may be added and audio signals may be recorded in that channel as well. When a channel other than the left channel and the right channel is added, the added channel may be added to the above input system and discrimination may be performed.

[0087] In the above embodiment, the output determination is performed while audio data is being output, but this is not limited to the above. The output determination may also be performed while PP data is being output. Moreover, the output determination may be omitted while audio data is being output.

[0088] In the above embodiment, the input signal is determined to be a MIDI modulated signal or PP data by counting pulses of a predetermined width in the input signal, but this is not limited to the above. For example, if the input signal is a pulse, the pulse may be acquired for a certain period of time and then decoded. If the decoded result is valid MIDI data, the signal may be determined to be a MIDI modulated signal. Alternatively, the waveform of the pulse corresponding to the MIDI modulated signal may be learned using learning data, and an AI using the learning data may be used to determine whether the input signal is a MIDI modulated signal.

[0089] In the above embodiment, the electronic device is exemplified as the electronic piano 1, but the present invention is not limited to this and may be applied to other electronic devices such as synthesizers, electronic wind instruments, etc. Also, the control program 11a may be executed by other information processing devices such as personal computers and mobile terminals.

[0090] In the above embodiment, MIDI data is used as an example of music data, but the present invention is not limited to this, and data relating to music other than that conforming to the MIDI standard may also be used as music data. [Explanation of symbols]

[0091] 1. Electronic piano (electronic device) 11a Control program (audio data discrimination program) 19 External input / output device (input means, input section) 20 Wireless communication device (input means, input unit) S4 sequential discrimination means, sequential discrimination step S5 PP output means, PP output step S6 Audio output means, audio output step S23, S72, S73 Output determination means

Claims

1. An electronic device that outputs audio data composed of either PP data in which a MIDI modulated signal obtained by modulating MIDI data is set in one of a left or right channel and an audio signal is set in the other channel, or audio data composed only of an audio signal, A plurality of input means for inputting the voice data; a sequential determination means for sequentially switching a target input means among the plurality of input means and determining whether the voice data input from the target input means is either PP data or audio data; a PP output means for decoding and outputting a MIDI modulated signal in the PP data when the audio data input from the target input means is determined to be PP data by the sequential determination means, and outputting an audio signal in the PP data; and an audio output means for outputting an audio signal of the audio data when the voice data input from the target input means is determined to be audio data by the sequential determination means.

2. 2. The electronic device according to claim 1, wherein the sequential determination means stops determining when audio data is output by the PP output means or the audio output means.

3. 2. The electronic device according to claim 1, wherein when the input of the audio data outputted by the PP output means or the audio output means from the input means is interrupted, the sequential determination means executes determination again.

4. an output determination means for determining whether the audio data is PP data when the audio output means outputs the audio data; 2. The electronic device according to claim 1, wherein, when the output determination means determines that the audio data is PP data, the PP output means stops output of the audio data by the audio output means, decodes and outputs a MIDI modulated signal in the PP data, and outputs the audio signal in the PP data.

5. the MIDI modulated signal is a signal obtained by pulse modulating the MIDI data, the sequential discrimination means discriminates that the audio data is PP data when a first predetermined number of pulses having a predetermined width are successively detected from the audio data, 5. The electronic device according to claim 4, wherein the output determination means determines that the audio data is PP data when a second predetermined number of pulses of a predetermined width are detected consecutively from the audio data.

6. 6. The electronic device according to claim 5, wherein the second predetermined number is set to a value greater than the first predetermined number.

7. 1. A method for determining audio data executed by an electronic device that has a plurality of input means for inputting audio data, and outputs audio data composed of either PP data in which a MIDI modulated signal obtained by modulating MIDI data is set in one of a left or right channel and an audio signal is set in the other channel, or audio data composed only of an audio signal, comprising: a sequential determination step of sequentially switching a target input means among the plurality of input means and determining whether the voice data input from the target input means is either PP data or audio data; a PP output step of decoding and outputting a MIDI modulated signal in the PP data when the audio data input from the target input means is PP data in the sequential determination step, and outputting an audio signal in the PP data; an audio output step of outputting an audio signal of the audio data when the audio data input from the target input means is determined to be audio data by the sequential determination step.

8. 1. A sound data discrimination program executed by a computer, the computer having a plurality of input units for inputting sound data, and outputting sound data consisting of either PP data in which a MIDI modulated signal obtained by modulating MIDI data is set in one of a left channel and a right channel and an audio signal is set in the other channel, or audio data consisting of only an audio signal, a sequential determination step of sequentially switching a target input unit among the plurality of input units and determining whether the voice data input from the target input unit is either PP data or audio data; a PP output step of decoding and outputting a MIDI modulated signal in the PP data when the audio data input from the target input unit is PP data in the sequential determination step, and outputting an audio signal in the PP data; an audio output step of outputting an audio signal for the audio data if the audio data input from the target input unit is determined to be audio data by the sequential determination step.

Citation Information

Patent Citations

  • Device and method for reproducing music information digital signal

    JP2002094593A