CN116312430B - Electric tone key control method, apparatus, computer device, and storage medium - Google Patents

Electric tone key control method, apparatus, computer device, and storage medium Download PDF

Info

Publication number
CN116312430B
CN116312430B CN202310271528.1A CN202310271528A CN116312430B CN 116312430 B CN116312430 B CN 116312430B CN 202310271528 A CN202310271528 A CN 202310271528A CN 116312430 B CN116312430 B CN 116312430B
Authority
CN
China
Prior art keywords
key
target
audio
analysis result
song
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310271528.1A
Other languages
Chinese (zh)
Other versions
CN116312430A (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.)
Guangzhou Ziyun Technology Co ltd
Original Assignee
Guangzhou Ziyun 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 Guangzhou Ziyun Technology Co ltd filed Critical Guangzhou Ziyun Technology Co ltd
Priority to CN202310271528.1A priority Critical patent/CN116312430B/en
Publication of CN116312430A publication Critical patent/CN116312430A/en
Application granted granted Critical
Publication of CN116312430B publication Critical patent/CN116312430B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • G10H2210/00Aspects or methods of musical processing having intrinsic musical character, i.e. involving musical theory or musical parameters or relying on musical knowledge, as applied in electrophonic musical tools or instruments
    • G10H2210/031Musical analysis, i.e. isolation, extraction or identification of musical elements or musical parameters from a raw acoustic signal or from an encoded audio signal
    • G10H2210/081Musical analysis, i.e. isolation, extraction or identification of musical elements or musical parameters from a raw acoustic signal or from an encoded audio signal for automatic key or tonality recognition, e.g. using musical rules or a knowledge base
    • 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
    • G10H2210/00Aspects or methods of musical processing having intrinsic musical character, i.e. involving musical theory or musical parameters or relying on musical knowledge, as applied in electrophonic musical tools or instruments
    • G10H2210/155Musical effects
    • G10H2210/265Acoustic effect simulation, i.e. volume, spatial, resonance or reverberation effects added to a musical sound, usually by appropriate filtering or delays
    • G10H2210/281Reverberation or echo
    • G10H2210/285Electromechanical effectors therefor, i.e. using springs or similar electromechanical audio delay units

Abstract

The application relates to an electric tone key control method, an electric tone key control device, computer equipment and a storage medium. The method comprises the following steps: when an audio playing event of a system aiming at a target song is detected, audio stream data output by a target playing channel corresponding to the audio playing event at the current time is obtained; displaying the key analysis result at the current moment; the key analysis result is obtained based on the corresponding key of each audio frame; determining target key information corresponding to a target song according to a plurality of keys in a key analysis result at the current moment; synchronizing the target key information to audio host software of the system; the audio host software is loaded with a phone plug-in for generating phone effects that match the target song based on the target key information. By adopting the method, the key information of the played song can be automatically acquired, the electric tone can be automatically adjusted, the control efficiency of the electric tone is improved, the song key can be accurately acquired, and the generation of the matched electric tone effect is ensured.

Description

