Page 1 of 1

Chord Detector Plugin

PostPosted: Wed Apr 17, 2019 3:39 am
by de-coder
Hello. I'm newbie who interested in touchdesigner from South Korea.
(Sorry, I can not speak English very well :roll: )

I made a Chord Detection custom plugin based on Chromagram Estimation & Chord Detection by Adam Stark and Mark Plumbley.
https://github.com/adamstark/Chord-Detector-and-Chromagram

It's DAT Custom Operator.

<Parameter Panel>
Image
(please open image with new tab)

1. CHOP:Audio File in
use CHOP Audio File In operation.

2. Target Channel
Select one channel among the entire channels of the audio file. (e.g. chan1 is 1)
(Samplerate is detected automatically.)

3. TouchDesigner's FPS
write FPS setting value of your touchdesigner project.

4. Calculate Buffer Size
It's audio frame size for calculate chromagram.

5. Calculate Average Count
It's corrects irregular chromagram values. For example, if Calculate Average Count is 10, C is corrected value of calculated values [C,C#,C,C#,F,C,C,F,C,C] (10 size array).


<Result Table>
Image
(please open image with new tab)

1. Chord
result chord of string type

2. Chord Num
result chord of int type
0=C,1=C#,2=D,3=D#,4=E,5=F,6=F#,7=G,8=G#,9=A,10=A#,11=B

3. Quality
The chord quality.
0=Minor,1=Major,2=Suspended,3=Dominant,4=Dimished5th,5=Augmented5th
https://en.wikipedia.org/wiki/Chord_names_and_symbols_(popular_music)#Chord_quality

4. Interval
additional interval number.
0=none,2=sus2,4=sus4,7=major7th/minor7th/dominant7th
https://en.wikipedia.org/wiki/Chord_names_and_symbols_(popular_music)#Intervals





[INSTALL Mac OSX]

OS : Mac OSX 10.12 or Higher
Tested on Touchdesigner099 2019.11370 64-bit


Install Path : /Users/<username>/Library/Application Support/Derivative/TouchDesigner099/Plugins
Copy file : ChordDetector.plugin

Install FFTW3
Terminal prompt: brew install fftw
(Hombrew : https://docs.brew.sh/Installation)



[INSTALL Window]

Tested on OS : Window 10 Pro 64 bit
Tested on Touchdesigner099 2019.11370 64-bit


Install Path : C:/Users/<username>/Documents/Derivative/Plugins
Copy files : ChordDetector.dll, libfftw3-3.dll




I hope it will be useful for you.

=====================================

please visit our corporate website
https://work.lightive.co

Re: Chord Detector Plugin

PostPosted: Wed Apr 17, 2019 7:50 am
by Achim
Thank you!

Re: Chord Detector Plugin

PostPosted: Mon Apr 22, 2019 9:13 am
by Simplo
Sorry, I can't understand where the TD file is :(

Re: Chord Detector Plugin

PostPosted: Mon Apr 22, 2019 9:22 am
by de-coder
Simplo wrote:Sorry, I can't understand where the TD file is :(


It's custom operator. so copy and paste files to TD's plugin folder.

This document will help you.
https://docs.derivative.ca/Experimental:Custom_Operators#Using_Custom_OPs

Re: Chord Detector Plugin

PostPosted: Tue Apr 23, 2019 3:16 am
by Simplo
Oh, I got it now!
Thank you!!
It seems very useful!!!!!