# Audio to Midi - 'audio labeling' / transient detection

**URL:** <https://forum.juce.com/t/audio-to-midi-audio-labeling-transient-detection/29876>\
**Category:** Development\
**Created:** [October 16, 2018, 1:13am UTC](https://forum.juce.com/t/audio-to-midi-audio-labeling-transient-detection/29876 "2018-10-16T01:13:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hawkinsjb1](https://avatars.discourse-cdn.com/v4/letter/h/e9bcb4/32.png) [@Hawkinsjb1](https://forum.juce.com/u/Hawkinsjb1)\
**Post date:** [October 16, 2018, 1:13am UTC](https://forum.juce.com/t/audio-to-midi-audio-labeling-transient-detection/29876/1 "2018-10-16T01:13:50Z")

</div>

Say I want to implement a feature in a JUCE application which allows for a midi sequence to be generated that takes in audio (.wav etc.) and maps similar, repeating transients into a particular midi key. I’m not necessarily talking about pitch detection (tho any relevant info helps!), but instead a way of distinguishing the different elements in a generated drum sample. I think this feature is already in most DAWs but i’m not sure if an existing JUCE implementation has been established that you guys could explain. Or in the case that someone has attempted this before and has a general direction to point me in, that would be just as helpful. Thanks!

---

<div class="post-metadata">

**Author:** ![adamwilson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/adamwilson/32/1387_2.png) [@adamwilson](https://forum.juce.com/u/adamwilson)\
**Post date:** [October 16, 2018, 9:05am UTC](https://forum.juce.com/t/audio-to-midi-audio-labeling-transient-detection/29876/2 "2018-10-16T09:05:40Z")

</div>

There are some open source examples of this kind of thing around, e.g. [https://github.com/adamstark/Gist](https://github.com/adamstark/Gist) or [https://aubio.org](https://aubio.org)