Electric tone key control method, apparatus, computer device, and storage medium
Technical Field
The present application relates to the field of computer technology, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for controlling an electric tone.
Background
With the development of sound card technology, the requirements for human sound processing based on sound card manufacturing effect are more and more extensive, for example, a sound plug-in can be adopted to generate a sound effect. Because different songs have different basic keys and musical scales, the traditional approach is typically for the user to manually search for the song keys and manually modify the keys, musical scales on the electrical audio plug-in. For users with non-music profession or weak music expertise, the traditional method is adopted to adjust the electric tone, so that the difficulty is high, the processing efficiency is low, and the accuracy is poor.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an electric tone control method, apparatus, computer device, storage medium, and computer program product that can solve the above-described problems.
In a first aspect, the present application provides a method for controlling a tone of an electric sound, the method comprising:
when an audio playing event of a system aiming at a target song is detected, acquiring audio stream data output by a target playing channel corresponding to the audio playing event at the current moment; the audio stream data includes a plurality of audio frames of the target song;
Displaying the key analysis result at the current time; the key analysis result is obtained based on the key corresponding to each audio frame, and the key analysis result is used for representing the weight corresponding to each of different keys obtained by analyzing the target song;
determining target key information corresponding to the target song according to a plurality of keys in the key analysis result at the current moment;
synchronizing the target key information to audio host software of the system; the audio host software is loaded with a phone plug-in for generating a phone effect matching the target song based on the target key information.
In one embodiment, before the step of obtaining the audio stream data output by the target playing channel corresponding to the audio playing event at the current time, the method further includes:
acquiring a plurality of play channels connected with the system, and determining a target play channel corresponding to the audio play event through available screening processing of the plurality of play channels;
and adopting an audio port module preset in the system to read the audio stream data output by the target playing channel in real time.
In one embodiment, the displaying the key analysis result at the current time includes:
determining the corresponding key of each audio frame at the current time;
determining the weight corresponding to each of the different key according to the number of the different key, and generating a key analysis result at the current time;
and displaying the key analysis result in a first area of a key display interface.
In one embodiment, after the step of determining the key corresponding to each of the audio frames at the current time, the method further includes:
according to the basic tone corresponding to each audio frame, displaying the basic tone of each audio frame and basic tone associated information thereof in real time in a second area of the basic tone display interface;
the method further comprises the steps of:
and in the continuous playing process of the target song, displaying the change condition of the key analysis result in the continuous playing process in the first area according to the continuously acquired audio stream data at a plurality of moments.
In one embodiment, the determining, according to the plurality of key in the key analysis result at the current time, target key information corresponding to the target song includes:
Taking the key corresponding to the maximum weight in the key analysis result at the current time as a target key at the current time, and obtaining target key information corresponding to the target song according to the target key;
the method further comprises the steps of:
and when the key change corresponding to the maximum weight in the key analysis result is detected, updating the target key information corresponding to the target song according to the changed key.
In one embodiment, the method further comprises:
when abnormal changes of target key at a plurality of moments in a preset time range are detected, according to the target key at the plurality of moments in the preset time range, the displayed key analysis result is adjusted.
In one embodiment, the method further comprises:
displaying a tone adjustment control in a third area of the tone display interface;
acquiring tone adjustment information corresponding to the target song in response to the operation of the tone adjustment control;
and updating target key information corresponding to the target song according to the tone adjustment information.
In a second aspect, the present application further provides an electric tone key control device, the device comprising:
The audio stream data acquisition module is used for acquiring audio stream data output by a target playing channel corresponding to an audio playing event at the current moment when the audio playing event of the system aiming at the target song is detected; the audio stream data includes a plurality of audio frames of the target song;
the key analysis result display module is used for displaying the key analysis result at the current moment; the key analysis result is obtained based on the key corresponding to each audio frame, and the key analysis result is used for representing the weight corresponding to each of different keys obtained by analyzing the target song;
the target key information determining module is used for determining target key information corresponding to the target song according to a plurality of keys in the key analysis result at the current moment;
the target key information synchronization module is used for synchronizing the target key information to audio host software of the system; the audio host software is loaded with a phone plug-in for generating a phone effect matching the target song based on the target key information.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the electric tone base control method as described above when the computer program is executed.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the electric tone control method as described above.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of the electric tone control method as described above.
According to the electric tone control method, the device, the computer equipment, the storage medium and the computer program product, when the audio playing event of the system for the target song is detected, the audio stream data which are output by the target playing channel corresponding to the audio playing event at the current moment are acquired, the audio stream data comprise a plurality of audio frames of the target song, the tone analysis result at the current moment is displayed, the tone analysis result is obtained based on the tone corresponding to each audio frame, the tone analysis result is used for representing the weight corresponding to each of different tones obtained by analyzing the target song, the target tone information corresponding to the target song is determined according to the plurality of tones in the tone analysis result at the current moment, the target tone information is synchronized to the audio host software of the system, the audio host software is loaded with the electric tone plug-in unit, the electric tone plug-in unit is used for generating the electric tone effect matched with the target song based on the target tone information, the automatic acquisition of the tone information of the played song is realized, the electric tone analysis result is automatically adjusted, the tone analysis is carried out on the basis of the audio stream data acquired in real time, the corresponding tone analysis result is displayed, the electric tone is not required to be manually controlled, the tone is accurately controlled, and the electric tone is accurately controlled.
Drawings
FIG. 1 is a flow chart of a method of tone control in one embodiment;
FIG. 2 is a schematic diagram of a key analysis result in one embodiment;
FIG. 3 is a schematic diagram of a playback channel in a system according to one embodiment;
FIG. 4 is a schematic diagram of an interface presentation in one embodiment;
FIG. 5 is a flow chart of another method of tone control in one embodiment;
fig. 6 is a block diagram showing a configuration of an electric tone control device in one embodiment;
FIG. 7 is an internal block diagram of a computer device in one embodiment.
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.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for presentation, analyzed data, etc.) related in the present application are both information and data authorized by the user or sufficiently authorized by each party; correspondingly, the application also provides a corresponding user authorization entry for the user to select authorization or select rejection.
In one embodiment, as shown in fig. 1, a method for controlling a tone is provided, and this embodiment is applied to a terminal for illustration, where the terminal may be, but is not limited to, a personal computer, a notebook computer, a smart phone, a tablet computer, an internet of things device, and a portable wearable device. In this embodiment, the method includes the steps of:
step 101, when an audio playing event of a system aiming at a target song is detected, audio stream data output by a target playing channel corresponding to the audio playing event at the current time is obtained; the audio stream data includes a plurality of audio frames of the target song;
wherein a client of the electronic tone control software may be turned on, through which an audio play event of the system for a target song is detected, e.g. when a system play of song a is detected, song a may be taken as the target song.
As an example, a system may have multiple playback devices (i.e., playback channels) for audio output, and when the system is detected to play song a, the playback device playing song a may be targeted to the playback channel.
In practical application, a plurality of playing channels connected by the system can be obtained, through the available screening processing of the plurality of playing channels, according to the detected audio playing event of the system for the target song, the target playing channel corresponding to the audio playing event is determined, so as to read the audio stream data output by the target playing channel in real time, further the audio stream data output by the target playing channel at the current moment can be obtained, and the audio stream data can comprise a plurality of audio frames of the target song, so that the audio frames are further subjected to the basic tone analysis.
Specifically, the client of the electric tone control software may collect the audio stream (i.e., output audio stream data) in the playing device (i.e., the target playing channel corresponding to the audio playing event), so as to perform real-time tone analysis on the obtained audio stream.
In an alternative embodiment, the system API (Application Programming Interface, application program interface) may be used to obtain the playback device (i.e., the target playback channel), and then the portaudio module with loop-back WASapi may be used to read the audio stream output by the playback device as audio stream data.
Step 102, displaying the key analysis result at the current time; the key analysis result is obtained based on the key corresponding to each audio frame, and the key analysis result is used for representing the weight corresponding to each of different keys obtained by analyzing the target song;
in a specific implementation, since the obtained audio stream data may include a plurality of audio frames of the target song, a key corresponding to each audio frame at the current time may be determined by analyzing a real-time key of the plurality of audio frames, and then weights corresponding to different keys may be determined according to the number of different keys, so as to generate a key analysis result at the current time and display the key analysis result.
In an example, as shown in fig. 2, the key analysis result may be displayed in a ranking list manner, and calculation may be performed based on the ranking list manner, so as to obtain weights corresponding to different keys analyzed for the currently playing song (i.e., the target song), so as to further determine the song key of the currently playing song. The ranking list mode may be a column diagram display mode, and may be identified by adopting columns with different colors or different textures for different key, for example, the height of each column corresponding to different key Bm, db, dbm, gbm, A, B, D, E, abm, am, dm, em in fig. 2 may represent the weight of the column, and other identification display modes may be adopted, which is not limited in this embodiment.
For example, the data of each audio frame at the current time may be obtained by analyzing the data of each audio frame, and then, according to the key corresponding to each audio frame, the key analysis result at the current time may be displayed in a ranking list manner.
In an optional embodiment, through analyzing the real-time key of the obtained audio stream, the corresponding musical scale of each audio frame at the current time can be obtained, and further the corresponding key and the corresponding musical scale of each audio frame at the current time can be displayed, and the corresponding key and the corresponding musical scale at the current time can also be displayed for the whole of the current time; other analyzed music theory related information can be displayed, and the embodiment is not particularly limited.
In yet another example, during the playing process of the target song, the client may continuously collect the audio stream data of the target song, and further, the ranking list data presented in the key analysis result may also continuously change incrementally, so that the more the audio stream data of the target song is collected for a longer time, the more accurate the song key of the currently playing target song is calculated based on the ranking list mode.
Step 103, determining target key information corresponding to the target song according to a plurality of keys in the key analysis result at the current time;
in practical application, aiming at a plurality of key in the key analysis result at the current time, the key corresponding to the maximum weight in the key analysis result can be used as the target key at the current time, and target key information corresponding to the target song, such as the song key of the currently played song, can be obtained according to the target key, so that the song played by the user can be directly obtained by the client, the key result of the song can be obtained based on weight calculation through real-time analysis, and the key of the song can be accurately identified.
For example, after a plurality of audio frames of a target song at the current moment are acquired, the key corresponding to each audio frame can be obtained and stored by analyzing each audio frame, and then the target key information corresponding to the target song can be obtained by calculating the key with the largest occurrence number at the latest moment in the playing process of the target song.
In an alternative embodiment, when it is detected that the key analysis result within a period of time (for example, 5 seconds) varies greatly, the 5 seconds segment may be determined to be a music climax segment of the target song, and then the key analysis result within 5 seconds may be used as the latest data, so as to implement the elastic output of the key analysis result.
Step 104, synchronizing the target key information to audio host software of the system; the audio host software is loaded with a phone plug-in for generating a phone effect matching the target song based on the target key information.
After the target key information is obtained, the target key information can be synchronized to the audio host software of the system, and because the audio host software can be loaded with the electric tone plug-in, the target key information can be synchronized to the electric tone plug-in of the audio host software.
In an example, the audio host software may be loaded with a plurality of plugins, such as reverberation, noise reduction, equalizer, electric plug-in, etc., and the electric plug-in needs to be consistent with the key of the accompaniment to achieve the effect of repairing the voice.
Compared with the traditional method, the technical scheme of the embodiment ensures that a user does not need to manually operate by automatically processing the whole flow of the electric tone control; by collecting the audio stream in real time, each audio frame can be analyzed in real time to obtain corresponding key analysis data, so that the client can elastically output a key analysis result according to the key analysis data of a plurality of audio frames, and analyze the key more accurately, so that the key analysis data can be dynamically and elastically changed, such as one key at the beginning of a song, and the climax fragment of the song is another key, and the actual change condition of the key of the song can be accurately presented.
According to the method for controlling the electric tone key, when the audio playing event of the system aiming at the target song is detected, the audio stream data output by the target playing channel corresponding to the audio playing event at the current moment is obtained, the key analysis result at the current moment is displayed, then the target key information corresponding to the target song is determined according to a plurality of keys in the key analysis result at the current moment, the target key information is synchronized to the audio host software of the system, the key information of the played song is automatically obtained and synchronized, the electric tone key is automatically adjusted, the key analysis is carried out on the audio stream data collected in real time, the corresponding key analysis result is displayed, manual searching and modifying operations are not needed, the control efficiency of the electric tone key is improved, the key of the song can be accurately obtained, and the generation of the matched electric tone effect is ensured.
In one embodiment, before the step of obtaining the audio stream data output by the target playing channel corresponding to the audio playing event at the current time, the method may further include the following steps:
acquiring a plurality of play channels connected with the system, and determining a target play channel corresponding to the audio play event through available screening processing of the plurality of play channels; and adopting an audio port module preset in the system to read the audio stream data output by the target playing channel in real time.
In an example, a plurality of playing devices (i.e., playing channels) connected by the system may be acquired, for example, by using a system API, and then whether each playing device is valid or not may be checked, for example, useless devices may be screened in a plurality of playing device modes, a target playing device (i.e., a target playing channel corresponding to an audio playing event) may be determined, and then a portaudio module (i.e., a preset audio port module) that loops back to WASapi may be used to intercept an audio stream, so as to read audio stream data output by the target playing device.
For example, as shown in fig. 3, the target playback device may be determined in a plurality of playback device modes, and used as a target playback channel corresponding to the audio playback event.
In this embodiment, by acquiring a plurality of playing channels connected by the system, and through available screening processing on the plurality of playing channels, a target playing channel corresponding to an audio playing event is determined, and then audio stream data output by the target playing channel is read in real time by adopting an audio port module preset in the system, so that audio stream data of songs played by a user are directly acquired by a client, and data support is provided for further key analysis.
In one embodiment, the displaying the key analysis result at the current time may include the following steps:
determining the corresponding key of each audio frame at the current time; determining the weight corresponding to each of the different key according to the number of the different key, and generating a key analysis result at the current time; and displaying the key analysis result in a first area of a key display interface.
In practical application, the current time may include a plurality of audio frames, for example, by capturing an audio stream, thousands of frames of data can be obtained per second, the obtained plurality of audio frames can be analyzed in real time, the music theory related data that are separated out and that correspond to the audio frames are determined, then the key and the scale of the currently playing song can be calculated by using a ranking list mode, for example, the weight can be determined according to the occurrence times of different keys, the key with the largest weight is determined to be the correct key of the second, and further the key analysis result at the current time can be generated.
In an example, as shown in fig. 4, the key analysis results may be presented in a first area of a key presentation interface. In the playing process of the target song, the client can continuously acquire the audio stream data of the target song, and further the ranking list data presented in the basic tone analysis result can also continuously change in an increasing mode, so that the longer the audio stream data acquisition time of the target song is, the more accurate the song basic tone of the currently played target song is calculated based on the ranking list mode.
In this embodiment, by determining the key corresponding to each audio frame at the current time, further determining the weights corresponding to different keys according to the number of different keys, generating the key analysis result at the current time, and displaying the key analysis result in the first area of the key display interface, the key analysis can be performed on the audio stream data acquired in real time, and the corresponding key analysis result is visually displayed, so that the user can acquire the song key.
In one embodiment, after the step of determining the key corresponding to each audio frame at the current time, the method may further include the steps of:
according to the basic tone corresponding to each audio frame, displaying the basic tone of each audio frame and basic tone associated information thereof in real time in a second area of the basic tone display interface;
The method further comprises the steps of:
and in the continuous playing process of the target song, displaying the change condition of the key analysis result in the continuous playing process in the first area according to the continuously acquired audio stream data at a plurality of moments.
In an example, as shown in fig. 4, in the second area of the key display interface, the key and the scale corresponding to each audio frame in the currently played song (i.e., the key of each audio frame and the key related information thereof) may be displayed in real time; in the playing process of the song, the client can continuously acquire the audio stream data of the song (namely, continuously acquire the audio stream data at a plurality of moments), and further, the ranking list data presented in the key analysis result can also continuously change in an increasing manner, namely, the change condition of the key analysis result in the continuous playing process is displayed in the first area.
In this embodiment, the key of each audio frame and the key related information thereof are displayed in real time in the second area of the key display interface according to the key corresponding to each audio frame, so that the key analysis can be performed on the audio stream data collected in real time, and the analyzed music theory related information is visually displayed.
In an embodiment, the determining, according to the plurality of key levels in the key level analysis result at the current time, the target key level information corresponding to the target song may include the following steps:
Taking the key corresponding to the maximum weight in the key analysis result at the current time as a target key at the current time, and obtaining target key information corresponding to the target song according to the target key;
in practical application, the key corresponding to the maximum weight in the key analysis result can be used as the target key at the current time, such as the key with the Bm being the first of the ranking list in fig. 2, and the target key information corresponding to the target song can be obtained according to the target key, such as the key with the Bm being the first of the ranking list in fig. 2, which can represent the currently played song.
The method further comprises the steps of:
and when the key change corresponding to the maximum weight in the key analysis result is detected, updating the target key information corresponding to the target song according to the changed key.
In a specific implementation, if the first result of the ranking list changes, that is, when the change of the key corresponding to the maximum weight in the key analysis result is detected, the target key information may be updated according to the changed key, and the target key information may be synchronously updated to the electric plug-in the audio host, as shown in fig. 2, if the number of occurrences of Db is detected to be higher than Bm, db may be determined as the correct key of the currently played song.
In this embodiment, by using the key corresponding to the maximum weight in the key analysis result at the current time as the target key at the current time, the target key information corresponding to the target song is obtained according to the target key, so that the song key can be accurately identified based on weight calculation in real-time analysis.
In one embodiment, the method may further comprise the steps of:
when abnormal changes of target key at a plurality of moments in a preset time range are detected, according to the target key at the plurality of moments in the preset time range, the displayed key analysis result is adjusted.
In an example, when an abnormal change (such as a large change) of the key analysis result within a preset time range (such as 5 seconds) is detected, the 5 seconds segment can be determined to be a music climax segment of a playing song, and then the key analysis result within 5 seconds can be used as the latest data, such as a ranking list, to directly give priority to the key of the music climax segment, so as to realize the result of the resilient output key analysis, and effectively display the dynamic change of the key of the song.
In this embodiment, when abnormal changes of the target key at a plurality of moments in a preset time range are detected, the displayed key analysis result is adjusted according to the target key at the plurality of moments in the preset time range, so that dynamic changes of the song key can be visually displayed.
In one embodiment, the method may further comprise the steps of:
displaying a tone adjustment control in a third area of the tone display interface; acquiring tone adjustment information corresponding to the target song in response to the operation of the tone adjustment control; and updating target key information corresponding to the target song according to the tone adjustment information.
In practical application, as shown in fig. 4, a tone adjustment control may be displayed in a third area of the tone display interface, such as "rising tone and falling tone" in fig. 4, a user may perform rising tone adjustment on a playing song, and in response to a user rising tone operation, the analyzed tone corresponding to the playing song (i.e., the target tone information corresponding to the target song) may be updated based on the changed song tone (i.e., the tone adjustment information).
In this embodiment, the tone adjustment control is displayed in the third area of the key display interface, so that the tone adjustment information corresponding to the target song is obtained in response to the operation of the tone adjustment control, and the target key information corresponding to the target song is updated according to the tone adjustment information, so that the identified song key can be flexibly updated based on the user operation.
In one embodiment, as shown in fig. 5, a flow chart of another method of electric tone control is provided. In this embodiment, the method includes the steps of:
In step 501, when an audio playing event of the system for a target song is detected, a plurality of playing channels connected with the system are acquired, and a target playing channel corresponding to the audio playing event is determined through available screening processing of the plurality of playing channels. In step 502, an audio port module preset in the system is adopted to read audio stream data output by a target playing channel in real time, and audio stream data output by the target playing channel at the current time is obtained; the audio stream data includes a plurality of audio frames of the target song. In step 503, the key corresponding to each audio frame at the current time is determined, and the weights corresponding to the different keys are determined according to the number of the different keys, so as to generate the key analysis result at the current time. In step 504, a key analysis result is presented in a first area of a key presentation interface; the key analysis result is used for representing the weight corresponding to each different key obtained by analyzing the target song. In step 505, the key corresponding to the maximum weight in the key analysis result at the current time is used as the target key at the current time, and the target key information corresponding to the target song is obtained according to the target key. In step 506, when it is detected that the key corresponding to the maximum weight in the key analysis result is changed, the target key information corresponding to the target song is updated according to the changed key. In step 507, synchronizing the target key information to the audio host software of the system; the audio host software is loaded with a phone plug-in for generating phone effects that match the target song based on the target key information. It should be noted that, the specific limitation of the above steps may be referred to the specific limitation of an electric tone control method, which is not described herein.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides an electric tone control device for realizing the electric tone control method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of one or more electric tone control devices provided below may refer to the limitation of the electric tone control method hereinabove, and will not be repeated here.
In one embodiment, as shown in fig. 6, there is provided an electric tone control apparatus comprising:
the audio stream data obtaining module 601 is configured to obtain, when an audio playing event of a system for a target song is detected, audio stream data output by a target playing channel corresponding to the audio playing event at a current time; the audio stream data includes a plurality of audio frames of the target song;
a key analysis result display module 602, configured to display a key analysis result at the current time; the key analysis result is obtained based on the key corresponding to each audio frame, and the key analysis result is used for representing the weight corresponding to each of different keys obtained by analyzing the target song;
a target key information determining module 603, configured to determine target key information corresponding to the target song according to a plurality of keys in the key analysis result at the current time;
a target key information synchronization module 604 for synchronizing the target key information to the audio host software of the system; the audio host software is loaded with a phone plug-in for generating a phone effect matching the target song based on the target key information.
In one embodiment, the apparatus further comprises:
the target playing channel determining module is used for acquiring a plurality of playing channels connected with the system and determining a target playing channel corresponding to the audio playing event through available screening processing of the plurality of playing channels;
and the real-time reading module is used for reading the audio stream data output by the target playing channel in real time by adopting an audio port module preset in the system.
In one embodiment, the key analysis result presentation module 602 includes:
an audio frame base determining sub-module, configured to determine a base corresponding to each audio frame at the current time;
the key analysis result generation sub-module is used for determining the weights corresponding to different keys according to the number of the different keys and generating the key analysis result at the current time;
and the first region display sub-module is used for displaying the key analysis result in the first region of the key display interface.
In one embodiment, the apparatus further comprises:
the second region display module is used for displaying the key of each audio frame and the key related information thereof in real time in a second region of the key display interface according to the key corresponding to each audio frame;
The apparatus further comprises:
and the change condition display module is used for displaying the change condition of the key analysis result in the continuous playing process in the first area according to the continuously acquired audio stream data at a plurality of moments in the continuous playing process of the target song.
In one embodiment, the target key information determining module 603 includes:
a target key determining sub-module, configured to use a key corresponding to a maximum weight in a key analysis result at the current time as a target key at the current time, and obtain target key information corresponding to the target song according to the target key;
the apparatus further comprises:
and the key updating module is used for updating the target key information corresponding to the target song according to the changed key when the key change corresponding to the maximum weight in the key analysis result is detected.
In one embodiment, the apparatus further comprises:
and the key analysis result adjustment module is used for adjusting the displayed key analysis result according to the target key at a plurality of moments in the preset time range when abnormal changes of the target key at a plurality of moments in the preset time range are detected.
In one embodiment, the apparatus further comprises:
the third region display module is used for displaying tone adjustment controls in a third region of the key display interface;
the tone adjustment module is used for responding to the operation of the tone adjustment control and acquiring tone adjustment information corresponding to the target song;
and the target key information updating module is used for updating the target key information corresponding to the target song according to the tone adjustment information.
The above-described individual modules in the electric tone control apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device 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 and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of electric tone base control. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
when an audio playing event of a system aiming at a target song is detected, acquiring audio stream data output by a target playing channel corresponding to the audio playing event at the current moment; the audio stream data includes a plurality of audio frames of the target song;
displaying the key analysis result at the current time; the key analysis result is obtained based on the key corresponding to each audio frame, and the key analysis result is used for representing the weight corresponding to each of different keys obtained by analyzing the target song;
determining target key information corresponding to the target song according to a plurality of keys in the key analysis result at the current moment;
Synchronizing the target key information to audio host software of the system; the audio host software is loaded with a phone plug-in for generating a phone effect matching the target song based on the target key information.
In one embodiment, the processor, when executing the computer program, also implements the steps of the electric tone control method in the other embodiments described above.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
when an audio playing event of a system aiming at a target song is detected, acquiring audio stream data output by a target playing channel corresponding to the audio playing event at the current moment; the audio stream data includes a plurality of audio frames of the target song;
displaying the key analysis result at the current time; the key analysis result is obtained based on the key corresponding to each audio frame, and the key analysis result is used for representing the weight corresponding to each of different keys obtained by analyzing the target song;
determining target key information corresponding to the target song according to a plurality of keys in the key analysis result at the current moment;
Synchronizing the target key information to audio host software of the system; the audio host software is loaded with a phone plug-in for generating a phone effect matching the target song based on the target key information.
In one embodiment, the computer program when executed by the processor also implements the steps of the electric tone control method in the other embodiments described above.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
when an audio playing event of a system aiming at a target song is detected, acquiring audio stream data output by a target playing channel corresponding to the audio playing event at the current moment; the audio stream data includes a plurality of audio frames of the target song;
displaying the key analysis result at the current time; the key analysis result is obtained based on the key corresponding to each audio frame, and the key analysis result is used for representing the weight corresponding to each of different keys obtained by analyzing the target song;
determining target key information corresponding to the target song according to a plurality of keys in the key analysis result at the current moment;
Synchronizing the target key information to audio host software of the system; the audio host software is loaded with a phone plug-in for generating a phone effect matching the target song based on the target key information.
In one embodiment, the computer program when executed by the processor also implements the steps of the electric tone control method in the other embodiments described above.
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, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (9)

