CN117577071A - Control method, device, equipment and storage medium for stringless guitar - Google Patents

Control method, device, equipment and storage medium for stringless guitar Download PDF

Info

Publication number
CN117577071A
CN117577071A CN202311397888.2A CN202311397888A CN117577071A CN 117577071 A CN117577071 A CN 117577071A CN 202311397888 A CN202311397888 A CN 202311397888A CN 117577071 A CN117577071 A CN 117577071A
Authority
CN
China
Prior art keywords
midi
protocol data
data
instruction
midi protocol
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.)
Pending
Application number
CN202311397888.2A
Other languages
Chinese (zh)
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.)
Shenzhen Zouxin Technology Co ltd
Original Assignee
Shenzhen Zouxin 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 Shenzhen Zouxin Technology Co ltd filed Critical Shenzhen Zouxin Technology Co ltd
Priority to CN202311397888.2A priority Critical patent/CN117577071A/en
Publication of CN117577071A publication Critical patent/CN117577071A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10DSTRINGED MUSICAL INSTRUMENTS; WIND MUSICAL INSTRUMENTS; ACCORDIONS OR CONCERTINAS; PERCUSSION MUSICAL INSTRUMENTS; AEOLIAN HARPS; SINGING-FLAME MUSICAL INSTRUMENTS; MUSICAL INSTRUMENTS NOT OTHERWISE PROVIDED FOR
    • G10D1/00General design of stringed musical instruments
    • G10D1/04Plucked or strummed string instruments, e.g. harps or lyres
    • G10D1/05Plucked or strummed string instruments, e.g. harps or lyres with fret boards or fingerboards
    • G10D1/08Guitars
    • G10D1/085Mechanical design of electric guitars
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/0033Recording/reproducing or transmission of music for electrophonic musical instruments
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H7/00Instruments in which the tones are synthesised from a data store, e.g. computer organs
    • G10H7/002Instruments in which the tones are synthesised from a data store, e.g. computer organs using a common processing for different operations or calculations, and a set of microinstructions (programme) to control the sequence thereof
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H7/00Instruments in which the tones are synthesised from a data store, e.g. computer organs
    • G10H7/08Instruments in which the tones are synthesised from a data store, e.g. computer organs by calculating functions or polynomial approximations to evaluate amplitudes at successive sample points of a tone waveform

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Algebra (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

The application relates to the technical field of stringless guitars, in particular to a control method, a device, equipment and a storage medium of the stringless guitar, wherein the method comprises the following steps: identifying a key combination instruction of a user based on a preset tone instruction and a rhythm instruction; generating MIDI protocol data according to the key combination instruction, and generating an analog signal based on the MIDI protocol data and pre-stored digital music data; and transmitting the analog signal and the MIDI protocol data to a playing device. The method can generate rich and various musical compositions by converting the key combination instruction of the user into MIDI protocol data and combining with preset digital music data. The user can create different notes, timbres and control signals through keys, so that music with personal style and creativity is played; meanwhile, by generating music through an algorithm instead of storing a large number of pieces of music in advance, the required storage space can be greatly reduced.

Description

Control method, device, equipment and storage medium for stringless guitar
Technical Field
The application relates to the technical field of stringless guitars, in particular to a control method, a device, equipment and a storage medium of the stringless guitar.
Background
The existing stringless guitar, namely the soundable electronic guitar adopting keys and rotary plectrum as input means, is to pre-store music pieces with different playing methods, different tone colors and different speeds in a memory, and select the corresponding music pieces by combining a preset tone instruction and a preset rhythm instruction after detecting a key input instruction, and play the music pieces by using an output device. Under the design, the tone color of a musical instrument needs tens of thousands of pieces of music and more than 1Gb of storage space, so that the development workload is extremely large, the resources of the storage space are occupied, and the expansion difficulty is high.
Therefore, how to provide a playing music generating and controlling method with small occupied space and easy storage and expansion for a stringless guitar is a problem to be solved.
Disclosure of Invention
The main purpose of the application is to provide a control method, a device, equipment and a storage medium of a stringless guitar, and aims to solve the technical problem of how to provide a playing music generation and control method which is small in occupied space and easy to store and expand aiming at the stringless guitar in the prior art.
In order to achieve the above object, the present application proposes a control method of a stringless guitar, the method comprising:
identifying a key combination instruction of a user based on a preset tone instruction and a rhythm instruction;
generating MIDI protocol data according to the key combination instruction;
generating an analog signal based on the MIDI protocol data and pre-stored digital music data;
and transmitting the analog signal and the MIDI protocol data to a playing device.
Further, before the step of identifying the key combination instruction of the user based on the preset tone instruction and the rhythm instruction, the method comprises the following steps:
recording different tone colors of different musical instruments and corresponding playing methods, and generating WAV files;
and sampling each WAV file, and converting the WAV files into the digital tone data for storage.
Further, the preset tone command refers to that a specific note or tone is allocated to each key; the rhythm instruction specifies the duration of each key; the step of identifying the key combination instruction of the user comprises the following steps:
when the current key is identified to be pressed, monitoring the time for pressing the key and releasing the key, and the specific key pressed, and recording the monitoring result;
and identifying a corresponding key combination instruction based on the monitoring result.
Further, the step of generating MIDI protocol data according to the key combination instruction includes:
creating corresponding MIDI events according to the key combination instruction of the user;
organizing the created MIDI events according to a specified sequence to form a MIDI event sequence;
converting MIDI events into corresponding byte codes based on MIDI protocols;
and generating MIDI protocol data according to the encoded MIDI event sequence.
Further, the step of generating an analog signal based on the MIDI protocol data and the pre-stored digital music data includes:
transmitting the MIDI protocol data to a DSP chip based on a MIDI protocol;
analyzing information in the MIDI protocol data;
acquiring corresponding digital tone data according to the information in the MIDI protocol data;
and carrying out data processing operation on the information in the MIDI protocol data and the corresponding digital tone data through the DSP chip to generate an analog signal.
Further, the step of transmitting the analog signal and the MIDI protocol data to a playback apparatus includes:
transmitting the analog signal to the playback device based on an audio interface or a wireless transmission protocol;
judging the attribute of the MIDI interface;
if the interface is a physical interface, transmitting the MIDI protocol data based on a MIDI cable;
and if the interface is a virtual interface, transmitting the MIDI protocol data based on virtual MIDI port software.
A second aspect of the present application also proposes a control device for a stringless guitar, said device comprising:
the preset identification module is used for identifying a key combination instruction of a user based on a preset tone instruction and a rhythm instruction;
the data generation module is used for generating MIDI protocol data according to the key combination instruction;
an analog signal generation module for generating an analog signal based on the MIDI protocol data and pre-stored digital music data;
and the transmission playing module is used for transmitting the analog signals and the MIDI protocol data to playing equipment.
Further, the control device of the stringless guitar further comprises:
the recording generation module is used for recording different tone colors of different musical instruments and corresponding playing methods and generating WAV files;
and the sampling storage module is used for sampling each WAV file and converting the WAV files into the digital tone data for storage.
A third aspect of the present application also proposes a computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods described above when the processor executes the computer program.
A fourth aspect of the present application also proposes a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method of any of the preceding claims.
The beneficial effects are that: the method and the device can greatly reduce the required storage space by generating music through an algorithm instead of storing a large number of music pieces in advance. The music generated by the algorithm can generate corresponding musical elements such as notes, chords, rhythms and the like in real time according to the input instruction and the set parameters of the user. Second, using a technique of synthesizing tone colors and sound effects, sound simulation of various musical instruments can be achieved through digital signal processing. Therefore, only a small amount of tone color and sound effect data are stored, and the sound effect can be dynamically called and generated in real time in the playing process, so that the occupation of the storage space is greatly reduced. Meanwhile, through converting the key combination instruction of the user into MIDI protocol data and combining with preset digital music data, rich and various musical compositions can be generated. The user can create different notes, timbres and control signals by pressing keys, thereby playing music with personal style and creativity. The playing process of the guitar without strings has high flexibility and creativity, and a user can freely combine different notes and timbres according to own preference and creative, so as to create unique musical compositions.
Drawings
FIG. 1 is a flow chart of a method of controlling a stringless guitar according to one embodiment of the present disclosure;
FIG. 2 is a block diagram of a control device for a stringless guitar according to one embodiment of the present application;
fig. 3 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, modules, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, modules, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any module and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Referring to fig. 1, an embodiment of the present invention provides a method for controlling a stringless guitar, including steps S1 to S4, specifically:
s1, identifying a key combination instruction of a user based on a preset tone instruction and a preset rhythm instruction.
A set of preset pitch commands and tempo commands needs to be defined. These instructions and functions can be designed according to the requirements and functions of music, such as the note level, duration and intensity, and the speed, beat and decomposition effect of rhythm. Each instruction should be associated with a corresponding tone color library in order to select the correct tone color after instruction identification. And designing corresponding key combinations according to preset tone and rhythm instructions. Different instructions may be mapped to specific keys or key combinations. The key combination may be triggered by pressing multiple keys simultaneously or by pressing a particular sequence of keys. The user inputs a key combination command to the system by pressing a keyboard, knob, or other feature on the stringless guitar that is used to generate the command. The key information is transmitted to an instruction recognition system for recognition processing. It will be appreciated that the stringless guitar of the present application does not have physical strings to detect string vibrations to sound in order to avoid physical injury to the finger from long term string pressing and plucking. The key combination instruction refers to the triggering of the instruction by means of identifying the key action of the stringless guitar, the poking of the poking plate poking rod, and identifying the modes of touch, air chord sweeping, infrared chord sweeping, pressure sensing, gesture identification and the like.
S2, generating MIDI protocol data according to the key combination instruction;
and mapping the preset tone command to the corresponding notes according to the key combination pressed by the user. For example, key a corresponds to bass C, key B corresponds to treble D, and so on. And judging whether control signals such as tone switching, volume adjustment and the like which need to be sent exist according to the key combination instruction of the user. According to specific requirements, corresponding control signals are selected. Based on the notes and the control signals, corresponding MIDI events are constructed. Common MIDI events include Note On, note Off, control Change, etc. The generated MIDI events are ordered and combined according to the time axis according to the order and duration of the user keys. The correct playing sequence of notes and accurate duration are ensured. The generated MIDI event is packed into a complete MIDI message, wherein the MIDI message is composed of a MIDI header and a MIDI data block, wherein the MIDI header contains information such as sync byte and status byte, and the MIDI data block contains actual MIDI event data. Therefore, the step can convert the key combination instruction of the user into corresponding MIDI protocol data.
S3, generating an analog signal based on the MIDI protocol data and pre-stored digital music data;
and analyzing the MIDI protocol data in each received MIDI message. According to the format and the instruction specified by the MIDI protocol, analyzing the information of notes, volume, tone and the like, and according to the analyzed tone information, selecting the matched tone from the pre-stored digital music data. Wherein different instruments have different timbres, and the sound characteristics of various instruments can be simulated by adjusting timbre parameters. And processing corresponding parameters of the audio according to specific requirements for control signals obtained through analysis, such as volume adjustment, tone switching and the like. The influence of the control signal is achieved, for example, by changing the volume gain, the filtering effect, the reverberation effect, etc. And synthesizing the selected tone color and the processed audio data. The waveforms of different notes are superimposed together by synthesis techniques to generate a composite audio signal with characteristics of pitch, volume, etc., and then the synthesized digital signal is converted to an analog signal.
S4, transmitting the analog signals and the MIDI protocol data to a playing device.
For MIDI protocol data, a standard MIDI interface or USB-MIDI interface is typically used for transmission. For analog signals, it is often necessary to transmit them to a playback device using an audio interface or cable. The audio interface may be a dedicated audio interface device or may be a built-in sound card or an external sound card of the computer. By connecting the appropriate audio cable, the analog signal is output to the input port of the audio interface.
As described above, a method of generating music based on an algorithm is employed. By generating music using an algorithm instead of pre-storing a large number of pieces of music, the required storage space can be greatly reduced. The music generated by the algorithm can generate corresponding musical elements such as notes, chords, rhythms and the like in real time according to the input instruction and the set parameters of the user. Second, using a technique of synthesizing tone colors and sound effects, sound simulation of various musical instruments can be achieved through digital signal processing. Therefore, only a small amount of tone color and sound effect data are stored, and the sound effect can be dynamically called and generated in real time in the playing process, so that the occupation of the storage space is greatly reduced. Meanwhile, through converting the key combination instruction of the user into MIDI protocol data and combining with preset digital music data, rich and various musical compositions can be generated. The user can create different notes, timbres and control signals by pressing keys, thereby playing music with personal style and creativity. The playing process of the guitar without strings has high flexibility and creativity, and a user can freely combine different notes and timbres according to own preference and creative, so as to create unique musical compositions.
In one embodiment, before the step of identifying the key combination command of the user based on the preset tone command and the rhythm command, the method includes:
s201, recording different tone colors of different musical instruments and corresponding playing methods, and generating WAV files;
s202, sampling each WAV file, and converting the WAV files into the digital tone data for storage.
In the present embodiment, a corresponding instrument model, such as guitar, piano, violin, etc., is selected according to the kind of instrument to be recorded. And determining the fingering and tone variation required by recording, such as playing with different dynamics, playing with different musical ranges and the like, recording by using equipment such as a real musical instrument or synthesizer and the like according to a design scheme, and storing the recorded audio as a WAV file. And performing post-processing such as editing, denoising, balancing and the like on the recorded audio to obtain better tone quality effect, and then saving the processed audio as a WAV format file for subsequent processing and storage. And sampling the audio data in the WAV file by using parameters such as sampling rate, bit depth and the like to obtain discrete audio samples. The sampled audio samples are converted to digital tone data, typically represented using PCM (pulse code modulation) format or other compression coding format. And processing the digital tone data, such as data compression, coding optimization and the like, so as to reduce the occupation of storage space. The processed digital tone color data is then stored in a memory. According to the embodiment, different tone colors of different musical instruments and corresponding playing methods can be recorded and converted into digital tone color data, and necessary materials and resources are provided for subsequent music generation and control.
In one embodiment, the preset tone command refers to assigning a specific note or tone to each key; the rhythm instruction specifies the duration of each key; the step of identifying the key combination instruction of the user comprises the following steps:
s301, when the current key is identified to be pressed, monitoring the time for pressing the key and releasing the key, and the specific key pressed, and recording the monitoring result;
s302, based on the monitoring result, a corresponding key combination instruction is identified.
In this embodiment, when the user presses or releases the key, the action of the key is monitored by a hardware device or a software program, and the time of pressing and releasing the key is recorded.
And recording a monitoring result. After the key action is monitored, the time and the specific key are recorded, and a specific monitoring result is generated. And then reasonably processing and analyzing the recorded key actions, such as judging whether the key is effective, calculating the duration of the key, identifying the note of the key and the like, and gradually identifying key combination instructions of the user according to the processed monitoring result, wherein the key combination instructions comprise information such as notes, tones, duration and the like.
In an embodiment, the step of generating MIDI protocol data according to the key combination instruction includes:
s401, creating a corresponding MIDI event according to a key combination instruction of a user;
s402, organizing the created MIDI events according to a specified sequence to form a MIDI event sequence;
s403, converting the MIDI event into corresponding byte codes based on MIDI protocol;
s404, generating MIDI protocol data according to the encoded MIDI event sequence.
In this embodiment, the user key combination instruction is converted into a corresponding MIDI event, for example, a Note On/Off event, a Control Change event, etc., by parsing the user key combination instruction. According to the MIDI protocol specification, the attribute and parameters of each event, such as event type, channel, note number, dynamics, rhythm, etc., are determined. All MIDI events are arranged and organized in a specified order according to the format and requirements of the MIDI protocol to form a continuous sequence of MIDI events. Each MIDI event is converted to a corresponding byte code for subsequent transmission and storage in accordance with the specifications and standards of the MIDI protocol. The format and parameters of each byte code, such as event type, channel, data value, etc., are determined according to the MIDI protocol specification. All MIDI events are encoded and combined into a complete byte stream data, namely the generated MIDI protocol data. Through the embodiment, the key combination instruction of the user can be converted into the corresponding MIDI event, and MIDI protocol data is generated according to the MIDI event, so that the music generation and control function based on the preset tone instruction and the rhythm instruction is realized.
In an embodiment, the step of generating an analog signal based on the MIDI protocol data and pre-stored digital music data includes:
s501, transmitting MIDI protocol data to a DSP chip based on MIDI protocol;
s502, analyzing information in the MIDI protocol data;
s503, acquiring corresponding digital tone data according to the information in the MIDI protocol data;
s504, carrying out data processing operation on the information in the MIDI protocol data and the corresponding digital tone data through the DSP chip to generate an analog signal.
In this embodiment, the MIDI protocol data is transmitted to the DSP chip by using a suitable transmission mode (for example, serial port or USB), and the MIDI protocol data transmitted to the DSP chip is parsed to extract the relevant information such as event type, channel, note number, and intensity. And searching and acquiring corresponding digital tone data from the pre-stored digital music data according to the analyzed note numbers and other related information. The digital tone data may be wave table data containing audio samples, or synthesizer parameters or the like describing tone characteristics. And synthesizing the note information in the MIDI protocol data with the digital tone data by utilizing an algorithm, a mathematical operation and a signal processing function built in the DSP chip to generate an analog signal. The data processing operations may include digital audio synthesis, filtering, volume control, etc. operations to achieve the sound characteristics and sound effects of the notes. Through the embodiment, MIDI protocol data can be converted into analog signals, so that analysis and synthesis of digital music are realized. Thus, the functions of playing, synthesizing, controlling tone and the like based on MIDI data can be realized in the music equipment or the system.
In an embodiment, the step of transmitting the analog signal and the MIDI protocol data to a playback apparatus includes:
s601, transmitting the analog signal to the playing device based on an audio interface or a wireless transmission protocol;
s602, judging MIDI interface attribute;
s603, if the interface is a physical interface, transmitting the MIDI protocol data based on a MIDI cable;
s604, if the interface is a virtual interface, transmitting the MIDI protocol data based on the virtual MIDI port software.
In this embodiment, according to the interface and communication protocol of the playing device, an appropriate audio interface (such as a 3.5mm audio jack, HDMI interface, etc.) or a wireless transmission mode (such as bluetooth, wi-Fi, etc.) is selected to transmit the generated analog signal. Whether the playing device supports the MIDI interface is judged to determine the mode of the next data transmission. If the playing equipment supports the MIDI interface, executing subsequent operation according to the actual interface type; if the MIDI interface is not supported, other adapting modes are used to transmit MIDI protocol data to the playing device. If the MIDI interface is a physical interface, there is a MIDI cable connection. In this case, MIDI protocol data needs to be transmitted to the playback apparatus using an appropriate MIDI cable. And transmitting the generated MIDI protocol data to a MIDI interface of the playing device through a physically connected MIDI cable. If the MIDI interface is a virtual interface, there is no physical connection. In this case, data transfer using virtual MIDI port software is required. The generated MIDI protocol data is transmitted from the computer or other device to the playback apparatus by installing and configuring the virtual MIDI port software. According to the embodiment, a proper data transmission mode can be selected according to the interface attribute of the playing device, and the analog signal and MIDI protocol data are transmitted to the playing device, so that the playing and control functions of music are realized.
Referring to fig. 2, a block diagram of a control device of a stringless guitar according to an embodiment of the present application, the device includes:
a preset recognition module 100, configured to recognize a key combination instruction of a user based on a preset tone instruction and a rhythm instruction;
a data generating module 200, configured to generate MIDI protocol data according to the key combination instruction;
an analog signal generation module 300 for generating an analog signal based on the MIDI protocol data and pre-stored digital music data;
and the transmission playing module 400 is used for transmitting the analog signal and the MIDI protocol data to playing equipment.
In one embodiment, the control device for a stringless guitar further comprises:
the recording generation module is used for recording different tone colors of different musical instruments and corresponding playing methods and generating WAV files;
and the sampling storage module is used for sampling each WAV file and converting the WAV files into the digital tone data for storage.
In one embodiment, the preset identification module 100 includes:
the monitoring recording unit is used for monitoring the time for pressing and releasing the key and the specific key pressed when the current key is identified to be pressed, and recording the monitoring result;
and the monitoring and identifying unit is used for identifying the corresponding key combination instruction based on the monitoring result.
In one embodiment, the data generating module 200 further includes:
the event creating unit is used for creating corresponding MIDI events according to the key combination instruction of the user;
a sequence forming unit for organizing the created MIDI events in a specified order to form a MIDI event sequence;
a code conversion unit for converting MIDI events into corresponding byte codes based on MIDI protocol;
and the protocol data generating unit is used for generating MIDI protocol data according to the encoded MIDI event sequence.
In one embodiment, the analog signal generating module 300 further includes:
a data transmission unit for transmitting the MIDI protocol data to the DSP chip based on the MIDI protocol;
a data analysis unit for analyzing the information in the MIDI protocol data;
a tone data acquisition unit, configured to acquire corresponding digital tone data according to information in the MIDI protocol data;
and the operation generating unit is used for carrying out data processing operation on the information in the MIDI protocol data and the corresponding digital tone data through the DSP chip to generate an analog signal.
In one embodiment, the transmission playing module 400 further includes:
a play transmission unit for transmitting the analog signal to the play device based on an audio interface or a wireless transmission protocol;
the interface judging unit is used for judging the attribute of the MIDI interface;
the physical transmission unit is used for transmitting the MIDI protocol data based on a MIDI cable if the physical interface is a physical interface;
and the virtual transmission unit is used for transmitting the MIDI protocol data based on the virtual MIDI port software if the virtual interface is a virtual interface.
Referring to fig. 3, a computer device is further provided in the embodiment of the present application, where the computer device may be a server, and the internal structure of the computer device may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing usage data and the like during the control method of the stringless guitar. The network interface of the computer device is used for communicating with an external terminal through a network connection. Further, the above-mentioned computer apparatus may be further provided with an input device, a display screen, and the like. The control method for realizing the stringless guitar when the computer program is executed by the processor comprises the following steps: identifying a key combination instruction of a user based on a preset tone instruction and a rhythm instruction; generating MIDI protocol data according to the key combination instruction, and generating an analog signal based on the MIDI protocol data and pre-stored digital music data; and transmitting the analog signal and the MIDI protocol data to a playing device.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device to which the present application is applied.
An embodiment of the present application further provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements a method for controlling a stringless guitar, comprising the steps of: identifying a key combination instruction of a user based on a preset tone instruction and a rhythm instruction; generating MIDI protocol data according to the key combination instruction, and generating an analog signal based on the MIDI protocol data and pre-stored digital music data; and transmitting the analog signal and the MIDI protocol data to a playing device. It is understood that the computer readable storage medium in this embodiment may be a volatile readable storage medium or a nonvolatile readable storage medium.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (10)

1. A method of controlling a stringless guitar, the method comprising:
identifying a key combination instruction of a user based on a preset tone instruction and a rhythm instruction;
generating MIDI protocol data according to the key combination instruction;
generating an analog signal based on the MIDI protocol data and pre-stored digital music data;
and transmitting the analog signal and the MIDI protocol data to a playing device.
2. The method of controlling a stringless guitar of claim 1, wherein said step of identifying a key combination command of a user based on a preset tone command and a rhythm command is preceded by the step of:
recording different tone colors of different musical instruments and corresponding playing methods, and generating WAV files;
and sampling each WAV file, and converting the WAV files into the digital tone data for storage.
3. The method of claim 1, wherein the preset tone command is to assign a specific note or tone to each key; the rhythm instruction specifies the duration of each key; the step of identifying the key combination instruction of the user comprises the following steps:
when the current key is identified to be pressed, monitoring the time for pressing the key and releasing the key, and the specific key pressed, and recording the monitoring result;
and identifying a corresponding key combination instruction based on the monitoring result.
4. The method of controlling a stringless guitar of claim 1, wherein said step of generating MIDI protocol data in accordance with said key combination instruction comprises:
creating corresponding MIDI events according to the key combination instruction of the user;
organizing the created MIDI events according to a specified sequence to form a MIDI event sequence;
converting MIDI events into corresponding byte codes based on MIDI protocols;
and generating MIDI protocol data according to the encoded MIDI event sequence.
5. The method of controlling a stringless guitar of claim 1, wherein the step of generating an analog signal based on the MIDI protocol data and pre-stored digital music data comprises:
transmitting the MIDI protocol data to a DSP chip based on a MIDI protocol;
analyzing information in the MIDI protocol data;
acquiring corresponding digital tone data according to the information in the MIDI protocol data;
and carrying out data processing operation on the information in the MIDI protocol data and the corresponding digital tone data through the DSP chip to generate an analog signal.
6. The method of controlling a stringless guitar of claim 1, wherein said step of transmitting said analog signal and said MIDI protocol data to a playback device comprises:
transmitting the analog signal to the playback device based on an audio interface or a wireless transmission protocol;
judging the attribute of the MIDI interface;
if the interface is a physical interface, transmitting the MIDI protocol data based on a MIDI cable;
and if the interface is a virtual interface, transmitting the MIDI protocol data based on virtual MIDI port software.
7. A control device for a stringless guitar, said device comprising:
the preset identification module is used for identifying a key combination instruction of a user based on a preset tone instruction and a rhythm instruction;
the data generation module is used for generating MIDI protocol data according to the key combination instruction;
an analog signal generation module for generating an analog signal based on the MIDI protocol data and pre-stored digital music data;
and the transmission playing module is used for transmitting the analog signals and the MIDI protocol data to playing equipment.
8. The control device of a stringless guitar of claim 7, further comprising:
the recording generation module is used for recording different tone colors of different musical instruments and corresponding playing methods and generating WAV files;
and the sampling storage module is used for sampling each WAV file and converting the WAV files into the digital tone data for storage.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 6.
CN202311397888.2A 2023-10-24 2023-10-24 Control method, device, equipment and storage medium for stringless guitar Pending CN117577071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311397888.2A CN117577071A (en) 2023-10-24 2023-10-24 Control method, device, equipment and storage medium for stringless guitar

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311397888.2A CN117577071A (en) 2023-10-24 2023-10-24 Control method, device, equipment and storage medium for stringless guitar

Publications (1)

Publication Number Publication Date
CN117577071A true CN117577071A (en) 2024-02-20

Family

ID=89883354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311397888.2A Pending CN117577071A (en) 2023-10-24 2023-10-24 Control method, device, equipment and storage medium for stringless guitar

Country Status (1)

Country Link
CN (1) CN117577071A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570826A (en) * 2003-07-18 2005-01-26 杨越 Music input system, input signal processing method and keyboard device
US20120017748A1 (en) * 2010-07-22 2012-01-26 Idan Beck System and Methods for Sensing Finger Position in a Digital Musical Instruments
CN110136681A (en) * 2019-05-24 2019-08-16 东南大学 A kind of no string guitar
CN111091799A (en) * 2019-10-31 2020-05-01 中北大学 Virtual dulcimer system
CN113066454A (en) * 2021-02-05 2021-07-02 深圳点猫科技有限公司 MIDI music editing and playing method, device, system and medium with custom tone
CN115798438A (en) * 2022-08-23 2023-03-14 深圳市戴乐体感科技有限公司 Guitar playing method and device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570826A (en) * 2003-07-18 2005-01-26 杨越 Music input system, input signal processing method and keyboard device
US20120017748A1 (en) * 2010-07-22 2012-01-26 Idan Beck System and Methods for Sensing Finger Position in a Digital Musical Instruments
CN110136681A (en) * 2019-05-24 2019-08-16 东南大学 A kind of no string guitar
CN111091799A (en) * 2019-10-31 2020-05-01 中北大学 Virtual dulcimer system
CN113066454A (en) * 2021-02-05 2021-07-02 深圳点猫科技有限公司 MIDI music editing and playing method, device, system and medium with custom tone
CN115798438A (en) * 2022-08-23 2023-03-14 深圳市戴乐体感科技有限公司 Guitar playing method and device and storage medium

Similar Documents

Publication Publication Date Title
US10140967B2 (en) Musical instrument with intelligent interface
EP3462442A1 (en) Singing voice edit assistant method and singing voice edit assistant device
US8697978B2 (en) Systems and methods for providing multi-region instrument support in an audio player
US7186910B2 (en) Musical tone generating apparatus and musical tone generating computer program
CN111095395A (en) Sound signal generation device, keyboard musical instrument, and program
de Oliveira et al. Understanding MIDI: A Painless Tutorial on Midi Format
US20050056144A1 (en) Computer music input system, processing method and keyboard apparatus
CN117577071A (en) Control method, device, equipment and storage medium for stringless guitar
US8759657B2 (en) Systems and methods for providing variable root note support in an audio player
EP3518230B1 (en) Generation and transmission of musical performance data
JP4614307B2 (en) Performance data processing apparatus and program
US7109406B2 (en) System and method for dynamic note assignment for musical synthesizers
JP3508494B2 (en) Automatic performance data conversion system and medium recording program
JP5969421B2 (en) Musical instrument sound output device and musical instrument sound output program
Pleshkova et al. Development of a MIDI synthesizer for test signals to a wireless acoustic sensor network
US9997147B2 (en) Musical instrument digital interface with voice note identifications
JP3518716B2 (en) Music synthesizer
US10593312B1 (en) Digital musical synthesizer with voice note identifications
JP2869574B2 (en) Musical sound wave generator
US20050137881A1 (en) Method for generating and embedding vocal performance data into a music file format
JP2005017676A (en) Automatic music player and program
JP3885803B2 (en) Performance data conversion processing apparatus and performance data conversion processing program
JP2006091460A (en) Determining device for waveform data for sound source
JP2018146853A (en) Phrase database generation device, phrase database generation method, and phrase database generation program
KR101365592B1 (en) System for generating mgi music file and method for the same

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