CN117456970A - Electronic musical instrument and tuning ware based on virtual instrument - Google Patents

Electronic musical instrument and tuning ware based on virtual instrument Download PDF

Info

Publication number
CN117456970A
CN117456970A CN202311126656.3A CN202311126656A CN117456970A CN 117456970 A CN117456970 A CN 117456970A CN 202311126656 A CN202311126656 A CN 202311126656A CN 117456970 A CN117456970 A CN 117456970A
Authority
CN
China
Prior art keywords
tone
module
music
data
waveform
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
CN202311126656.3A
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.)
Tongji University
Original Assignee
Tongji University
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 Tongji University filed Critical Tongji University
Priority to CN202311126656.3A priority Critical patent/CN117456970A/en
Publication of CN117456970A publication Critical patent/CN117456970A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/32Constructional details
    • 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/0008Associated control or indicating means
    • 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/0091Means for obtaining special acoustic effects
    • 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/32Constructional details
    • G10H1/34Switch arrangements, e.g. keyboards or mechanical switches specially adapted 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
    • G10H3/00Instruments in which the tones are generated by electromechanical means
    • G10H3/12Instruments in which the tones are generated by electromechanical means using mechanical resonant generators, e.g. strings or percussive instruments, the tones of which are picked up by electromechanical transducers, the electrical signals being further manipulated or amplified and subsequently converted to sound by a loudspeaker or equivalent instrument
    • G10H3/14Instruments in which the tones are generated by electromechanical means using mechanical resonant generators, e.g. strings or percussive instruments, the tones of which are picked up by electromechanical transducers, the electrical signals being further manipulated or amplified and subsequently converted to sound by a loudspeaker or equivalent instrument using mechanically actuated vibrators with pick-up means

Abstract

The invention discloses an electronic musical instrument and tuning machine based on virtual instrument, comprising: the system comprises a data control processing platform, a data transmission platform connected with the data control processing platform in a bidirectional signal manner, a pickup module, a key module and an audio output module, wherein the pickup module, the key module and the audio output module are all connected with the data transmission platform in a unidirectional signal manner; the data control processing platform comprises a data management module, a data processing module and a GUI module which are connected with the data management module in a bidirectional signal manner, and a database module which is connected with the data management module in a signal manner, wherein the GUI module is connected with a keyboard and a mouse in a signal manner; the data transmission platform plays syllables through the audio output module, the key module acquires key information and the pickup module acquires tone information to be detected; the GUI module obtains user instructions and user input data through a keyboard mouse and transmits the data to the data management module. According to the invention, the music playing and tuning of different musical instruments can be simulated, and the development period of the electronic musical instrument and the tuning instrument can be effectively shortened.

Description