1. A method of tone control, the method comprising:
when an audio playing event of a system aiming at a target song is detected, acquiring audio stream data output by a target playing channel corresponding to the audio playing event at the current moment; the audio stream data includes a plurality of audio frames of the target song;
displaying the key analysis result at the current time; the key analysis result is obtained based on the key corresponding to each audio frame, and the key analysis result is used for representing the weight corresponding to each of different keys obtained by analyzing the target song;
Determining target key information corresponding to the target song according to a plurality of keys in the key analysis result at the current moment;
synchronizing the target key information to audio host software of the system; the audio host software is loaded with a sound plug-in which is used for generating sound effects matched with the target songs based on the target key information;
the displaying the key analysis result under the current time comprises the following steps:
determining the corresponding key of each audio frame at the current time;
determining the weight corresponding to each of the different key according to the number of the different key, and generating a key analysis result at the current time;
displaying the key analysis result in a ranking list mode in a first area of a key display interface; the ranking list mode is used for controlling ranking list data presented in the key analysis result and continuously and incrementally changes along with the continuously collected audio stream data of the target song.
2. The method according to claim 1, wherein before the step of acquiring audio stream data output by the target playback channel corresponding to the audio playback event at the current time, the method further comprises:
Acquiring a plurality of play channels connected with the system, and determining a target play channel corresponding to the audio play event through available screening processing of the plurality of play channels;
and adopting an audio port module preset in the system to read the audio stream data output by the target playing channel in real time.
3. The method of claim 1, wherein after the step of determining the key corresponding to each of the audio frames at the current time, the method further comprises:
according to the basic tone corresponding to each audio frame, displaying the basic tone of each audio frame and basic tone associated information thereof in real time in a second area of the basic tone display interface;
the method further comprises the steps of:
and in the continuous playing process of the target song, displaying the change condition of the key analysis result in the continuous playing process in the first area according to the continuously acquired audio stream data at a plurality of moments.
4. The method according to claim 1, wherein the determining the target key information corresponding to the target song according to the plurality of keys in the key analysis result at the current time comprises:
taking the key corresponding to the maximum weight in the key analysis result at the current time as a target key at the current time, and obtaining target key information corresponding to the target song according to the target key;
The method further comprises the steps of:
and when the key change corresponding to the maximum weight in the key analysis result is detected, updating the target key information corresponding to the target song according to the changed key.
5. The method according to claim 1, wherein the method further comprises:
when abnormal changes of target key at a plurality of moments in a preset time range are detected, according to the target key at the plurality of moments in the preset time range, the displayed key analysis result is adjusted.
6. The method according to any one of claims 1 to 5, further comprising:
displaying a tone adjustment control in a third area of the tone display interface;
acquiring tone adjustment information corresponding to the target song in response to the operation of the tone adjustment control;
and updating target key information corresponding to the target song according to the tone adjustment information.
7. An electric tone control device, the device comprising:
the audio stream data acquisition module is used for acquiring audio stream data output by a target playing channel corresponding to an audio playing event at the current moment when the audio playing event of the system aiming at the target song is detected; the audio stream data includes a plurality of audio frames of the target song;
The key analysis result display module is used for displaying the key analysis result at the current moment; the key analysis result is obtained based on the key corresponding to each audio frame, and the key analysis result is used for representing the weight corresponding to each of different keys obtained by analyzing the target song;
the target key information determining module is used for determining target key information corresponding to the target song according to a plurality of keys in the key analysis result at the current moment;
the target key information synchronization module is used for synchronizing the target key information to audio host software of the system; the audio host software is loaded with a sound plug-in which is used for generating sound effects matched with the target songs based on the target key information;
wherein, the key analysis result display module includes:
an audio frame base determining sub-module, configured to determine a base corresponding to each audio frame at the current time;
the key analysis result generation sub-module is used for determining the weights corresponding to different keys according to the number of the different keys and generating the key analysis result at the current time;
The first region display sub-module is used for displaying the key analysis result in a ranking list mode in a first region of a key display interface; the ranking list mode is used for controlling ranking list data presented in the key analysis result and continuously and incrementally changes along with the continuously collected audio stream data of the target song.
8. 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.
9. 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 of any of claims 1 to 6.
CN202310271528.1A 2023-03-20 2023-03-20 Electric tone key control method, apparatus, computer device, and storage medium Active CN116312430B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310271528.1A CN116312430B (en) 2023-03-20 2023-03-20 Electric tone key control method, apparatus, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310271528.1A CN116312430B (en) 2023-03-20 2023-03-20 Electric tone key control method, apparatus, computer device, and storage medium

