Method, device and storage medium for simulating glissando audio and electronic device
By acquiring the intensity change curves of glissando and monotone audio, the target intensity change curve is determined, and glissando audio is simulated, thus solving the problem of low efficiency in glissando audio simulation and achieving efficient glissando audio simulation.
Patent Information
- Application Number
- CN202310922550.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-25
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-07-25
AI Technical Summary
The efficiency of glissando audio simulation is low, and existing technologies have failed to effectively solve the inefficiency problem caused by massive audio sampling.
By obtaining the intensity change curves of glissando sample audio and single-tone sample audio, the target intensity change curve is determined. This curve is then used to simulate the target glissando audio, reducing the number of audio samples used and improving simulation efficiency.
This reduces the amount of audio used in the glissando audio simulation process, thus improving simulation efficiency.
Smart Images

Figure CN117275527B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers, and more specifically, to a method, apparatus, storage medium, and electronic device for simulating glissando audio. Background Technology
[0002] In simulating glissando audio, it's necessary to record as many audio samples as possible. However, because the combinations of music are infinite, relying solely on recording would require a massive amount of audio samples, leading to low simulation efficiency for glissando audio. Therefore, the simulation efficiency of glissando audio suffers from this problem.
[0003] There is currently no effective solution to the above problems. Summary of the Invention
[0004] This application provides a method, apparatus, storage medium, and electronic device for simulating glissando audio, to at least solve the technical problem of low simulation efficiency of glissando audio.
[0005] According to one aspect of the embodiments of this application, a method for simulating glissando audio is provided, comprising: acquiring glissando sample audio and single-tone sample audio, wherein the glissando sample audio and the single-tone sample audio have the same starting pitch; acquiring a first intensity change curve corresponding to the glissando sample audio and a second intensity change curve corresponding to the single-tone sample audio, wherein the first intensity change curve is used to represent the energy or amplitude of the glissando sample audio at different frequencies, and the second intensity change curve is used to represent the energy or amplitude of the single-tone sample audio at different frequencies; determining a target intensity change curve based on the first intensity change curve and the second intensity change curve, wherein the target intensity change curve is used to represent the energy or amplitude change of the single-tone sample audio at different frequencies caused by glissando; and simulating a target glissando audio by using the target intensity change curve to perform energy or amplitude changes on a target single-tone audio matched with the target single-tone identifier in response to a glissando operation triggered by a target single-tone identifier.
[0006] According to another aspect of the embodiments of this application, a device for simulating glissando audio is also provided, comprising: a first acquisition unit, configured to acquire glissando sample audio and single-tone sample audio, wherein the starting pitch of the glissando sample audio and the single-tone sample audio are the same; a second acquisition unit, configured to acquire a first intensity change curve corresponding to the glissando sample audio and a second intensity change curve corresponding to the single-tone sample audio, wherein the first intensity change curve represents the energy or amplitude of the glissando sample audio at different frequencies, and the second intensity change curve represents the energy or amplitude of the single-tone sample audio at different frequencies; a determination unit, configured to determine a target intensity change curve based on the first intensity change curve and the second intensity change curve, wherein the target intensity change curve represents the energy or amplitude change of the single-tone sample audio at different frequencies caused by glissando; and a simulation unit, configured to, in response to a glissando operation triggered by a target single-tone identifier, perform energy or amplitude changes on a target single-tone audio matched by the target single-tone identifier using the target intensity change curve, thereby simulating a target glissando audio.
[0007] As an optional solution, the simulation unit includes: a first acquisition module for acquiring various target frequencies associated with the target monotone audio; a first determination module for determining intensity change information matching the various target frequencies from the target intensity change curves, wherein the intensity change information is used for the energy or amplitude changes of the target monotone audio at the various target frequencies due to glissando; and a first simulation module for using the intensity change information to gain / attenuate the energy or amplitude of the target monotone audio at the various target frequencies to simulate the target glissando audio, wherein the energy or amplitude of the target glissando audio at the various target frequencies matches the energy or amplitude of the target monotone audio at the various target frequencies according to the intensity change information.
[0008] As an optional solution, the second acquisition unit includes: a second acquisition module, used to acquire the first intensity variation curve representing the energy or amplitude of the glissando sample audio at N key frequencies, and the second intensity variation curve representing the energy or amplitude of the single-tone sample audio at the N key frequencies, wherein the N key frequencies include the target frequency.
[0009] As an optional solution, the second acquisition module includes: a first transformation submodule, used to perform a short-time Fourier transform on the glissando sample audio to obtain a first intensity data matrix of the full frequency of the glissando sample audio at each time point; and to determine the first intensity change curves corresponding to the N key frequencies from the first intensity data matrix; and a second transformation submodule, used to perform the short-time Fourier transform on the single-tone sample audio to obtain a second intensity data matrix of the full frequency of the single-tone sample audio at each time point; and to determine the second intensity change curves corresponding to the N key frequencies from the second intensity data matrix.
[0010] As an optional solution, the aforementioned determining unit includes: a subtraction module, used to obtain the target intensity change curve by subtracting the values of the first intensity change curve and the second intensity change curve point by point.
[0011] As an optional solution, the above-mentioned device further includes: a third acquisition module, used to acquire an initial glissando sample audio before obtaining the target intensity change curve by subtracting the values of the first intensity change curve and the second intensity change curve point by point, wherein the initial glissando sample audio and the single-tone sample audio have the same starting pitch; and a processing module, used to process the initial glissando sample audio into a glissando sample audio with a fundamental frequency change amount less than or equal to a preset threshold before obtaining the target intensity change curve by subtracting the values of the first intensity change curve and the second intensity change curve point by point.
[0012] As an optional solution, the above processing module includes: an acquisition submodule, used to acquire the fundamental frequency variation curve corresponding to the initial glissando sample audio, wherein the fundamental frequency variation curve is used to represent the change of the fundamental frequency of the initial glissando sample audio over time; a division submodule, used to divide the glissando sample audio into multiple audio segments according to the time axis resolution of the fundamental frequency variation curve; a conversion submodule, used to convert the fundamental frequency variation curve inversely into an inversely proportional sample density variation curve; and a sampling submodule, used to reverse resample the multiple audio segments according to the inversely proportional sample density variation curve, and supplement new audio segments through the reverse resampling to obtain the glissando sample audio.
[0013] As an optional solution, the above-mentioned device further includes: a scaling submodule, used to scale the second time axis of the first intensity change curve according to the first time axis of the second intensity change curve before obtaining the target intensity change curve by subtracting the values of the first intensity change curve and the second intensity change curve point by point, wherein the first time axis corresponds to the second time axis after the scaling process.
[0014] As an optional solution, the above-mentioned device further includes: a sampling unit, used to sample the response of the physical instrument to be simulated using a sweep frequency test signal and a white noise test signal respectively before simulating the target glissando audio by varying the energy or amplitude of the target monotone audio matched with the target monotone identifier using the target intensity change curve, thereby obtaining a sweep frequency response signal and an impulse response signal, wherein the sweep frequency test signal is a signal whose frequency changes continuously within a certain frequency range, the white noise test signal is a random signal with a uniform spectral distribution, the sweep frequency response signal is the response signal of the physical instrument after receiving the sweep frequency test signal, and the impulse response signal is the response signal of the physical instrument after receiving the white noise test signal; and a difference unit, used to acquire the sweep frequency test signal before simulating the target glissando audio by varying the energy or amplitude of the target monotone audio matched with the target monotone identifier using the target intensity change curve. The frequency intensity difference between the response signal and the aforementioned impact response signal, wherein the frequency intensity difference is used to represent the spectral characteristics of the resonance of the aforementioned physical musical instrument; the aforementioned device further includes: a combining unit, used to obtain the current pitch of the aforementioned target single-tone audio and determine convolution operation parameters in combination with the aforementioned frequency intensity difference during the process of simulating the target glissando audio by changing the energy or amplitude of the target single-tone audio matched with the aforementioned target single-tone identifier using the aforementioned target intensity change curve; a first integration unit, used to integrate the aforementioned candidate glissando audio and the aforementioned impact response signal using the aforementioned convolution operation parameters during the process of simulating the target glissando audio by changing the energy or amplitude of the target single-tone audio matched with the aforementioned target single-tone identifier using the aforementioned target intensity change curve, when obtaining candidate glissando audio by changing the energy or amplitude of the aforementioned target single-tone audio using the aforementioned target intensity change curve, to simulate the aforementioned target glissando audio.
[0015] As an optional solution, the above-mentioned device further includes: a third acquisition unit, used to acquire, during the process of simulating a target glissando audio by varying the energy or amplitude of the target single-tone audio matched with the target single-tone identifier using the target intensity change curve, thereby triggering an operation acceleration corresponding to the target operation triggered by the target single-tone identifier, wherein the target operation includes the glissando operation; a fourth acquisition unit, used to acquire, during the process of simulating a target glissando audio by varying the energy or amplitude of the target single-tone audio matched with the target single-tone identifier using the target intensity change curve, thereby triggering an operation acceleration corresponding to the target operation acceleration; and a second integration unit, used to integrate the noise audio and the candidate glissando audio to simulate the target glissando audio when, during the process of simulating a target glissando audio by varying the energy or amplitude of the target single-tone audio matched with the target single-tone identifier using the target intensity change curve, a candidate glissando audio is obtained by simulating a candidate glissando audio.
[0016] According to another aspect of the embodiments of this application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the above-described method for simulating glissando audio.
[0017] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above-described method for simulating glissando audio through the computer program.
[0018] In this embodiment, a glissando sample audio and a single-tone sample audio are obtained, wherein the starting pitch of the glissando sample audio and the single-tone sample audio is the same; a first intensity change curve corresponding to the glissando sample audio and a second intensity change curve corresponding to the single-tone sample audio are obtained, wherein the first intensity change curve is used to represent the energy or amplitude of the glissando sample audio at different frequencies, and the second intensity change curve is used to represent the energy or amplitude of the single-tone sample audio at different frequencies; a target intensity change curve is determined based on the first intensity change curve and the second intensity change curve, wherein the target intensity change curve is used to represent the energy or amplitude change of the single-tone sample audio at different frequencies caused by the glissando; in response to a glissando operation triggered by a target single-tone identifier, the target intensity change curve is used to change the energy or amplitude of the target single-tone audio matched by the target single-tone identifier to simulate the target glissando audio. The energy or amplitude changes of a single-tone audio at different frequencies due to glissando are expressed by the intensity change curve. The glissando audio is simulated by using the energy or amplitude changes caused by glissando, thereby reducing the number of glissando sample audio and single-tone sample audio used in the glissando audio simulation process. This achieves the technical effect of improving the simulation efficiency of glissando audio and solves the technical problem of low simulation efficiency of glissando audio. Attached Figure Description
[0019] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 This is a schematic diagram of an application environment for an optional glissando audio simulation method according to an embodiment of this application; Figure 2 This is a schematic diagram of the flow of an optional glissando audio simulation method according to an embodiment of this application; Figure 3 This is a schematic diagram of an optional method for simulating glissando audio according to an embodiment of this application; Figure 4 This is a schematic diagram of another optional method for simulating glissando audio according to an embodiment of this application; Figure 5 This is a schematic diagram of another optional method for simulating glissando audio according to an embodiment of this application; Figure 6 This is a schematic diagram of another optional method for simulating glissando audio according to an embodiment of this application; Figure 7 This is a schematic diagram of another optional method for simulating glissando audio according to an embodiment of this application; Figure 8 This is a schematic diagram of another optional method for simulating glissando audio according to an embodiment of this application; Figure 9 This is a schematic diagram of another optional method for simulating glissando audio according to an embodiment of this application; Figure 10 This is a schematic diagram of another optional method for simulating glissando audio according to an embodiment of this application; Figure 11 This is a schematic diagram of an optional glissando audio simulation device according to an embodiment of this application; Figure 12 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of this application. Detailed Implementation
[0020] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0021] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0022] According to one aspect of the embodiments of this application, a method for simulating glissando audio is provided. Optionally, as an optional implementation, the above-described method for simulating glissando audio can be applied, but is not limited to, to applications such as... Figure 1 The environment shown may include, but is not limited to, user equipment 102 and server 112. User equipment 102 may include, but is not limited to, a display 104, a processor 106 and a memory 108. Server 112 includes a database 114 and a processing engine 116.
[0023] The specific process can be summarized in the following steps: In step S102, the user equipment 102 acquires glissando sample audio and monotone sample audio, wherein the starting pitch of the glissando sample audio and the monotone sample audio is the same. Steps S104-S106: Send the glissando sample audio and the monophonic sample audio to the server 112 via network 110; In steps S108-S110, server 112 obtains the first intensity change curve corresponding to the glissando sample audio and the second intensity change curve corresponding to the single-tone sample audio through processing engine 116, and further determines the target intensity change curve based on the first intensity change curve and the second intensity change curve. Steps S112-S114: The target intensity change curve is sent to the user equipment 102 via network 110; In steps S116-S118, user equipment 102 acquires the glissando operation triggered by the target monotone identifier, and further responds to the glissando operation triggered by the target monotone identifier through processor 106 by using the target intensity change curve to change the energy or amplitude of the target monotone audio matched by the target monotone identifier, simulating the target glissando audio, displaying the audio information corresponding to the target glissando audio on display 104, and storing the target glissando audio in memory 108.
[0024] remove Figure 1 Beyond the examples shown, the above steps can be performed independently by the user equipment or the server, or collaboratively by both, such as by user equipment 102 performing steps S108-S110, thereby reducing the processing load on server 112. User equipment 102 includes, but is not limited to, handheld devices (such as mobile phones), laptops, tablets, desktop computers, in-vehicle devices, smart TVs, etc. This application does not limit the specific implementation of user equipment 102. Server 112 can be a single server, a server cluster consisting of multiple servers, or a cloud server.
[0025] Alternatively, as an alternative implementation method, such as Figure 2 As shown, the method for simulating glissando audio can be performed by an electronic device, such as... Figure 1 The user equipment or server shown includes the following specific steps: S202, Obtain the glissando sample audio and the single-tone sample audio, wherein the starting pitch of the glissando sample audio and the single-tone sample audio is the same; S204, obtain the first intensity change curve corresponding to the glissando sample audio and the second intensity change curve corresponding to the single-tone sample audio, wherein the first intensity change curve is used to represent the energy or amplitude of the glissando sample audio at different frequencies, and the second intensity change curve is used to represent the energy or amplitude of the single-tone sample audio at different frequencies; S206, Determine the target intensity change curve based on the first intensity change curve and the second intensity change curve, wherein the target intensity change curve is used to represent the energy or amplitude change of the single-tone sample audio at different frequencies due to glissando; S208, in response to the glissando operation triggered by the target monotone identifier, uses the target intensity change curve to change the energy or amplitude of the target monotone audio matched by the target monotone identifier, thereby simulating the target glissando audio.
[0026] Optionally, in this embodiment, the above-mentioned method for simulating glissando audio can be applied, but is not limited to, the application scenarios of guqin simulation software. Guqin playing techniques can be broadly divided into fixed notes and glissando, with glissando being the main characteristic. The principle of fixed notes is relatively simple, but glissando, due to its very complex timbre changes during performance, lacks mature guqin simulation software that allows users to realistically and in real-time play guqin glissando through a virtual interface. This embodiment proposes a real-time software virtual performance algorithm that transforms single notes of the guqin into glissandos of arbitrary length and amplitude, allowing users to more easily and freely access and play the guqin. Furthermore, this embodiment can be applied not only to guqin glissando simulation but also to the simulation of glissando on other similar stringed instruments, such as the erhu, violin, and cello.
[0027] Optionally, in this embodiment, a glissando can refer to, but is not limited to, sliding across a series of notes or a range of notes in a continuous and smooth manner during musical performance. It is commonly used in the performance of keyboard instruments, string instruments, or wind instruments, and can be added to musical works to enhance expressiveness and musical effect. Furthermore, the glissando sample audio can be, but is not limited to, audio samples collected during the process of sliding across a series of notes or a range of notes in a continuous and smooth manner during musical performance.
[0028] Optionally, in this embodiment, a single note can refer to a single voice or a single sound playing independently in the music. Furthermore, a glissando sample audio can refer to, but is not limited to, an audio sample collected during the independent performance of a single sound in the music.
[0029] Optionally, in this embodiment, the starting pitch can refer to, but is not limited to, the pitch of a specific note or note sequence in the music. It indicates the position of the note or note sequence on the musical staff, used to determine which pitch to begin playing. The starting pitch is usually represented using musical notation, such as standard staff notation, and the specific pitch can be determined by the clef and the position of the note. The starting pitch will vary in different modes and musical works, determining the tonality and range of the music. Furthermore, pitch, whether or not limited, refers to the subjective perception of a sound's high or low pitch, which is related to the frequency of the sound wave. The higher the pitch, the higher the corresponding frequency; the lower the pitch, the lower the corresponding frequency. In music, the standard pitch A4 (440 Hz) is commonly used as a reference, while the pitches of other notes are measured and represented in semitones or whole tones. Fundamental frequency, whether or not limited, refers to the most dominant frequency component in a sound. Pitch determines the tone of the sound. In physics and acoustics, every sound can be considered as composed of a series of harmonics. The fundamental frequency is the lowest frequency component among these harmonics and is the frequency most easily perceived by the human ear. The fundamental frequency, whether or not limited, determines the pitch of the sound; a higher fundamental frequency corresponds to a higher pitch, and a lower fundamental frequency corresponds to a lower pitch.
[0030] Optionally, in this embodiment, frequency may, but is not limited to, the number of times periodic vibrations occur in a sound or signal, and may, but is not limited to, represent a specific frequency by a frequency point. The energy or amplitude at a frequency may, but is not limited to, be understood as the energy or amplitude at a frequency point.
[0031] Optionally, in this embodiment, the energy or amplitude at different frequencies is typically determined by the spectral characteristics of the signal, where the spectrum is a representation of the energy distribution of the signal at different frequencies. Spectrum diagrams are commonly used to visualize this energy distribution. In a spectrum diagram, the horizontal axis represents frequency, and the vertical axis represents energy or amplitude. For a specific sound or signal, it may have higher energy or amplitude at some frequencies and lower energy or amplitude at others. This depends on the frequency components of the signal and the intensity of the specific sound or signal.
[0032] Taking music as an example, the sounds played by different instruments often have different energy distributions at different frequencies. For instance, the double bass typically produces a higher energy sound in the low-frequency range, while the violin produces a higher energy sound in the mid-to-high frequency range. Therefore, users will perceive differences in timbre when listening.
[0033] Optionally, in this embodiment, the energy or amplitude at different frequencies can be understood as harmonic intensity, and the energy or amplitude at the fundamental frequency can be understood as fundamental frequency intensity. The fundamental frequency usually changes with pitch, so the fundamental frequency of a glissando sample audio whose pitch changes with time is different, and the fundamental frequency of a single-tone sample audio whose pitch remains constant with time is constant. Thus, a glissando sample audio corresponds to multiple fundamental frequencies, and different fundamental frequencies correspond to their respective harmonics, while a single-tone sample audio corresponds to only one fundamental frequency. Therefore, to directly calculate the harmonic intensity difference (the energy or amplitude change caused by glissando at different frequencies) between the glissando sample audio and the single-tone sample audio, it is necessary to process them to the same dimension, such as unifying them to the same unique fundamental frequency; otherwise, the harmonic intensity difference cannot be obtained smoothly.
[0034] Optionally, in this embodiment, as Figure 3 As shown, the simulation interface 304 of the virtual musical instrument 302 displays multiple single-note markers, such as single-note marker 1, single-note marker 2, single-note marker 3, single-note marker 4, single-note marker 5, and single-note marker 6. The single-note operation triggered by single-note marker 6 (target single-note marker) is further obtained, and during the execution of the single-note operation, the glissando operation triggered by single-note marker 6 (target single-note marker) is obtained. The output is the target glissando audio simulated by the virtual musical instrument 302.
[0035] Optionally, in this embodiment, the simulated target glissando tone may include not only the energy or amplitude changes caused by the glissando, but also, but not limited to, sound factors such as pitch, noise, and resonance. For example, a single tone may be resampled by inserting intermediate values to change the density of sampling points in the current buffer in real time, thereby achieving lossless pitch shifting and simulating the pitch. Here, resampling may, but is not limited to, changing the sampling rate of the data, that is, changing the time or spatial interval between data points to adapt to different needs or signal processing operations. The resampling process may, but is not limited to, involve techniques such as interpolation, filtering, and truncation to maintain signal quality and prevent the introduction of aliasing errors.
[0036] It should be noted that the target glissando audio simulated in this embodiment is not the direct output of the target glissando audio pre-matched by the target single tone identifier. Instead, as the real-time audio frequency of the target single tone audio matched by the target single tone identifier changes, the energy or amplitude of the target single tone audio is changed in real time using the target intensity change curve. Thus, no matter what changes occur in the target single tone audio, the energy or amplitude can be changed in real time according to the real-time audio frequency.
[0037] To further illustrate, optional examples include... Figure 4As shown, by performing a playing operation on the physical instrument 402, a glissando sample audio 404-1 and a single-note sample audio 404-2 are acquired, wherein the starting pitches of the glissando sample audio 404-1 and the single-note sample audio 404-2 are the same; a first intensity change curve 406-1 corresponding to the glissando sample audio 404-1 and a second intensity change curve 406-2 corresponding to the single-note sample audio 404-2 are obtained; a target intensity change curve 408 is determined based on the first intensity change curve 406-1 and the second intensity change curve 406-2; in response to a glissando operation triggered by a target single-note identifier 412 displayed on the simulation interface 410 corresponding to the physical instrument 402, the target intensity change curve 408 is used to change the energy or amplitude of the target single-note audio 414 matched by the target single-note identifier 412 to simulate the target glissando audio 416.
[0038] The embodiments provided in this application obtain glissando sample audio and monotone sample audio, wherein the starting pitch of the glissando sample audio and the monotone sample audio is the same; obtain a first intensity change curve corresponding to the glissando sample audio and a second intensity change curve corresponding to the monotone sample audio, wherein the first intensity change curve is used to represent the energy or amplitude of the glissando sample audio at different frequencies, and the second intensity change curve is used to represent the energy or amplitude of the monotone sample audio at different frequencies; determine a target intensity change curve based on the first intensity change curve and the second intensity change curve, wherein the target intensity change curve is used to represent the energy or amplitude change of the monotone sample audio at different frequencies caused by the glissando; in response to the glissando operation triggered by the target monotone identifier, use the target intensity change curve to change the energy or amplitude of the target monotone audio matched by the target monotone identifier to simulate the target glissando audio. The intensity variation curve expresses the energy or amplitude changes of a single-tone audio at different frequencies due to glissando. This energy or amplitude change is then used to simulate glissando audio, thereby reducing the number of glissando sample audios and single-tone sample audios used in the glissando audio simulation process, thus achieving the technical effect of improving the simulation efficiency of glissando audio.
[0039] As an optional approach, the energy or amplitude of the target monotone audio matched with the target monotone identifier is varied using the target intensity change curve to simulate the target glissando audio, including: S1-1, Obtain the target frequencies associated with the target monotone audio; S1-2, determine the intensity change information matching each target frequency from the target intensity change curve, wherein the intensity change information is used for the energy or amplitude change of the target monotone audio at each target frequency due to glissando; S1-3, using intensity change information, gain / attenuate the energy or amplitude of the target monotone audio at each target frequency to simulate the target glissando audio. The energy or amplitude of the target glissando audio at each target frequency matches the energy or amplitude of the target monotone audio at each target frequency according to the intensity change information.
[0040] It should be noted that due to the diversity of combinations between the force, angle, position, and single-note identifier of the glissando operation, the glissando variations of single-note audio are also diverse. If the glissando audio corresponding to each single-note audio is pre-generated and matched with the single-note identifier, both the matching workload and the amount of sampled data will consume a lot of cost and time, which will reduce the simulation efficiency of glissando audio.
[0041] In this embodiment, since the target intensity change curve is used to represent the energy or amplitude change of the single-tone sample audio at different frequencies due to glissando, and thus obtain the glissando operation triggered by the target single-tone identifier, it is possible, but not limited to, first determining the real-time audio frequency corresponding to the target single-tone audio matched by the target single-tone identifier, then determining the energy or amplitude change of the real-time audio frequency due to glissando from the target intensity change curve, and then using the energy or amplitude change to perform energy or amplitude change (attenuation or amplification) on the target single-tone audio, so as to achieve low-cost and efficient glissando audio simulation.
[0042] The embodiments provided in this application obtain various target frequencies associated with a target monotone audio; determine intensity change information matching each target frequency from the target intensity change curve, wherein the intensity change information is used for the energy or amplitude change of the target monotone audio at each target frequency due to glissando; using the intensity change information, gain / attenuate the energy or amplitude of the target monotone audio at each target frequency to simulate the target glissando audio, wherein the energy or amplitude of the target glissando audio at each target frequency matches the energy or amplitude of the target monotone audio at each target frequency with the intensity change information, thereby achieving the purpose of reducing the number of glissando sample audios and monotone sample audios used in the glissando audio simulation process, thereby achieving the technical effect of improving the simulation efficiency of glissando audio.
[0043] As an optional approach, the first intensity change curve corresponding to the glissando sample audio and the second intensity change curve corresponding to the single-tone sample audio are obtained, including: Obtain a first intensity variation curve representing the energy or amplitude of a glissando sample audio at N key frequencies, and a second intensity variation curve representing the energy or amplitude of a monotone sample audio at N key frequencies, wherein the N key frequencies include the target frequency.
[0044] Optionally, in this embodiment, the key frequency can be, but is not limited to, frequencies that the human ear is more sensitive to in musical sounds, such as frequencies in the low-frequency region (20 Hz to 200 Hz), frequencies in the mid-frequency region (200 Hz to 2,000 Hz), frequencies in the high-frequency region (2,000 Hz to 20,000 Hz), etc.
[0045] It should be noted that harmonic intensity changes are not obtained for all frequencies, but rather the intensity changes of key frequencies of glissando are simulated within the range of human auditory perception. This reduces the amount of computation in the simulation process of glissando audio and improves the simulation efficiency of glissando audio.
[0046] Through the embodiments provided in this application, a first intensity variation curve representing the energy or amplitude of a glissando sample audio at N key frequencies and a second intensity variation curve representing the energy or amplitude of a single-tone sample audio at N key frequencies are obtained, wherein the N key frequencies include target frequencies. This achieves the goal of reducing the computational load in the simulation process of glissando audio, thereby realizing the technical effect of improving the simulation efficiency of glissando audio.
[0047] As an optional approach, a first intensity variation curve representing the energy or amplitude of the glissando sample audio at N key frequencies and a second intensity variation curve representing the energy or amplitude of the single-tone sample audio at N key frequencies are obtained, including: S2-1, Perform a short-time Fourier transform on the glissando sample audio to obtain the first intensity data matrix of the full frequency range of the glissando sample audio at each time point; determine the first intensity variation curves corresponding to N key frequencies from the first intensity data matrix; and, S2-2, perform a short-time Fourier transform on the single-tone sample audio to obtain the second intensity data matrix of the full frequency of the single-tone sample audio at each time point; determine the second intensity change curves corresponding to N key frequencies from the second intensity data matrix.
[0048] Optionally, in this embodiment, the Short-Time Fourier Transform (STFT) is used to convert the signal between the time domain and the frequency domain and to provide the spectral information of the signal in different time periods.
[0049] Optionally, in this embodiment, the intensity data matrix can be, but is not limited to, the spectrum matrix obtained after time-frequency analysis of the audio signal, where each element represents the signal energy or intensity at a specific time and frequency location. For an audio signal, time-frequency analysis can be performed using the short-time Fourier transform. The short-time Fourier transform divides the audio signal into multiple short-time windows and calculates the spectrum within each window. By applying the Fourier transform to each window, the amplitude or intensity information of different frequency components within that window can be obtained. Combining the spectra within each window forms a matrix, commonly referred to as a spectrogram or intensity map. The rows of the matrix represent time, the columns represent frequency, and each element in the matrix represents the signal intensity at the corresponding time and frequency location.
[0050] It should be noted that this embodiment utilizes short-time Fourier transform to provide information about the audio signal in both time and frequency dimensions, thereby improving the comprehensiveness of the information contained in the intensity change curve and thus improving the simulation accuracy of glissando audio.
[0051] The embodiments provided in this application involve performing a short-time Fourier transform on the glissando sample audio to obtain a first intensity data matrix of the full frequency range of the glissando sample audio at each time point; determining a first intensity change curve corresponding to N key frequencies from the first intensity data matrix; and performing a short-time Fourier transform on the single-tone sample audio to obtain a second intensity data matrix of the full frequency range of the single-tone sample audio at each time point; determining a second intensity change curve corresponding to N key frequencies from the second intensity data matrix. This achieves the goal of improving the comprehensiveness of information contained in the intensity change curve, thereby realizing the technical effect of improving the simulation accuracy of glissando audio.
[0052] As an optional approach, the target intensity change curve is determined based on the first intensity change curve and the second intensity change curve, including: The target intensity change curve is obtained by subtracting the values of the first intensity change curve and the second intensity change curve point by point.
[0053] It should be noted that, in order to improve the accuracy of the target intensity change curve, a calculation method that is more in line with the curve characteristics is used. The values of the first intensity change curve and the second intensity change curve are subtracted point by point. Here, point by point can be understood as subtracting the harmonic intensity values corresponding to each frequency point (rate).
[0054] The embodiments provided in this application obtain the target intensity change curve by subtracting the values of the first intensity change curve and the second intensity change curve point by point, thereby achieving the purpose of using a calculation method that is more in line with the curve characteristics, and thus realizing the technical effect of improving the accuracy of the target intensity change curve.
[0055] As an optional approach, before obtaining the target intensity change curve by point-by-point subtraction of the values of the first intensity change curve and the second intensity change curve, the method further includes: S3-1, Obtain the initial glissando sample audio, wherein the initial glissando sample audio and the single-tone sample audio have the same starting pitch; S3-2, process the initial glissando sample audio into a glissando sample audio with a fundamental frequency change less than or equal to a preset threshold.
[0056] It should be noted that in the process of subtracting the values of the first intensity change curve and the second intensity change curve point by point to obtain the target intensity change curve, it is first necessary to ensure that the first intensity change curve and the second intensity change curve are curves of the same dimension in order to further ensure that the values of the first intensity change curve and the second intensity change curve can be subtracted point by point. Therefore, in this embodiment, the initial glissando sample audio is processed into glissando sample audio with a fundamental frequency change amount less than or equal to a preset threshold, so as to ensure that the fundamental frequencies of the first intensity change curve and the second intensity change curve are the same or similar.
[0057] The embodiments provided in this application obtain an initial glissando sample audio, wherein the initial glissando sample audio and the single-tone sample audio have the same starting pitch; the initial glissando sample audio is processed into a glissando sample audio with a fundamental frequency change less than or equal to a preset threshold, thereby achieving the purpose of ensuring that the fundamental frequencies of the first intensity change curve and the second intensity change curve are the same or similar, thus achieving the technical effect of ensuring that the values of the first intensity change curve and the second intensity change curve can be subtracted point by point.
[0058] As an optional approach, processing glissando sample audio into glissando sample audio where the fundamental frequency change is less than or equal to a preset threshold includes: S4-1, Obtain the fundamental frequency change curve corresponding to the initial glissando sample audio, wherein the fundamental frequency change curve is used to represent the change of the fundamental frequency of the initial glissando sample audio over time; S4-2, according to the time axis resolution of the fundamental frequency change curve, divide the glissando sample audio into multiple audio segments; S4-3, convert the fundamental frequency variation curve inversely into an inversely proportional sample density variation curve; S4-4: Resample multiple audio segments in reverse according to the inverse sample density change curve, and supplement new audio segments by resampling in reverse to obtain glissando sample audio.
[0059] Optionally, in this embodiment, the glissando samples are first divided into small segments according to the time axis resolution of the fundamental frequency variation curve. Then, the fundamental frequency variation curve is converted inversely into a sampling point density variation curve. Finally, each audio segment is resampled in reverse according to the inversely proportional sampling point density variation curve, thereby achieving the function of straightening the glissando pitch. For segments in the original glissando that are higher than the target pitch, intermediate values are inserted into their sampling points, making the wave period longer, that is, the frequency shorter and the pitch lower. Conversely, for segments in the original glissando that are lower than the target pitch, the pitch is increased by deleting sampling points. Furthermore, according to the fundamental frequency variation curve, the originally gliding pitch is dynamically and time-by-time straightened into a constant pitch.
[0060] As an optional approach, before obtaining the target intensity change curve by point-by-point subtraction of the values of the first intensity change curve and the second intensity change curve, the method further includes: The second time axis of the second intensity change curve is scaled according to the first time axis of the second intensity change curve, wherein the first time axis corresponds to the scaled second time axis.
[0061] It should be noted that before obtaining the target intensity change curve by subtracting the values of the first intensity change curve and the second intensity change curve point by point, the second time axis of the first intensity change curve needs to be scaled. This is because the first intensity change curve is obtained by reverse resampling, so the time axis of the first intensity change curve will be different from that of the second intensity change curve. Therefore, in order to control the variables and compare the most accurate timbre changes caused by glissando, the time axis needs to be scaled and restored.
[0062] The embodiments provided in this application scale the second time axis of the first intensity change curve according to the first time axis of the second intensity change curve. The first time axis corresponds to the scaled second time axis, thereby achieving time axis scaling restoration to compare the most accurate timbre changes caused by glissando, thus achieving the technical effect of improving the accuracy of the target intensity change curve.
[0063] As an alternative approach, before simulating the target glissando audio by varying the energy or amplitude of the target monotone audio matched with the target monotone identifier using the target intensity change curve, the method further includes: S5-1, the response of the simulated physical musical instrument is sampled using a sweep frequency test signal and a white noise test signal respectively to obtain the sweep frequency response signal and the impulse response signal. The sweep frequency test signal is a signal whose frequency is continuously changed within a certain frequency range, the white noise test signal is a random signal with a uniform spectral distribution, the sweep frequency response signal is the response signal of the physical musical instrument after receiving the sweep frequency test signal, and the impulse response signal is the response signal of the physical musical instrument after receiving the white noise test signal. S5-2, Obtain the frequency intensity difference between the sweep frequency response signal and the impulse response signal, wherein the frequency intensity difference is used to represent the spectral characteristics of the resonance of the physical musical instrument; In simulating the target glissando audio by varying the energy or amplitude of the target monotone audio matched with the target monotone identifier using the target intensity change curve, the method also includes: S6-1: Obtain the current pitch of the target single-tone audio and determine the convolution operation parameters based on the frequency intensity difference; S6-2, by using the target intensity change curve to change the energy or amplitude of the target single-tone audio to obtain candidate glissando audio, the candidate glissando audio and the impact response signal are integrated and processed using convolution operation parameters to simulate the target glissando audio.
[0064] Optionally, in this embodiment, the frequency sweep test signal is a signal whose frequency changes continuously within a certain frequency range. This can be, but is not limited to, a signal that changes linearly or logarithmically within a certain frequency range, and is used to evaluate the response of a system or device at different frequencies. By sampling and analyzing the frequency sweep signal, the frequency response curve of the system or device under test can be obtained.
[0065] Optionally, in this embodiment, the white noise test signal is a random signal with a uniform spectral distribution, containing components of various frequencies, similar to white noise in nature. White noise test signals are widely used in signal processing and system testing. Because white noise has a flat spectral characteristic, it can be used to evaluate the system or device's processing capability for different frequencies, transmission bandwidth, and the impact of noise interference.
[0066] Optionally, in this embodiment, in signal processing, convolution and IR operations can be used to transform an original signal into a new signal with the system characteristics described by IR. Here, IR represents the system's response to a unit pulse and includes both time and frequency domain information. By performing a convolution operation between the input signal and IR, the time-domain response of the output signal can be obtained, thereby understanding the system's influence on input signals with different frequencies and timing characteristics. The most common application is convolution reverberation, which can process a raw dry sound signal into a signal with spatially reflected sound, realistically reproducing the acoustic characteristics of the target scene.
[0067] It should be noted that, in order to improve the realism of the simulated target glissando audio, the resonance factor is taken into account in the simulation process of the glissando audio, and the resonance factor will be reflected through the frequency intensity difference between the sweep frequency response signal and the impulse response signal.
[0068] Through the embodiments provided in this application, a sweep frequency test signal and a white noise test signal are used to sample the response of the simulated physical musical instrument to obtain a sweep frequency response signal and an impulse response signal. The sweep frequency test signal is a signal whose frequency changes continuously within a certain frequency range, and the white noise test signal is a random signal with a uniform spectral distribution. The sweep frequency response signal is the response signal of the physical musical instrument after receiving the sweep frequency test signal, and the impulse response signal is the response signal of the physical musical instrument after receiving the white noise test signal. The frequency intensity difference between the sweep frequency response signal and the impulse response signal is obtained, whereby the frequency intensity difference represents the spectral characteristics of the resonance of the physical musical instrument. The current pitch of the target single-tone audio is obtained, and the convolution operation parameters are determined in conjunction with the frequency intensity difference. When the target single-tone audio is subjected to energy or amplitude changes using the target intensity change curve to obtain candidate glissando audio, the candidate glissando audio and the impulse response signal are integrated using the convolution operation parameters to simulate the target glissando audio. This achieves the goal of considering resonance factors in the simulation process of glissando audio, thereby improving the realism of the simulated target glissando audio.
[0069] As an optional approach, in simulating the target glissando audio by varying the energy or amplitude of the target monotone audio matched with the target monotone identifier using the target intensity change curve, the method further includes: S7-1, obtain the operation acceleration corresponding to the target operation triggered by the target single note identifier, wherein the target operation includes a glissando operation; S7-2, acquire noise audio that matches the operating acceleration; S7-3, by using the target intensity change curve to change the energy or amplitude of the target single-tone audio to obtain the candidate glissando audio, integrates the noise audio and the candidate glissando audio to simulate the target glissando audio.
[0070] It should be noted that, in order to improve the realism of the simulated target glissando audio, noise factors are taken into account in the simulation process of the glissando audio. Since the noise factors have random and irregular characteristics, this embodiment obtains the operation acceleration corresponding to the target operation triggered by the target single tone mark, and adds the noise factors to the simulation process of the glissando audio based on the noise audio that matches the operation acceleration.
[0071] The embodiments provided in this application obtain the operation acceleration corresponding to the target operation triggered by the target single-tone identifier, wherein the target operation includes a glissando operation; obtain noise audio that matches the operation acceleration; and, in the case of obtaining candidate glissando audio by changing the energy or amplitude of the target single-tone audio using the target intensity change curve, integrate the noise audio and the candidate glissando audio to simulate the target glissando audio, thereby achieving the purpose of taking noise factors into account in the simulation process of glissando audio, and thus achieving the technical effect of improving the realism of the simulated target glissando audio.
[0072] As an alternative approach, for ease of understanding, the aforementioned method for simulating glissando audio is applied to a guqin simulation scenario. A key characteristic of the guqin is its lack of frets. Comparing it to a guitar, the presence of frets means that glissando on a guitar involves transitions between frets, meaning the glissando changes are not entirely continuous. However, the guqin, lacking frets, exhibits a smooth and continuous glissando. Consequently, the pitch variation curve of glissando on the guqin is more complex, resulting in various technique names to describe it. In principle, all pitch variations on the guqin involving glissando follow a wave equation.
[0073] It should be noted that the technical solution of this embodiment no longer requires a large amount of recording and strong speed and pitch shifting processing. Instead, it uses fewer recordings for glissando reference samples for analysis and performs feature analysis of spectral changes. Based on the analysis data, single-note samples are used as raw materials to generate glissando effects in real time and realistically according to the performance.
[0074] To further illustrate, optional examples include... Figure 5 As shown, in the production process, data is collected through recording, editing, and signal feature analysis, and the sampled data is mapped to Musical Instrument Digital Interface (MIDI) information. Further, in actual use, the MIDI input calls the sampled data, performs real-time signal processing, and outputs the guqin performance audio, completing the simulation of the guqin audio.
[0075] Optionally, in this embodiment, as Figure 6 As shown, the sound of glissando on the guqin can be divided into two parts: musical tone simulation and noise simulation. Musical tone refers to the pitched sound that changes with the performance, while noise refers to the pitchless sound produced by the friction between the fingers and the strings and soundboard during performance.
[0076] Furthermore, in this embodiment, each musical instrument possesses its unique harmonic series and inharmonic components that deviate from the harmonic series. These are highly complex and difficult to learn patterns from. The harmonic series is a sequence of frequencies that are integer multiples of the fundamental frequency (lowest frequency) of the musical note. For example, the harmonic series with a fundamental frequency of 100Hz includes: 100Hz, 200Hz, 300Hz, 400Hz… The differences in the intensity of each frequency point within different harmonic series are one of the important factors that cause different instruments to produce musical notes of the same pitch with different timbres. Inharmonics are a crucial factor in shaping the unique timbre of an instrument. Pure harmonic series are extremely rare. In reality, the construction of a musical instrument is very complex, resulting in some frequency components that deviate from the harmonic series, which is one of the root causes of timbre differences among similar instruments. For example, when a piano key is pressed with a certain force, the intensity of the fundamental frequency and the harmonic frequencies that are integer multiples of the fundamental frequency will undergo a complex, non-linear, and non-proportional decay over time.
[0077] However, each frequency has its unique attenuation curve, so the intensity ratio between them constantly changes during attenuation, resulting in a change in timbre for a single note. Clearly, simulating such a change is extremely complex, and this is limited to a single dynamic range for a single note. Simulating all the keys on a piano at various dynamic ranges would be even more difficult. Furthermore, this only represents a "pure tone" produced under purely theoretical conditions. In real life, the timbre of a piano also carries additional factors such as body resonance and hammer differences. Even with formulas that can fit and summarize these factors, no computer can perform real-time calculations using such complex formulas.
[0078] However, the breakthrough lies in the fact that while the changes in nature are infinite, human perception is very limited, even less so than that of computers in terms of hearing. This embodiment's simulation of the glissando on the guqin is based on this logic: instead of attempting to summarize patterns, it analyzes and simulates the intensity changes of key frequency points in the glissando within the limited range of human auditory perception. By controlling the number of frequency points within a finite range and the time intervals of change not needing to be perfectly continuous, real-time computation becomes possible.
[0079] Specifically, the simulation of glissando notes in this embodiment is divided into two parts: one is the simulation of harmonic changes in string vibration during the glissando process, such as... Figure 6 The simulation shown includes two aspects: one is the simulation of string vibration, and the other is the simulation of the resonance of the instrument body during glissando, such as... Figure 6 The box simulation shown.
[0080] Furthermore, in this embodiment, for string vibration simulation, the spectrum changes of the real glissando are analyzed step by step, and then a digital filter is used to simulate the spectrum changes caused by the displacement of the glissando. Because of the "inaccuracy" of the human ear, the filter does not need too many frequencies, nor does it need to change the frequency intensity too quickly. That is, the simulation is controlled within a range that the human ear cannot react to, but the computer can calculate.
[0081] Optionally, such as Figure 7 As shown, the specific implementation steps are as follows: S7-1: Record some realistic glissando notes at any speed, but the starting note and ending note of the glissando must have a fixed interval relationship, such as a major third or a perfect fifth. The recording process does not need to cover the entire interval starting with a note, because glissando notes of more than an octave are almost nonexistent in guqin playing, and most glissando notes are performed within the pentatonic scale. Furthermore, it is unnecessary to record very close glissando intervals, such as major seconds and major thirds, as the difference between them is very small and most people cannot hear it. In short, the more recordings in this step, the closer they are to physical reality, but in practice, not many are needed to achieve a realistic sound. After recording, this embodiment obtains a batch of glissando samples with fixed intervals. S7-2, Analyze the fundamental frequency variation curve of the recorded glissando sample. The fundamental frequency variation curve is derived in this embodiment based on the short-time Fourier transform. After analysis, save it as a data table for later use.
[0082] S7-3 utilizes the fundamental frequency variation curve analyzed in S7-2 and audio resampling techniques to straighten the pitch-changing glissando samples into glissando samples with no pitch change, and the pitch is the starting pitch of the glissando. This results in a batch of audio samples with no pitch change but showing the spectral changes during the glissando process. These samples are then batch-normalized to a target value of 0dBFS and reserved for later use.
[0083] S7-4 records single-note samples of the guqin with the same starting pitch, plucking position, and similar intensity as the glissando samples recorded in S7-1, and performs batch normalization processing. Then, the Welch method is used to perform mean spectrum analysis on these samples, capturing the N largest peaks with dissimilar coordinates. These N peaks represent the key frequencies of the guqin at that pitch, i.e., the characteristic information of that note. The value of N ultimately reflects the number of frequency points in the real-time filter; therefore, the value of N can be determined based on the hardware computing power during actual performance. The Welch method is an optimized form of the Periodogram algorithm, similar in function to STFT, but the difference is that the Welch method averages the data at each time point, thus obtaining a frequency-intensity mean data table, and the result no longer includes time dimension information. S7-5. Perform a short-time Fourier transform on the single-tone samples obtained in S7-4 to obtain the intensity data matrix of the entire frequency band at each time point. Then, select the intensity-time curves corresponding to the N frequency points obtained in S7-4 from the matrix.
[0084] In S7-6, the short-time Fourier transform with the same parameters is used again to perform real-time spectrum analysis on the samples reserved in S7-3 to obtain the intensity data matrix of the entire frequency band and time points. Then, similarly, the intensity change curves of N frequency points in S7-4 are selected from this matrix and analyzed point by point. S7-7: Subtract the corresponding curve obtained in step 6 from the curves of the N frequency points obtained in S7-5. This yields the curves showing the intensity changes occurring at key frequency points due to glissando. However, before subtraction, the curves obtained in S7-6 need to be scaled. This is because the curves in S7-6 are based on the samples obtained in step 3, but the samples in S7-3 have been resampled and stretched. Therefore, the time axes of all curves in S7-6 will differ from those in S7-5. Thus, to control variables and obtain the most accurate tonal changes caused by glissando, time axis scaling needs to be performed. In steps S7-8, a filter with N frequency points is created. Each frequency point has a bandwidth of 1Hz, and its frequency value is the value of the N frequency points obtained in step four. The gain / attenuation values of each frequency point follow the N difference curves obtained in step S7-7. Then, this filter is applied to a single-note sample, setting the initial gain / attenuation values of all frequencies to 0. During virtual performance, if only a single note is played without finger sliding, this filter has no effect. If a single note is played and a glissando begins, the gain / attenuation values of each frequency point gradually transition from zero to the corresponding curve values obtained in step seven, according to the interval relationship. Resampling is used to change the sampling rate or sampling interval of a signal. When it is necessary to convert a signal from its original sampling rate to a new sampling rate, resampling techniques can be used, such as increasing the signal's sampling rate, i.e., inserting additional sampling points into the signal. During upsampling, interpolation algorithms (such as linear interpolation, raised cosine interpolation, etc.) can be used to estimate the values of the newly inserted sampling points. Interpolation algorithms infer based on known sampling points to obtain a continuous signal at a higher sampling rate. This can increase the frequency range of the signal or improve time-domain accuracy; or, increase the signal's sampling rate, i.e., insert additional sampling points into the signal. During upsampling, interpolation algorithms (such as linear interpolation, raised cosine interpolation, etc.) can be used to estimate the values of the newly inserted sampling points. Interpolation algorithms infer based on known sampling points to obtain a continuous signal at a higher sampling rate. This can increase the frequency range of the signal or improve time-domain accuracy.
[0085] In this embodiment, for the simulation of the box, such as Figure 8 As shown, prepare a speaker 802, place the guqin 804 vertically, align the diaphragm of the speaker 802 closely with the "Dragon Pool" resonance hole on the back of the guqin 804, and place a small-volume, high-precision condenser microphone in the "Phoenix Swamp" resonance hole on the back of the guqin 804.
[0086] The specific process is as follows: Figure 9 As shown, two test signals, a sweep frequency (20~20000Hz) and white noise (122kHz), were played using a speaker 802. The signals after passing through the guqin's cavity were recorded, thus obtaining the sweep frequency response and impulse response of the guqin's enclosure. The significant frequency intensity differences between the new and original sweep frequency signals were analyzed, and these differences were identified as the spectral characteristics of the guqin's enclosure resonance. During a virtual guqin glissando performance, the current pitch of the glissando was obtained. Based on the spectral characteristics of the enclosure resonance obtained in step four, it was determined whether and to what extent convolution was enabled. The convolution operation involved combining the simulated string vibration signal with the recorded impulse response signal to obtain the enclosure resonance effect produced by the glissando.
[0087] Optionally, in this embodiment, since the spectrum of noise is more random and irregular than that of musical sounds, making it difficult to analyze its spectral characteristics in detail, the simulation of glissando noise in this embodiment uses a method that detects the finger acceleration during the virtual performance process and retrieves glissando noise samples of corresponding intensity based on the acceleration.
[0088] Specifically, such as Figure 10 As shown, a batch of glissando noises of varying intensity, categorized by speed levels, are first recorded. Then, during virtual performance, the acceleration of finger movement is detected, and glissando noises of the corresponding speed level are invoked based on this acceleration. Playback logic is restricted, such as preventing repeated triggering within a certain number of milliseconds, weakening the attack of the next glissando noise before the previous one has finished playing, and ensuring that the position of the sound phase during glissando playback follows the position of the musical note. This allows for a relatively realistic simulation of glissando noise.
[0089] Optionally, in this embodiment, a time-frequency-intensity data matrix can be obtained by using Short-Time Fourier Transform (STFT) glissando pitch (fundamental frequency) curve analysis. In a computer, STFT is used to perform spectral analysis on a digital audio file. By setting the window size, the digital audio file can be divided into many equal parts, and then Fourier calculations are performed on each part to obtain the frequency-intensity curves at different time points. In this embodiment, this property of STFT is utilized to analyze the pitch curve of a glissando on the 10-millisecond time axis with an accuracy on the order of 10 milliseconds.
[0090] It should be noted that STFT generates a massive full-spectrum intensity-time matrix, which does not include a "pitch search" function. Therefore, it is necessary to filter out the top few maximum values at each time point from this massive matrix. These top few maximum values will definitely contain the fundamental frequency, and may also contain second and third harmonics, as well as random interference terms. Finding the fundamental frequency required in this embodiment is therefore a challenge. Thus, this embodiment creates a workflow to ensure the accuracy of frequency point search. Specifically, when recording a glissando, the starting pitch of the glissando, and whether it is a rising or falling glissando, are recorded and named in the filename. Then, when analyzing the glissando curve, the filename is read to obtain its starting pitch and its glissando trend. Using these, a frequency probability range for the glissando is created to define the range within which the program searches for the fundamental frequency. For example, if the starting note is middle A and it's an upward glissando, then at the first moment, the fundamental frequency is found within a range of 10 Hz above and below 440 Hz. At the next moment, only frequencies greater than or equal to the fundamental frequency at the first moment, and less than 880 Hz (i.e., less than the starting note an octave higher), are considered as the fundamental frequency. By following this process, the desired glissando pitch curve can be accurately determined based on the defined frequency range and trend.
[0091] Optionally, in this embodiment, the variation curves of multiple harmonics are calculated using harmonic sequence following technology. Then, the frequency variation curves of these harmonics are found in the data obtained from the STFT, thereby obtaining the real-time intensity changes.
[0092] Optionally, in this embodiment, two test signals are used: a 20-20000Hz sweep signal and a 122kHz sampling rate white noise signal to excite and capture the acoustic characteristics of the cabinet resonance. The white noise, after undergoing the entire process, is ultimately processed into an IR signal. The recording and processing method involves continuously playing the white noise at a high sound pressure level using a speaker, then suddenly stopping the playback. The residual sound tail captured from the moment of stopping is the resonance generated by the guqin's body. That is, resonance occurs due to the high sound pressure level white noise and gradually dissipates as the white noise disappears. This dissipation process represents the unit impact response of the guqin's cabinet after being impacted by white noise across the entire frequency range, which is the IR signal required in this embodiment. The sweep signal determines the conditions and extent to which the IR signal participates in the signal processing and output during the process.
[0093] It should be noted that when virtually playing a single note in this embodiment, IR (Infrared Resonance) is not desired because the recording of a single note inherently involves cabinet resonance. The reason cabinet resonance is needed in this embodiment is that the sliding of a single note will pass through specific resonant frequencies of the cabinet. Therefore, the purpose of frequency sweeping is to detect how the amplitude of a sweep signal with a fixed amplitude changes after passing through the guqin cabinet system. This change indicates which frequencies, and to what extent, will cause the guqin cabinet to resonate during a glissando. Therefore, by obtaining this data and adding IR, a specific intensity of cabinet resonance that occurs only at specific frequencies can be achieved for a sliding single note.
[0094] Optionally, in this embodiment, the signal is first filtered using real-time pitch filtering technology. A readily available Peak-type filter with a bandwidth of 1Hz is used. After filtering, the signal is resampling in real-time according to the buffer size based on the virtual performance, meaning the pitch is changed audibly without loss of sound quality, and with dynamic spectral changes. Then, the performance information control signal is convolved with the IR signal. Finally, the convolved signal is combined with the noise signal.
[0095] The embodiments provided in this application eliminate the need for endless recording sampling, significantly reducing production time and storage space. Furthermore, during virtual performances, the speed and interval of glissando are no longer limited. What the user plays is exactly what they get, saving on learning costs. The output audio no longer involves speed-shifting or pitch-shifting processes that would damage the original sample's sound quality.
[0096] It is understood that in the specific embodiments of this application, data such as user information are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0097] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0098] According to another aspect of the embodiments of this application, a glissando audio simulation apparatus is also provided for implementing the above-described glissando audio simulation method. For example... Figure 11 As shown, the device includes: The first acquisition unit 1102 is used to acquire glissando sample audio and single-tone sample audio, wherein the starting pitch of the glissando sample audio and the single-tone sample audio is the same; The second acquisition unit 1104 is used to acquire the first intensity change curve corresponding to the glissando sample audio and the second intensity change curve corresponding to the single-tone sample audio. The first intensity change curve is used to represent the energy or amplitude of the glissando sample audio at different frequencies, and the second intensity change curve is used to represent the energy or amplitude of the single-tone sample audio at different frequencies. The determining unit 1106 is used to determine a target intensity change curve based on the first intensity change curve and the second intensity change curve, wherein the target intensity change curve is used to represent the energy or amplitude change of the single-tone sample audio at different frequencies due to glissando. The simulation unit 1108 is used to respond to the glissando operation triggered by the target monotone identifier by using the target intensity change curve to change the energy or amplitude of the target monotone audio matched by the target monotone identifier, thereby simulating the target glissando audio.
[0099] For specific embodiments, please refer to the example shown in the above-described glissando audio simulation device, which will not be repeated here.
[0100] As an optional solution, simulation unit 1108 includes: The first acquisition module is used to acquire the target frequencies associated with the target monotone audio. The first determining module is used to determine the intensity change information that matches each target frequency from the target intensity change curve, wherein the intensity change information is used for the energy or amplitude change of the target monotone audio at each target frequency due to glissando. The first simulation module is used to gain / attenuate the energy or amplitude of the target monotone audio at each target frequency using intensity change information, and to simulate the target glissando audio. The energy or amplitude of the target glissando audio at each target frequency matches the energy or amplitude of the target monotone audio at each target frequency according to the intensity change information.
[0101] For specific implementation examples, please refer to the examples shown in the above-described method for simulating glissando audio; these examples will not be repeated here.
[0102] As an optional solution, the second acquisition unit 1104 includes: The second acquisition module is used to acquire a first intensity change curve representing the energy or amplitude of the glissando sample audio at N key frequencies, and a second intensity change curve representing the energy or amplitude of the monotone sample audio at N key frequencies, wherein the N key frequencies include the target frequency.
[0103] For specific implementation examples, please refer to the examples shown in the above-described method for simulating glissando audio; these examples will not be repeated here.
[0104] As an optional solution, the second acquisition module includes: The first transformation submodule is used to perform a short-time Fourier transform on the glissando sample audio to obtain a first intensity data matrix of the full frequency range of the glissando sample audio at each time point; from the first intensity data matrix, the first intensity variation curves corresponding to N key frequencies are determined; and, The second transformation submodule is used to perform a short-time Fourier transform on the single-tone sample audio to obtain the second intensity data matrix of the full frequency of the single-tone sample audio at each time point; and to determine the second intensity change curves corresponding to N key frequencies from the second intensity data matrix.
[0105] For specific implementation examples, please refer to the examples shown in the above-described method for simulating glissando audio; these examples will not be repeated here.
[0106] As an optional solution, determining unit 1106 includes: The subtraction module is used to obtain the target intensity change curve by subtracting the values of the first intensity change curve and the second intensity change curve point by point.
[0107] For specific implementation examples, please refer to the examples shown in the above-described method for simulating glissando audio; these examples will not be repeated here.
[0108] As an optional solution, the device also includes: The third acquisition module is used to acquire the initial glissando sample audio before obtaining the target intensity change curve by subtracting the values of the first intensity change curve and the second intensity change curve point by point. The initial glissando sample audio and the single-tone sample audio have the same starting pitch. The processing module is used to process the initial glissando sample audio into a glissando sample audio with a fundamental frequency change amount less than or equal to a preset threshold before obtaining the target intensity change curve by subtracting the values of the first intensity change curve and the second intensity change curve point by point.
[0109] For specific implementation examples, please refer to the examples shown in the above-described method for simulating glissando audio; these examples will not be repeated here.
[0110] As an optional solution, the processing module includes: The acquisition submodule is used to acquire the fundamental frequency change curve corresponding to the initial glissando sample audio. The fundamental frequency change curve is used to represent the change of the fundamental frequency of the initial glissando sample audio over time. The sub-module is used to divide the glissando sample audio into multiple audio segments according to the time axis resolution of the fundamental frequency change curve; The conversion submodule is used to convert the fundamental frequency change curve inversely into an inversely proportional sample density change curve. The sampling submodule is used to reverse resample multiple audio segments according to the inverse sample density change curve, and supplement new audio segments by reverse resampling to obtain glissando sample audio.
[0111] For specific implementation examples, please refer to the examples shown in the above-described method for simulating glissando audio; these examples will not be repeated here.
[0112] As an optional solution, the device also includes: The scaling submodule is used to scale the second time axis of the first intensity change curve according to the first time axis of the second intensity change curve before obtaining the target intensity change curve by subtracting the values of the first intensity change curve and the second intensity change curve point by point. The first time axis corresponds to the scaled second time axis.
[0113] For specific implementation examples, please refer to the examples shown in the above-described method for simulating glissando audio; these examples will not be repeated here.
[0114] As an optional solution, the device also includes: The sampling unit is used to sample the response of the physical musical instrument to be simulated before simulating the target glissando audio by changing the energy or amplitude of the target single-tone audio matched with the target single-tone identifier using the target intensity change curve. The result is a sweep frequency response signal and an impulse response signal. The sweep frequency test signal is a signal whose frequency is continuously changed within a certain frequency range. The white noise test signal is a random signal with a uniform spectral distribution. The sweep frequency response signal is the response signal of the physical musical instrument after receiving the sweep frequency test signal. The impulse response signal is the response signal of the physical musical instrument after receiving the white noise test signal. The difference unit is used to obtain the frequency intensity difference between the sweep response signal and the impulse response signal before simulating the target glissando audio by changing the energy or amplitude of the target monophonic audio matched with the target monophonic identifier using the target intensity change curve. The frequency intensity difference is used to represent the spectral characteristics of the resonance of the physical musical instrument. The device also includes: The combined unit is used to obtain the current pitch of the target single-tone audio during the process of simulating the target glissando audio by changing the energy or amplitude of the target single-tone audio matched with the target single-tone identifier using the target intensity change curve, and to determine the convolution operation parameters in combination with the frequency intensity difference. The first integration unit is used to simulate the target glissando audio by performing energy or amplitude changes on the target monotone audio matched with the target monotone identifier using the target intensity change curve, and by performing energy or amplitude changes on the target monotone audio using the target intensity change curve to obtain candidate glissando audio, and then integrates the candidate glissando audio and the impact response signal using convolution operation parameters to simulate the target glissando audio.
[0115] For specific implementation examples, please refer to the examples shown in the above-described method for simulating glissando audio; these examples will not be repeated here.
[0116] As an optional solution, the device also includes: The third acquisition unit is used to acquire the operation acceleration corresponding to the target operation triggered by the target single tone mark during the process of simulating the target glissando audio by changing the energy or amplitude of the target single tone audio matched by the target single tone mark using the target intensity change curve. The target operation includes the glissando operation. The fourth acquisition unit is used to acquire noise audio that matches the operation acceleration during the process of simulating the target glissando audio by changing the energy or amplitude of the target monotone audio matched with the target monotone identifier using the target intensity change curve; The second integration unit is used to integrate the noise audio and the candidate glissando audio to simulate the target glissando audio when the target monotone audio is matched with the target monotone identifier by changing its energy or amplitude using the target intensity change curve and the candidate glissando audio is obtained by changing its energy or amplitude using the target intensity change curve.
[0117] For specific implementation examples, please refer to the examples shown in the above-described method for simulating glissando audio; these examples will not be repeated here.
[0118] According to another aspect of the embodiments of this application, an electronic device for implementing the above-described analog method for glissando audio is also provided. This electronic device may, but is not limited to, […]. Figure 1 The user equipment 102 or server 112 shown in the figure, in this embodiment, is taken as an example of an electronic device, namely user equipment 102. Further, as shown in the figure... Figure 12 As shown, the electronic device includes a memory 1202 and a processor 1204. The memory 1202 stores a computer program, and the processor 1204 is configured to execute the steps of any of the above method embodiments through the computer program.
[0119] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.
[0120] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program: S1, obtain the glissando sample audio and the single-tone sample audio, wherein the starting pitch of the glissando sample audio and the single-tone sample audio is the same; S2, obtain the first intensity change curve corresponding to the glissando sample audio and the second intensity change curve corresponding to the single-tone sample audio, wherein the first intensity change curve is used to represent the energy or amplitude of the glissando sample audio at different frequencies, and the second intensity change curve is used to represent the energy or amplitude of the single-tone sample audio at different frequencies; S3, determine the target intensity change curve based on the first intensity change curve and the second intensity change curve, wherein the target intensity change curve is used to represent the energy or amplitude change of the single-tone sample audio at different frequencies due to glissando; S4, in response to the glissando operation triggered by the target monotone identifier, uses the target intensity change curve to change the energy or amplitude of the target monotone audio matched by the target monotone identifier, thereby simulating the target glissando audio.
[0121] Alternatively, as those skilled in the art will understand, Figure 12 The structure shown is for illustrative purposes only. Figure 12 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 12 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 12 The different configurations shown.
[0122] The memory 1202 can be used to store software programs and modules, such as the program instructions / modules corresponding to the glissando audio simulation method and apparatus in this embodiment. The processor 1204 executes various functional applications and data processing by running the software programs and modules stored in the memory 1202, thereby realizing the aforementioned glissando audio simulation method. The memory 1202 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1202 may further include memory remotely located relative to the processor 1204, and these remote memories can be connected to electronic devices via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 1202 may be used, but is not limited to, to store information such as glissando sample audio, single-tone sample audio, and target glissando audio. As an example, such as Figure 12As shown, the memory 1202 may include, but is not limited to, the first acquisition unit 1102, the second acquisition unit 1104, the determination unit 1106, and the simulation unit 1108 in the aforementioned glissando audio simulation device. Furthermore, it may include, but is not limited to, other module units in the aforementioned glissando audio simulation device, which will not be elaborated upon in this example.
[0123] Optionally, the transmission device 1206 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1206 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 1206 is a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0124] In addition, the above-mentioned electronic device also includes: a display 1208 for displaying information such as the above-mentioned glissando sample audio, monophonic sample audio, and target glissando audio; and a connection bus 1210 for connecting the various module components in the above-mentioned electronic device.
[0125] In other embodiments, the aforementioned user equipment or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer network, and any form of computing device, such as a server, user equipment, or other electronic device, can become a node in the blockchain system by joining this peer-to-peer network.
[0126] According to one aspect of this application, a computer program product is provided, comprising a computer program / instructions containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit, it performs various functions provided in embodiments of this application.
[0127] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0128] It should be noted that the computer system of the electronic device is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0129] A computer system includes a Central Processing Unit (CPU), which performs various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) or loaded from RAM. ROM also stores various programs and data required for system operation. The CPU, ROM, and RAM are interconnected via a bus. Input / output interfaces (I / O interfaces) are also connected to the bus.
[0130] The following components are connected to the input / output interface: input sections including keyboards, mice, etc.; output sections including cathode ray tubes (CRTs), liquid crystal displays (LCDs), and speakers; storage sections including hard drives; and communication sections including network interface cards such as LAN cards and modems. The communication section performs communication processing via a network such as the Internet. Drives are also connected to the input / output interface as needed. Removable media, such as disks, optical discs, magneto-optical discs, semiconductor memories, etc., are installed on the drive as needed so that computer programs read from them can be installed into the storage section as required.
[0131] Specifically, according to embodiments of this application, the processes described in the various method flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit, it performs various functions defined in the system of this application.
[0132] According to one aspect of this application, a computer-readable storage medium is provided, wherein a processor of a computer device reads computer instructions from the computer-readable storage medium, and executes the computer instructions to cause the computer device to perform the methods provided in the various alternative implementations described above.
[0133] Optionally, in this embodiment, the computer-readable storage medium described above may be configured to store a computer program for performing the following steps: S1, obtain the glissando sample audio and the single-tone sample audio, wherein the starting pitch of the glissando sample audio and the single-tone sample audio is the same; S2, obtain the first intensity change curve corresponding to the glissando sample audio and the second intensity change curve corresponding to the single-tone sample audio, wherein the first intensity change curve is used to represent the energy or amplitude of the glissando sample audio at different frequencies, and the second intensity change curve is used to represent the energy or amplitude of the single-tone sample audio at different frequencies; S3, determine the target intensity change curve based on the first intensity change curve and the second intensity change curve, wherein the target intensity change curve is used to represent the energy or amplitude change of the single-tone sample audio at different frequencies due to glissando; S4, in response to the glissando operation triggered by the target monotone identifier, uses the target intensity change curve to change the energy or amplitude of the target monotone audio matched by the target monotone identifier, thereby simulating the target glissando audio.
[0134] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware of an electronic device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0135] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0136] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods of the various embodiments of this application.
[0137] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0138] In the several embodiments provided in this application, it should be understood that the disclosed user equipment can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.
[0139] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0140] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0141] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for simulating glissando audio, characterized in that, include: Obtain glissando sample audio and single-tone sample audio, wherein the starting pitch of the glissando sample audio and the starting pitch of the single-tone sample audio are the same; Obtain a first intensity change curve corresponding to the glissando sample audio and a second intensity change curve corresponding to the single-tone sample audio, wherein the first intensity change curve is used to represent the energy or amplitude of the glissando sample audio at different frequencies, and the second intensity change curve is used to represent the energy or amplitude of the single-tone sample audio at different frequencies; Determining a target intensity change curve based on the first intensity change curve and the second intensity change curve includes: obtaining the target intensity change curve by subtracting the values of the first intensity change curve and the second intensity change curve point by point, wherein the target intensity change curve is used to represent the energy or amplitude change of the single-tone sample audio at different frequencies due to glissando; In response to a glissando operation triggered by a target monotone identifier, the energy or amplitude of the target monotone audio matched by the target monotone identifier is varied using the target intensity change curve to simulate a target glissando audio. This includes: acquiring each target frequency associated with the target monotone audio; determining intensity change information matching each target frequency from the target intensity change curve, wherein the intensity change information is used to describe the energy or amplitude change of the target monotone audio at each target frequency due to the glissando; and using the intensity change information to gain / attenuate the energy or amplitude of the target monotone audio at each target frequency to simulate the target glissando audio, wherein the energy or amplitude of the target glissando audio at each target frequency matches the energy or amplitude of the target monotone audio at each target frequency according to the intensity change information.
2. The method according to claim 1, characterized in that, The step of obtaining the first intensity change curve corresponding to the glissando sample audio and the second intensity change curve corresponding to the single-tone sample audio includes: Obtain a first intensity variation curve representing the energy or amplitude of the glissando sample audio at N key frequencies, and a second intensity variation curve representing the energy or amplitude of the monotone sample audio at the N key frequencies, wherein the N key frequencies include the target frequency.
3. The method according to claim 2, characterized in that, The step of acquiring the first intensity variation curve representing the energy or amplitude of the glissando sample audio at N key frequencies, and the second intensity variation curve representing the energy or amplitude of the monotone sample audio at the N key frequencies, includes: Perform a short-time Fourier transform on the glissando sample audio to obtain a first intensity data matrix of the full frequency range of the glissando sample audio at each time point; determine the first intensity variation curves corresponding to the N key frequencies from the first intensity data matrix; and, The short-time Fourier transform is performed on the single-tone sample audio to obtain the second intensity data matrix of the full frequency of the single-tone sample audio at each time point; the second intensity change curve corresponding to the N key frequencies is determined from the second intensity data matrix.
4. The method according to claim 1, characterized in that, Before obtaining the target intensity change curve by subtracting the values of the first intensity change curve and the second intensity change curve point by point, the method further includes: Obtain the initial glissando sample audio, wherein the initial glissando sample audio and the single-tone sample audio have the same starting pitch; The initial glissando sample audio is processed into a glissando sample audio with a fundamental frequency change less than or equal to a preset threshold.
5. The method according to claim 4, characterized in that, The step of processing the glissando sample audio into a glissando sample audio with a fundamental frequency change less than or equal to a preset threshold includes: Obtain the fundamental frequency variation curve corresponding to the initial glissando sample audio, wherein the fundamental frequency variation curve is used to represent the change of the fundamental frequency of the initial glissando sample audio over time; According to the time axis resolution of the fundamental frequency variation curve, the glissando sample audio is divided into multiple audio segments; The fundamental frequency variation curve is converted inversely into an inversely proportional sample density variation curve; The multiple audio segments are reverse-resampled according to the inverse sample density change curve, and new audio segments are supplemented by the reverse resampling to obtain the glissando sample audio.
6. The method according to claim 5, characterized in that, Before obtaining the target intensity change curve by subtracting the values of the first intensity change curve and the second intensity change curve point by point, the method further includes: The second time axis of the second intensity change curve is scaled according to the first time axis of the second intensity change curve, wherein the first time axis corresponds to the scaled second time axis.
7. The method according to any one of claims 1 to 6, characterized in that, Before simulating the target glissando audio by varying the energy or amplitude of the target monotone audio matched with the target monotone identifier using the target intensity change curve, the method further includes: The simulated physical musical instrument is sampled using a sweep frequency test signal and a white noise test signal to obtain a sweep frequency response signal and an impulse response signal. The sweep frequency test signal is a signal whose frequency changes continuously within a certain frequency range, and the white noise test signal is a random signal with a uniform spectral distribution. The sweep frequency response signal is the response signal of the physical musical instrument after receiving the sweep frequency test signal, and the impulse response signal is the response signal of the physical musical instrument after receiving the white noise test signal. The frequency intensity difference between the swept frequency response signal and the impulse response signal is obtained, wherein the frequency intensity difference is used to represent the spectral characteristics of the resonance of the physical musical instrument; In the process of simulating the target glissando audio by varying the energy or amplitude of the target monotone audio matched with the target monotone identifier using the target intensity change curve, the method further includes: Obtain the current pitch of the target single-tone audio and determine the convolution operation parameters based on the frequency intensity difference; When the target single-tone audio is subjected to energy or amplitude changes using the target intensity change curve to obtain candidate glissando audio, the candidate glissando audio and the impact response signal are integrated and processed using the convolution operation parameters to simulate the target glissando audio.
8. The method according to any one of claims 1 to 6, characterized in that, In the process of simulating the target glissando audio by varying the energy or amplitude of the target monotone audio matched with the target monotone identifier using the target intensity change curve, the method further includes: Obtain the operation acceleration corresponding to the target operation triggered by the target single-tone identifier, wherein the target operation includes the glissando operation; Acquire noise audio that matches the operational acceleration; By using the target intensity change curve to change the energy or amplitude of the target monotone audio to obtain candidate glissando audio, the noise audio and the candidate glissando audio are integrated and processed to simulate the target glissando audio.
9. A device for simulating glissando audio, characterized in that, include: The first acquisition unit is used to acquire glissando sample audio and single-tone sample audio, wherein the starting pitch of the glissando sample audio and the starting pitch of the single-tone sample audio are the same; The second acquisition unit is used to acquire a first intensity change curve corresponding to the glissando sample audio and a second intensity change curve corresponding to the single-tone sample audio, wherein the first intensity change curve is used to represent the energy or amplitude of the glissando sample audio at different frequencies, and the second intensity change curve is used to represent the energy or amplitude of the single-tone sample audio at different frequencies. The determining unit is used to determine a target intensity change curve based on the first intensity change curve and the second intensity change curve, including: obtaining the target intensity change curve by subtracting the values of the first intensity change curve and the second intensity change curve point by point, wherein the target intensity change curve is used to represent the energy or amplitude change of the single-tone sample audio at different frequencies due to glissando; A simulation unit, in response to a glissando operation triggered by a target monotone identifier, simulates a target glissando audio by varying the energy or amplitude of the target monotone audio matched by the target monotone identifier using the target intensity change curve. This includes: acquiring various target frequencies associated with the target monotone audio; determining intensity change information matching each target frequency from the target intensity change curve, wherein the intensity change information is used to describe the energy or amplitude changes of the target monotone audio at each target frequency due to the glissando; and using the intensity change information to gain / attenuate the energy or amplitude of the target monotone audio at each target frequency to simulate the target glissando audio, wherein the energy or amplitude of the target glissando audio at each target frequency matches the energy or amplitude of the target monotone audio at each target frequency according to the intensity change information.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program is executed by an electronic device to perform the method according to any one of claims 1 to 8.
11. A computer program product, comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method described in any one of claims 1 to 8.
12. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 8 through the computer program.
Citation Information
Patent Citations
Music transcription
CN101652807A
Tone information processing apparatus and method
CN104036764A