Electronic musical instrument and tuning ware based on virtual instrument
Technical Field
The invention relates to the technical field of tuning of electronic musical instruments, in particular to an electronic musical instrument and a tuning machine based on a virtual instrument.
Background
With the vigorous development of the cultural field, many musicians can create musical compositions using a variety of musical instruments. However, the characteristics of different musical instruments are different, and when the performance effects of different musical instruments on the same music are compared, a great amount of time is consumed by repeated playing and comparison tests, and the music creation period is increased; different music instruments can occupy a lot of space; the tuning machine cannot be integrated with the instrument and can also be troublesome.
Therefore, how to integrate multiple instruments with one device is a widely focused problem, and many methods for solving the problem are also proposed, wherein the implementation methods mainly include a singlechip, an FPGA, and the like, and have complex codes and long development period.
Disclosure of Invention
Aiming at the defects existing in the prior art, the invention aims to provide the electronic musical instrument and the tuning machine based on the virtual instrument, which can simulate the playing and tuning of different musical instruments and effectively shorten the development period of the electronic musical instrument and the tuning machine. To achieve the above objects and other advantages and in accordance with the purpose of the present invention, there is provided an electronic musical instrument and tuning machine based on a virtual instrument, comprising:
the system comprises a data control processing platform, a data transmission platform connected with the data control processing platform in a bidirectional signal manner, a pickup module, a key module and an audio output module, wherein the pickup module, the key module and the audio output module are all connected with the data transmission platform in a unidirectional signal manner;
the data control processing platform comprises a data management module, a data processing module and a GUI module which are connected with the data management module in a bidirectional signal manner, and a database module which is connected with the data management module in a signal manner, wherein the GUI module is connected with a keyboard and a mouse in a signal manner;
the data transmission platform plays syllables through the audio output module, the key module acquires key information and the pickup module acquires tone information to be detected;
the GUI module acquires user instructions and user input data through a keyboard and a mouse and transmits the data to the data management module, and the data management module calls the data processing module, the database module and the data transmission platform according to different instructions.
Preferably, the GUI module writes interface codes through Qt and comprises an input label, a play label and a tuning label, each label is provided with a plurality of sections, and control information and data information are transmitted to the data management module in the mode that the labels, the sections and the keyboard are clicked by a mouse to input data, so that different functions are accessed;
the tuning label comprises a pickup waveform display plate and a waveform frequency display plate, wherein the pickup waveform display plate is used for displaying a waveform chart obtained by pickup of a musical instrument to be tested, and the waveform frequency display plate is used for displaying the frequency of a waveform.
Preferably, the recording label comprises a tone recording block and a music recording block, wherein the tone recording block comprises file recording, keyboard recording and pickup recording modes; the file recording and keyboard recording formats are string format audio and color names-double vector format music waveform table, the value of the double vector format music waveform table is-1.0, and the vector length is 0-255; the pick-up recording is carried out by reading the waveform of the single tone of the musical instrument, and waveform data is automatically converted into a file recording or keyboard recording format.
Preferably, the music input block comprises a mode of file input and keyboard input, wherein the input formats of the file input and the keyboard input are string format music name-struct vector format music score tone table, the struct structure comprises 1 char type array with the length of 3, the char type array is used for respectively storing marks, semitones and octaves of tones, if no marks exist, the marks are represented by space characters, and the struct vector length is 0-2047;
when recording is performed through tone recording and music recording, only tone recording or music recording can be selected through a mouse.
Preferably, the playing label comprises a playing syllable layout and a playing music layout, wherein the playing syllable layout comprises selecting tone, selecting corresponding keys and clicking a playing function by a mouse, the tone is used for selecting a tone waveform table recorded in a database, and the tone is used for selecting the tone existing in the database; selecting a corresponding key to correspond the selected tone and the tone to the key, and playing the corresponding tone and tone when the key is pressed; the mouse click playing is used for playing corresponding tone and tone when the mouse clicks;
when the syllable playing block and the music playing block are used, syllables or music can be played only through the mouse.
Preferably, when the data management module transmits and receives data information to the database, the method comprises the following steps: when the GUI selects to enter the label, the data management module stores tone color and music information acquired from the GUI module into a database respectively; when the GUI selects to play the label, the data management module acquires tone color, music and tone information from the database, converts the music tone and the music tone table into tone frequency and music tone frequency tables, transmits the tone name and the music name to the GUI module, and transmits the tone waveform table, the tone frequency and the music waveform table to the data transmission platform according to instructions of the GUI module;
when the data management module sends and receives data information to the data processing platform, the method comprises the following steps: when the GUI selects the recording label or the tuning label, the data management module transmits the pickup waveform table to the data processing module and receives waveform and frequency information of the data processing module; when the GUI selects to play the label, the data management module sends a tone waveform table and volume to the data processing platform and receives an output voltmeter of the data processing module;
when the data management module sends and receives data information to the data transmission platform, the method comprises the following steps: when the GUI selects to record a label or tuning label, the data management module receives a waveform vector of the data transmission platform; when the GUI selects the play tab, the data management module communicates the tone waveform table, tone frequency, musical tone table, volume to the data transmission platform.
Preferably, the data management module has 11 variables including string type tone names, double vector type tone waveform table, string list type tone name list, string type music names, struct vector type music tone table, double vector type music tone frequency table, string list type music name list, double type volume, double vector type output voltage table, double vector type pickup waveform table, double type pickup frequency.
Preferably, after the data processing module receives the pickup waveform table transmitted by the data management module, the frequency and tone waveform table of the pickup waveform table are identified and transmitted to the data management module; the data processing module receives the tone color waveform table and the volume transmitted by the data management module, generates an output voltmeter and transmits the output voltmeter to the data management module;
the frequency identification of the pickup waveform table is carried out by identifying the number of repeated waveforms in the pickup waveform table, wherein the incomplete waveform is folded into decimal according to the length of the waveform read by the incomplete waveform, and the pickup frequency is the number of repeated waveforms;
tone color waveform identification of a pickup waveform table is carried out by cutting out a waveform of one cycle of the pickup waveform table, selecting a numerical value in which an absolute value is maximum, dividing all the numerical values in the waveform table of a single cycle by the maximum absolute value, and taking the numerical value as the tone color waveform table of the musical instrument.
Preferably, the data transmission platform is a virtual instrument, and comprises 44 variables of a double vector type output voltmeter, a double vector type music tone frequency table, a char array type key state and a double vector type pickup waveform table, and has functions of music playing, key identification and pickup waveform reading;
the music playing function is to call an analog output function of the virtual instrument SDK according to the output voltmeter and the music tone frequency table, the analog output channel CH1 outputs 5V square wave voltage of the music tone frequency, the analog output channel CH2 outputs the output voltmeter, the output period is the same as the reciprocal of the music tone frequency, each element in the output voltmeter divides the output period equally, and the music playing module is driven to play music;
the key recognition function is to call a digital input function in the SDK of the virtual instrument, read the key state and transmit the key state to the data management module;
the pickup waveform reading function is to call a virtual instrument analog input function, analog output of the pickup module is sampled by an analog input channel CH3, a pickup waveform table is obtained, and the pickup waveform table is transmitted to the data management module. The analog input sampling frequency is 4MHz, the single sampling depth is 256 points, and each pick-up sampling is 4000000 times
Preferably, the database module calls a MySQL database in Qt, wherein the database comprises a tone color data table, a tone data table and a music data table, and the tone color data table comprises a sequence number, a tone name, a tone waveform table length and a tone waveform table 4; the tone data table includes sequence number, tone and frequency 3 columns; the music data list serial number, the music name, the music tone list length and the music tone list 4 are listed, the tone waveform list length is the number of elements in the tone waveform list vector, and the music tone list length is the number of elements in the music tone list vector.
Compared with the prior art, the invention has the beneficial effects that: based on the design of a virtual instrument platform, electronic musical instruments and tuning devices capable of playing custom tone and music are developed by utilizing flexible data processing, database capability and convenient testing functions of the virtual instrument of a computer; the method for developing the electronic musical instrument can simplify the development process and shorten the development time.
Drawings
Fig. 1 is a block diagram of a virtual instrument-based electronic musical instrument and tuning machine according to the present invention;
FIG. 2 is a block diagram of a virtual instrument based electronic musical instrument and tuning machine with recording function according to the present invention;
fig. 3 is a block diagram showing a structure of an electronic musical instrument and a tuning machine having a play function based on a virtual instrument according to the present invention;
fig. 4 is a block diagram of a virtual instrument-based electronic musical instrument and tuning machine with tuning function according to the present invention;
FIG. 5 is a schematic diagram of a music playing module of a virtual instrument-based electronic musical instrument and tuning machine according to the present invention;
FIG. 6 is a schematic diagram of a key module of a virtual instrument-based electronic musical instrument and tuning machine according to the present invention;
fig. 7 is a schematic diagram of pickup modules of a virtual instrument-based electronic musical instrument and a tuning machine according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1-7, an electronic musical instrument and tuning machine based on virtual instruments, comprising: the system comprises a data control processing platform, a data transmission platform connected with the data control processing platform in a bidirectional signal manner, a pickup module, a key module and an audio output module, wherein the pickup module, the key module and the audio output module are all connected with the data transmission platform in a unidirectional signal manner;
the data control processing platform comprises a data management module, a data processing module and a GUI module which are connected with the data management module in a bidirectional signal manner, and a database module which is connected with the data management module in a signal manner, wherein the GUI module is connected with a keyboard and a mouse in a signal manner;
the data transmission platform plays syllables through the audio output module, the key module acquires key information and the pickup module acquires tone information to be detected;
the GUI module acquires user instructions and user input data through a keyboard and a mouse and transmits the data to the data management module, and the data management module calls the data processing module, the database module and the data transmission platform according to different instructions.
Further, the GUI module writes interface codes through Qt and comprises an input label, a play label and a tuning label, each label is provided with a plurality of sections, and control information and data information are transmitted to the data management module in the mode that the labels, the sections and the keyboard are clicked by a mouse to input data, so that different functions are accessed;
the tuning label comprises a pickup waveform display plate and a waveform frequency display plate, wherein the pickup waveform display plate is used for displaying a waveform chart obtained by pickup of a musical instrument to be tested, and the waveform frequency display plate is used for displaying the frequency of a waveform.
Further, the recording label comprises a tone recording block and a music recording block, wherein the tone recording block comprises file recording, keyboard recording and pickup recording modes; the file recording and keyboard recording formats are string format audio and color names-double vector format music waveform table, the value of the double vector format music waveform table is-1.0, and the vector length is 0-255; the pick-up recording is carried out by reading the waveform of the single tone of the musical instrument, and waveform data is automatically converted into a file recording or keyboard recording format.
Further, the music input block comprises a mode of file input and keyboard input, wherein the input formats of the file input and the keyboard input are string format music name-struct vector format music score tone table, the struct structure body comprises 1 char type array with the length of 3, the char type array is used for respectively storing marks, semitones and octaves of tones, if no marks exist, the marks are represented by space characters, and the struct vector length is 0-2047;
when recording is performed through tone recording and music recording, only tone recording or music recording can be selected through a mouse.
Further, the playing label comprises a playing syllable layout and a playing music layout, wherein the playing syllable layout comprises selecting tone, selecting corresponding keys and clicking a playing function by a mouse, the tone is selected to be used for selecting a tone waveform table recorded in a database, and the tone is selected to be used for selecting the tone existing in the database; selecting a corresponding key to correspond the selected tone and the tone to the key, and playing the corresponding tone and tone when the key is pressed; the mouse click playing is used for playing corresponding tone and tone when the mouse clicks;
the playing of the music plate has four functions of selecting tone, selecting music, selecting a corresponding key and controlling the playing of a mouse, wherein the selected tone is a tone waveform table recorded in a selection database, the selected music is a music tone table recorded in the selection database, the corresponding key is used for corresponding the selected tone and the music to the key, when the key is pressed, the corresponding tone and the music are played, and when the mouse is clicked, the corresponding tone and the music are played.
When the syllable playing block and the music playing block are used, syllables or music can be played only through the mouse.
The data management module is provided with 11 variables including string type tone color names, double vector type tone color waveform tables, string list type tone color name lists, string type music names, struct vector type music tone tables, double vector type music tone frequency tables, string list type music name lists, double type volume, double vector type output voltage tables, double vector type pickup waveform tables and double type pickup frequency.
Further, when the data management module sends and receives data information to the database, the method comprises the following steps: when the GUI selects to enter the label, the data management module stores tone color and music information acquired from the GUI module into a database respectively; when the GUI selects to play the label, the data management module acquires tone color, music and tone information from the database, converts the music tone and the music tone table into tone frequency and music tone frequency tables, transmits the tone name and the music name to the GUI module, and transmits the tone waveform table, the tone frequency and the music waveform table to the data transmission platform according to instructions of the GUI module;
when the data management module sends and receives data information to the data processing platform, the method comprises the following steps: when the GUI selects the recording label or the tuning label, the data management module transmits the pickup waveform table to the data processing module and receives waveform and frequency information of the data processing module; when the GUI selects to play the label, the data management module sends a tone waveform table and volume to the data processing platform and receives an output voltmeter of the data processing module;
when the data management module sends and receives data information to the data transmission platform, the method comprises the following steps: when the GUI selects to record a label or tuning label, the data management module receives a waveform vector of the data transmission platform; when the GUI selects the play tab, the data management module communicates the tone waveform table, tone frequency, musical tone table, volume to the data transmission platform.
Further, after receiving the pickup waveform table transmitted by the data management module, the data processing module identifies the frequency and tone waveform table of the pickup waveform table and transmits the pickup waveform table and the tone waveform table to the data management module; the data processing module receives the tone color waveform table and the volume transmitted by the data management module, generates an output voltmeter and transmits the output voltmeter to the data management module;
the frequency identification of the pickup waveform table is carried out by identifying the number of repeated waveforms in the pickup waveform table, wherein the incomplete waveform is folded into decimal according to the length of the waveform read by the incomplete waveform, and the pickup frequency is the number of repeated waveforms;
tone color waveform identification of a pickup waveform table is carried out by cutting out a waveform of one cycle of the pickup waveform table, selecting a numerical value in which an absolute value is maximum, dividing all the numerical values in the waveform table of a single cycle by the maximum absolute value, and taking the numerical value as the tone color waveform table of the musical instrument.
Further, the data transmission platform is a virtual instrument, and has 44 variables of a double vector type output voltmeter, a double vector type music tone frequency table, a char array type key state and a double vector type pickup waveform table, and has functions of music playing, key identification and pickup waveform reading;
the music playing function is to call an analog output function of the virtual instrument SDK according to the output voltmeter and the music tone frequency table, the analog output channel CH1 outputs 5V square wave voltage of the music tone frequency, the analog output channel CH2 outputs the output voltmeter, the output period is the same as the reciprocal of the music tone frequency, each element in the output voltmeter divides the output period equally, and the music playing module is driven to play music;
the key recognition function is to call a digital input function in the SDK of the virtual instrument, read the key state and transmit the key state to the data management module;
the pickup waveform reading function is to call a virtual instrument analog input function, analog output of the pickup module is sampled by an analog input channel CH3, a pickup waveform table is obtained, and the pickup waveform table is transmitted to the data management module. The analog input sampling frequency is 4MHz, the single sampling depth is 256 points, and each pick-up sampling is 4000000 times.
Further, the database module calls a MySQL database in Qt, wherein the database comprises a tone color data table, a tone data table and a music data table, and the tone color data table comprises a sequence number, a tone name, a tone waveform table length and a tone waveform table 4 column; the serial number data type is int, the tone name data type is varchar, the tone waveform table length data type is int, the tone waveform table data type is varchar, as shown in the following table;
the tone data table comprises a sequence number, a tone and a frequency, wherein the sequence number data type is int, the tone data type is varchar, and the frequency data type is double, as shown in the following table;
the serial number of the music data sheet, the music name, the length of the music tone sheet and the column 4 of the music tone sheet are shown in the following table, wherein the serial number data type is int, the music name data type is varchar, the length data type of the music tone sheet is int, and the data type of the music tone sheet is varchar.
The tone waveform table length is the number of elements in the tone waveform table vector, and the musical tone table length is the number of elements in the musical tone table vector.
The method for converting the tone waveform table from double vector type to varchar type is as follows: converting each double type constant value in the vector into a character string, sequentially adding the character string to the tail of the varchar variable, and separating the values by using a tab; the method for converting the varchar type into the double vector type is as follows: and sequentially reading characters in the varchar variable, converting the character strings separated by the tab into double-type constant values, and sequentially adding the double-type constant values to the tail of the double-vector variable. The data conversion method of the tone waveform table is as follows:
the method for converting the music tone table from struct vector type to varchar type is as follows: each char array in the vector is added to the tail of the varchar variable, and the arrays are separated by a tab; the method for converting the varchar type into the struct vector type is as follows: and sequentially reading characters in the varchar variable, converting the character strings separated by the tab into struct type variable values, and sequentially adding the struct type variable values to the tail of the struct variable. The data conversion method of the musical tone table is as follows:
the music playing module comprises a 10Ω resistor, a 1kΩ resistor, an S8550 PNP transistor, a buzzer, a 5V power supply and ground. A 5V power supply connected with the emitter of the transistor; one end of the 1k omega resistor is connected with the base electrode of the transistor, and the other end of the 1k omega resistor is connected with the analog output channel CH 1; a 10Ω resistor, one end of which is connected with the collector of the transistor, and the other end of which is connected with the analog output channel CH 2; and one end of the buzzer is connected with the collector electrode of the transistor, and the other end of the buzzer is grounded, as shown in fig. 5.
The key module consists of 16 micro key switches, one end of which is grounded, and the other end of which is respectively connected with 16 digital input channels of the data transmission platform, as shown in fig. 6. When the key is not pressed, detecting a high level by the digital input; when a key is pressed, the digital input detects a low level.
The pickup module is composed of pickup sensors, VCC is connected with 5V voltage, GND is connected with ground, and analog output port AO is connected with analog input port CH3 of the data transmission platform, as shown in FIG. 7.
The number of devices and the scale of processing described herein are intended to simplify the description of the invention, and applications, modifications and variations of the invention will be apparent to those skilled in the art. Although embodiments of the present invention have been disclosed above, it is not limited to the details and embodiments shown and described, it is well suited to various fields of use for which the invention would be readily apparent to those skilled in the art, and accordingly, the invention is not limited to the specific details and illustrations shown and described herein, without departing from the general concepts defined in the claims and their equivalents.

