CN113112971A - Midi defective sound playing method - Google Patents

Midi defective sound playing method Download PDF

Info

Publication number
CN113112971A
CN113112971A CN202110338938.4A CN202110338938A CN113112971A CN 113112971 A CN113112971 A CN 113112971A CN 202110338938 A CN202110338938 A CN 202110338938A CN 113112971 A CN113112971 A CN 113112971A
Authority
CN
China
Prior art keywords
data
bluetooth
audio software
sound
key data
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.)
Granted
Application number
CN202110338938.4A
Other languages
Chinese (zh)
Other versions
CN113112971B (en
Inventor
张顶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Luobo Information Technology Co ltd
Original Assignee
Shanghai Luobo Information 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 Shanghai Luobo Information Technology Co ltd filed Critical Shanghai Luobo Information Technology Co ltd
Priority to CN202110338938.4A priority Critical patent/CN113112971B/en
Publication of CN113112971A publication Critical patent/CN113112971A/en
Application granted granted Critical
Publication of CN113112971B publication Critical patent/CN113112971B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/0033Recording/reproducing or transmission of music for electrophonic musical instruments
    • G10H1/0041Recording/reproducing or transmission of music for electrophonic musical instruments in coded form
    • G10H1/0058Transmission between separate instruments or between individual components of a musical system
    • G10H1/0066Transmission between separate instruments or between individual components of a musical system using a MIDI interface
    • 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
    • G10H1/0083Recording/reproducing or transmission of music for electrophonic musical instruments using wireless transmission, e.g. radio, light, infrared
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10009Improvement or modification of read or write signals
    • G11B20/10037A/D conversion, D/A conversion, sampling, slicing and digital quantisation or adjusting parameters thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

The invention relates to the technical field of Bluetooth data transmission, and particularly discloses a midi defective sound playing method which is used for avoiding the problems of audio software data loss and the like in an intelligent auxiliary participation manner under the condition that data are lost due to Bluetooth instability by arranging a midi signal data restoration algorithm in an audio software host, so that the problem that sound cannot be closed in a specific scene of losing Bluetooth midi signals is solved, the accidents of music software caused by Bluetooth problems are reduced, and meanwhile, the interference of the Bluetooth instability on the Bluetooth can be reduced or avoided in the scene.

Description

Midi defective sound playing method
Technical Field
The invention relates to the technical field of Bluetooth data transmission, in particular to a midi defective sound playing method.
Background
In the real life, electronic musical instruments are more and more popularized, and can be seen in occasions such as parks, stage performances and the like, along with the popularization and the convenient carrying of Bluetooth, the electronic musical instruments are more and more combined with the Bluetooth, the electronic musical instruments are not interfered by wires to the greatest extent, but the electronic musical instruments are not as much as possible in the aspect of midi electronic signal transmission, under the dual requirements on real-time performance and stability, the Bluetooth also highlights the defects of the electronic musical instruments, occasionally, signal loss can occur to a certain extent under long-time playing, and continuous sound occurs to audio software due to a small part of data until the audio software is closed, so that the operation is extremely inconvenient. Therefore, there is a need for a data processing system associated with midi digital signals to solve the above problems.
Disclosure of Invention
The invention aims to provide a midi aphonia playing method to solve the problems in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme: a midi aphonia sound playing method comprises the following specific steps:
s1: electronic equipment passes through bluetooth connection audio software host, and the data conversion that bluetooth sent electronic equipment is midi digital signal transmission to audio software host, and the data format that the bluetooth sent is: (-124, -56, -128,45,63, -51, -112,43,630.);
s2: the audio software host splits and analyzes the data sent by the Bluetooth through a data repair algorithm, fixedly discards the first two bits of data in the data group after copying the original data sent by the Bluetooth, and then performs bit operation on the first bit of data in the data group: and carrying key data for controlling the sound size and breath control in the data meeting bit operation: after cc2, cc11, cc7, 80 and 90 are extracted, 2-bit data are cut off in the same direction, and a group of effective key data is obtained: (-128,45, 63);
s3: marking the key data with volume identification, recording the current system time as s, recording the data analysis times as n, skipping data which do not meet the algorithm requirement, and then continuously repeating the operation;
s4: extracting the marked key data through a self-checking module, wherein the extraction period of each time of the key data is defaulted to be 100ms, recording a time mark m carried by the corresponding key data after each time of data extraction, calculating the accumulated time mark m and the recorded times s to obtain an average time value n of data extraction, and recording the average value n; storing the extracted key data which are related to the sound and have volume identification into a data pool;
s5: when the correct data is not analyzed and extracted continuously in the subsequent extraction period or the data is lost due to the instability of Bluetooth transmission, assembling a data group with volume identification from the data pool according to a data format which starts with 80 and has the length of 3 bits, carrying out bit operation on the assembled data, inverting to obtain (-128), and matching the data which also starts with (-128) in the data pool according to (-128), such as (-128,45, 63); when the sound of the audio software needs to be controlled to be closed, only the third digit in the matched array needs to be changed into 0, and the changed data group is sent to the audio software, so that the operation of closing the sound of the audio software is realized; similarly, the rest of the key data for controlling the sound size and breath control: the cc2, cc11, cc7 and cc 90 assist in generating corresponding critical data sets for assisting in sending auxiliary data to restore the relevant critical data to a healthy state.
As a preferable aspect of the present invention, when the playing rhythm of the electronic device is accelerated, the data receiving frequency of the audio software host is accelerated synchronously, and in this case, the average value n is smaller than the default period of 100ms, the extraction period of the key data is replaced with the average value n, and the average value n is synchronized as the time threshold for turning off the sound.
As a preferred scheme of the invention, when the Bluetooth data is normal, the key data is directly forwarded to the audio software through the audio software host.
As a preferred scheme of the invention, when data loss occurs in Bluetooth, the key data is reassembled through a data recovery algorithm, and the assembled data is sent to the audio software in a remote interface callback mode, so that the audio software can mistakenly assume that the electronic equipment continues to send related events, and the audio software is ensured to normally make sound.
As a preferable aspect of the present invention, the electronic device is an electronic musical device including an electronic piano and an electronic saxophone.
As a preferable scheme of the present invention, the music software host is a software terminal device including a mobile phone and a computer.
Compared with the prior art, the invention has the beneficial effects that:
the midi signal data recovery algorithm is arranged in the audio software host of the audio software host, and is used for avoiding the problems of data loss and the like of the audio software in the intelligent auxiliary participation in the behavior of a user under the condition that data is lost due to unstable Bluetooth, so that the problem that the sound cannot be closed under the specific scene of losing the Bluetooth midi signal can be solved, the accidents of the music software caused by the Bluetooth problem can be reduced, and meanwhile, the interference of the unstable Bluetooth on the Bluetooth can be reduced or avoided under the scene.
Drawings
FIG. 1 is an overall workflow diagram of the present invention;
FIG. 2 is a detailed workflow diagram of the data repair algorithm of the present invention;
FIG. 3 is a data processing flow diagram of the data repair algorithm of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Referring to fig. 1-3, the present invention provides a technical solution: a midi aphonia sound playing method comprises the following specific steps:
s1: electronic equipment passes through bluetooth connection audio software host, and the data conversion that bluetooth sent electronic equipment is midi digital signal transmission to audio software host, and the data format that the bluetooth sent is: (-124, -56, -128,45,63, -51, -112,43,630.);
s2: the audio software host splits and analyzes the data sent by the Bluetooth through a data repair algorithm, fixedly discards the first two bits of data in the data group after copying the original data sent by the Bluetooth, and then performs bit operation on the first bit of data in the data group: and carrying key data for controlling the sound size and breath control in the data meeting bit operation: after cc2, cc11, cc7, 80 and 90 are extracted, 2-bit data are cut off in the same direction, and a group of effective key data is obtained: (-128,45, 63);
s3: marking the key data with volume identification, recording the current system time as s, recording the data analysis times as n, skipping data which do not meet the algorithm requirement, and then continuously repeating the operation;
s4: extracting the marked key data through a self-checking module, wherein the extraction period of each time of the key data is defaulted to be 100ms, recording a time mark m carried by the corresponding key data after each time of data extraction, calculating the accumulated time mark m and the recorded times s to obtain an average time value n of data extraction, and recording the average value n; storing the extracted key data which are related to the sound and have volume identification into a data pool;
s5: when the correct data is not analyzed and extracted continuously in the subsequent extraction period or the data is lost due to the instability of Bluetooth transmission, assembling a data group with volume identification from the data pool according to a data format which starts with 80 and has the length of 3 bits, carrying out bit operation on the assembled data, inverting to obtain (-128), and matching the data which also starts with (-128) in the data pool according to (-128), such as (-128,45, 63); when the sound of the audio software needs to be controlled to be closed, only the third digit in the matched array needs to be changed into 0, and the changed data group is sent to the audio software, so that the operation of closing the sound of the audio software is realized; similarly, the rest of the key data for controlling the sound size and breath control: the cc2, cc11, cc7 and cc 90 assist in generating corresponding critical data sets for assisting in sending auxiliary data to restore the relevant critical data to a healthy state.
As a preferable aspect of the present invention, when the playing rhythm of the electronic device is accelerated, the data receiving frequency of the audio software host is accelerated synchronously, and in this case, the average value n is smaller than the default period of 100ms, the extraction period of the key data is replaced with the average value n, and the average value n is synchronized as the time threshold for turning off the sound.
As a preferred scheme of the invention, when the Bluetooth data is normal, the key data is directly forwarded to the audio software through the audio software host.
As a preferred scheme of the invention, when data loss occurs in Bluetooth, the key data is reassembled through a data recovery algorithm, and the assembled data is sent to the audio software in a remote interface callback mode, so that the audio software can mistakenly assume that the electronic equipment continues to send related events, and the audio software is ensured to normally make sound.
As a preferable aspect of the present invention, the electronic device is an electronic musical device including an electronic piano and an electronic saxophone.
As a preferable scheme of the present invention, the music software host is a software terminal device including a mobile phone and a computer.
The working principle is as follows: in the scheme, a data recovery algorithm of a midi digital signal is added into an audio software host, the midi digital signal sent by the electronic equipment through Bluetooth is analyzed through the data recovery algorithm, key data cc2, cc11, cc7, 80 and 90 for controlling the sound size and breath are extracted, and when a related key value n of the control sound is received, a mark named volume is added to the corresponding key data to record that the electronic equipment sends the midi digital signal, which indicates that the electronic equipment has sound emission;
when the electronic equipment is continuously in the playing state, key data such as cc2, cc11, cc7, 80, 90 and the like are continuously transmitted to the audio software, when the midi digital signal transmission is lost in the middle, the audio software host can not receive the key data of cc2, cc11, cc7, 80 and 90 for a certain period of time, when the self-checking module continuously extracts and self-checks the marked key data in the data pool, if the data updating time exceeds a time threshold n, the key data is subjected to auxiliary processing, the supplementary transmission of the data of cc2, cc11, cc7, 80, 90, etc. (non-electronic device transmission) is carried out under the intervention of the data repair algorithm, so that the audio software mistakes the electronic device to continue transmitting the related events, therefore, the operation of turning off the sound of the audio software is carried out under the condition that the midi digital signal transmission of the Bluetooth is unstable, and the related data are recovered to the health state.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (6)

1. A midi imperfect sound playing method is characterized in that: the method comprises the following specific steps:
s1: electronic equipment passes through bluetooth connection audio software host, and the data conversion that bluetooth sent electronic equipment is midi digital signal transmission to audio software host, and the data format that the bluetooth sent is: (-124, -56, -128,45,63, -51, -112,43,630.);
s2: the audio software host splits and analyzes the data sent by the Bluetooth through a data repair algorithm, fixedly discards the first two bits of data in the data group after copying the original data sent by the Bluetooth, and then performs bit operation on the first bit of data in the data group: the data satisfying the bit operation (128 &0xF0) ((byte) 0x 80) carries key data related to controlling sound size and breath control: after cc2, cc11, cc7, 80 and 90 are extracted, 2-bit data are cut off in the same direction, and a group of effective key data is obtained: (-128,45, 63);
s3: marking the key data with volume identification, recording the current system time as s, recording the data analysis times as n, skipping data which do not meet the algorithm requirement, and then continuously repeating the operation;
s4: extracting the marked key data through a self-checking module, wherein the extraction period of each time of the key data is 100ms by default, recording a time identifier m carried by the corresponding key data after each time of data extraction, calculating the accumulated time identifier m and the recorded times s through m/s-n to obtain an average time value n of data extraction, and recording an average value n; storing the extracted key data which are related to the sound and have volume identification into a data pool;
s5: when the correct data is not analyzed and extracted continuously in the subsequent extraction period or the data is lost due to the unstable Bluetooth transmission, assembling a data group with volume identification from a data pool according to a data format which starts with 80 and has a length of 3 bits, carrying out bit operation on the assembled data, inverting to obtain (-128), and matching the data which starts with (-128) in the data pool according to the (-128); when the sound of the audio software needs to be controlled to be closed, only the third digit in the matched array needs to be changed into 0, and the changed data group is sent to the audio software, so that the operation of closing the sound of the audio software is realized; similarly, the rest of the key data for controlling the sound size and breath control: the cc2, cc11, cc7 and cc 90 assist in generating corresponding key data sets for assisting in sending the key data to restore the key data to a healthy state.
2. The midi music playback method as set forth in claim 1, wherein: when the playing rhythm of the electronic equipment is accelerated, the data receiving frequency of the audio software host is synchronously accelerated, at the moment, the average value n is smaller than the default period of 100ms, the extraction period of the key data is replaced by the average value n, and meanwhile, the synchronization of the average value n is used as the time threshold value for closing the sound.
3. The midi music playback method as set forth in claim 1, wherein: when the Bluetooth data is normal, the key data is directly forwarded to the audio software through the audio software host.
4. The midi music playback method as set forth in claim 1, wherein: when data loss occurs in Bluetooth, key data are reassembled through a data repair algorithm, and the assembled data are sent to audio software in a remote interface callback mode, so that the audio software can mistakenly assume that the electronic equipment continues to send related events, and the audio software is guaranteed to normally make sound.
5. The midi music playback method as set forth in claim 1, wherein: the electronic equipment is electronic music equipment comprising an electronic piano and an electronic saxophone.
6. The midi music playback method as set forth in claim 1, wherein: the music software host is software terminal equipment comprising a mobile phone and a computer.
CN202110338938.4A 2021-03-30 2021-03-30 Midi defective sound playing method Active CN113112971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110338938.4A CN113112971B (en) 2021-03-30 2021-03-30 Midi defective sound playing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110338938.4A CN113112971B (en) 2021-03-30 2021-03-30 Midi defective sound playing method

Publications (2)

Publication Number Publication Date
CN113112971A true CN113112971A (en) 2021-07-13
CN113112971B CN113112971B (en) 2022-08-05

Family

ID=76713097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110338938.4A Active CN113112971B (en) 2021-03-30 2021-03-30 Midi defective sound playing method

Country Status (1)

Country Link
CN (1) CN113112971B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3544976A (en) * 1968-07-02 1970-12-01 Collins Radio Co Digitalized communication system with computation and control capabilities employing transmission line loop for data transmission
EP0463411A2 (en) * 1990-06-28 1992-01-02 Casio Computer Company Limited Musical tone waveform generation apparatus
JPH10319956A (en) * 1997-05-22 1998-12-04 Yamaha Corp Data editing device and medium recording data editing program
AU2002237914A1 (en) * 2001-01-24 2002-08-06 Nokia Corporation System and method for error concealment in digital audio transmission
JP2005208875A (en) * 2004-01-22 2005-08-04 Hitachi Software Eng Co Ltd Metadata distribution method
GB0514246D0 (en) * 2005-07-12 2005-08-17 Hockley Julian M Data storage system
CN101354883A (en) * 2008-09-05 2009-01-28 北京工业大学 Method for protecting Midi audio data
CN101841394A (en) * 2010-06-09 2010-09-22 中南大学 Method for measuring and calculating document transmission energy consumption of Bluetooth equipment and device thereof
US20110217950A1 (en) * 2010-03-05 2011-09-08 Alan Kozlay Apparatus & method to improve pairing security in Bluetooth™ headsets & earbuds
CN105511606A (en) * 2015-11-27 2016-04-20 深圳还是威健康科技有限公司 Data transmission method and device
CN107135413A (en) * 2017-03-20 2017-09-05 福建天泉教育科技有限公司 A kind of audio and video synchronization method and system
CN107451015A (en) * 2017-08-08 2017-12-08 四川长虹电器股份有限公司 A kind of intelligent television critical data backup and data reconstruction method
US20210055993A1 (en) * 2019-08-19 2021-02-25 Anthony Mai Methods and Apparatuses for Robust Data Partition And Recovery

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3544976A (en) * 1968-07-02 1970-12-01 Collins Radio Co Digitalized communication system with computation and control capabilities employing transmission line loop for data transmission
EP0463411A2 (en) * 1990-06-28 1992-01-02 Casio Computer Company Limited Musical tone waveform generation apparatus
JPH10319956A (en) * 1997-05-22 1998-12-04 Yamaha Corp Data editing device and medium recording data editing program
AU2002237914A1 (en) * 2001-01-24 2002-08-06 Nokia Corporation System and method for error concealment in digital audio transmission
JP2005208875A (en) * 2004-01-22 2005-08-04 Hitachi Software Eng Co Ltd Metadata distribution method
GB0514246D0 (en) * 2005-07-12 2005-08-17 Hockley Julian M Data storage system
CN101354883A (en) * 2008-09-05 2009-01-28 北京工业大学 Method for protecting Midi audio data
US20110217950A1 (en) * 2010-03-05 2011-09-08 Alan Kozlay Apparatus & method to improve pairing security in Bluetooth™ headsets & earbuds
CN101841394A (en) * 2010-06-09 2010-09-22 中南大学 Method for measuring and calculating document transmission energy consumption of Bluetooth equipment and device thereof
CN105511606A (en) * 2015-11-27 2016-04-20 深圳还是威健康科技有限公司 Data transmission method and device
CN107135413A (en) * 2017-03-20 2017-09-05 福建天泉教育科技有限公司 A kind of audio and video synchronization method and system
CN107451015A (en) * 2017-08-08 2017-12-08 四川长虹电器股份有限公司 A kind of intelligent television critical data backup and data reconstruction method
US20210055993A1 (en) * 2019-08-19 2021-02-25 Anthony Mai Methods and Apparatuses for Robust Data Partition And Recovery

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
BRIAN SENESE等: "蓝牙实现技术", 《无线电工程》 *

Also Published As

Publication number Publication date
CN113112971B (en) 2022-08-05

Similar Documents

Publication Publication Date Title
CN100588279C (en) Method and apparatus for outputting audio data and musical score image
CN103250205B (en) Audio fingerprint differences for end-to-end quality of experience measurement
US6753882B2 (en) Wrist audio player system and wrist audio player device
CN102576562B (en) Automatic generation of metadata for audio dominance effects
CN106297844A (en) The universal container of voice data
CN200990152Y (en) Studying machine capable of making pronunciation correction
WO2020237886A1 (en) Voice and text conversion transmission method and system, and computer device and storage medium
CN101262418A (en) Transmission of a digital message interspersed throughout a compressed information signal
CN111107284B (en) Real-time generation system and generation method for video subtitles
CN111142066A (en) Direction-of-arrival estimation method, server, and computer-readable storage medium
KR20020073533A (en) Reproduction system and reproduction method and data transmission device and data transmission method
CN113112971B (en) Midi defective sound playing method
US20230122545A1 (en) Bit stream generation method, encoding device, and decoding device
JP2003177776A (en) Minutes recording system
CN1150448C (en) Dictation and transcription appts
JP2002056006A (en) Video/voice retrieving device
CN111445742B (en) Vocal music teaching system based on distance education system
CN1062365C (en) A method of transmitting and receiving coded speech
CN102063919A (en) Digital audio time domain compression method based on audio fragment segmentation
WO2011078418A1 (en) Multi-tracking method of audio file for minimizing loss of sound quality, recording medium for recording program that executes same, and web server used therefor
JP2009033649A (en) Content data transmitting/receiving system, content data transmitting device, content data receiving device, content data transmission method, content data reception processing method
JP2020178262A (en) Live subtitle shaping processing device and program
JP3486185B1 (en) Performance information compression device, performance information decoding device, performance information compression method, performance information decoding method, performance information compression program, performance information decoding program
JP2003280645A (en) Method for compressing music data
CN110636074B (en) Double-row key tone automatic issuing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: Room 1201-14, No. 127 Guotong Road, Yangpu District, Shanghai, 200000

Patentee after: Shanghai Luobo Information Technology Co.,Ltd.

Address before: 200433 16th Floor, 127 Guodao Road, Yangpu District, Shanghai (Centralized Registration Place)

Patentee before: Shanghai Luobo Information Technology Co.,Ltd.

CP02 Change in the address of a patent holder