Chord Detector Plugin

Hello. I’m newbie who interested in touchdesigner from South Korea.
(Sorry, I can not speak English very well :unamused: )

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

It’s DAT Custom Operator.



(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).



(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
[url]Chord notation - Wikipedia

4. Interval
additional interval number.
0=none,2=sus2,4=sus4,7=major7th/minor7th/dominant7th
[url]Chord notation - Wikipedia

[INSTALL Mac OSX]

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

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

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

[INSTALL Window]

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

Install Path : C:/Users//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
ChordDetector_Window_DLLs.zip (965 KB)
ChordDetector.plugin.zip (20.7 KB)

3 Likes

Thank you!

1 Like

Sorry, I can’t understand where the TD file is :frowning:

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

Oh, I got it now!
Thank you!!
It seems very useful!!!

1 Like

Really nice! I use it a lot… thank you for your contribution!

1 Like

This is amazing de-coder! It’s quite accurate! This might be the thing I have been looking for to create a visual jam bot!

I have a problem on my Mac system. I downloaded the plugin, put it in the right document. Then I downloaded brew and installed the brew install fftw. Now everything should be fine but I can’t find the plugin in TD. (It isn’t displayed in the custom operator panel). Can someone help me?

Thanks for this! Would it be hard to adapt this plugin for arm64e (M1) instead of x86_64 (Intel) architecture? Or is there an additional installation step to take to get this to work with the new Mac Silicone (M1 Macs)?

Hi thanks for sharing.

I tried to copy and paste the files, but I didn’t find the plugins folder in derivatives, there was only a pallete.

Thank you!