Claims (10)

1. An electronic musical instrument and tuning machine based on virtual instruments, comprising:
the system comprises a data control processing platform, a data transmission platform connected with the data control processing platform in a bidirectional signal manner, a pickup module, a key module and an audio output module, wherein the pickup module, the key module and the audio output module are all connected with the data transmission platform in a unidirectional signal manner;
the data control processing platform comprises a data management module, a data processing module and a GUI module which are connected with the data management module in a bidirectional signal manner, and a database module which is connected with the data management module in a signal manner, wherein the GUI module is connected with a keyboard and a mouse in a signal manner;
the data transmission platform plays syllables through the audio output module, the key module acquires key information and the pickup module acquires tone information to be detected;
the GUI module acquires user instructions and user input data through a keyboard and a mouse and transmits the data to the data management module, and the data management module calls the data processing module, the database module and the data transmission platform according to different instructions.
2. The electronic musical instrument and tuning machine based on the virtual instrument as claimed in claim 1, wherein the GUI module writes interface codes through Qt and comprises an input label, a play label and a tuning label, each label is provided with a plurality of sections, and control information and data information are transmitted to the data management module in the GUI module through a mode of clicking the labels, the sections and inputting data through a keyboard so as to access different functions;
the tuning label comprises a pickup waveform display plate and a waveform frequency display plate, wherein the pickup waveform display plate is used for displaying a waveform chart obtained by pickup of a musical instrument to be tested, and the waveform frequency display plate is used for displaying the frequency of a waveform.
3. The electronic musical instrument and tuning machine based on the virtual instrument as claimed in claim 2, wherein the input label comprises a tone color input block and a music input block, wherein the tone color input block comprises the modes of file input, keyboard input and pickup input; the file recording and keyboard recording formats are string format audio and color names-double vector format music waveform table, the value of the double vector format music waveform table is-1.0, and the vector length is 0-255; the pick-up recording is carried out by reading the waveform of the single tone of the musical instrument, and waveform data is automatically converted into a file recording or keyboard recording format.
4. The electronic musical instrument and tuning device based on the virtual instrument as claimed in claim 3, wherein the music input block comprises a mode of file input and keyboard input, the input formats of the file input and the keyboard input are a string format music name-string vector format music score tone table, the string structure comprises 1 string type array with the length of 3, the string type array is used for respectively storing marks, semitones and octaves of tones, if no marks exist, the string type array is represented by space characters, and the string vector length is 0-2047;
when recording is performed through tone recording and music recording, only tone recording or music recording can be selected through a mouse.
5. The electronic musical instrument and tuning machine based on virtual instrument of claim 4, wherein the playing tag comprises a playing syllable block and a playing music block, wherein the playing syllable block comprises selecting tone, selecting corresponding key and mouse click playing function, selecting tone for selecting tone waveform table recorded in database, selecting tone for selecting tone existing in database; selecting a corresponding key to correspond the selected tone and the tone to the key, and playing the corresponding tone and tone when the key is pressed; the mouse click playing is used for playing corresponding tone and tone when the mouse clicks;
when the syllable playing block and the music playing block are used, syllables or music can be played only through the mouse.
6. The virtual instrument-based electronic musical instrument and tuning machine of claim 5, wherein when the data management module transmits and receives data information to the database, comprising the steps of: when the GUI selects to enter the label, the data management module stores tone color and music information acquired from the GUI module into a database respectively; when the GUI selects to play the label, the data management module acquires tone color, music and tone information from the database, converts the music tone and the music tone table into tone frequency and music tone frequency tables, transmits the tone name and the music name to the GUI module, and transmits the tone waveform table, the tone frequency and the music waveform table to the data transmission platform according to instructions of the GUI module;
when the data management module sends and receives data information to the data processing platform, the method comprises the following steps: when the GUI selects the recording label or the tuning label, the data management module transmits the pickup waveform table to the data processing module and receives waveform and frequency information of the data processing module; when the GUI selects to play the label, the data management module sends a tone waveform table and volume to the data processing platform and receives an output voltmeter of the data processing module;
when the data management module sends and receives data information to the data transmission platform, the method comprises the following steps: when the GUI selects to record a label or tuning label, the data management module receives a waveform vector of the data transmission platform; when the GUI selects the play tab, the data management module communicates the tone waveform table, tone frequency, musical tone table, volume to the data transmission platform.
7. The electronic musical instrument and tuning machine based on the virtual instrument as claimed in claim 1, wherein the data management module has 11 variables of string type tone names, double vector type tone waveform table, string list type tone name list, string type music names, struct vector type music tone table, double vector type music tone frequency table, string list type music name list, double type volume, double vector type output voltmeter, double vector type pickup waveform table, double type pickup frequency.
8. The electronic musical instrument and tuning machine based on the virtual instrument as claimed in claim 7, wherein the data processing module recognizes the frequency and tone waveform of the pickup waveform table after receiving the pickup waveform table transmitted from the data management module, and transmits the pickup waveform table to the data management module; the data processing module receives the tone color waveform table and the volume transmitted by the data management module, generates an output voltmeter and transmits the output voltmeter to the data management module;
the frequency identification of the pickup waveform table is carried out by identifying the number of repeated waveforms in the pickup waveform table, wherein the incomplete waveform is folded into decimal according to the length of the waveform read by the incomplete waveform, and the pickup frequency is the number of repeated waveforms;
tone color waveform identification of a pickup waveform table is carried out by cutting out a waveform of one cycle of the pickup waveform table, selecting a numerical value in which an absolute value is maximum, dividing all the numerical values in the waveform table of a single cycle by the maximum absolute value, and taking the numerical value as the tone color waveform table of the musical instrument.
9. The electronic musical instrument and tuning device based on the virtual instrument as claimed in claim 8, wherein the data transmission platform is a virtual instrument, and has 44 variables of a double vector type output voltmeter, a double vector type musical tone frequency table, a char array type key state and a double vector type pickup waveform table, and has functions of music playing, key identification and pickup waveform reading;
the music playing function is to call an analog output function of the virtual instrument SDK according to the output voltmeter and the music tone frequency table, the analog output channel CH1 outputs 5V square wave voltage of the music tone frequency, the analog output channel CH2 outputs the output voltmeter, the output period is the same as the reciprocal of the music tone frequency, each element in the output voltmeter divides the output period equally, and the music playing module is driven to play music;
the key recognition function is to call a digital input function in the SDK of the virtual instrument, read the key state and transmit the key state to the data management module;
the pickup waveform reading function is to call a virtual instrument analog input function, analog output of the pickup module is sampled by an analog input channel CH3, a pickup waveform table is obtained, and the pickup waveform table is transmitted to the data management module. The analog input sampling frequency is 4MHz, the single sampling depth is 256 points, and each pick-up sampling is 4000000 times.
10. The electronic musical instrument and tuning machine based on virtual instrument as claimed in claim 9, wherein the database module is configured to call MySQL database in Qt, the database comprising tone data table, tone data table and music data table, the tone data table comprising sequence number, tone name, tone waveform table length and tone waveform table 4; the tone data table includes sequence number, tone and frequency 3 columns; the music data list serial number, the music name, the music tone list length and the music tone list 4 are listed, the tone waveform list length is the number of elements in the tone waveform list vector, and the music tone list length is the number of elements in the music tone list vector.
CN202311126656.3A 2023-09-04 2023-09-04 Electronic musical instrument and tuning ware based on virtual instrument Pending CN117456970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311126656.3A CN117456970A (en) 2023-09-04 2023-09-04 Electronic musical instrument and tuning ware based on virtual instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311126656.3A CN117456970A (en) 2023-09-04 2023-09-04 Electronic musical instrument and tuning ware based on virtual instrument

