CN109830220B - Sound effect mode switching method, electronic equipment and storage medium - Google Patents

Sound effect mode switching method, electronic equipment and storage medium Download PDF

Info

Publication number
CN109830220B
CN109830220B CN201811636874.0A CN201811636874A CN109830220B CN 109830220 B CN109830220 B CN 109830220B CN 201811636874 A CN201811636874 A CN 201811636874A CN 109830220 B CN109830220 B CN 109830220B
Authority
CN
China
Prior art keywords
sound effect
musical instrument
delay time
instrument equipment
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811636874.0A
Other languages
Chinese (zh)
Other versions
CN109830220A (en
Inventor
李伟君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Wei Ke Science And Technology Development Co ltd
Original Assignee
Cherub Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Cherub Technology Co ltd filed Critical Cherub Technology Co ltd
Priority to CN201811636874.0A priority Critical patent/CN109830220B/en
Publication of CN109830220A publication Critical patent/CN109830220A/en
Application granted granted Critical
Publication of CN109830220B publication Critical patent/CN109830220B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

The invention discloses a switching method of sound effect modes, which is applied to musical instrument equipment, wherein the musical instrument equipment is provided with keys for a user to press to enter the sound effect modes so as to change the playing effect of music input to the musical instrument equipment; the method comprises the following steps: detecting whether the sound effect key is triggered; if the sound effect key is triggered, controlling the musical instrument equipment to enter a sound effect mode and starting timing; detecting whether the sound effect key is triggered again in a preset first period; if the sound effect key is triggered again in the preset first period, timing again; recording the current timing time as the delay time of the sound effect, enabling the musical instrument equipment to enter a sound effect mode, and controlling the sound effect according to the delay time. The invention discloses an electronic device and a storage medium. The method for switching the sound effect modes can realize the opening and closing of the sound effect modes of the musical instrument equipment without excessive operation, and greatly improves the convenience of switching the playing modes in the playing process of the musical instrument.

Description

Sound effect mode switching method, electronic equipment and storage medium
Technical Field
The present invention relates to the field of music devices, and in particular, to a method for switching audio modes, an electronic device, and a storage medium.
Background
Currently, the use of musical instrument equipment during the playing of musical instruments adds a number of different styles. When the effect of playing is changed while using the musical instrument, it is necessary to press the keys of the musical instrument for a long time to enter the mode, and then the time interval for triggering the keys again is calculated as a delay time. When the sound effect mode needs to be exited, the key is pressed for a long time, and then the sound effect mode can be exited. Thus, long pressing is needed from entering the sound effect mode to exiting the sound effect mode, so that convenience of field operation is not considered, and errors in performance are easily caused.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide an operation method of musical instrument equipment, which increases the convenience of operation.
The method for switching the sound effect mode is applied to the musical instrument equipment, wherein the musical instrument equipment is provided with keys for a user to press to enter the sound effect mode so as to change the playing effect of music input to the musical instrument equipment; the method comprises the following steps:
detecting whether the sound effect key is triggered;
if the sound effect key is triggered, controlling the musical instrument equipment to enter a sound effect mode and starting timing;
detecting whether the sound effect key is triggered again in a preset first period;
if the sound effect key is triggered again in the preset first period, timing again;
recording the current timing time as the delay time of the sound effect, enabling the musical instrument equipment to enter a sound effect mode, and controlling the sound effect according to the delay time.
Further, the method further comprises:
after the musical instrument equipment enters the sound effect mode, if the sound effect keys are not triggered again in a preset first time period, the delay time is unchanged.
Further, after the musical instrument device enters the sound effect mode, the method further includes:
and if the current timing time when the sound effect key is triggered again exceeds the preset first time period, controlling the musical instrument equipment to exit the sound effect mode.
Further, the method further comprises:
and after the musical instrument equipment enters the sound effect mode, if the current timing time of the sound effect key is triggered again within the preset first time period, timing again, and taking the current timing time record to replace the existing delay time as the delay time of the sound effect.
Further, according to the delay time, controlling the sound effect, the method further comprises:
repeating the delay time for each tone of the input music.
Further, according to the delay time, controlling the sound effect, the method further comprises:
the duration of each tone of the input music is set as the delay time.
Further, before the musical instrument apparatus enters the sound effect mode, the method further includes:
the delay time of the sound effect is converted into beats per minute.
Further, the method also comprises
The sound effect of the beats per minute is superimposed to the input music.
An electronic device comprising a memory, a processor, and a program stored in the memory, the program being configured to be executed by the processor, the processor implementing a method of switching between any of the above-described sound effect modes when executing the program.
A storage medium storing a computer program which, when executed by a processor, implements the method of switching between sound modes of any one of the above.
Compared with the prior art, the invention has the beneficial effects that: the method for switching the sound effect modes only by stepping or pressing and long pressing is simple and quick, the convenience of on-site operation is improved, and the operability of on-site playing musical instruments is greatly improved.
Drawings
FIG. 1 is a flowchart illustrating a method for switching audio modes according to a first embodiment of the present invention;
FIG. 2 is a schematic flow chart of an alternative embodiment of the present invention;
FIG. 3 is a schematic flow chart of a second alternative embodiment of the present invention;
FIG. 4 is a schematic flow chart of a third alternative embodiment of the present invention; a step of
FIG. 5 is a flowchart illustrating a method for switching audio modes according to a second embodiment of the present invention;
FIG. 6 is a flowchart illustrating a method for switching audio modes according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
Detailed Description
The present invention will be further described with reference to the accompanying drawings and detailed description, wherein it is to be understood that, on the premise of no conflict, the following embodiments or technical features may be arbitrarily combined to form new embodiments.
The embodiment of the invention provides a method for switching sound effect modes, which is mainly applied to musical instrument equipment, wherein the musical instrument equipment is external electronic equipment when a musical instrument is played, the musical instrument can be an electric guitar, a wooden guitar or an electronic organ, and the musical instrument equipment can be a delay effector, a rate effector, a rhythm drum machine and the like. The method is used for enhancing the tone color of a music piece played by a musical instrument or changing the tone color, changing the waveform of original sound, modulating or delaying the phase of sound waves, enhancing the gem-wave component of the sound waves and the like, and various special sound effects are generated. It is used by many instruments, choruses, etc. to exert an effect or influence on the timbre. The method for switching the sound effect modes can be used for switching the sound effect modes simply when the musical instrument is connected with musical instrument equipment, and excessive operation steps are not generated.
Referring to fig. 1, a flowchart of a method for switching an audio mode according to a first embodiment of the present invention is shown, and the method includes the following steps.
Step S101: detecting whether the sound effect key is triggered;
the musical instrument equipment is connected with the musical instrument and is connected with a power supply, the musical instrument equipment is provided with sound effect keys, and the musical instrument equipment automatically detects whether the sound effect keys are triggered or not so as to change the sound effect mode of playing. The sound effect mode is to process audio information input from a musical instrument so that a specific musical effect can be produced when the audio information is output again.
Step S103: if the sound effect key is triggered, controlling the musical instrument equipment to enter a sound effect mode and starting timing;
the musical instrument device detects that the sound effect key is triggered once, the musical instrument device enters a sound effect mode, the musical instrument device starts timing, and the time from the next time of triggering the sound effect key is calculated.
Step S105: detecting whether the sound effect key is triggered again in a preset first period;
the preset first period is a maximum time value at which the musical instrument device can exert an effect on music produced by the musical instrument.
Step S107: if the sound effect key is triggered again in the preset first period, timing again;
if the sound effect key is triggered again in the first time period, the timing of the musical instrument equipment is stopped, the current timing time is stored, and after the storage is completed, the musical instrument equipment restarts timing.
Step S109: recording the current timing time as the delay time of the sound effect, enabling the musical instrument equipment to enter a sound effect mode, and controlling the sound effect according to the delay time.
The current timing time record is set as the delay time of the sound effect, the musical instrument equipment enters a sound effect mode, the sound effect mode is to apply the delay time to music input to the musical instrument equipment, and then the music output by the musical instrument equipment has a special sound effect. If the musical instrument equipment enters the sound effect mode, if the sound effect key is not triggered again in the preset first time period, the delay time is unchanged.
In this embodiment, the music output by the instrument device has special sound effects, including but not limited to the following alternative embodiment modes.
Referring to fig. 2, as a flowchart of a first alternative embodiment of the present invention, according to the delay time, the method further includes:
step S201: repeating the delay time for each tone of the input music.
In this embodiment, the method for switching the sound effect modes may be used in a Delay effector to achieve the Delay effect. And (3) repeating each sound of the input music for a time equal to the delay time. Specifically, the time for triggering the sound effect keys twice is 500ms, the first time period is 1000ms, and when the music is input to the Delay effector, each sound of the output music is repeated for 500ms, and an echo effect or a mixing effect of delayed reverberation is generated.
Referring to fig. 3, as a flowchart of a second alternative embodiment of the present invention, according to the delay time, the method further includes:
step S202: the duration of each tone of the input music is set as the delay time.
In this embodiment, the duration of each tone of the input music is prolonged by a time equal to the delay time. Specifically, the time for triggering the sound effect keys twice is 500ms, the first time period is 1000ms, and when music is input to the musical instrument equipment, each sound of the output music is repeated for 500ms, and an echo effect or a mixing effect of delayed reverberation is generated.
Referring to fig. 4, as a flowchart of a third alternative embodiment of the present invention, according to the delay time, the method further includes:
step S203: the delay time of the sound effect is converted into beats per minute.
In this embodiment, the method for switching the sound effect modes may be used in a rhythm drum machine, where the delay time of the sound effect is converted into beats per minute. It will be appreciated that if the time for triggering the sound effect key twice is 500ms, the first period is 1000ms, the number of beats per minute is 120BPM, and the one beat time is 500ms, i.e. the beat of the rhythm drum machine is 0.5s one beat.
Step S204: the sound effect of the beats per minute is superimposed to the input music.
The playing beat of the rhythmic drum machine is set, the rhythm of the rhythm is superimposed to the music input by the musical instrument, and accompaniment of the rhythmic drum machine with the preset beat is also arranged in the playing process of the musical instrument.
Fig. 5 is a flow chart of a method for switching sound effect modes according to a second embodiment of the present invention. The switching method of the second embodiment is different from the switching method of the first embodiment in that, after the musical instrument apparatus enters the sound effect mode, the method further includes the following steps.
Step S301: and if the current timing time when the sound effect key is triggered again exceeds the preset first time period, controlling the musical instrument equipment to exit the sound effect mode.
In this embodiment, after the sound effect key of the musical instrument device is triggered once to be in the sound effect mode, the musical instrument device reckons, if the sound effect key is not triggered within the preset first time period, the musical instrument device enters a state of being ready to exit the sound effect mode, and when the sound effect key is triggered again, the musical instrument device exits the sound effect mode. It can be understood that if the sound effect mode is entered by mistake, the sound effect mode can be closed only by waiting for a time exceeding the first time period and triggering the sound effect key again.
Referring to fig. 6, in the present embodiment, a flow chart of a method for switching sound effect modes according to a third embodiment of the present invention is shown. The switching method of embodiment 3 is different from the switching method of the first embodiment in that, after the musical instrument apparatus enters the sound effect mode, the method further includes the following steps.
Step S401: and if the current timing time of the sound effect key is triggered again in the preset first time period, re-timing, and replacing the existing delay time with the current timing time record to serve as the delay time of the sound effect.
In this embodiment, if the musical instrument is in the sound mode, there is a delay time; the previous counted time is recorded as the delay time at the musical instrument apparatus, and the re-counting is started. If the sound effect mode is triggered again in the first time period, the newly recorded timing time replaces the last time of timing time record to serve as the delay time of the sound effect.
In the embodiment, the on-off of the sound effect mode of the musical instrument equipment can be realized by simply stepping or lightly pressing, the mode can be selected simply and quickly, the convenience of on-site operation is improved, and the operability of on-site playing the musical instrument is greatly improved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device, and an electronic device 700 according to an embodiment of the present invention includes: the memory 701 and the processor 702, the memory 701 is used for storing a computer program which, when executed by the processor, implements the above-mentioned method for switching the sound effect modes.
The electronic device in this embodiment and the method in the foregoing embodiment are based on two aspects under the same inventive concept, and the detailed description of the implementation process of the method has been described above, so those skilled in the art can clearly understand the implementation process of the electronic device in this embodiment according to the foregoing description, and for brevity of description, the detailed description is omitted herein.
From the above description of embodiments, it will be apparent to those skilled in the art that the present invention may be implemented in software plus a necessary general hardware platform. Based on such an understanding, the solution of the invention may be embodied essentially or in part in the form of a software product that contributes to the state of the art. The invention also relates to a storage medium, such as a ROM/RAM, magnetic disk, optical disk, etc., on which a computer program is stored which, when being executed by a processor, implements the method described above.
The above embodiments are only preferred embodiments of the present invention, and the scope of the present invention is not limited thereto, but any insubstantial changes and substitutions made by those skilled in the art on the basis of the present invention are intended to be within the scope of the present invention as claimed.

Claims (7)

1. The method for switching the sound effect mode is applied to the musical instrument equipment, wherein the musical instrument equipment is provided with keys for a user to press to enter the sound effect mode so as to change the playing effect of music input to the musical instrument equipment; characterized in that the method comprises:
detecting whether the sound effect key is triggered;
if the sound effect key is triggered, controlling the musical instrument equipment to enter a sound effect mode and starting timing;
detecting whether the sound effect key is triggered again in a preset first period;
if the sound effect key is triggered again in the preset first period, re-timing and saving the current timing time;
recording the current timing time as the delay time of the sound effect, enabling the musical instrument equipment to enter a sound effect mode, and controlling the sound effect according to the delay time;
after the musical instrument equipment enters the sound effect mode, if the sound effect keys are not triggered again in a preset first time period, the delay time is unchanged;
after the musical instrument equipment enters the sound effect mode, if the current timing time of the sound effect key is triggered again within the preset first time period, timing again, and taking the current timing time record to replace the existing delay time as the delay time of the sound effect;
after the musical instrument device enters the sound effect mode, the method further comprises:
and if the current timing time when the sound effect key is triggered again exceeds the preset first time period, controlling the musical instrument equipment to exit the sound effect mode.
2. The method for switching an audio mode according to claim 1, wherein the audio effect is controlled according to the delay time, the method further comprising:
repeating the delay time for each tone of the input music.
3. The method for switching an audio mode according to claim 1, wherein the audio effect is controlled according to the delay time, the method further comprising:
the duration of each tone of the input music is set as the delay time.
4. The method for switching an audio mode according to claim 1, wherein before the musical instrument device enters the audio mode, the method further comprises:
the delay time of the sound effect is converted into beats per minute.
5. The method for switching sound modes according to claim 4, further comprising
The sound effect of the beats per minute is superimposed to the input music.
6. An electronic device, characterized in that: comprising a memory, a processor and a program stored in the memory, the program being configured to be executed by the processor, the processor implementing the method of switching an audio mode according to any one of claims 1-5 when executing the program.
7. A storage medium storing a computer program, characterized in that: the computer program, when executed by a processor, implements a method of switching sound modes according to any one of claims 1-5.
CN201811636874.0A 2018-12-29 2018-12-29 Sound effect mode switching method, electronic equipment and storage medium Active CN109830220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811636874.0A CN109830220B (en) 2018-12-29 2018-12-29 Sound effect mode switching method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811636874.0A CN109830220B (en) 2018-12-29 2018-12-29 Sound effect mode switching method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109830220A CN109830220A (en) 2019-05-31
CN109830220B true CN109830220B (en) 2023-09-08

Family

ID=66860067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811636874.0A Active CN109830220B (en) 2018-12-29 2018-12-29 Sound effect mode switching method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109830220B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399247B (en) * 2020-11-18 2023-04-18 腾讯音乐娱乐科技(深圳)有限公司 Audio processing method, audio processing device and readable storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04275593A (en) * 1991-03-02 1992-10-01 Kawai Musical Instr Mfg Co Ltd Musical information input device
JP2005128208A (en) * 2003-10-23 2005-05-19 Yamaha Corp Performance reproducing apparatus and performance reproducing control program
JP2005195982A (en) * 2004-01-08 2005-07-21 Yamaha Corp Delay control electronic musical instrument and playing in concert system
EP1975920A2 (en) * 2007-03-30 2008-10-01 Yamaha Corporation Musical performance processing apparatus and storage medium therefor
CN101359467A (en) * 2007-08-01 2009-02-04 卡西欧计算机株式会社 Resonance sound adding apparatus for keyboard instrument
CN102984579A (en) * 2012-12-13 2013-03-20 青岛海信宽带多媒体技术有限公司 Realizing method for key sound effect of set-top box and set-top box
JP2015045829A (en) * 2013-08-29 2015-03-12 カシオ計算機株式会社 Touch detection device, touch detection method and program
CN104436648A (en) * 2014-11-12 2015-03-25 李宇峰 Audio visual rhythm game system and music extraction method thereof
CN105827849A (en) * 2016-04-28 2016-08-03 维沃移动通信有限公司 Method for adjusting sound effect and mobile terminal
CN106875931A (en) * 2017-04-07 2017-06-20 壹零(北京)乐器有限公司 Sound effect control device and intelligent musical instrument
CN207302612U (en) * 2017-05-22 2018-05-01 江西创成微电子有限公司 A kind of audio device
CN207558407U (en) * 2017-10-30 2018-06-29 丛林象(武汉)科技发展有限公司 Percussion instrument and multi-functional guitar

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5188863B2 (en) * 2008-04-07 2013-04-24 ローランド株式会社 Electronic musical instruments

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04275593A (en) * 1991-03-02 1992-10-01 Kawai Musical Instr Mfg Co Ltd Musical information input device
JP2005128208A (en) * 2003-10-23 2005-05-19 Yamaha Corp Performance reproducing apparatus and performance reproducing control program
JP2005195982A (en) * 2004-01-08 2005-07-21 Yamaha Corp Delay control electronic musical instrument and playing in concert system
EP1975920A2 (en) * 2007-03-30 2008-10-01 Yamaha Corporation Musical performance processing apparatus and storage medium therefor
CN101359467A (en) * 2007-08-01 2009-02-04 卡西欧计算机株式会社 Resonance sound adding apparatus for keyboard instrument
CN102984579A (en) * 2012-12-13 2013-03-20 青岛海信宽带多媒体技术有限公司 Realizing method for key sound effect of set-top box and set-top box
JP2015045829A (en) * 2013-08-29 2015-03-12 カシオ計算機株式会社 Touch detection device, touch detection method and program
CN104436648A (en) * 2014-11-12 2015-03-25 李宇峰 Audio visual rhythm game system and music extraction method thereof
CN105827849A (en) * 2016-04-28 2016-08-03 维沃移动通信有限公司 Method for adjusting sound effect and mobile terminal
CN106875931A (en) * 2017-04-07 2017-06-20 壹零(北京)乐器有限公司 Sound effect control device and intelligent musical instrument
CN207302612U (en) * 2017-05-22 2018-05-01 江西创成微电子有限公司 A kind of audio device
CN207558407U (en) * 2017-10-30 2018-06-29 丛林象(武汉)科技发展有限公司 Percussion instrument and multi-functional guitar

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
林小兰 ; 李传珍 ; 王晖 ; 王京玲 ; .基于贝叶斯理论的单音音乐节奏提取.中国传媒大学学报(自然科学版).2008,第15卷(第04期),第44-51页. *

Also Published As

Publication number Publication date
CN109830220A (en) 2019-05-31

Similar Documents

Publication Publication Date Title
US6410837B2 (en) Remix apparatus and method, slice apparatus and method, and storage medium
JP4821533B2 (en) Arpeggio performance device and program
JP6252088B2 (en) Program for performing waveform reproduction, waveform reproducing apparatus and method
US9396715B2 (en) Technique for generating audio data for loop reproduction on the basis of performance data
JP2009145696A (en) Musical sound generator and program
CN109830220B (en) Sound effect mode switching method, electronic equipment and storage medium
US9087503B2 (en) Sampling device and sampling method
TWI733133B (en) Electronic keyboard aerial shot sound insertion auxiliary device, electronic keyboard tone color switching method and computer readable storage medium
TWM587742U (en) Electronic piano blank beat note insertion auxiliary device
JP5907227B1 (en) Musical sound control device, musical sound control method and program
JP4273821B2 (en) Audio data processing program
JP2000293169A (en) Musical sound generating device
JP6665541B2 (en) Electroacoustic device
JP6323216B2 (en) Parameter receiving apparatus, method and program
JPH1097256A (en) Musical sound producing device and medium stored with program
JP5568866B2 (en) Music signal generator
JP2005010458A (en) Automatic arpeggio device and computer program applied to the device
JPH04243295A (en) Electronic musical instrument
JP2008252205A (en) Electronic music device and program
JPH10124061A (en) Waveform reproducing device
JP2008304813A (en) Effect device
JP2000075859A (en) Effect imparting device and automatic playing device
JP2000029463A (en) Playing information input device
JPH0756569A (en) Automatic player
JPH0863158A (en) Automatic player

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240515

Address after: 519000 No. 10, Keji 9th Road, Tangjiawan Town, high tech Zone, Zhuhai, Guangdong

Patentee after: Zhuhai Wei Ke science and Technology Development Co.,Ltd.

Country or region after: China

Address before: 507, building 1, Nanhai yiku, no.6, Xinghua Road, Shekou, Nanshan District, Shenzhen, Guangdong 518000

Patentee before: Cherub Technology Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right