This application claims the priority benefit of Japanese application serial no. 2021-116322, filed on Jul. 14, 2021. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The disclosure relates to a control device, a control method, and a control system.
Non-Patent Document 1 discloses a headphone used by being paired with a portable terminal. The headphone can control a volume, an amount of effect of a built-in acoustic effect, and the like through an operation on a touch panel of the paired portable terminal.
In recent years, for electronic musical instruments, there is an increasing demand to control a volume and the like not only with a control device operated by a hand such as a portable terminal but also with a control device operated by a foot such as a pedal device. However, in the headphone disclosed in Non-Patent Document 1, since only one control device can be connected through pairing, the headphone can be controlled from one control device, but the headphone cannot be controlled by a plurality of control devices.
On the other hand, the applicant has developed a pedal device that is connected to a headphone via first communication and is connected to a portable terminal via second communication different from the first communication (unknown). Specifically, the pedal device transmits a control instruction received from the portable terminal via the second communication and a control instruction input by the pedal device to the headphone via the first communication. Consequently, it is possible to control the headphone from two control devices such as the pedal device and the portable terminal.
However, since the portable terminal is connected to the headphone via the pedal device, there is a problem in that the portable terminal cannot determine whether it can actually communicate with the headphone.
The disclosure has been made to solve the above problems, and provides a control device, a control method, and a control system enabling a control portion to determine whether the control device has completed establishment of communication with an electronic musical instrument at the time at which the control device is connected to the control portion.
According to the disclosure, there is provided a control device that controls an electronic musical instrument, the control device including a first communication part that performs wireless communication with the electronic musical instrument; and a second communication part that performs wireless communication with a control portion that controls the electronic musical instrument, in which, in establishment of communication with the control portion, the second communication part transmits different own information to the control portion depending on whether communication with the electronic musical instrument using the first communication part has been established.
According to the disclosure, there is provided a control method executed by a control device connected to, via wireless communication, an electronic musical instrument and a control portion that controls the electronic musical instrument, the control method including a first communication step of performing wireless communication with the electronic musical instrument; and a second communication step of performing wireless communication with the control portion that controls the electronic musical instrument, in which, in the second communication step, in establishment of communication with the control portion, different own information is transmitted to the control portion depending on whether communication with the electronic musical instrument in the first communication step has been established.
According to the disclosure, there is provided a control system including an electronic musical instrument; a control portion that controls the electronic musical instrument; and a control device connected to the electronic musical instrument and the control portion via wireless communication, in which the control device includes a first communication part that performs wireless communication with the electronic musical instrument; and a second communication part that performs wireless communication with the control portion, and in which, in establishment of communication with the control portion, the second communication part transmits different own information to the control portion depending on whether communication with the electronic musical instrument using the first communication part has been established.
Hereinafter, preferred embodiments will be described with reference to the accompanying drawings. An outline of a control system S of the present embodiment will be described with reference to
The pedal device 1 is a device that receives operations for settings related to performance (for example, a volume and a level of acoustic effect) from a user H who performs the performance, and creates a control instruction that is information for giving an instruction for control to other devices (specifically, the headphone 30 and the portable terminal 50) on the basis of a parameter according to an operation amount and transmits the control instruction. The pedal device 1 also has a function of transmitting a control instruction transmitted from the portable terminal 50 to the headphone 30, and a function of transmitting a response to the control instruction of the portable terminal 50 transmitted from the headphone 30 to the portable terminal 50. These transmissions will be described later with reference to
The headphone 30 is an electronic musical instrument that outputs a performance sound based on playing of an electric guitar G of the user H. The electric guitar G and the headphone 30 are wirelessly connected by a musical instrument transmission device Gt connected to the electric guitar G. A performance signal output by the user H playing the electric guitar G is transmitted to the headphone 30 via the musical instrument transmission device Gt.
In the headphone 30, a performance sound corresponding to the received performance signal is output from speakers R and L. In this case, the output performance sound is configured such that an acoustic effect such as delay or distortion can be added, and the degree of the acoustic effect is changed according to a parameter from the pedal device 1 or the portable terminal 50.
The transmission of the performance signal to the headphone 30 is not limited to the electric guitar G to which the musical instrument transmission device Gt is connected, and another electric musical instrument or an electronic musical instrument such as an electronic drum or an electronic wind instrument to which the musical instrument transmission device Gt is connected may be used.
The portable terminal 50 is an information processing device (computer) that transmits control instructions to the pedal device 1 and the headphone 30 described above. A control instruction input from the portable terminal 50 is transmitted to the headphone 30 via the pedal device 1. Consequently, it is possible to control the pedal device 1 and the headphone 30 from the portable terminal 50.
Here, configurations of the pedal device 1 and the headphone 30 will be described with reference to
The pedal switch 15 is a device that is provided on an upper part of the pedal device 1 and detects an angle when depressed by the foot of the user H. The pedal switch 15 is configured like a “seesaw” with a predetermined position as a fulcrum, and outputs a parameter according to an angle of the pedal switch 15 that is changed when depressed by the foot of the user H. The parameter is transmitted to the headphone 30 and the portable terminal 50 via wireless communication. In the present embodiment, the pedal device 1 transmits a MIDI standard control change message (hereinafter, abbreviated to a “CC message”) including parameters acquired on the basis of the pedal switch 15.
The pedal device 1 is configured such that an angle of the pedal switch 15 at which the maximum parameter is output and an angle of the pedal switch 15 at which the minimum parameter is output can be calibrated. A “number” in the CC message may be switched to a predetermined value by depressing a distal side of the pedal switch 15 (the left side in (a) of
The operator 16 is an input device for inputting an instruction or the like for starting pairing with another device from the user H, and is provided on the rear surface of the pedal device 1. The LED 17 is a device that outputs a state of the pedal device 1 or a connection state with the headphone 30 and the portable terminal 50 through colors or blinking, and is provided on the left and right side surfaces and the rear surface of the pedal device 1. The DC input terminal 18 is a terminal for inputting a DC current to the pedal device 1 and is provided on the rear surface of the pedal device 1. Electric power input from the DC input terminal 18 is used as a power source for the pedal device 1. Although not illustrated, a battery is built into the pedal device 1, and in a case where a DC current is not input from the DC input terminal 18, electric power supplied from the battery is used as a power source for the pedal device 1.
Data transmitted from the pedal device 1 is not limited to the MIDI standard CC message, but may be another MIDI standard message such as a system exclusive message (hereinafter, abbreviated to a “SysEx message”).
Next, the headphone 30 will be described. (d) of
The operators 37 are input devices for inputting various instructions such as switching of a volume of performance sounds output by the speakers R and L from the user H or an acoustic effect added to the performance sounds, and an instruction for stating connection with the pedal device 1, and are provided in a plurality in the headphone 30. In a case where music is played by the headphone 30, the operators 37 have a function of controlling playing of the music such as playing/stopping and fast-forwarding.
Next, with reference to
(a) of
The portable terminal 50 of the present embodiment is set to central, and the headphone 30 are set to peripheral. The pedal device 1 uses peripheral when communicating with the central portable terminal 50, and uses central when communicating with the peripheral headphone 30. That is, the pedal device 1 is configured to be able to switch between central and peripheral depending on a communication mode of a communication partner, or to simultaneously operate in both modes.
When establishing communication with the headphone 30 and the portable terminal 50, the pedal device 1 first attempts to establish communication with the headphone 30 set to peripheral. In this case, the pedal device 1 is regarded as a central communication device, and checks whether an advertising packet AD has been received. The advertising packet AD is a signal transmitted when a peripheral communication device establishes communication with a central communication device. In a case where the advertising packet AD has been received, the pedal device 1 establishes communication with a communication device that is a transmission source of the advertising packet AD.
In (a) of
First, when the user H double-clicks the operator 16, a central function and a peripheral function are switched alternately (by toggle). The central function is a function in which the pedal device 1 is connected to a peripheral communication device, and the peripheral function is a function in which the pedal device 1 is connected to a central communication device. In a case where the central function is set in the pedal device 1, a lighting color of the LED 17 is white, and in a case where the central function is set, a lighting color of the LED 17 is blue.
First, the central function will be described. In a case where a function is switched to the central function by double-clicking the operator 16, a mode is switched to a “reception standby mode” for waiting for reception of the advertising packet AD transmitted from a peripheral communication device, that is, the headphone 30. In this reception standby mode, the LED 17 is white and blinks slowly.
In the reception standby mode, by single-clicking the operator 16, the mode is switched to a “scan mode” for receiving the advertising packet AD from the headphone 30. In this scan mode, the LED 17 is white and blinks quickly. In the scan mode, in a case where pairing with the headphone 30 is possible by receiving the advertising packet AD from the headphone 30, the mode is switched to a “connection completion mode”. In this connection completion mode, the LED 17 lights up white. The white lighting or blinking state of the LED 17 allows the user H to ascertain a pairing state with the headphone 30.
A control instruction from the central pedal device 1 is transmitted to the headphone 30 via the first communication w1 established as described above, and a response to the control instruction is transmitted from the headphone 30 to the pedal device 1.
Establishment of the first communication w1 with the pedal device 1 is not limited to the headphone 30, and may be performed for another communication device set to peripheral, for example, a portable effector 300 in (a) of
Next, with reference to (b) of
In a case where the mode is switched to the peripheral function by double-clicking the operator 16, the mode is switched to a “transmission standby mode” for waiting for transmission of the advertising packet AD to the portable terminal 50. In the transmission standby mode, the LED 17 is blue and blinks slowly.
In the transmission standby mode, by single-clicking the operator 16, the mode is switched to an “advertising mode” for transmitting the advertising packet AD to the portable terminal 50. In this advertising mode, the LED 17 is blue and blinks quickly. In the advertising mode, in a case where pairing with the portable terminal 50 having received the advertising packet AD transmitted by the pedal device 1 is possible, the mode is switched to a “connection completion mode”. In this connection completion mode, the LED 17 lights up blue. The blue lighting or blinking state of the LED 17 allows the user H to ascertain a pairing state with the portable terminal 50.
A control instruction from the central portable terminal 50 is transmitted to the pedal device 1 via second communication w2 established as described above, and a response to the control instruction is transmitted from the pedal device 1 to the portable terminal 50. In the present embodiment, both the first communication w1 and the second communication w2 are performed on the basis of the Bluetooth (registered trademark) Low Energy (BLE) standard, but the first communication w1 or the second communication w2 may be performed on the basis of a communication standard other than the BLE standard.
When the second communication w2 is established, in the portable terminal 50, in a case where the advertising packet AD includes information indicating that communication with the headphone 30 has been established, it may be determined that the portable terminal 50 can perform communication with the headphone 30 via the pedal device 1. In such a case, “ABC+” is displayed on the LCD 57 of the portable terminal 50. On the other hand, when the advertising packet AD does not include the information indicating that the communication with the headphone 30 has been established, “ABC” (not illustrated) is displayed on the LCD 57.
Here, “ABC” is a name for identifying a device, and for example, a model number, a product ID, or an abbreviation thereof is employed. “ABC+” or “ABC” displayed on the LCD 57 allows the user H to determine at a glance whether the pedal device 1 has completed establishment of communication with the headphone 30.
Here, whether the portable terminal 50 and the headphone 30 are connected via the pedal device 1 can also be ascertained by checking a lighting color or a lighting or blinking state of the LED 17 of the pedal device 1. Specifically, if the pedal device 1 is attempted to be paired with the headphone 30 and it is confirmed that the pairing has been completed by the blue lighting of the LED 17, and then the pedal device 1 is attempted to be paired with the portable terminal 50 and it is confirmed that the pairing has been completed by the white lighting of the LED 17, it can be confirmed that the portable terminal 50 and the headphone 30 are connected. However, since the pedal device 1 is placed at the feet of the user H, the user H who plays the electric guitar G is required to temporarily place the electric guitar G and change his/her posture such as bending over such that the LED 17 can be visually recognized.
On the other hand, since the portable terminal 50 can be disposed at the hand of the user H, the user H can check whether the pedal device 1 has completed establishment of communication with the headphone 30 on the basis of the display of “ABC+” or “ABC” without placing the electric guitar being played and further without changing the posture. The LCD 57 on which “ABC+” or “ABC” is displayed can display more flexibly and variously than the LED 17, can thus favorably visually present, to the user H, whether the headphone 30 and the portable terminal 50 are connected.
The case where the advertising packet AD includes/does not include information indicating that communication with the headphone 30 has been established is not limited to being displayed on the LCD 57, and may be output in voice, or may be output by using another method. When the case is output in voice, in a case where the information is included, “ABC+” may be output by voice, and in a case where the information is not included, “ABC” may be output in voice.
In the portable terminal 50, of the pedal device 1 and the headphone 30, a communication device that is a control target is selectable by switching between applications. In (b) of
As described above, after the first communication w1 and the second communication w2 can be established, the portable terminal 50 acquires an inquiry message IQ of the MIDI standard that is information regarding a communication device, such as version information of control programs 32a and 52a (refer to
(a) of
The identity request data SR includes a “model ID” representing the name or the type of a communication device that is a control target of a communication device requesting the inquiry message IQ, that is, the portable terminal 50. In (a) of
The identity request data SR created as described above is first transmitted to the pedal device 1 that has established the second communication w2 with the portable terminal 50. The pedal device 1 transmits the received identity request data SR to the headphone 30 via the first communication w1, and checks the model ID included in the identity request data SR.
In (a) of
The headphone 30 checks the model ID in the identity request data SR received from the pedal device 1, and if the model ID is its own, transmits its own inquiry message IQ to the pedal device 1. Such an inquiry message IQ includes the model ID of the headphone 30 in the same manner as the identity request data SR.
The pedal device 1 that has received the inquiry message IQ from the headphone 30 transmits the inquiry message IQ to the portable terminal 50 and checks whether the model ID included in the inquiry message IQ is its own. In (a) of
The portable terminal 50 that has received the inquiry message IQ from the pedal device 1 checks whether the model ID included in the inquiry message IQ is its own. In (a) of
As illustrated in (b) of
The pedal device 1 transmits the received identity request data SR to the headphone 30, and checks the model ID in the identity request data SR. In (b) of
The portable terminal 50 that has received the inquiry message IQ from the pedal device 1 checks whether the model ID included in the inquiry message IQ is its own, and in (b) of
On the other hand, the model ID in the identity request data SR is also checked by the headphone 30 that have received the identity request data SR from the pedal device 1. In (b) of
As described above, in the portable terminal 50, after the second communication w2 with the pedal device 1 is established, information is acquired from the inquiry message IQ transmitted from the pedal device 1 or the headphone 30 that is regarded to be a control target and is used for subsequent control instructions. Consequently, it is possible to transmit an appropriate control instruction according to a function or a specification of a control target immediately after communication with the control target is established.
In particular, in a case where a control target of the portable terminal 50 is the headphone 30, it is possible to specifically ascertain that a communication device connected via the pedal device 1 is the headphone 30. Since the version information of the control program 32a (refer to
Next, with reference to
(a) of
In (a) of
The pedal device 1 that has received the SysEx message transmits the SysEx message to the headphone 30 and checks the model ID included in the control instruction RS in the SysEx message. In (a) of
The headphone 30 that has received the SysEx message from the pedal device 1 checks the model ID included in the control instruction RS in the SysEx message. In (a) of
(b) of
In (b) of
The pedal device 1 that has received the SysEx message transmits the SysEx message to the headphone 30 and checks the model ID included in the control instruction RS in the SysEx message. In (b) of
Next, control of the headphone 30 performed by operating the pedal device 1 will be described with reference to (a) of
When the pedal switch 15 of the pedal device 1 is depressed by the foot of the user H, a parameter corresponding to an angle of the pedal switch 15 is transmitted to the headphone 30 and the portable terminal 50. In this case, a MIDI standard CC message including the acquired parameter is transmitted to the headphone 30 and the portable terminal 50.
When the headphone 30 receives the CC message including the update instruction CC from the pedal device 1, the headphone 30 updates its own volume by using the parameter included in the update instruction CC.
Then, a response instruction PS including the parameter included in the update instruction CC and its own model ID is created, and a MIDI standard SysEx message including the response instruction PS is transmitted to the pedal device 1.
The pedal device 1 that has received the SysEx message including the response instruction PS transmits the SysEx message to the portable terminal 50 and checks the model ID included in the response instruction PS in the SysEx message. In (a) of
The portable terminal 50 receives the update instruction CC and the SysEx message including the response instruction PS transmitted from the pedal device 1. Of these, the portable terminal 50 discards the update instruction CC and acquires the SysEx message including the response instruction PS. In a case where the model ID in the response instruction PS of the acquired SysEx message is checked and matches a control target (headphone 30 in (a) of
That is, in the portable terminal 50, the update instruction CC based on the pedal switch 15 from the pedal device 1 is discarded, and in the headphone 30, its own setting is updated in response to the response instruction PS transmitted when the parameter is updated on the basis of the update instruction CC based on the pedal switch 15 from the pedal device 1. Therefore, when the setting of the headphone 30 is updated by the update instruction CC from the pedal device 1, the setting of the portable terminal 50 is updated. Consequently, the update instruction CC from the pedal device 1 can be reliably reflected in the settings of the headphone 30 and the portable terminal 50.
Here, in general, the headphone 30 can communicate with only one communication device. On the other hand, in the control system S of the present embodiment, the headphone 30 and the pedal device 1 perform communication via the first communication w1, and the pedal device 1 and the portable terminal 50 perform communication via the second communication w2.
Consequently, a control instruction from the central pedal device 1 can be transmitted to the headphone 30, and a control instruction from the central portable terminal 50 can be transmitted to the headphone 30 via the second communication w2 and the first communication w1. Therefore, it is possible to provide flexible functions with the portable terminal 50, the pedal device 1, and the headphone 30, and to cause two central devices such as the pedal devices 1 and the portable terminal 50 and one peripheral device such as the headphone 30 to perform communication without using another communication device. Thus, it is possible to minimize a configuration of a communication device and its cost.
In the first communication w1 and the second communication w2 of the present embodiment, the control instruction RS from the portable terminal 50 and the update instruction CC from the pedal device 1 can be transmitted on the same communication path.
Incidentally, in the present embodiment, since the control instruction RS or the update instruction CC can be input from each of the pedal device 1 and the portable terminal 50, in the pedal device 1, a timing at which the control instruction RS from the portable terminal 50 is transmitted to the headphone 30 may overlap a timing at which the update instruction CC based on the pedal switch 15 is transmitted to the headphone 30. A process in such a case will be described with reference to (b) of
(b) of
In such a case, the transmission of the update instruction CC is started after the transmission of the previously transmitted control instruction RS is completed. Consequently, even in a case where the timings of transmitting the control instruction RS and the update instruction CC from the pedal device 1 to the headphone 30 overlap each other, transmission of the control instruction RS and the update instruction CC to the headphone 30 can be reliably completed without one thereof being lost.
Next, the function of the pedal device 1 will be described with reference to
The first communication part 501 is a part wirelessly communicating with the headphone 30, and is realized by a CPU 10 that will be described later in
The second communication part 504 is a part wirelessly communicating with the portable terminal 50, and is realized by the CPU 10. The reception buffer 505 temporarily stores data received by the second communication part 504, and is realized by the RAM 12. The transmission buffer 506 temporarily stores data to be transmitted by the second communication part 504, and is realized by the RAM 12. Data such as a SysEx message received by the first communication part 501 and stored in the reception buffer 502 from the headphone 30 is sent to the transmission buffer 506, and the data is transferred from the transmission buffer 506 to the portable terminal 50 via the second communication part 504.
The instruction transmission part 507 is a part that transmits a CC message (control instruction) created by the MIDI message generation part 511 on the basis of an input from the pedal switch 15 and a SysEx message (second control instruction) received from the portable terminal 50 via the second communication part 504, to the headphone 30 via the first communication part 501, and is realized by the CPU 10. The instruction transmission part 507 has a serialization part 507a that generates serial data of the CC message created by the MIDI message generation part 511 and the SysEx message received from the portable terminal 50 via the second communication part 504. The CC message and SysEx message generated as the serial data by the serialization part 507a are transmitted to the headphone 30 via the transmission buffer 503 and the first communication part 501.
As described above, the CC message based on the input from the pedal switch 15 and the SysEx message received from the portable terminal 50 via the second communication part 504 are transmitted to the headphone 30 via the first communication part 501. Consequently, even in a case where the headphone 30 can be connected to only one control device, the headphone 30 can be controlled from two control devices such as the pedal device 1 and the portable terminal 50.
The serialization part 507a generates serial data of the CC message created by the MIDI message generation part 511 and the SysEx message received from the portable terminal 50 via the second communication part 504, and thus the CC message and the SysEx message can be transmitted on the same communication path of the first communication part 501.
Next, creation of the CC message described above will be described. The first storage part 508 stores a model ID and version information regarding the pedal device 1, and is realized by a flash ROM 11 that will be described later in
In a case where the determination part 509 determines that the SysEx message received via the second communication part 504 is a control instruction to itself, the changing part 510 is a part that changes the CC message generated by the MIDI message generation part 511 on the basis of the pedal switch 15, according to the SysEx message, and is realized by the CPU 10.
The MIDI message generation part 511 creates the CC message on the basis of a parameter input from the pedal switch 15 and a model ID or version information of the first storage part 508, and is realized by the CPU 10. In the MIDI message generation part 511, in a case where the determination part 509 determines that the SysEx message received via the second communication part 504 is a control instruction to itself, the CC message generated by the MIDI message generation part 511 is changed by the changing part 510 on the basis of the pedal switch 15 according to the SysEx message. Consequently, a control target that is controlled on the basis of an operation on the pedal switch 15 can be changed according to the SysEx message from the portable terminal 50.
Next, an operation at the time of establishing communication with the portable terminal 50 will be described. The pairing mode transition part 512 determines whether transition to the advertising mode described in (b) of
The first communication establishment determination part 514 acquires information from the second storage part 513 depending on whether communication with the headphone 30 using the first communication part 501 has been established, and is realized by the CPU 10. Specifically, in a case where the communication with the headphone 30 using the first communication part 501 has not been established, the first communication establishment determination part 514 acquires the information regarding the pedal device 1 itself from the second storage part 513, and in a case where the communication with the headphone 30 using the communication part 501 has been established, acquires the information regarding the pedal device 1 itself and the information indicating that the communication with the headphone 30 has been established from the second storage part 513.
The advertising packet generation part 515 creates the advertising packet AD on the basis of the information acquired from the first communication establishment determination part 514 in a case where the pairing mode transition part 512 determines that the advertising mode is set, and transmits the advertising packet AD to the portable terminal 50 via the second communication part 504, and is realized by the CPU 10. The advertising packet AD generated by the advertising packet generation part 515 is transmitted to the portable terminal 50 via the transmission buffer 506 and the second communication part 504.
That is, in a case where communication with the headphone 30 using the first communication part 501 has been established, the advertising packet AD transmitted from the advertising packet generation part 515 to the portable terminal 50 includes the information regarding the pedal device 1 itself and the information indicating that the communication with the headphone 30 has been established. Consequently, it can be determined that the portable terminal 50 connected to the headphone 30 via the pedal device 1 can actually communicate with the headphone 30.
Next, an electrical configuration of the control system S will be described with reference to
The CPU 31 is an arithmetic part that controls each part connected thereto via the bus line 34. The flash ROM 32 is a rewritable nonvolatile storage device that stores a program executed by the CPU 31, fixed value data, and the like, and stores a control program 32a and model ID data 32b in which the model ID of the headphone 30 described above is stored. When the control program 32a is executed by the CPU 31, a headphone process in
The musical instrument receiving device 36 is a device that receives a performance signal wirelessly transmitted from the musical instrument transmission device Gt described above. The amplifier 39 is a device that amplifies a performance sound created by the CPU 31. The speakers R and L described above are connected to the amplifier 39, and the performance sound amplified by the amplifier 39 is output to the speakers R and L. The gyro sensor 41 is a sensor that detects angular velocity, and detects an amount of movement, a tilt, and a rotation of the head of the user H wearing the headphone 30 up and down, front and back, and left and right, respectively.
The headphone 30 is configured to be able to output a mixed sound of a performance sound (“first musical sound”) based on a performance signal input from the electric guitar G via the musical instrument receiving device 36 and a musical sound (“second musical sound”) input from the portable terminal 50 or the like via the wireless communication device 40.
In the mixed sound, for at least one of the first musical sound and the second musical sound, a virtual position where the musical sound is output is further configured to be able to be changed according to an amount of movement, a tilt, or the like of the head of the user H detected by the gyro sensor 41. For example, by setting the second musical sound as a drum sound and setting a virtual position where the drum sound is output behind the user H who plays the electric guitar G, the user H always hears that the drum sound is output from behind even in a case where a tilt or the like of the head of the user H that is wearing the headphone 30 and is playing the electric guitar G is changed.
Next, an electrical configuration of the pedal device 1 of the control system S will be described. The pedal device 1 has a CPU 10, a flash ROM 11, and a RAM 12, which are connected to an input/output port 14 via a bus line 13. The input/output port 14 is further connected to the above pedal switch 15, operator 16, and LED 17, and a wireless communication device 22 for wireless communication with the headphone 30 and the portable terminal 50.
The CPU 10 is an arithmetic part that controls each part connected thereto via the bus line 13. The flash ROM 11 is a rewritable nonvolatile storage device that stores a program executed by the CPU 10, fixed value data, and the like, and stores a control program 11a and model ID data 11b in which the model ID of the headphone 30 described above is stored. When the control program 11a is executed by the CPU 10, a pedal process in (a) of
The RAM 12 is a memory that rewritably store various types of work data, flags, and the like when the program is executed by the CPU 10, and is provided with a transfer data memory 12a in which a SysEx message received from the headphone 30 or the portable terminal 50 and its transmission destination are stored and a performance data memory 12b in which a CC message created on the basis of the pedal switch 15 is stored.
Next, an electrical configuration of the portable terminal 50 of the control system S will be described. The portable terminal 50 has a CPU 51, a flash ROM 52, and a RAM 53, which are connected to an input/output port 55 via a bus line 54. The input/output port 55 is further connected to a wireless communication device 58 for wireless communication with the pedal device 1, a touch panel 56 into which an instruction from the user H is input, and the LCD 57 described above.
The CPU 51 is an arithmetic part that controls each part connected thereto via the bus line 54. The flash ROM 52 is a rewritable nonvolatile storage device that stores a program executed by the CPU 51, fixed value data, and the like, and stores a control program 52a. When the control program 52a is executed by the CPU 51, a portable terminal process in
The RAM 53 is a memory that rewritably stores various types of work data, flags, and the like when the program is executed by the CPU 51, and is provided with an IQ memory 53a in which the above inquiry message IQ is stored.
Next, processes of the control system S will be described with reference to
In the headphone process, first, it is checked whether a connection start operation for giving an instruction for starting connection with another communication device such as the pedal device 1 has been performed on the operator 37 by the user H (S1). Specifically, in a case where the operator 37 is pressed and held for a long time, it is determined that the connection start operation has been performed. In the process in S1, in a case where the connection start operation has been performed (S1: Yes), a peripheral connection process (S2) is executed. Here, the peripheral connection process will be described with reference to (a) of
(a) of
First, in the peripheral connection process, the advertising packet AD described above in
After the process in S20, it is checked whether a connection request from another communication device has been received according to the advertising packet AD transmitted in the process in S20 (S21). In the process in S21, in a case where the connection request has been received (S21: Yes), a connection process with another communication device (that is, the pedal device 1 or the portable terminal 50) that has transmitted the connection request is performed (S22).
On the other hand, in a case where the connection request has not been received in the process in S21 (S21: No), it is checked in the process in S20 whether a predetermined time or more has elapsed from the start of transmission of the advertising packet AD (S23). In the process in S23, in a case where a predetermined time or more has not elapsed from the start of transmission of the advertising packet AD (S23: No), the processes in and after S20 are executed again. After the process in S22 or in a case where a predetermined time or more has elapsed from the start of transmission of the advertising packet AD in the process in S23 (S23: Yes), the peripheral connection process is finished.
(b) of
In the identity request response process, first, it is checked whether a model ID in the received identity request data SR is its own (S30). Specifically, the model ID included in the identity request data SR and its own model ID, that is, the model ID in the model ID data 32b in the case of the headphone 30, or the model ID in the model ID data 11b in the case of the pedal device 1 are compared with each other, and it is checked whether the model IDs match each other.
In the process in S30, in a case where the model ID in the identity request data SR is its own (S30: Yes), the own inquiry message IQ (refer to
On the other hand, in the process in S30, in a case where the model ID in the identity request data SR is not its own (S30: No), the received identity request data SR is discarded (S32). After the processes in S31 and S32, the identity request response process is finished.
In the process in S6, in a case where the model ID in the control instruction RS in the SysEx message matches the model ID in the model ID data 32b (S6: Yes), an own setting is updated by using a parameter included in the control instruction RS in the SysEx message (S7). On the other hand, in a case where the model ID in the control instruction RS in the SysEx message does not match the model ID in the model ID data 32b (S6: No), the received SysEx message is discarded (S8).
In the process in S5, in a case where the SysEx message has not been received (S5: No), or after the processes in S7 and S8, it is checked whether the CC message described in
In the process in S10, in a case where the mode for updating the own setting according to the received CC message is set (S10: Yes), the own setting is updated by using the parameter of the update instruction CC included in the CC message (S11).
After the process in S11, the response instruction PS (refer to (a) of
In the process in S9, in a case where the CC message has not been received (S9: No), a unique process (S14) is executed after the processes in S12 and S13. The unique process is another process performed by the headphone 30, and is, for example, a process of outputting a performance sound based on a performance signal input from the electric guitar G via the musical instrument receiving device 36 or a performance sound input from the portable terminal 50 via the pedal device 1, to the speakers R and L via the amplifier 39. After the unique process in S14, the processes in and after 51 are repeatedly performed.
Next, a process executed by the CPU 10 of the pedal device 1 will be described. (a) of
In the pedal process, first, it is checked whether a connection scan start operation for giving an instruction for starting reception of the advertising packet AD from another communication device (specifically, the headphone 30) has been performed (S50). Specifically, as described above in (a) of
(b) of
After the process in S70, it is checked whether the advertising packet AD has been received from another communication device (S71). In the process in S71, in a case where the advertising packet AD is received (S71: Yes), a connection request is transmitted to the communication device from which the advertising packet AD has been received (S72), and a connection process with the communication device is performed (S73).
In a case where the advertising packet AD has not been received in the process in S71 (S71: No), it is checked whether a predetermined time or more has elapsed from the start of receiving the advertising packet AD in the process in S70 (S74). In the process in S74, in a case where a predetermined time or more has not elapsed from the start of receiving the advertising packet AD (S74: No), the process in S70 or less is repeatedly performed.
On the other hand, in the process in S74, in a case where a predetermined time or more has elapsed from the start of receiving the advertising packet AD (S74: Yes), or after the process in S73, the central connection process is finished. Through the central connection process and the peripheral connection process described above, the first communication w1 between the headphone 30 and the pedal device 1 and the second communication w2 between the pedal device 1 and the portable terminal 50 are established.
(a) of
In the process in S53, in a case where communication with another communication device has been established in the central connection process (S53: Yes), its own information and information regarding the communication device with which communication has been established is added to the advertising packet AD (refer to (b) of
In a case where the connection start operation has not been performed in the process in S52 (S52: No) or after the process in S2, it is checked whether the identity request data SR (refer to
After the process in S81, it is checked whether a model ID in the control instruction RS in the SysEx message matches the model ID in the model ID data 11b (S82). In the process in S82, in a case where the model ID in the control instruction RS in the SysEx message matches the model ID in the model ID data 11b (S82: Yes), an own setting is updated by using a parameter included in the control instruction RS in the SysEx message (S83). Consequently, for example, in a case where the control instruction RS in the SysEx message received from the portable terminal 50 changes the acoustic effect controlled by the pedal device 1 to “delay”, the acoustic effect of which an effect amount is controlled by the pedal switch 15 of the pedal device 1 is thereafter changed to “delay”.
On the other hand, in a case where the model ID in the control instruction RS in the SysEx message does not match the model ID in the model ID data 11b (S82: No), the received SysEx message is discarded (S84).
In a case where the SysEx message has not been received in the process in S80 (S80), it is checked whether the pedal switch 15 has been operated after the process in S83 and S84 (S85). In the process in S85, in a case where the pedal switch 15 has been operated (S85: Yes), a parameter corresponding to an angle is acquired from the pedal switch 15, and an update instruction CC is created on the basis of the acquired parameter. A CC message including the created update instruction CC is created (S86). After the process in S86, the created CC message is stored in the performance data memory 12b (S87).
In the process in S85, in a case where the pedal switch 15 has not been operated (S85: No), or after the process in S87, it is checked whether there is a SysEx message that has not been transmitted or is being transmitted in the transfer data memory 12a (S88). In the process in S88, in a case where there is a SysEx message that has not been transmitted or is being transmitted in the transfer data memory 12a (S88: Yes), the SysEx message in the transfer data memory 12a is transmitted to a transmission destination stored in the transfer data memory 12a (S89).
On the other hand, in the process in S88, in a case where there is no SysEx message that has not been transmitted or is being transmitted in the transfer data memory 12a (S88: No), it is checked whether there is a CC message that has not been transmitted or is being transmitted in the performance data memory 12b. (S90).
In the process in S90, in a case where there is a CC message that has not been transmitted or is being transmitted in the performance data memory 12b (S90: Yes), the CC message in the performance data memory 12b is transmitted to each of communication devices connected to the pedal device 1 (S91). On the other hand, in the process in S90, in a case where there is no CC message that has not been transmitted or is being transmitted in the performance data memory 12b (S90: No), the process in S91 is skipped.
That is, even in a case where the SysEx message has been received from the portable terminal 50 or the headphone 30 and the CC message is created by operating the pedal switch 15 in a state in which the received SysEx message is not transmitted or is being transmitted, transmission of the previously received SysEx message is completed, and then transmission of the CC message created later is started. By serializing the SysEx message and the CC message received as described above for transmission, the SysEx message and the CC message can be transmitted via the same communication path (the first communication w1 or the second communication w2).
After the process in S89, S90, or S91, the pedal device transmission/reception process is finished.
Next, a process executed by the CPU 51 of the portable terminal 50 will be described.
In the portable terminal process, first, it is checked whether the connection scan start operation for giving an instruction for starting reception of the advertising packet AD from another communication device (specifically, the pedal device 1) has been performed from the touch panel 56 (S100). Specifically, on the portable terminal 50, in a case where a button (not illustrated) for starting connection scanning displayed on the LCD 57 is displayed after the application for controlling the pedal device 1 or the application for controlling the headphone 30 is started, and the button is selected via the touch panel 56, it is determined that the connection scan start operation has been performed. In a case where the connection scan start operation has been performed in the process in S100 (S100: Yes), the above central connection process (S51) is executed.
After the central connection process in S51, it is checked whether the advertising packet AD received in the central connection process includes information regarding a communication device with which communication has been established (S101). In the process in S105, in a case where the advertising packet AD includes the information regarding the communication device with which communication has been established (S101: Yes), “ABC+” is displayed on the LCD 57 (S102). On the other hand, in the process in S105, in a case where the advertising packet AD does not include the information regarding the communication device with which communication has been established (S101: No), “ABC” is displayed on the LCD 57 (S103).
After the processes in S102 and S103, the identity request data SR is created on the basis of a model ID of the control target (that is, the pedal device 1 or the headphone 30) of the started application, and is transmitted to the connected communication device (specifically, the pedal device 1) (S104).
In a case where the connection scan start operation has not been performed in the process in S100 (S100: No), or after the process in S104, it is checked whether the inquiry message IQ has been received (S105). In a case where the inquiry message IQ has been received in the process in S105 (S105: Yes), the received inquiry message IQ is stored in the IQ memory 53a (S106). On the other hand, in the process in S105, in a case where the inquiry message IQ has not been received (S105: No), the process in S106 is skipped.
After the processes in S105 and S106, a portable terminal transmission/reception process (S107) is executed, and the processes in and after S100 are repeatedly performed. Here, the portable terminal transmission/reception process will be described with reference to
In the process in S121, in a case where the model ID in the control instruction RS in the SysEx message matches the model ID of the control target of the started application (S121: Yes), the own setting is updated by using the parameter included in the control instruction RS in the SysEx message (S122). On the other hand, in a case where the model ID in the control instruction RS in the SysEx message does not match the model ID of the control target of the started application (S121: No), the received SysEx message is discarded (S123).
In the process in S120, in a case where the SysEx message has been received (S120: No) or after the processes in S122 and S123, it is checked whether the CC message has been received (S124). In a case where the CC message has been received in the process in S124 (S124: Yes), it is checked whether a mode for updating the own setting according to the CC message is set (S125).
In the process in S125, in a case where the mode for updating the own setting according to the CC message is set (S125: Yes), the own setting is updated by using the parameter of the update instruction CC included in the CC message (S126). On the other hand, in the process in S125, in a case where there is the mode for updating the own setting according to the received CC message is not set (S125: No), the received CC message is discarded (S127).
In a case where the CC message has been received in the process in S124 (S124: Yes), or after the processes in S126 and S127, it is checked whether a parameter (for example, the volume in (a) of
After the process in S129, the control instruction RS is created from the input parameter, the model ID of the control target of the started application, and the inquiry message IQ in the IQ memory 53a. A SysEx message including the created control instruction RS is created and transmitted to the connected communication device (specifically, the pedal device 1) (S130). Consequently, the control instruction RS from the portable terminal 50 is transmitted to the pedal device 1 and the headphone 30.
In the process in S128, in a case where the parameter has not been input from the touch panel 56 (S128: No), or after the process in S130, the portable terminal transmission/reception process is finished.
Although the above description has been made on the basis of the above embodiment, it can be easily inferred that various improvements and changes are possible.
In the above embodiment, the headphone 30 and the effectors 300 and 310 (refer to (a) of
A musical score is displayed on the LCD 57 of the portable terminal 50 in the modification example. By operating the touch panel 56, a position of a displayed musical score is changed. In this case, the position of the musical score displayed on the LCD 57 is also changed by operating the pedal switch 15 of the pedal device 1.
The synthesizer 350 in the modification example is mainly provided with a keyboard 354, setting keys 355 for inputting various settings, and a musical score LCD 356. The keyboard 354 is provided with a plurality of arranged keys 354a and is an input device for acquiring performance information by performance of the user H. MIDI standard performance information corresponding to an operation of pressing/releasing the key 354a by the user H is output to the CPU 351 (refer to
The musical score LCD 356 is a display device that displays the same musical score as a musical score displayed on the LCD 57 of the portable terminal 50 described above. A musical score displayed on the musical score LCD 356 and a display position thereof are transmitted from the portable terminal 50 and the pedal device 1.
That is, in a case where a display position of a musical score is changed by the portable terminal 50, or in a case where the display position of the musical score is changed by the pedal switch 15 of the pedal device 1, the musical score LCD 356 displays a musical score equivalent to a musical score displayed on the LCD 57 of the portable terminal 50. Consequently, the display position of the musical score on one synthesizer 350 can be changed from two devices such as the portable terminals 50 and the pedal device 1. In particular, since the pedal switch 15 of the pedal device 1 is operated by being depressed with the foot of the user H, the user H can change the display position of the musical score on the musical score LCD 356 without taking his/her hand off the keyboard 354.
Next, with reference to
The CPU 351 is an arithmetic part that controls each part connected thereto via the bus line 357. The flash ROM 352 is a rewritable nonvolatile storage device that stores a program executed by the CPU 351 and fixed value data, and stores a control program 352a and model ID data 352b in which a model ID is stored. When the control program 352a is executed by the CPU 351, a process equivalent to the headphone process of
The RAM 353 is a memory that rewritably stores various types of work data, flags, and the like in a case where the program is executed by the CPU 351. The sound source 359 is a device that outputs waveform data according to performance information input from the CPU 351. The DSP 360 is an arithmetic device for arithmetically processing the waveform data input from the sound source 359. A digital-to-analog converter (DAC) 361 is connected to the DSP 360, an amplifier 362 is connected to the DAC 361, and a speaker 363 is connected to the amplifier 362.
Next, a process executed by the CPU 351 of the synthesizer 350 will be described. A process related to communication between the pedal device 1 and the portable terminal 50 in the synthesizer 350 is substantially the same as the process of the headphone 30 except for the connection start operation (S1) and the unique process (S14) in the headphone process in
Next, a unique process (S14) of the synthesizer 350 will be described.
After the process in S200, a keyboard event process (S201) is performed. In the keyboard event process, it is detected which key 354a is pressed or released on the keyboard 354. After the process in S201, a MIDI process is performed (S202). In the MIDI process, a performance sound is output and the output is stopped according to an operation on the key 354a detected in the process in S201, and a musical score to be displayed on the musical score LCD 356 or a display position of the musical score is acquired on the basis of the update instruction CC from the pedal device 1 or a parameter included in the control instruction RS from the portable terminal 50.
After the process in S202, an automatic performance process (S203) is performed. In this automatic performance process, a concert magic performance process, an automatic accompaniment process, a demonstration process, and the like are performed. After the process in S203, a musical score display process (S204) is performed. In the musical score display process, an image of the musical score is created on the basis of the musical score or the display position of the musical score acquired in the MIDI process, and is displayed on the musical score LCD 356. Consequently, a musical score equivalent to the musical score displayed on the LCD 57 of the portable terminal 50 is displayed on the musical score LCD 356. After the process in S204, other processes (S205) related to the synthesizer 350 are performed, and the unique process is finished.
In the modification example, an example where the musical score displayed on the LCD 57 of the portable terminal 50 is displayed on the musical score LCD 356 of the synthesizer 350, and the position of the musical score displayed on the musical score LCD 356 is changed through an operation from the pedal device 1 and the portable terminal 50 has been described. However, the disclosure is not limited to this. For example, in a musical score displayed on the LCD 57 and the musical score LCD 356, a display mode (for example, a color, a size of a musical note, or marking) of the musical note to be played at present is configured to be able to be changed, and a musical note or the like of which a display mode is changed by operating the portable terminal 50 and the pedal device 1 may be changed (forward, backward, or the like). A volume of a performance sound output by the synthesizer 350 and the degree or type of acoustic effect added to the performance sound may be changed by operating the portable terminal 50 and the pedal device 1.
In the above embodiment, the pedal device 1 having the pedal switch 15 has been exemplified as a control device, but the disclosure is not limited to this. For example, the control device may be a device having a switch for switching between on and off states, or a device having a “knob” or a fader capable of variably controlling an output parameter. The control device may be a device that uses sensor information (for example, a device that acquires an amount of change from an acceleration sensor and controls a control target according to the amount of change), or a device that can set other parameters.
In the above embodiment, the portable terminal 50 that executes the control program 52a has been exemplified as a central communication device that transmits a control instruction to the headphone 30 and the pedal device 1, but the disclosure is not limited to this. For example, an information processing device such as a PC or a tablet terminal may execute the control program 52a so as to be used as a central communication device that transmits a control instruction to the headphone 30 and the pedal device 1. A dedicated device that stores the control program 52a in a ROM or the like and executes only the control program 52a may be a central communication device that transmits a control instruction to the headphone 30 and the pedal device 1.
Number | Date | Country | Kind |
---|---|---|---|
2021-116322 | Jul 2021 | JP | national |