This application claims priority based on Japanese Patent Application No. 2023-154095 filed in Japan on Sep. 21, 2023, the entire contents of which are incorporated herein.
The present disclosure relates to a display control device, a display device, a method, and a storage medium.
There is known an electronic metronome that visually shows a beat or a tempo to a user by using light. A specific configuration of this type of electron metronome is described in, for example, JP 2000-88977 A.
The electronic metronome described in JP 2000-88977 A turns on one of a plurality of light emitting diodes (LEDs) arranged in a horizontal row. In the electronic metronome, the LED to be turned on is shifted one by one from left to right in a forward direction, and the LED to be turned on is shifted one by one from right to left in a reverse direction. By repeating the shift, a light display position repeatedly reciprocates, so that movement of a pendulum metronome is reproduced.
A display control device according to the present disclosure includes: a memory that stores a program; and at least one processor that executes the program stored in the memory. The processor changes a display position of light such that the light emitted from the light source unit and projected on a display section repeatedly reciprocates on a predetermined track on the display section according to a beat timing, and stops the display position of the light at positions corresponding to both ends of the track during a certain period including the beat timing.
According to the present disclosure, it is possible to provide a display control device, a display device, a method, and a program that allow a user to easily grasp a beat timing.
Unlike the pendulum metronome in which a physical bar is moved, in the electronic metronome, a movement range of light may be difficult to perceive due to a design of a display section on which light is projected. In a case where the movement range of the light is difficult to perceive (that is, it is difficult to perceive how far the light moves), it is difficult for the user to grasp a beat timing. In contrast, the present disclosure can support so as to allow a user to easily grasp a beat timing.
A display control device, a display device, and a method and a program executed by the display device that is an example of a computer according to an embodiment of the present invention will be described in detail with reference to the drawings.
The electronic musical instrument 1 is an example of a display device including a display control device, and is, for example, an electronic piano.
The display control device according to the present embodiment includes a controller that controls a light source unit. The controller changes a display position of light such that the light emitted from the light source unit and projected on the display section repeatedly reciprocates on a predetermined track on the display section according to a beat timing, and stops the display position of the light at positions corresponding to both ends of the track during a certain period including the beat timing.
That is, the display control device according to the present embodiment operates as an electronic metronome that visually shows a beat and a tempo to a user by using light. In the display control device according to the present embodiment, the display position of the light is stopped at the positions corresponding to both ends of the track during a certain period including the beat timing, so that the user can easily grasp a movement range of the light (particularly, ends of the movement range). The user can easily grasp the beat timing by visually perceiving that the display position of the light is stopped (in other words, the light has reached the ends of the movement range).
The electronic musical instrument 1 may be an electronic keyboard instrument other than an electronic piano, such as an electronic keyboard. The electronic musical instrument 1 may be another form of electronic musical instrument such as an electronic percussion instrument, an electronic wind instrument, or an electronic string instrument.
As illustrated in
As illustrated in
Each of the main processor 10M and the sub processor 10S reads a program and data stored in the flash ROM 12, respectively. The main processor 10M and the sub processor 10S control the electronic musical instrument 1 by using the RAM 11 as a work area.
Each of the main processor 10M and the sub processor 10S is, for example, a single processor or a multiprocessor, and includes at least one processor. In the case of a configuration including a plurality of processors, each of the main processor 10M and the sub processor 10S may be packaged as a single device, or may be configured by a plurality of devices physically separated in the electronic musical instrument 1. The main processor 10M and the sub processor 10S may be referred to as, for example, a controller, a central processing unit (CPU), a micro processor unit (MPU), or a micro controller unit (MCU).
The main processor 10M and the sub processor 10S may be a single processor instead of separate processors.
The RAM 11 temporarily holds data and a program. The RAM 11 holds various programs and various data such as waveform data read from the flash ROM 12.
The flash ROM 12 is a nonvolatile semiconductor memory such as a flash memory, an erasable programmable ROM (EPROM), or an electrically erasable programmable ROM (EEPROM). The flash ROM 12 stores, for example, control programs 12M and 12S. The main processor 10M and the sub processor 10S execute the control programs 12M and 12S, respectively, so that various types of processing according to an embodiment of the present invention are executed.
The keyboard 13A includes a plurality of white keys and a plurality of black keys. Each key is associated with a different pitch. The electronic musical instrument 1 produces a musical sound according to a key pressing operation on a key included in the keyboard 13A.
The pedal 13B includes three pedals which are performance operation elements. Specifically, the pedal 13B includes a damper pedal, a soft pedal, and a sostenuto pedal. When the user performs the key pressing operation on a key while stepping on a pedal, the electronic musical instrument 1 performs sound production processing by adding an acoustic effect associated with the pedal being stepped on to the musical sound.
The operation panel 14 includes various operation units such as a power switch and a metronome function setting switch.
The key scanner 15 monitors key pressing and key release on the keyboard 13A. For example, when detecting a key pressing operation performed by the user, the key scanner 15 outputs a key pressing event to the main processor 10M. The key pressing event includes information (key number) regarding a pitch of a key related to the key pressing operation. The key number may also be referred to as a number of a key, a musical instrument digital interface (MIDI) key, or a note number.
In the present embodiment, means for measuring a key pressing velocity is separately provided, and the velocity measured by the means is also included in the key pressing event. Exemplarily, a plurality of contact switches are provided for each key. The velocity is measured by a difference in time during which each contact switch is conducted when the key is pressed. The velocity can be said to be a value indicating a strength of the key pressing operation or a value indicating a loudness (volume) of the musical sound.
The display unit 16 operates as the electronic metronome that visually shows a beat or tempo to the user by using light. The display unit 16 will be specifically described below.
The waveform data is stored in the flash ROM 12 or another memory (not illustrated). The waveform data is loaded into the RAM 11 at the time of activation processing for the electronic musical instrument 1 so that a musical sound is promptly produced in response to a key pressing operation. When the key scanner 15 detects a key pressing operation, the main processor 10M instructs the sound source LSI 17 to read the corresponding waveform data from the waveform data loaded in the RAM 11. The waveform data to be read is determined according to, for example, a tone selected by a user operation and the key pressing event.
The sound source LSI 17 generates a musical sound based on the waveform data read from the RAM 11 under an instruction of the main processor 10M. The sound source LSI 17 includes, for example, 128 generator sections, and can simultaneously produce up to 128 musical sounds. In the present embodiment, the main processor 10M, the sub processor 10S, and the sound source LSI 17 are configured as separate processors, but in another embodiment, the main processor 10M, the sub processor 10S, and the sound source LSI 17 may be configured as one or two processors.
Digital musical sound data generated by the sound source LSI 17 is converted into an analog signal by the D/A converter 18, then amplified by the amplifier 19, and output to the speaker 20.
The sheet metal member 160 is supported inside the housing 2. Each part of the display unit 16 is supported by the housing 2 via the sheet metal member 160.
The light source unit 162 includes a light emitting diode (LED) substrate 162A and LEDs 162B.
The LED substrate 162A is a rectangular substrate. The plurality of LEDs (an example of light emitting elements) 162B are attached to the LED substrate 162A. In the present embodiment, 20 LEDs 162B are arranged in a row at equal intervals in a longitudinal direction (for convenience, referred to as a “left-right direction”) of the LED substrate 162A. The LED 162B is, for example, a white LED that emits pseudo white light.
The insulating sheet 164 is a rectangular sheet member having a shape corresponding to the LED substrate 162A and a size slightly larger than that of the LED substrate 162A, and has an insulating property. The insulating sheet 164 is sandwiched between the sheet metal member 160 and the LED substrate 162A to prevent a short circuit between the sheet metal member 160 and the LED substrate 162A.
The display section 166 includes a light guide member 166A, a light shielding case 166B, a diffusion sheet 166C, and an acrylic panel 166D.
The light guide member 166A is made of, for example, polycarbonate or acryl having translucency. The light guide member 166A is assembled to the light shielding case 166B. The light guide member 166A is positioned in front of each LED 162B in a state of being assembled to the light shielding case 166B. The light guide member 166A guides light emitted from the LED 162B forward.
The light shielding case 166B is made of black polystyrene, for example, and has a light shielding property. The light shielding case 166B is formed in a rectangular shape elongated in the left-right direction. An emission opening 166b is formed substantially at the center of the light shielding case 166B. The emission opening 166b has a rectangular shape elongated in the left-right direction.
The light emitted from the LED 162B is projected on the display section 166. That is, the display section 166 shows the light emitted from the light source unit 162.
Specifically, most of the light emitted from the LED 162B is incident on the light guide member 166A. A part of the light incident on the light guide member 166A travels substantially straight inside the light guide member 166A and is emitted from the light guide member 166A.
An emission surface of the light guide member 166A is textured. Therefore, light reaching the emission surface of the light guide member 166A is irregularly reflected by the textured emission surface, and is emitted from the emission surface with high efficiency.
The diffusion sheet 166C is made of, for example, polyethylene terephthalate (PET), and has a light diffusing property. The light emitted from the light guide member 166A is diffused by the diffusion sheet 166C, and is emitted from the light shielding case 166B forward from the emission opening 166b with a substantially uniform luminance.
The acrylic panel 166D is attached to a front surface of the light shielding case 166B. Light diffused by the diffusion sheet 166C and emitted from the light shielding case 166B is emitted to the outside through the acrylic panel 166D.
The light emitted from the light guide member 166A is blocked by the light shielding case 166B at a portion other than the emission opening 166b. That is, only a rectangular region elongated in the left-right direction and defined by the emission opening 166b is a display region (hereinafter, denoted by reference sign 168) in which the light can be projected. Hereinafter, the light projected in the display region 168 is referred to as “light L”.
The display region 168 (in other words, the emission opening 166b) is positioned in front of the 20 LEDS 162B arranged in a row in the left-right direction. In
Specifically, each part of the display section 166 is housed in the housing 2, and the acrylic panel 166D has a flat exterior surface as illustrated in
That is, the user cannot visually recognize a position of the LED 162B even when viewing a portion where the LED 162B is disposed. Therefore, when the LED 162B is in a turned-off state, the user cannot grasp a movement range of the light L (particularly, ends of the movement range).
As illustrated in
Light emission of the LEDs 162B is controlled by the sub processor 10S. The sub processor 10S sequentially switches 2000 lighting patterns corresponding to the display positions from the position P1 to the position P2000 to control light emission of the 20 LEDS 162B. Hereinafter, reference signs LP1 to LP2000 are attached to the lighting patterns corresponding to the positions P1 to P2000, respectively.
That is, the sub processor 10S operates as the controller that controls the display position of the light L on the display section 166 by controlling the light source unit 162.
For example, the sub processor 10S turns on LEDs 1 to 3 with luminances of 51, 100, and 51, respectively, and does not turn on LEDs 4 to 20. That is, when the sub processor 10S performs light emission control with the lighting pattern LP1, the light L is projected at the position P1 which is the leftmost display position in the display region 168.
Next, the sub processor 10S gradually decreases the luminances of LED 1 and LED 3 by an extremely small amount. That is, when the sub processor 10S sequentially performs the light emission control with the lighting pattern LP2 and the subsequent lighting patterns, the display position of the light L gradually moves to the right (the positions P2, P3, P4, P5, P6, and the like).
It is possible to express smooth movement of the light L by gradually changing the luminances of the plurality of LEDs 162B.
The sub processor 10S sequentially switches the lighting pattern from the lighting pattern LP1 to LP2000 at high speed until the light L at the position P1 reaches the position P2000, and gradually shifts the LED 162B to be turned on to the LED 162B on the right side. As a result, as illustrated in
When the light L reaches the position P2000, the sub processor 10S sequentially switches the lighting pattern from the lighting pattern LP2000 to the lighting pattern LP1 at a high speed until the light L at the position P2000 reaches the position P1, and gradually shifts the LED 162B to be turned on to the LED 162B on the left side. As a result, as illustrated in
As described above, the sub processor 10S continuously changes the display position of the light L such that the light L reciprocates on a linear track in the display region 168 (an example of the predetermined track on the display section). For convenience, the linear track is referred to as a “track ORB”.
More specifically, the sub processor 10S performs the light emission control for the 20 LEDs 162B with a lighting pattern corresponding to each display position of the light L from one end (for example, one of the position P1 and the position P2000) to the other end (for example, the other of the position P1 and the position P2000) of the track ORB. The sub processor 10S sequentially switches the lighting pattern, continuously changes the display position of the light L from the one end to the other end, and then continuously changes the display position from the other end to the one end, thereby causing the light L to reciprocate on the track ORB.
In addition, the 20 LEDS 162B (an example of the plurality of light emitting elements) are arranged on a straight line corresponding to the track ORB on which the light L moves.
In the present embodiment, a large number (2000) of display positions are sequentially switched at a high speed. Since a movement resolution is high (a distance between adjacent display positions is short) and the display position is switched at a high speed, the light L appears to smoothly reciprocate in the display region 168.
An operation of the display unit 16 as the electronic metronome will be described in more detail.
As illustrated in
Specifically, when an electronic metronome function is turned on, the display position of the light L remains stopped at the position P1 and does not move during the first period PD0 starting from the beat timing T1.
In the period PD1, the display position of the light L moves from the position P1 toward the position P2000. The display position of the light L reaches the position P2000 at an end point of the period PD1.
The subsequent period PD2 is a period from a time point T2a (an example of a first time point) before the beat timing T2 to a time point T2b (an example of a second time point) after the beat timing T2. That is, the period PD2 includes the beat timing T2. The display position of the light L does not move and is stopped at the position P2000 during the period PD2.
A time from the first time point to the beat timing and a time from the beat timing to the second time point have, for example, the same length as the period PD0. The time from the first time point to the beat timing and the time from the beat timing to the second time point may have substantially the same length as the period PD0.
In the next period PD1, the display position of the light L moves from the position P2000 toward the position P1. The display position of the light L reaches the position P1 at the end point of the period PD1.
The subsequent period PD2 includes the beat timing T3. The display position of the light L does not move and is stopped at the position P1 during the period PD2.
In this manner, the light L reciprocates between the position P1 and the position P2000 according to the beat timing during a period from the timing T1 to the beat timing T3. As a result, the display position of the light L continuously changes according to the beat timing such that the light L reciprocates on the track ORB (an example of the predetermined track on the display section) in the display region 168 as illustrated in
The display position of the light L is stopped at the position P1 and the position P2000 (an example of the both ends of the predetermined track) during a certain period including the beat timing, so that the user can easily grasp the movement range of the light (particularly, the ends of the movement range). The user can easily visually perceive the stop of the movement of the light L (in other words, visually perceive that the light L has reached the end of the movement range). The user can easily grasp the beat timing by visually perceiving a stop period of the light L including the beat timing.
The time from the first time point to the beat timing (for example, a time from the time point T2a to the beat timing T2) and the time from the beat timing to the second time point (for example, a time from the beat timing T2 to the time point T2b) have the same length or substantially the same length. By making the stop times of the light L before and after the beat timing have the same length or substantially the same length, the user can more intuitively grasp the beat timing.
A time of a first lighting pattern (for example, one of the lighting pattern LP1 and the lighting pattern LP2000) corresponding to the one end of the track ORB and a time of a second lighting pattern (for example, the other of the lighting pattern LP1 and the lighting pattern LP2000) corresponding to the other end of the track ORB are longer than times of other lighting patterns (for example, the lighting patterns LP2 to LP1999) corresponding to the display positions (for example, the positions P2 to P1999) of the light L between the one end and the other end (for example, the position P1 and the position P2000) of the track ORB.
That is, it is possible to cause the user to reliably perceive that the light L is stopped by increasing the time of the lighting pattern LP1 and the time of the lighting pattern LP2000. As a result, the user can easily grasp the beat timing. On the other hand, by decreasing the times of the other lighting patterns LP2 to LP1999, the display position of the light L is sequentially switched at a high speed, and it is possible to allow the user to see the light L smoothly moving in the display region 168.
The user can set a tempo of the electronic metronome by operating the operation panel 14. The length of the stop time (an example of the certain period) of the light L is set according to the tempo. Specifically, no (for example, 20% or 40%) of a time taken for one beat is set as the stop time of the light L.
As illustrated in
As described above, by setting a ratio of the stop time of the light L to the time taken for one beat to be constant (for example, 20% at all times) regardless of the tempo, it is possible to give a sense of unity to a display form of the electronic metronome.
A pendulum motion of a pendulum metronome gradually accelerates from one end of a pendulum range and then gradually decelerates after passing a midpoint and is stopped at the other end of the pendulum range for a moment in a forward direction. The pendulum motion of the pendulum metronome gradually accelerates toward the one end of the pendulum range and then gradually decelerates after passing the midpoint and is stopped at the one end of the pendulum range for a moment in a reverse direction. The pendulum metronome repeats such reciprocating movement according to the beat timing.
In order to imitate the pendulum motion of the pendulum metronome with high reproducibility, it is desirable to move the display position of the light L according to a sine wave. However, in control according to the sine wave, a processing load of the sub processor 10S becomes excessively large.
Therefore, in the present embodiment, the sub processor 10S moves the display position of the light L by control according to a quadratic function.
Specifically, as illustrated in
In addition, as illustrated in
A quadratic function applied to the period A is expressed by the following Equation (1).
Reference sign T represents a time taken for the light L to move between the position P1 and the position P2000 (in other words, the period PD1). Reference sign t indicates an elapsed time. For convenience of calculation, the elapsed time t indicates a time excluding the stop time of the light L (in other words, the period PD0 and the period PD2), that is, an elapsed time of only a movement time of the light L (in other words, the period PD1). The elapsed time t is reset to 0 when the display position of the light L returns from the position P2000 to the position P1. In Equation (1), the elapsed time t has a value of 0≤t<T/2. The position P (t) indicates the display position of the light L corresponding to the elapsed time t.
A quadratic function applied to the period B and the period C is expressed by the following Equation (2).
In Equation (2), during the period B, the elapsed time t has a value of T/2≤t<T. In Equation (2), during the period C, the elapsed time t has a value of T≤t<3T/2.
A quadratic function applied to the period D is expressed by the following Equation (3).
In Equation (3), during the period D, the elapsed time t has a value of 3T/2≤t<2T.
When the elapsed time t reaches a time 2T, the sub processor 10S resets the elapsed time t to 0. In the next periods PD1 and PD2, the sub processor 10S sequentially applies Equations (1) to (3) again.
By moving the display position of the light L by the control according to the quadratic function, it is possible to imitate the pendulum motion of the pendulum metronome with high reproducibility as in the case of the sine wave.
In addition, by performing the control according to the quadratic function, the processing load of the sub processor 10S can be reduced as compared with the case of performing the control according to the sine wave.
In addition, by performing the control according to the quadratic function, the time taken for the light L to move from the one end (for example, the position P1) to the other end (for example, the position P2000) of the track ORB is shortened as compared with the case of performing the control according to the sine wave. Since the time taken for the light L to move in the time taken for one beat is shortened, a longer stop time (in other words, the period PD2) of the light L can be secured. Therefore, it is possible to allow the user to reliably perceive that the light L is stopped. As a result, the user can easily grasp the beat timing.
When the electronic metronome function is turned on, the main processor 10M transmits a synchronization signal to the sub processor 10S at a timing corresponding to the set tempo (in other words, every time the beat timing comes), and at the same time, causes the speaker 20 to output a sound for notifying of a beat.
The set tempo is a tempo set by a user operation performed on the operation panel 14. In a case where the user operation is not performed, the set tempo is an initially determined tempo.
As illustrated in
In a case where the synchronization signal is received from the main processor 10M (step S101: YES), the sub processor 10S resets a count value of a built-in counter and starts counting at the same time (step S102). The sub processor 10S performs the light emission control of the LEDs 162B with a lighting pattern (for example, the lighting pattern LP1) corresponding to the one end (for example, the position P1) of the track ORB (step S103), and returns to the processing of step S101.
Strictly speaking, the beat timing (such as T1 or T2) illustrated in
In a case where the synchronization signal is not received from the main processor 10M (step S101: NO), the sub processor 10S acquires an elapsed time TM (in other words, the count value of the built-in counter) from the last reception of the synchronization signal (step S104).
The sub processor 10S selects any one of Equations (1) to (3) above according to the elapsed time TM, and calculates the display position of the light L corresponding to the elapsed time TM acquired in step S104 by using the selected Equation (step S105).
In step S105, the display position of the light L is calculated after the elapsed time TM is converted into the elapsed time t. For example, the elapsed time TM is converted to 0 at a time point at which the movement starts from the position P1. The elapsed time TM is converted into a time T at a time point at which the synchronization signal is received. The elapsed time TM is converted into the time 2T at a time point at which the display position of the light L returns to the position P1.
The sub processor 10S determines whether or not the elapsed time TM acquired in step S104 is equal to or shorter than a first time (step S106). The first time is, for example, the half of the period PD2 during which the light L is stopped. That is, the sub processor 10S determines whether or not an elapsed time from the beat timing T1 is within the period PD0, and determines whether or not an elapsed time from a beat timing Tn (n is a natural number of 2 or more) after the beat timing T2 is within the period PD2.
In a case where the elapsed time TM is equal to or shorter than the first time (step S106: YES), only a little time has elapsed from the beat timing. Therefore, the sub processor 10S maintains the light emission control of the LEDs 162B with the lighting pattern (for example, the lighting pattern LP1) corresponding to the one end (for example, the position P1) of the track ORB (step S107), and returns to the processing of step S101.
In a case where the elapsed time TM exceeds the first time (step S106: NO), the sub processor 10S determines whether or not the elapsed time TM acquired in step S104 is equal to or longer than a second time (step S108). For example, the second time is obtained by adding a time of the entire period PD1 to the first time (that is, the half of the period PD2).
In a case where the elapsed time TM is shorter than the second time (step S108: NO), there is still time until the next beat timing, and the light L has not reached the other end (for example, the position P2000) of the track ORB. Therefore, the sub processor 10S performs the light emission control of the LEDs 162B with the lighting pattern (any of the lighting patterns LP2 to LP1999) corresponding to the display position calculated in step S105 (step S109), and returns to the processing of step S101.
In a case where the elapsed time TM is equal to or longer than the second time (step S108: YES), the next beat timing is near, and the light L has reached the other end (for example, the position P2000) of the track ORB. Therefore, the sub processor 10S performs the light emission control of the LEDs 162B with the lighting pattern (for example, the lighting pattern LP2000) corresponding to the other end (for example, the position P2000) of the track ORB (step S110), and returns to the processing of step S101.
As described above, the sub processor 10S executes the metronome processing of moving the light L from the position P1 to the position P2000 with the position P1 as the one end of the track ORB and the position P2000 as the other end of the track ORB. After the processing of step S110, the sub processor 10S returns to step S101, and when the synchronization signal is received, the sub processor 10S then executes the metronome processing of moving the light L from the position P2000 to the position P1 with the position P2000 as the one end of the track ORB and the position P1 as the other end of the track ORB, similarly to the above description.
The sub processor 10S repeatedly executes the metronome processing illustrated in
By the execution of the metronome processing illustrated in
When the main processor 10M transmits the synchronization signal to the sub processor 10S at the beat timing, the sub processor 10S receives the synchronization signal and performs the light emission control of the LEDs 162B. Therefore, a delay occurs from the beat timing until the light emission control using the corresponding lighting pattern (the lighting pattern LP1 or the lighting pattern LP2000) is performed.
Therefore, the sub processor 10S performs the light emission control of the LEDs 162B with the corresponding lighting pattern (the lighting pattern LP1 or the lighting pattern LP2000) from slightly before the beat timing. In other words, the light L is stopped slightly before the beat timing. Therefore, the user does not feel a delay, and perceives that the stop timing of the light L matches the beat timing.
The light L gradually decelerates so as to imitate the pendulum motion of the pendulum metronome slightly before the beat timing (in other words, slightly before the light L is stopped). By visually recognizing the deceleration of the light L, the user can grasp in advance that the beat timing is about to arrive. Also from this point, the user can more easily grasp the beat timing.
The light L gradually accelerates from the one end (stop state) of the track ORB, and then gradually decelerates after passing the midpoint and reaches the other end of the track ORB to stop. As described above, in the present embodiment, the light L performs a motion imitating the pendulum motion of the pendulum metronome. Also from this point, the user can more easily grasp the beat timing.
In addition, the present invention is not limited to the above-described embodiments, and various modifications can be made in the implementation stage without departing from the gist thereof. Furthermore, the functions executed in the above-described embodiments may be appropriately combined and implemented as much as possible. The above-described embodiments include various stages, and various inventions can be extracted by appropriate combinations of a plurality of disclosed constituent elements. For example, even if some components are deleted from all the components shown in the embodiment, if an effect can be obtained, a configuration from which the components are deleted can be extracted as an invention.
| Number | Date | Country | Kind |
|---|---|---|---|
| 2023-154095 | Sep 2023 | JP | national |