05-06-2024 03:31 AM
Hello. I have 2 .wav files with pulses from which I need to cut the first pulse so that it is the same length. My solution can only cut a given fragment (that is, find the necessary parameters by touch so that it cuts a specific fragment). Is it possible to implement this somehow differently? I think it’s hardly possible to achieve such accuracy manually
Здравствуйте. У меня есть 2 Вав файла с импульсами из которых нужно вырезать первый импульс чтобы он был одинаковой длинны. Мое решение может вырезать только заданный фрагмент (тоесть наощуп найти нужные параметры, чтобы оно вырезало определенный фрагмент). Может можно как-то иначе это реализовать ? Вручную добиться такой точности думаю вряд-ли возможно
05-06-2024 03:36 AM
@Kirin_Jindosh wrote:
Hello. I have 2 .wav files with pulses from which I need to cut the first pulse so that it is the same length. My solution can only cut a given fragment (that is, find the necessary parameters by touch so that it cuts a specific fragment). Is it possible to implement this somehow differently? I think it’s hardly possible to achieve such accuracy manually
Здравствуйте. У меня есть 2 Вав файла с импульсами из которых нужно вырезать первый импульс чтобы он был одинаковой длинны. Мое решение может вырезать только заданный фрагмент (тоесть наощуп найти нужные параметры, чтобы оно вырезало определенный фрагмент). Может можно как-то иначе это реализовать ? Вручную добиться такой точности думаю вряд-ли возможно
I don't understand. Media editors can manipulate a waveform to the individual sample. That should be accurate enough. Maybe that's not what you're asking?
05-06-2024 04:12 AM
Have you watched my program? There, in order to cut a fragment, you need to manually search, which is not very convenient and accurate. I need to specifically cut out the first pulse so that it matches the length of the first pulse of another audio file.
05-06-2024 05:48 AM
You can e.g. use the Threshold 1D array to find the start of your pulse and then use that index in the other.
05-06-2024 08:49 AM
So it’s for an array of numbers, but I need it for audio. Well, or I don’t know how to connect it
05-06-2024 10:02 AM
Hi Kirin,
@Kirin_Jindosh wrote:
So it’s for an array of numbers, but I need it for audio.
"Audio" aka waveforms basically are just arrays of numbers!
Mind to share your VI downconverted to LV2021 or older? (I prefer LV2019.)
05-06-2024 10:05 AM
Certainly can. I hope it was preserved correctly)
05-06-2024 12:35 PM
Hi Lirin,
thanks for conversion!
On your signals:
05-06-2024 04:50 PM
Sorry, but could you tell me or show me how to do this?
05-07-2024 12:42 AM
Hi Kirin,
@Kirin_Jindosh wrote:
Sorry, but could you tell me or show me how to do this?
Get the Y array of the waveform, compare with ">0.2" and search for the first TRUE in the resulting boolean array.
This is a very simple approach, based on the waveforms in your first message. You may apply some filtering when there could be more noise in the signals…