Publications (1)

Publication Number Publication Date
CN117456970A true CN117456970A (en) 2024-01-26

Family

ID=89588037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311126656.3A Pending CN117456970A (en) 2023-09-04 2023-09-04 Electronic musical instrument and tuning ware based on virtual instrument

Country Status (1)

Country Link
CN (1) CN117456970A (en)

Similar Documents

Publication Publication Date Title
CN100429656C (en) Music search system and music search apparatus
CN101853650B (en) Music processing and output system and method thereof
CN101271457B (en) Music retrieval method and device based on rhythm
US5963957A (en) Bibliographic music data base with normalized musical themes
US20080190272A1 (en) Music-Based Search Engine
CN102568261A (en) Auxiliary musical instrument learning machine
CN201111744Y (en) Intelligent music learning and training device
CN1717716A (en) Musical composition data creation device and method
GB2070311A (en) Electronic musical instrument with keyboard
CN101876856B (en) Four-number Chinese character syllable input method
CN117456970A (en) Electronic musical instrument and tuning ware based on virtual instrument
CN113674584A (en) Comprehensive conversion method and comprehensive conversion system for various music scores
RU2484536C2 (en) Musical controller
CN204496740U (en) A kind of devices for learning musical instruments instrument
CN112669796A (en) Method and device for converting music into music book based on artificial intelligence
JPH04504006A (en) universal electronic musical instrument
US7534952B2 (en) Performance data processing apparatus and program
Darabi et al. Recognition of Dastgah and Maqam for Persian music with detecting skeletal melodic models
CN115329105B (en) Multimedia data matching method and device, storage medium and electronic equipment
JP2658780B2 (en) Tone selection device
TWI663593B (en) Optical pickup and string music translation system
US20230098657A1 (en) Sensor module, system of modules for a piano keyboard, and corresponding method
Freed The Fingerphone: a Case Study of Sustainable Instrument Redesign.
CN105894898A (en) Auxiliary device for electronic organ teaching and level examination and teaching and level examination method thereof
RU2577221C2 (en) Method for musical scripting (including notation) and musical text recording (versions)

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