colorchord icon indicating copy to clipboard operation
colorchord copied to clipboard

More than one octave

Open markusb opened this issue 8 years ago • 5 comments

I'd like to modify colorchord to cover more than 1 octave. As I understand it, it repeats itself for each octave right now. I'd like to change it so that is covers something like three octaves without repeating itself.

From the code it looks like I need something like FIXBPERO=72 and MAXNOTES=36 and would certainly have to replace ECCtoHEX to implement my own note to color translation.

Any thoughts on this ?

markusb avatar Aug 17 '16 19:08 markusb

Though I believe this kind of defeats the point of ColorChord, I THINK the only change you would need to...

For CC2: make is to modify notefinder.c:230 That is where it folds the octaves. For CCEmbedded: embeddednf.c:151.

It would be a little jankey, since the term "octave" is confusing, but, should work?

cnlohr avatar Aug 17 '16 21:08 cnlohr

Thanks Charles,

I'll start modding, I'll see where I get :-).

markusb avatar Aug 19 '16 15:08 markusb

One big note: I highly recommend messing with the desktop version first, then porting your changes to the embedded version. It really is a lot easier (printf,etc.) to debug the desktop version.

cnlohr avatar Aug 19 '16 16:08 cnlohr

Had some success doing a similar mod - pretty messy & ugly code changes at the moment, but can upload if it's of use to anyone - to light up a single LED per detected semitone across 4 octaves. for application on a harp with 27 strings (110-1397Hz).

Ojsh avatar Sep 06 '16 13:09 Ojsh

Maybe I misunderstood. It's not until the DFT folds that the octave information is ridded. Without any modifications hardly at all you could get the data from all the octaves. The problem it looks like @markusb was running into was that he wanted to change the fold-size.

cnlohr avatar Sep 06 '16 20:09 cnlohr