Publications (2)

Publication Number Publication Date
CN116312430A CN116312430A (en) 2023-06-23
CN116312430B true CN116312430B (en) 2024-01-02

Family

ID=86835688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310271528.1A Active CN116312430B (en) 2023-03-20 2023-03-20 Electric tone key control method, apparatus, computer device, and storage medium

Country Status (1)

Country Link
CN (1) CN116312430B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284080A (en) * 2018-09-04 2019-01-29 Oppo广东移动通信有限公司 Audio method of adjustment, device, electronic equipment and storage medium
CN113470670A (en) * 2021-06-30 2021-10-01 广州资云科技有限公司 Method and system for quickly switching tone of electric tone

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9992548B1 (en) * 2015-01-08 2018-06-05 The Directv Group, Inc. Audio scheduling and recording systems and methods

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284080A (en) * 2018-09-04 2019-01-29 Oppo广东移动通信有限公司 Audio method of adjustment, device, electronic equipment and storage medium
CN113470670A (en) * 2021-06-30 2021-10-01 广州资云科技有限公司 Method and system for quickly switching tone of electric tone

Also Published As

Publication number Publication date
CN116312430A (en) 2023-06-23

Similar Documents

Publication Publication Date Title
US11921778B2 (en) Systems, methods and apparatus for generating music recommendations based on combining song and user influencers with channel rule characterizations
CN109147826B (en) Music emotion recognition method and device, computer equipment and computer storage medium
KR20160015727A (en) Method and apparatus for visualizing music information
CN111888765B (en) Multimedia file processing method, device, equipment and medium
CN110377212B (en) Method, apparatus, computer device and storage medium for triggering display through audio
CN115691544A (en) Training of virtual image mouth shape driving model and driving method, device and equipment thereof
CN111966909A (en) Video recommendation method and device, electronic equipment and computer-readable storage medium
EP2905773B1 (en) Method of playing music based on chords and electronic device implementing the same
WO2015148420A1 (en) User inactivity aware recommendation system
CN109410972B (en) Method, device and storage medium for generating sound effect parameters
CN104681048A (en) Multimedia read control device, curve acquiring device, electronic equipment and curve providing device and method
CN116312430B (en) Electric tone key control method, apparatus, computer device, and storage medium
US11355093B2 (en) Technologies for tracking and analyzing musical activity
CN116312431B (en) Electric tone key control method, apparatus, computer device, and storage medium
CN109147819A (en) Audio-frequency information processing method, device and storage medium
CN116541454B (en) Event configuration method, device, computer equipment and storage medium
US20170330544A1 (en) Method and system for creating an audio composition
CN116259292B (en) Method, device, computer equipment and storage medium for identifying basic harmonic musical scale
CN114464210A (en) Sound processing method, sound processing device, computer equipment and storage medium
US20220245193A1 (en) Music streaming, playlist creation and streaming architecture
CN113438547B (en) Music generation method and device, electronic equipment and storage medium
KR20180098027A (en) Electronic device and method for implementing music-related application
Guajardo et al. OPTIMIZATION OF AUDIO CURATION FOR VENUES BASED ON REAL-TIME ANALYSIS OF USER RESPONSE
CN116758883A (en) Method for setting up mixed sound processing model, computer equipment and storage medium
CN117711362A (en) Chorus song generation method, computer device and storage medium

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