Welcome to %s forums

BrainModular Users Forum

Login Register

detect transients

I need help on a Patch
Post Reply
joffo78
Member
Posts: 1033
Contact:

detect transients

Unread post by joffo78 » 18 Sep 2023, 17:21

Hello
I'm working on a patch that would automatically create markers on the transients of a recording.
I've managed to extract the peaks as an array by taking the highest levels. The problem is that some peaks are weaker than other parts of the signal.
To remedy the problem, I'd need to be able to abstract the signal.
the high levels that follow the true peaks.
I've managed to tinker with this by compressing my table, but it's still a DIY job.
If anyone has any ideas for refining the process.
I'll supply my patch as is.
Thanks
JF
find transients.pat
(82.39 KiB) Downloaded 278 times

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 19 Sep 2023, 23:53

Hi !
Maybe this will help ?!
valeur absolue.PNG
edit : the "abs" module will do the trick as well ;-)

I am working on the same kind of thing, but the transients are detected while recording

check the file :
transient to markers real time.pat
(116.56 KiB) Downloaded 820 times
Cheers

Olivar
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 20 Sep 2023, 13:34

Thaks i'll check it out !
detect while recording is maybe a simpler solution but it need to be up to date on each recording generation that could be a problem when we use overdub or circular mode.

joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 20 Sep 2023, 13:41

fter verification, switching to absolute values changes nothing

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 20 Sep 2023, 17:01

joffo78 wrote:
20 Sep 2023, 13:41
after verification, switching to absolute values changes nothing
the problem comes from the display array which is only 512 in size.

what if the markers where recorded on the sampler extra audio track ? their position would be in sync, even in case of circular buffer recording ?

this will be useful to get the transient position while playing (for example if your planning to use the transient infos to control speed while time-stretching (that's my plan)

otherwise, my patch can be modified to remove the existing markers that are passed by the "recording head" when in circular mode.

Cheers

Olivar
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 20 Sep 2023, 17:34

It seems to me that the size of the array is adjusted as the size of the recording increases.
Waveform detection also offers the possibility of loading several sounds and instantly obtaining the transients.

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 20 Sep 2023, 19:36

joffo78 wrote:
20 Sep 2023, 17:34
It seems to me that the size of the array is adjusted as the size of the recording increases.
Waveform detection also offers the possibility of loading several sounds and instantly obtaining the transients.
You're right, but the size of the array is smaller than the size of the wavefile so you may miss some transients.

another idea would be to use this array and perform a peak analysis inside a "procedural" module (HH6 only)
https://support.ircam.fr/docs/AudioScul ... ethod.html

not simple ;-)
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 21 Sep 2023, 19:22

Hello,
I did some homework, not perfect, works only with HH6 8)
transient to markers PROCEDURAL.pat
(345.79 KiB) Downloaded 846 times
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 22 Sep 2023, 13:34

Interesting
I'll check it soon !

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests