Csound Csound-dev Csound-tekno Search About

[Csnd] Harmon problems part 2

Date2009-02-07 12:47
FromUnUnUnium
Subject[Csnd] Harmon problems part 2
Hello everyone.

Having sorted out my initial problem with Harmon, I'm having another one - I
get lots of crackling and popping, though I'm quite sure it's not CPU
related, as my CPU usage is around 2%. Also, it seems the input and output
aren't clipping.

I do get the message, "Harmon234: out of range" - not "samples out of
range", just "out of range.

I am using an arbitrary number instead of a pitch tracker output to define
the root - could this be the problem? Still, it doesn't seem to stop
crackling whatever setting I give it, even if I feed a stable oscillator
into it, set to the same frequency as the root in Harmon...

Would appreciate someone taking a look! Best, Jeremy
Code follows:





sr = 44100
kr = 4410
ksmps = 10
nchnls = 2




instr 1

chn_k  "rootL", 1
chn_k  "rootR", 1
chn_k  "threeL", 1
chn_k  "threeR", 1
chn_k  "fiveL", 1
chn_k  "fiveR", 1
chn_k  "sevenL", 1
chn_k  "sevenR", 1
chn_k "porttime", 1

;control invalues


irootL        chnget          "rootL"
irootR       chnget          "rootR"
gkrootL    chnget     "rootL"
gkrootR    chnget    "rootR"
ithreeL        chnget          "threeL"
ithreeR       chnget          "threeR"
gkthreeL    chnget     "threeL"
gkthreeR   chnget    "threeR"
ifiveL        chnget          "fiveL"
ifiveR        chnget          "fiveR"
gkfiveL    chnget     "fiveL"
gkfiveR    chnget    "fiveR"
isevenL    chnget          "sevenL"
isevenR      chnget          "sevenR"
gksevenL    chnget     "sevenL"
gksevenR    chnget    "sevenR"

kTime chnget "porttime"

gkrootL        portk gkrootL, kTime,  irootL
gkrootR        portk gkrootR, kTime, irootR
gkthreeL        portk gkthreeL, kTime, ithreeL
gkthreeR        portk gkthreeR, kTime, ithreeR
gkfiveL        portk gkfiveL, kTime, ifiveL
gkfiveR        portk gkfiveR, kTime, ifiveR
gksevenL        portk gksevenL, kTime, isevenL
gksevenR        portk gksevenR, kTime, isevenR



asig, asig2,   ins 


;synth stuff

aresL harmon3 asig, octcps(gkrootL), gkthreeL, gkfiveL, gksevenL, 1,
octcps(50)
aresR harmon3 asig2, octcps(gkrootR), gkthreeR, gkfiveR, gksevenR, 1,
octcps(50)
;outs and envs

denorm aresL, aresR
outs aresL, aresR
endin






          
i 1 0 36000              ; Activate the always-on chnget instrument.
e                    ; indicates the end of the score



-- 
View this message in context: http://www.nabble.com/Harmon-problems-part-2-tp21887951p21887951.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2009-02-08 00:01
Fromdp51
Subject[Csnd] Re: Harmon problems part 2
If you use the chnset opcode to initialize the channels with some values,
it would be easier for others to test your csd.  Or you could supply a
simple
MaxMSP patch that initializes the channels, but then only MaxMSP owners
could test it.

Davis


UnUnUnium wrote:
> 
> Hello everyone.
> 
> Having sorted out my initial problem with Harmon, I'm having another one -
> I get lots of crackling and popping, though I'm quite sure it's not CPU
> related, as my CPU usage is around 2%. Also, it seems the input and output
> aren't clipping.
> 
> I do get the message, "Harmon234: out of range" - not "samples out of
> range", just "out of range.
> 
> I am using an arbitrary number instead of a pitch tracker output to define
> the root - could this be the problem? Still, it doesn't seem to stop
> crackling whatever setting I give it, even if I feed a stable oscillator
> into it, set to the same frequency as the root in Harmon...
> 
> Would appreciate someone taking a look! Best, Jeremy
> Code follows:
> 
> 
> 
> 
> 
> sr = 44100
> kr = 4410
> ksmps = 10
> nchnls = 2
> 
> 
> 
> 
> instr 1
> 
> chn_k  "rootL", 1
> chn_k  "rootR", 1
> chn_k  "threeL", 1
> chn_k  "threeR", 1
> chn_k  "fiveL", 1
> chn_k  "fiveR", 1
> chn_k  "sevenL", 1
> chn_k  "sevenR", 1
> chn_k "porttime", 1
> 
> ;control invalues
> 
> 
> irootL        chnget          "rootL"
> irootR       chnget          "rootR"
> gkrootL    chnget     "rootL"
> gkrootR    chnget    "rootR"
> ithreeL        chnget          "threeL"
> ithreeR       chnget          "threeR"
> gkthreeL    chnget     "threeL"
> gkthreeR   chnget    "threeR"
> ifiveL        chnget          "fiveL"
> ifiveR        chnget          "fiveR"
> gkfiveL    chnget     "fiveL"
> gkfiveR    chnget    "fiveR"
> isevenL    chnget          "sevenL"
> isevenR      chnget          "sevenR"
> gksevenL    chnget     "sevenL"
> gksevenR    chnget    "sevenR"
> 
> kTime chnget "porttime"
> 
> gkrootL        portk gkrootL, kTime,  irootL
> gkrootR        portk gkrootR, kTime, irootR
> gkthreeL        portk gkthreeL, kTime, ithreeL
> gkthreeR        portk gkthreeR, kTime, ithreeR
> gkfiveL        portk gkfiveL, kTime, ifiveL
> gkfiveR        portk gkfiveR, kTime, ifiveR
> gksevenL        portk gksevenL, kTime, isevenL
> gksevenR        portk gksevenR, kTime, isevenR
> 
> 
> 
> asig, asig2,   ins 
> 
> 
> ;synth stuff
> 
> aresL harmon3 asig, octcps(gkrootL), gkthreeL, gkfiveL, gksevenL, 1,
> octcps(50)
> aresR harmon3 asig2, octcps(gkrootR), gkthreeR, gkfiveR, gksevenR, 1,
> octcps(50)
> ;outs and envs
> 
> denorm aresL, aresR
> outs aresL, aresR
> endin
> 
> 
> 
> 
> 
> 
>           
> i 1 0 36000              ; Activate the always-on chnget instrument.
> e                    ; indicates the end of the score
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Harmon-problems-part-2-tp21887951p21894372.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2009-02-08 12:47
FromUnUnUnium
Subject[Csnd] Re: Harmon problems part 2
Thank you Davis,

I looked into using chnset, but quickly realised I don't really understand
how it works fundamentally - I would have to set a variable (like "krootL =
350"), then use krootL for the val of chnset? Is that right?

Sorry for my ignorance, just starting out!

In the mean time, I have posted a max patch for those who have max - should
load up all necessary values, just needs a sample to be loaded. The root
note is controllable in midi note values. Thanks for looking!
Patch follows:

{
    "patcher" :     {
        "fileversion" : 1,
        "rect" : [ 64.0, 131.0, 640.0, 506.0 ],
        "bglocked" : 0,
        "defrect" : [ 64.0, 131.0, 640.0, 506.0 ],
        "openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
        "openinpresentation" : 0,
        "default_fontsize" : 9.0,
        "default_fontface" : 0,
        "default_fontname" : "Arial",
        "gridonopen" : 0,
        "gridsize" : [ 15.0, 15.0 ],
        "gridsnaponopen" : 0,
        "toolbarvisible" : 1,
        "boxanimatetime" : 200,
        "imprint" : 0,
        "metadata" : [  ],
        "boxes" : [             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "loadmess 2",
                    "fontname" : "Arial",
                    "outlettype" : [ "" ],
                    "hidden" : 1,
                    "fontsize" : 9.0,
                    "id" : "obj-22",
                    "numinlets" : 1,
                    "patching_rect" : [ 380.0, 59.0, 57.0, 17.0 ],
                    "numoutlets" : 1
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "loadmess 75",
                    "fontname" : "Arial",
                    "outlettype" : [ "" ],
                    "hidden" : 1,
                    "fontsize" : 9.0,
                    "id" : "obj-21",
                    "numinlets" : 1,
                    "patching_rect" : [ 203.0, 28.0, 62.0, 17.0 ],
                    "numoutlets" : 1
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "comment",
                    "text" : "Root pitch (in midi notes)",
                    "linecount" : 3,
                    "fontname" : "Arial",
                    "fontsize" : 9.0,
                    "id" : "obj-20",
                    "numinlets" : 1,
                    "patching_rect" : [ 237.0, 95.0, 55.0, 38.0 ],
                    "numoutlets" : 0
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "comment",
                    "text" : "port time",
                    "fontname" : "Arial",
                    "presentation_rect" : [ 361.0, 62.0, 0.0, 0.0 ],
                    "fontsize" : 9.0,
                    "id" : "obj-15",
                    "numinlets" : 1,
                    "patching_rect" : [ 364.0, 117.0, 64.0, 17.0 ],
                    "numoutlets" : 0
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "comment",
                    "text" : "Chord types 1 - 4\n1: major\n2: minor \n3:
7th\n4 diminished",
                    "linecount" : 6,
                    "fontname" : "Arial",
                    "fontsize" : 9.0,
                    "id" : "obj-13",
                    "numinlets" : 1,
                    "patching_rect" : [ 297.0, 65.0, 64.0, 69.0 ],
                    "numoutlets" : 0
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "meter~",
                    "outlettype" : [ "float" ],
                    "id" : "obj-3",
                    "numinlets" : 1,
                    "patching_rect" : [ 84.0, 270.0, 80.0, 13.0 ],
                    "numoutlets" : 1
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "meter~",
                    "outlettype" : [ "float" ],
                    "id" : "obj-2",
                    "numinlets" : 1,
                    "patching_rect" : [ 79.0, 221.0, 80.0, 13.0 ],
                    "numoutlets" : 1
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "*~ 0.5",
                    "fontname" : "Arial",
                    "outlettype" : [ "signal" ],
                    "fontsize" : 9.0,
                    "id" : "obj-17",
                    "numinlets" : 2,
                    "patching_rect" : [ 240.0, 259.0, 34.0, 17.0 ],
                    "numoutlets" : 1
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "*~ 0.5",
                    "fontname" : "Arial",
                    "outlettype" : [ "signal" ],
                    "fontsize" : 9.0,
                    "id" : "obj-18",
                    "numinlets" : 2,
                    "patching_rect" : [ 196.0, 259.0, 34.0, 17.0 ],
                    "numoutlets" : 1
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "flonum",
                    "fontname" : "Arial",
                    "outlettype" : [ "float", "bang" ],
                    "fontsize" : 9.0,
                    "id" : "obj-14",
                    "numinlets" : 1,
                    "minimum" : 0.1,
                    "patching_rect" : [ 363.0, 136.0, 50.0, 17.0 ],
                    "numoutlets" : 2,
                    "maximum" : 4.0
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "*~ 0.5",
                    "fontname" : "Arial",
                    "outlettype" : [ "signal" ],
                    "fontsize" : 9.0,
                    "id" : "obj-11",
                    "numinlets" : 2,
                    "patching_rect" : [ 178.0, 137.0, 34.0, 17.0 ],
                    "numoutlets" : 1
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "*~ 0.5",
                    "fontname" : "Arial",
                    "outlettype" : [ "signal" ],
                    "fontsize" : 9.0,
                    "id" : "obj-9",
                    "numinlets" : 2,
                    "patching_rect" : [ 142.0, 137.0, 34.0, 17.0 ],
                    "numoutlets" : 1
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "number",
                    "fontname" : "Arial",
                    "outlettype" : [ "int", "bang" ],
                    "fontsize" : 9.0,
                    "id" : "obj-5",
                    "numinlets" : 1,
                    "minimum" : 1,
                    "patching_rect" : [ 300.0, 137.0, 50.0, 17.0 ],
                    "numoutlets" : 2,
                    "maximum" : 4
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "number",
                    "fontname" : "Arial",
                    "outlettype" : [ "int", "bang" ],
                    "fontsize" : 9.0,
                    "id" : "obj-10",
                    "numinlets" : 1,
                    "minimum" : 12,
                    "patching_rect" : [ 247.0, 137.0, 50.0, 17.0 ],
                    "numoutlets" : 2,
                    "maximum" : 82
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "ezdac~",
                    "id" : "obj-7",
                    "numinlets" : 2,
                    "patching_rect" : [ 211.0, 303.0, 45.0, 45.0 ],
                    "numoutlets" : 0
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "message",
                    "text" : "open, loop 1, 1",
                    "fontname" : "Arial",
                    "outlettype" : [ "" ],
                    "fontsize" : 9.0,
                    "id" : "obj-6",
                    "numinlets" : 2,
                    "patching_rect" : [ 126.0, 64.0, 70.0, 15.0 ],
                    "numoutlets" : 1
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "sfplay~ 2",
                    "fontname" : "Arial",
                    "outlettype" : [ "signal", "signal", "bang" ],
                    "fontsize" : 9.0,
                    "id" : "obj-4",
                    "numinlets" : 2,
                    "patching_rect" : [ 142.0, 89.0, 47.0, 17.0 ],
                    "numoutlets" : 3,
                    "save" : [ "#N", "sfplay~", "", 2, 120960, 0, "", ";" ]
                }

            }
,             {
                "box" :                 {
                    "maxclass" : "newobj",
                    "text" : "CSharmon2E",
                    "fontname" : "Arial",
                    "outlettype" : [ "signal", "signal" ],
                    "fontsize" : 9.0,
                    "id" : "obj-1",
                    "numinlets" : 7,
                    "patching_rect" : [ 189.0, 199.0, 100.0, 17.0 ],
                    "numoutlets" : 2
                }

            }
 ],
        "lines" : [             {
                "patchline" :                 {
                    "source" : [ "obj-22", 0 ],
                    "destination" : [ "obj-5", 0 ],
                    "hidden" : 1,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-21", 0 ],
                    "destination" : [ "obj-10", 0 ],
                    "hidden" : 1,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-1", 1 ],
                    "destination" : [ "obj-17", 0 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-1", 0 ],
                    "destination" : [ "obj-18", 0 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-11", 0 ],
                    "destination" : [ "obj-1", 1 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-9", 0 ],
                    "destination" : [ "obj-1", 0 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-5", 0 ],
                    "destination" : [ "obj-1", 5 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-5", 0 ],
                    "destination" : [ "obj-1", 4 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-10", 0 ],
                    "destination" : [ "obj-1", 2 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-10", 0 ],
                    "destination" : [ "obj-1", 3 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-14", 0 ],
                    "destination" : [ "obj-1", 6 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-6", 0 ],
                    "destination" : [ "obj-4", 0 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-4", 0 ],
                    "destination" : [ "obj-9", 0 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-4", 1 ],
                    "destination" : [ "obj-11", 0 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-18", 0 ],
                    "destination" : [ "obj-7", 0 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-17", 0 ],
                    "destination" : [ "obj-7", 1 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-9", 0 ],
                    "destination" : [ "obj-2", 0 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
,             {
                "patchline" :                 {
                    "source" : [ "obj-11", 0 ],
                    "destination" : [ "obj-3", 0 ],
                    "hidden" : 0,
                    "midpoints" : [  ]
                }

            }
 ]
    }

}


dp51 wrote:
> 
> If you use the chnset opcode to initialize the channels with some values,
> it would be easier for others to test your csd.  Or you could supply a
> simple
> MaxMSP patch that initializes the channels, but then only MaxMSP owners
> could test it.
> 
> Davis
> 
> 
> UnUnUnium wrote:
>> 
>> Hello everyone.
>> 
>> Having sorted out my initial problem with Harmon, I'm having another one
>> - I get lots of crackling and popping, though I'm quite sure it's not CPU
>> related, as my CPU usage is around 2%. Also, it seems the input and
>> output aren't clipping.
>> 
>> I do get the message, "Harmon234: out of range" - not "samples out of
>> range", just "out of range.
>> 
>> I am using an arbitrary number instead of a pitch tracker output to
>> define the root - could this be the problem? Still, it doesn't seem to
>> stop crackling whatever setting I give it, even if I feed a stable
>> oscillator into it, set to the same frequency as the root in Harmon...
>> 
>> Would appreciate someone taking a look! Best, Jeremy
>> Code follows:
>> 
>> 
>> 
>> 
>> 
>> sr = 44100
>> kr = 4410
>> ksmps = 10
>> nchnls = 2
>> 
>> 
>> 
>> 
>> instr 1
>> 
>> chn_k  "rootL", 1
>> chn_k  "rootR", 1
>> chn_k  "threeL", 1
>> chn_k  "threeR", 1
>> chn_k  "fiveL", 1
>> chn_k  "fiveR", 1
>> chn_k  "sevenL", 1
>> chn_k  "sevenR", 1
>> chn_k "porttime", 1
>> 
>> ;control invalues
>> 
>> 
>> irootL        chnget          "rootL"
>> irootR       chnget          "rootR"
>> gkrootL    chnget     "rootL"
>> gkrootR    chnget    "rootR"
>> ithreeL        chnget          "threeL"
>> ithreeR       chnget          "threeR"
>> gkthreeL    chnget     "threeL"
>> gkthreeR   chnget    "threeR"
>> ifiveL        chnget          "fiveL"
>> ifiveR        chnget          "fiveR"
>> gkfiveL    chnget     "fiveL"
>> gkfiveR    chnget    "fiveR"
>> isevenL    chnget          "sevenL"
>> isevenR      chnget          "sevenR"
>> gksevenL    chnget     "sevenL"
>> gksevenR    chnget    "sevenR"
>> 
>> kTime chnget "porttime"
>> 
>> gkrootL        portk gkrootL, kTime,  irootL
>> gkrootR        portk gkrootR, kTime, irootR
>> gkthreeL        portk gkthreeL, kTime, ithreeL
>> gkthreeR        portk gkthreeR, kTime, ithreeR
>> gkfiveL        portk gkfiveL, kTime, ifiveL
>> gkfiveR        portk gkfiveR, kTime, ifiveR
>> gksevenL        portk gksevenL, kTime, isevenL
>> gksevenR        portk gksevenR, kTime, isevenR
>> 
>> 
>> 
>> asig, asig2,   ins 
>> 
>> 
>> ;synth stuff
>> 
>> aresL harmon3 asig, octcps(gkrootL), gkthreeL, gkfiveL, gksevenL, 1,
>> octcps(50)
>> aresR harmon3 asig2, octcps(gkrootR), gkthreeR, gkfiveR, gksevenR, 1,
>> octcps(50)
>> ;outs and envs
>> 
>> denorm aresL, aresR
>> outs aresL, aresR
>> endin
>> 
>> 
>> 
>> 
>> 
>> 
>>           
>> i 1 0 36000              ; Activate the always-on chnget instrument.
>> e                    ; indicates the end of the score
>> 
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Harmon-problems-part-2-tp21887951p21898561.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2009-02-09 02:37
Fromdp51
Subject[Csnd] Re: Harmon problems part 2
You forgot to post the "CSharmon2E" sub-patch.  It's "pinked" out in your
main patch.

WRT chnset, it's pretty easy to use.  Just pust something like:

  chnset 1.0, "value"

before chnget's referencing the same channel.

WRT harmon3, u really need to track the pitch of the incoming audio as best
as u can.  Using a non-tracked value for koct results in various artifacts 
(clicks, noise).  I'm beginning to think that it's not really a bug; you're
just
not using it the way it was meant to be used (I think).  In fact, you would
probably still get artifacts with pitch-tracking if the audio is spectrally
diverse.
Here's simple example (un-comment the line that's commented to listen to 
non-tracked version):



sr = 44100
ksmps = 10
nchnls = 2
0dbfs = 1
giSine ftgen 1, 0, 16385, 10, 1
instr 1
	klfo lfo 1, .25, 1
	klfo = klfo + 1.5
	kcps = 440 * klfo
	asig oscili .25, kcps, giSine
        ares harmon3 asig, octcps(kcps), 1, 1.25, 1.68, 0, octcps(50) ;
matched oct
	;ares harmon3 asig, octcps(880), 1, 1.25, 1.68, 0, octcps(50)   ; constant
oct
    outch 1, ares, 2, ares
endin


i 1 0 86400
e 

 



-- 
View this message in context: http://www.nabble.com/Harmon-problems-part-2-tp21887951p21906241.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2009-02-09 20:41
FromUnUnUnium
Subject[Csnd] Re: Harmon problems part 2
oops! It appears I did forget the patcher! Not on a winning streak this
week...I will include it after the message.

That is a clear explanation of chnset, I was really over thinking it. I
thought the value had to be preceded by a k,a, or i.

Regarding Harmon3, am I correct in thinking that more inharmonic partials =
more artifacts with the opcode then? What I will do is remake this code
including the suggested Csound pitch tracking opcode over the next week and
get back.

In the mean time, here is the missing abstraction below. (CSharmon2E) Thanks
for your help and patience!

Jeremy

{
	"boxes" : [ 		{
			"box" : 			{
				"maxclass" : "comment",
				"text" : "Actual frequencies",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 0,
				"id" : "obj-46",
				"fontsize" : 9.0,
				"patching_rect" : [ 905.0, 435.0, 150.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "comment",
				"text" : "Actual frequencies",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 0,
				"id" : "obj-45",
				"fontsize" : 9.0,
				"patching_rect" : [ 743.0, 436.0, 150.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "comment",
				"text" : "Actual frequencies",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 0,
				"id" : "obj-44",
				"fontsize" : 9.0,
				"patching_rect" : [ 576.0, 439.0, 150.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "comment",
				"text" : "Actual frequencies",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 0,
				"id" : "obj-33",
				"fontsize" : 9.0,
				"patching_rect" : [ 375.0, 441.0, 150.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "inlet",
				"numinlets" : 0,
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-27",
				"patching_rect" : [ 761.0, 107.0, 15.0, 15.0 ],
				"comment" : "Portime (in seconds)"
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control porttime $1",
				"numinlets" : 2,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-26",
				"fontsize" : 9.0,
				"patching_rect" : [ 975.0, 462.0, 85.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "p",
				"numinlets" : 2,
				"fontname" : "Arial",
				"numoutlets" : 3,
				"outlettype" : [ "float", "float", "float" ],
				"id" : "obj-62",
				"fontsize" : 9.0,
				"patching_rect" : [ 556.0, 165.0, 100.0, 17.0 ],
				"patcher" : 				{
					"fileversion" : 1,
					"rect" : [ 0.0, 0.0, 640.0, 480.0 ],
					"bglocked" : 0,
					"defrect" : [ 0.0, 0.0, 640.0, 480.0 ],
					"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
					"openinpresentation" : 0,
					"default_fontsize" : 9.0,
					"default_fontface" : 0,
					"default_fontname" : "Arial",
					"gridonopen" : 0,
					"gridsize" : [ 15.0, 15.0 ],
					"gridsnaponopen" : 0,
					"toolbarvisible" : 1,
					"boxanimatetime" : 200,
					"imprint" : 0,
					"metadata" : [  ],
					"boxes" : [ 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "t b i",
								"numinlets" : 1,
								"fontname" : "Arial",
								"numoutlets" : 2,
								"outlettype" : [ "bang", "int" ],
								"id" : "obj-48",
								"fontsize" : 9.0,
								"patching_rect" : [ 136.0, 156.0, 32.5, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "+ 1.",
								"numinlets" : 2,
								"fontname" : "Arial",
								"numoutlets" : 1,
								"outlettype" : [ "float" ],
								"id" : "obj-49",
								"fontsize" : 9.0,
								"patching_rect" : [ 138.0, 185.0, 32.5, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "t b i",
								"numinlets" : 1,
								"fontname" : "Arial",
								"numoutlets" : 2,
								"outlettype" : [ "bang", "int" ],
								"id" : "obj-46",
								"fontsize" : 9.0,
								"patching_rect" : [ 103.0, 156.0, 32.5, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "+ 1.",
								"numinlets" : 2,
								"fontname" : "Arial",
								"numoutlets" : 1,
								"outlettype" : [ "float" ],
								"id" : "obj-47",
								"fontsize" : 9.0,
								"patching_rect" : [ 105.0, 185.0, 32.5, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "t b i",
								"numinlets" : 1,
								"fontname" : "Arial",
								"numoutlets" : 2,
								"outlettype" : [ "bang", "int" ],
								"id" : "obj-45",
								"fontsize" : 9.0,
								"patching_rect" : [ 70.0, 156.0, 32.5, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "+ 1.",
								"numinlets" : 2,
								"fontname" : "Arial",
								"numoutlets" : 1,
								"outlettype" : [ "float" ],
								"id" : "obj-44",
								"fontsize" : 9.0,
								"patching_rect" : [ 72.0, 185.0, 32.5, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "unpack 0 0 0",
								"numinlets" : 1,
								"fontname" : "Arial",
								"numoutlets" : 3,
								"outlettype" : [ "int", "int", "int" ],
								"id" : "obj-32",
								"fontsize" : 9.0,
								"patching_rect" : [ 69.0, 129.0, 62.0, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "coll chords -1",
								"numinlets" : 1,
								"fontname" : "Arial",
								"numoutlets" : 4,
								"outlettype" : [ "", "", "", "" ],
								"id" : "obj-26",
								"fontsize" : 9.0,
								"patching_rect" : [ 50.0, 100.0, 64.0, 17.0 ],
								"save" : [ "#N", "coll", "chords", 1, ";", "#T", "flags", 1, 0, ";",
"#T", 1, 4, 7, 11, ";", "#T", 2, 3, 7, 10, ";", "#T", 3, 4, 7, 10, ";",
"#T", 4, 3, 6, 10, ";" ],
								"saved_object_attributes" : 								{
									"embed" : 1
								}

							}

						}
, 						{
							"box" : 							{
								"maxclass" : "inlet",
								"numinlets" : 0,
								"numoutlets" : 1,
								"outlettype" : [ "" ],
								"id" : "obj-56",
								"patching_rect" : [ 55.0, 40.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "inlet",
								"numinlets" : 0,
								"numoutlets" : 1,
								"outlettype" : [ "" ],
								"id" : "obj-57",
								"patching_rect" : [ 105.0, 40.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "outlet",
								"numinlets" : 1,
								"numoutlets" : 0,
								"id" : "obj-58",
								"patching_rect" : [ 77.0, 262.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "outlet",
								"numinlets" : 1,
								"numoutlets" : 0,
								"id" : "obj-59",
								"patching_rect" : [ 110.0, 262.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "outlet",
								"numinlets" : 1,
								"numoutlets" : 0,
								"id" : "obj-60",
								"patching_rect" : [ 143.0, 262.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
 ],
					"lines" : [ 						{
							"patchline" : 							{
								"source" : [ "obj-26", 0 ],
								"destination" : [ "obj-32", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-32", 0 ],
								"destination" : [ "obj-45", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-45", 0 ],
								"destination" : [ "obj-44", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-45", 1 ],
								"destination" : [ "obj-44", 1 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-46", 1 ],
								"destination" : [ "obj-47", 1 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-46", 0 ],
								"destination" : [ "obj-47", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-32", 1 ],
								"destination" : [ "obj-46", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-48", 0 ],
								"destination" : [ "obj-49", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-48", 1 ],
								"destination" : [ "obj-49", 1 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-32", 2 ],
								"destination" : [ "obj-48", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-56", 0 ],
								"destination" : [ "obj-26", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-57", 0 ],
								"destination" : [ "obj-44", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-57", 0 ],
								"destination" : [ "obj-47", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-57", 0 ],
								"destination" : [ "obj-49", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-44", 0 ],
								"destination" : [ "obj-58", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-47", 0 ],
								"destination" : [ "obj-59", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-49", 0 ],
								"destination" : [ "obj-60", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
 ]
				}
,
				"saved_object_attributes" : 				{
					"default_fontname" : "Arial",
					"globalpatchername" : "",
					"default_fontsize" : 9.0,
					"fontname" : "Arial",
					"default_fontface" : 0,
					"fontface" : 0,
					"fontsize" : 9.0
				}

			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "p",
				"numinlets" : 2,
				"fontname" : "Arial",
				"numoutlets" : 3,
				"outlettype" : [ "float", "float", "float" ],
				"id" : "obj-61",
				"fontsize" : 9.0,
				"patching_rect" : [ 413.0, 166.0, 100.0, 17.0 ],
				"patcher" : 				{
					"fileversion" : 1,
					"rect" : [ 0.0, 0.0, 640.0, 480.0 ],
					"bglocked" : 0,
					"defrect" : [ 0.0, 0.0, 640.0, 480.0 ],
					"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
					"openinpresentation" : 0,
					"default_fontsize" : 9.0,
					"default_fontface" : 0,
					"default_fontname" : "Arial",
					"gridonopen" : 0,
					"gridsize" : [ 15.0, 15.0 ],
					"gridsnaponopen" : 0,
					"toolbarvisible" : 1,
					"boxanimatetime" : 200,
					"imprint" : 0,
					"metadata" : [  ],
					"boxes" : [ 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "t b i",
								"numinlets" : 1,
								"fontname" : "Arial",
								"numoutlets" : 2,
								"outlettype" : [ "bang", "int" ],
								"id" : "obj-48",
								"fontsize" : 9.0,
								"patching_rect" : [ 136.0, 156.0, 32.5, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "+ 1.",
								"numinlets" : 2,
								"fontname" : "Arial",
								"numoutlets" : 1,
								"outlettype" : [ "float" ],
								"id" : "obj-49",
								"fontsize" : 9.0,
								"patching_rect" : [ 138.0, 185.0, 32.5, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "t b i",
								"numinlets" : 1,
								"fontname" : "Arial",
								"numoutlets" : 2,
								"outlettype" : [ "bang", "int" ],
								"id" : "obj-46",
								"fontsize" : 9.0,
								"patching_rect" : [ 103.0, 156.0, 32.5, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "+ 1.",
								"numinlets" : 2,
								"fontname" : "Arial",
								"numoutlets" : 1,
								"outlettype" : [ "float" ],
								"id" : "obj-47",
								"fontsize" : 9.0,
								"patching_rect" : [ 105.0, 185.0, 32.5, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "t b i",
								"numinlets" : 1,
								"fontname" : "Arial",
								"numoutlets" : 2,
								"outlettype" : [ "bang", "int" ],
								"id" : "obj-45",
								"fontsize" : 9.0,
								"patching_rect" : [ 70.0, 156.0, 32.5, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "+ 1.",
								"numinlets" : 2,
								"fontname" : "Arial",
								"numoutlets" : 1,
								"outlettype" : [ "float" ],
								"id" : "obj-44",
								"fontsize" : 9.0,
								"patching_rect" : [ 72.0, 185.0, 32.5, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "unpack 0 0 0",
								"numinlets" : 1,
								"fontname" : "Arial",
								"numoutlets" : 3,
								"outlettype" : [ "int", "int", "int" ],
								"id" : "obj-32",
								"fontsize" : 9.0,
								"patching_rect" : [ 69.0, 129.0, 62.0, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "coll chords -1",
								"numinlets" : 1,
								"fontname" : "Arial",
								"numoutlets" : 4,
								"outlettype" : [ "", "", "", "" ],
								"id" : "obj-26",
								"fontsize" : 9.0,
								"patching_rect" : [ 50.0, 100.0, 64.0, 17.0 ],
								"save" : [ "#N", "coll", "chords", 1, ";", "#T", "flags", 1, 0, ";",
"#T", 1, 4, 7, 11, ";", "#T", 2, 3, 7, 10, ";", "#T", 3, 4, 7, 10, ";",
"#T", 4, 3, 6, 10, ";" ],
								"saved_object_attributes" : 								{
									"embed" : 1
								}

							}

						}
, 						{
							"box" : 							{
								"maxclass" : "inlet",
								"numinlets" : 0,
								"numoutlets" : 1,
								"outlettype" : [ "" ],
								"id" : "obj-56",
								"patching_rect" : [ 55.0, 40.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "inlet",
								"numinlets" : 0,
								"numoutlets" : 1,
								"outlettype" : [ "" ],
								"id" : "obj-57",
								"patching_rect" : [ 105.0, 40.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "outlet",
								"numinlets" : 1,
								"numoutlets" : 0,
								"id" : "obj-58",
								"patching_rect" : [ 77.0, 262.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "outlet",
								"numinlets" : 1,
								"numoutlets" : 0,
								"id" : "obj-59",
								"patching_rect" : [ 110.0, 262.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "outlet",
								"numinlets" : 1,
								"numoutlets" : 0,
								"id" : "obj-60",
								"patching_rect" : [ 143.0, 262.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
 ],
					"lines" : [ 						{
							"patchline" : 							{
								"source" : [ "obj-49", 0 ],
								"destination" : [ "obj-60", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-47", 0 ],
								"destination" : [ "obj-59", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-44", 0 ],
								"destination" : [ "obj-58", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-57", 0 ],
								"destination" : [ "obj-49", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-57", 0 ],
								"destination" : [ "obj-47", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-57", 0 ],
								"destination" : [ "obj-44", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-56", 0 ],
								"destination" : [ "obj-26", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-32", 2 ],
								"destination" : [ "obj-48", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-48", 1 ],
								"destination" : [ "obj-49", 1 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-48", 0 ],
								"destination" : [ "obj-49", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-32", 1 ],
								"destination" : [ "obj-46", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-46", 0 ],
								"destination" : [ "obj-47", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-46", 1 ],
								"destination" : [ "obj-47", 1 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-45", 1 ],
								"destination" : [ "obj-44", 1 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-45", 0 ],
								"destination" : [ "obj-44", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-32", 0 ],
								"destination" : [ "obj-45", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-26", 0 ],
								"destination" : [ "obj-32", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
 ]
				}
,
				"saved_object_attributes" : 				{
					"default_fontname" : "Arial",
					"globalpatchername" : "",
					"default_fontsize" : 9.0,
					"fontname" : "Arial",
					"default_fontface" : 0,
					"fontface" : 0,
					"fontsize" : 9.0
				}

			}

		}
, 		{
			"box" : 			{
				"maxclass" : "number",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 2,
				"outlettype" : [ "int", "bang" ],
				"id" : "obj-42",
				"fontsize" : 9.0,
				"patching_rect" : [ 821.0, 407.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "number",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 2,
				"outlettype" : [ "int", "bang" ],
				"id" : "obj-43",
				"fontsize" : 9.0,
				"patching_rect" : [ 889.0, 396.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "number",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 2,
				"outlettype" : [ "int", "bang" ],
				"id" : "obj-36",
				"fontsize" : 9.0,
				"patching_rect" : [ 688.0, 404.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "number",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 2,
				"outlettype" : [ "int", "bang" ],
				"id" : "obj-38",
				"fontsize" : 9.0,
				"patching_rect" : [ 756.0, 393.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "number",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 2,
				"outlettype" : [ "int", "bang" ],
				"id" : "obj-40",
				"fontsize" : 9.0,
				"patching_rect" : [ 356.0, 415.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "number",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 2,
				"outlettype" : [ "int", "bang" ],
				"id" : "obj-41",
				"fontsize" : 9.0,
				"patching_rect" : [ 424.0, 404.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "number",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 2,
				"outlettype" : [ "int", "bang" ],
				"id" : "obj-39",
				"fontsize" : 9.0,
				"patching_rect" : [ 536.0, 414.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "number",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 2,
				"outlettype" : [ "int", "bang" ],
				"id" : "obj-37",
				"fontsize" : 9.0,
				"patching_rect" : [ 604.0, 403.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "mtof",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-34",
				"fontsize" : 9.0,
				"patching_rect" : [ 398.0, 369.0, 28.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "mtof",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-35",
				"fontsize" : 9.0,
				"patching_rect" : [ 330.0, 370.0, 28.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "mtof",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-28",
				"fontsize" : 9.0,
				"patching_rect" : [ 848.0, 358.0, 28.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "mtof",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-29",
				"fontsize" : 9.0,
				"patching_rect" : [ 780.0, 359.0, 28.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control sevenR $1",
				"numinlets" : 2,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-30",
				"fontsize" : 9.0,
				"patching_rect" : [ 886.0, 462.0, 83.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control sevenL $1",
				"numinlets" : 2,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-31",
				"fontsize" : 9.0,
				"patching_rect" : [ 800.0, 461.0, 82.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "mtof",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-24",
				"fontsize" : 9.0,
				"patching_rect" : [ 713.0, 357.0, 28.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "mtof",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-25",
				"fontsize" : 9.0,
				"patching_rect" : [ 645.0, 358.0, 28.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control fiveR $1",
				"numinlets" : 2,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-22",
				"fontsize" : 9.0,
				"patching_rect" : [ 731.0, 461.0, 73.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control fiveL $1",
				"numinlets" : 2,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-23",
				"fontsize" : 9.0,
				"patching_rect" : [ 663.0, 460.0, 72.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "mtof",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-21",
				"fontsize" : 9.0,
				"patching_rect" : [ 568.0, 363.0, 28.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "mtof",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-19",
				"fontsize" : 9.0,
				"patching_rect" : [ 500.0, 364.0, 28.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "inlet",
				"numinlets" : 0,
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-12",
				"patching_rect" : [ 514.0, 109.0, 15.0, 15.0 ],
				"comment" : "Chord Type Right"
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "inlet",
				"hint" : "Chord type left",
				"annotation" : "",
				"numinlets" : 0,
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-13",
				"patching_rect" : [ 413.0, 109.0, 15.0, 15.0 ],
				"comment" : "Chord Type Left"
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control threeR $1",
				"numinlets" : 2,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-9",
				"fontsize" : 9.0,
				"patching_rect" : [ 578.0, 462.0, 80.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control threeL $1",
				"numinlets" : 2,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-10",
				"fontsize" : 9.0,
				"patching_rect" : [ 502.0, 462.0, 78.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "toggle",
				"numinlets" : 1,
				"numoutlets" : 1,
				"outlettype" : [ "int" ],
				"id" : "obj-20",
				"patching_rect" : [ 1095.0, 281.0, 20.0, 20.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "outlet",
				"numinlets" : 1,
				"numoutlets" : 0,
				"id" : "obj-1",
				"patching_rect" : [ 151.0, 638.0, 15.0, 15.0 ],
				"comment" : ""
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "outlet",
				"numinlets" : 1,
				"numoutlets" : 0,
				"id" : "obj-2",
				"patching_rect" : [ 124.0, 639.0, 15.0, 15.0 ],
				"comment" : ""
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "inlet",
				"numinlets" : 0,
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-3",
				"patching_rect" : [ 356.0, 109.0, 15.0, 15.0 ],
				"comment" : "Root Right"
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "loadbang",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "bang" ],
				"id" : "obj-4",
				"fontsize" : 9.0,
				"patching_rect" : [ 157.0, 419.0, 48.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "inlet",
				"numinlets" : 0,
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-5",
				"patching_rect" : [ 286.0, 109.0, 15.0, 15.0 ],
				"comment" : "Root Left"
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "inlet",
				"numinlets" : 0,
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-6",
				"patching_rect" : [ 197.0, 301.0, 15.0, 15.0 ],
				"comment" : "In R"
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "loadmess 0.",
				"numinlets" : 1,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-7",
				"fontsize" : 9.0,
				"patching_rect" : [ 1084.0, 337.0, 63.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "inlet",
				"numinlets" : 0,
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-8",
				"patching_rect" : [ 142.0, 301.0, 15.0, 15.0 ],
				"comment" : "In L"
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control rootR $1",
				"numinlets" : 2,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-11",
				"fontsize" : 9.0,
				"patching_rect" : [ 424.0, 462.0, 75.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control rootL $1",
				"numinlets" : 2,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-14",
				"fontsize" : 9.0,
				"patching_rect" : [ 350.0, 462.0, 73.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "message $1",
				"numinlets" : 2,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-15",
				"fontsize" : 9.0,
				"patching_rect" : [ 1084.0, 385.0, 63.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "button",
				"numinlets" : 1,
				"numoutlets" : 1,
				"outlettype" : [ "bang" ],
				"id" : "obj-16",
				"patching_rect" : [ 157.0, 462.0, 15.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "csound CSharmon2E.csd",
				"numinlets" : 2,
				"fontname" : "Arial",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-17",
				"fontsize" : 9.0,
				"patching_rect" : [ 185.0, 544.0, 113.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "csound~",
				"numinlets" : 2,
				"fontname" : "Arial",
				"numoutlets" : 6,
				"outlettype" : [ "signal", "signal", "list", "int", "bang", "bang" ],
				"id" : "obj-18",
				"fontsize" : 9.0,
				"patching_rect" : [ 143.0, 592.0, 86.5, 17.0 ]
			}

		}
 ],
	"lines" : [ 		{
			"patchline" : 			{
				"source" : [ "obj-26", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-10", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-6", 0 ],
				"destination" : [ "obj-18", 1 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-18", 1 ],
				"destination" : [ "obj-1", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-17", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [ 194.5, 578.0, 152.5, 578.0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-15", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [ 1093.5, 571.0, 152.5, 571.0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-14", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [ 359.5, 521.0, 152.5, 521.0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-11", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [ 433.5, 571.0, 152.5, 571.0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-8", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-16", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [ 166.0, 551.0, 152.5, 551.0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-18", 0 ],
				"destination" : [ "obj-2", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-9", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-23", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-22", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-31", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-30", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-27", 0 ],
				"destination" : [ "obj-26", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-28", 0 ],
				"destination" : [ "obj-43", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-29", 0 ],
				"destination" : [ "obj-42", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-24", 0 ],
				"destination" : [ "obj-38", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-25", 0 ],
				"destination" : [ "obj-36", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-20", 0 ],
				"destination" : [ "obj-15", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-7", 0 ],
				"destination" : [ "obj-15", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-16", 0 ],
				"destination" : [ "obj-17", 0 ],
				"hidden" : 0,
				"midpoints" : [ 166.0, 495.0, 194.5, 495.0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-4", 0 ],
				"destination" : [ "obj-16", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-19", 0 ],
				"destination" : [ "obj-10", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-21", 0 ],
				"destination" : [ "obj-9", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-25", 0 ],
				"destination" : [ "obj-23", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-24", 0 ],
				"destination" : [ "obj-22", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-28", 0 ],
				"destination" : [ "obj-30", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-29", 0 ],
				"destination" : [ "obj-31", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-5", 0 ],
				"destination" : [ "obj-35", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-35", 0 ],
				"destination" : [ "obj-14", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-3", 0 ],
				"destination" : [ "obj-34", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-34", 0 ],
				"destination" : [ "obj-11", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-19", 0 ],
				"destination" : [ "obj-39", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-21", 0 ],
				"destination" : [ "obj-37", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-35", 0 ],
				"destination" : [ "obj-40", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-34", 0 ],
				"destination" : [ "obj-41", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-61", 2 ],
				"destination" : [ "obj-29", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-61", 1 ],
				"destination" : [ "obj-25", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-61", 0 ],
				"destination" : [ "obj-19", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-5", 0 ],
				"destination" : [ "obj-61", 1 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-13", 0 ],
				"destination" : [ "obj-61", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-12", 0 ],
				"destination" : [ "obj-62", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-3", 0 ],
				"destination" : [ "obj-62", 1 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-62", 0 ],
				"destination" : [ "obj-21", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-62", 1 ],
				"destination" : [ "obj-24", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-62", 2 ],
				"destination" : [ "obj-28", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
 ]
}



dp51 wrote:
> 
> You forgot to post the "CSharmon2E" sub-patch.  It's "pinked" out in your
> main patch.
> 
> WRT chnset, it's pretty easy to use.  Just pust something like:
> 
>   chnset 1.0, "value"
> 
> before chnget's referencing the same channel.
> 
> WRT harmon3, u really need to track the pitch of the incoming audio as
> best
> as u can.  Using a non-tracked value for koct results in various artifacts 
> (clicks, noise).  I'm beginning to think that it's not really a bug;
> you're just
> not using it the way it was meant to be used (I think).  In fact, you
> would
> probably still get artifacts with pitch-tracking if the audio is
> spectrally diverse.
> Here's simple example (un-comment the line that's commented to listen to 
> non-tracked version):
> 
> 
> 
> sr = 44100
> ksmps = 10
> nchnls = 2
> 0dbfs = 1
> giSine ftgen 1, 0, 16385, 10, 1
> instr 1
> 	klfo lfo 1, .25, 1
> 	klfo = klfo + 1.5
> 	kcps = 440 * klfo
> 	asig oscili .25, kcps, giSine
>         ares harmon3 asig, octcps(kcps), 1, 1.25, 1.68, 0, octcps(50) ;
> matched oct
> 	;ares harmon3 asig, octcps(880), 1, 1.25, 1.68, 0, octcps(50)   ;
> constant oct
>     outch 1, ares, 2, ares
> endin
> 
> 
> i 1 0 86400
> e 
> 
>  
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Harmon-problems-part-2-tp21887951p21921479.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2009-02-12 19:13
FromUnUnUnium
Subject[Csnd] Re: Harmon problems part 2 (follow up)
Just to follow up, I did as Davis suggested, and used the Harmon3 opcode with
spectrum and specptrk - the artifacts I mentioned are now gone. The patcher
harmonises major, minor 7th, and dim chords based on input. I will post all
the Csound and max code here for anyone who wants to have a look/play.

All the best, Jeremy

Csound code:





sr = 44100
kr = 4410
ksmps = 10
nchnls = 2




instr 1

asig, asig2,   ins 

w1 spectrum asig, .02, 7, 24, 12, 1, 3 ; and examine it
koct,kamp specptrk w1, 1, 6.5, 9.5, 7.5, 10, 7, .7, 0, 3, 1

a3 delay asig, .065 ; allow for ptrk delay
a4 delay asig2, .065 ; allow for ptrk delay


chn_k  "threeL", 1
chn_k  "threeR", 1
chn_k  "fiveL", 1
chn_k  "fiveR", 1
chn_k  "sevenL", 1
chn_k  "sevenR", 1
chn_k "porttime", 1


ithreeL        chnget          "threeL"
ithreeR       chnget          "threeR"
gkthreeL    chnget     "threeL"
gkthreeR   chnget    "threeR"
ifiveL        chnget          "fiveL"
ifiveR        chnget          "fiveR"
gkfiveL    chnget     "fiveL"
gkfiveR    chnget    "fiveR"
isevenL    chnget          "sevenL"
isevenR      chnget          "sevenR"
gksevenL    chnget     "sevenL"
gksevenR    chnget    "sevenR"

kTime chnget "porttime"


gkthreeL        portk gkthreeL, kTime, ithreeL
gkthreeR        portk gkthreeR, kTime, ithreeR
gkfiveL        portk gkfiveL, kTime, ifiveL
gkfiveR        portk gkfiveR, kTime, ifiveR
gksevenL        portk gksevenL, kTime, isevenL
gksevenR        portk gksevenR, kTime, isevenR




;synth stuff

aresL harmon3 a3, koct, gkthreeL, gkfiveL, gksevenL, 0, octcps(45)
aresR harmon3 a4, koct, gkthreeR, gkfiveR, gksevenR, 0, octcps(45)
;outs and envs

denorm aresL, aresR
outs aresL, aresR
endin






          
i 1 0 36000              ; Activate the always-on chnget instrument.
e                    ; indicates the end of the score




Max Patcher 1:

{
	"boxes" : [ 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "loadmess 2",
				"fontname" : "Arial",
				"hidden" : 1,
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-22",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 380.0, 59.0, 57.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "comment",
				"text" : "port time",
				"fontname" : "Arial",
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-15",
				"numoutlets" : 0,
				"patching_rect" : [ 364.0, 117.0, 64.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "comment",
				"text" : "Chord types 1 - 4\n1: major\n2: minor \n3: 7th\n4 diminished",
				"linecount" : 6,
				"fontname" : "Arial",
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-13",
				"numoutlets" : 0,
				"patching_rect" : [ 297.0, 65.0, 64.0, 69.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "meter~",
				"numinlets" : 1,
				"id" : "obj-3",
				"numoutlets" : 1,
				"outlettype" : [ "float" ],
				"patching_rect" : [ 84.0, 270.0, 80.0, 13.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "meter~",
				"numinlets" : 1,
				"id" : "obj-2",
				"numoutlets" : 1,
				"outlettype" : [ "float" ],
				"patching_rect" : [ 79.0, 221.0, 80.0, 13.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "*~ 0.5",
				"fontname" : "Arial",
				"numinlets" : 2,
				"fontsize" : 9.0,
				"id" : "obj-17",
				"numoutlets" : 1,
				"outlettype" : [ "signal" ],
				"patching_rect" : [ 240.0, 259.0, 34.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "*~ 0.5",
				"fontname" : "Arial",
				"numinlets" : 2,
				"fontsize" : 9.0,
				"id" : "obj-18",
				"numoutlets" : 1,
				"outlettype" : [ "signal" ],
				"patching_rect" : [ 196.0, 259.0, 34.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "flonum",
				"fontname" : "Arial",
				"minimum" : 0.1,
				"numinlets" : 1,
				"maximum" : 4.0,
				"fontsize" : 9.0,
				"id" : "obj-14",
				"numoutlets" : 2,
				"outlettype" : [ "float", "bang" ],
				"patching_rect" : [ 363.0, 136.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "number",
				"fontname" : "Arial",
				"minimum" : 1,
				"numinlets" : 1,
				"maximum" : 4,
				"fontsize" : 9.0,
				"id" : "obj-5",
				"numoutlets" : 2,
				"outlettype" : [ "int", "bang" ],
				"patching_rect" : [ 300.0, 137.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "ezdac~",
				"numinlets" : 2,
				"id" : "obj-7",
				"numoutlets" : 0,
				"patching_rect" : [ 211.0, 303.0, 45.0, 45.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "open, loop 1, 1",
				"fontname" : "Arial",
				"numinlets" : 2,
				"fontsize" : 9.0,
				"id" : "obj-6",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 126.0, 64.0, 70.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "sfplay~ 2",
				"fontname" : "Arial",
				"numinlets" : 2,
				"fontsize" : 9.0,
				"id" : "obj-4",
				"numoutlets" : 3,
				"outlettype" : [ "signal", "signal", "bang" ],
				"patching_rect" : [ 142.0, 89.0, 47.0, 17.0 ],
				"save" : [ "#N", "sfplay~", "", 2, 120960, 0, "", ";" ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "CSharmon2E2",
				"fontname" : "Arial",
				"numinlets" : 5,
				"fontsize" : 9.0,
				"id" : "obj-1",
				"numoutlets" : 2,
				"outlettype" : [ "signal", "signal" ],
				"patching_rect" : [ 189.0, 203.0, 100.0, 17.0 ]
			}

		}
 ],
	"lines" : [ 		{
			"patchline" : 			{
				"source" : [ "obj-22", 0 ],
				"destination" : [ "obj-5", 0 ],
				"hidden" : 1,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-6", 0 ],
				"destination" : [ "obj-4", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-18", 0 ],
				"destination" : [ "obj-7", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-17", 0 ],
				"destination" : [ "obj-7", 1 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-1", 1 ],
				"destination" : [ "obj-17", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-1", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-4", 0 ],
				"destination" : [ "obj-1", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-4", 1 ],
				"destination" : [ "obj-1", 1 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-5", 0 ],
				"destination" : [ "obj-1", 2 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-5", 0 ],
				"destination" : [ "obj-1", 3 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-14", 0 ],
				"destination" : [ "obj-1", 4 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
 ]
}

Max Patcher 2: (name "CSharmon2E2")

{
	"boxes" : [ 		{
			"box" : 			{
				"maxclass" : "comment",
				"text" : "Actual frequencies",
				"fontname" : "Arial",
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-46",
				"numoutlets" : 0,
				"patching_rect" : [ 905.0, 435.0, 150.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "comment",
				"text" : "Actual frequencies",
				"fontname" : "Arial",
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-45",
				"numoutlets" : 0,
				"patching_rect" : [ 743.0, 436.0, 150.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "comment",
				"text" : "Actual frequencies",
				"fontname" : "Arial",
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-44",
				"numoutlets" : 0,
				"patching_rect" : [ 576.0, 439.0, 150.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "inlet",
				"numinlets" : 0,
				"id" : "obj-27",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 761.0, 107.0, 15.0, 15.0 ],
				"comment" : "Portime (in seconds)"
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control porttime $1",
				"fontname" : "Arial",
				"numinlets" : 2,
				"fontsize" : 9.0,
				"id" : "obj-26",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 975.0, 462.0, 85.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "p",
				"fontname" : "Arial",
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-62",
				"numoutlets" : 3,
				"outlettype" : [ "float", "float", "float" ],
				"patching_rect" : [ 556.0, 165.0, 100.0, 17.0 ],
				"patcher" : 				{
					"fileversion" : 1,
					"rect" : [ 187.0, 90.0, 640.0, 480.0 ],
					"bglocked" : 0,
					"defrect" : [ 187.0, 90.0, 640.0, 480.0 ],
					"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
					"openinpresentation" : 0,
					"default_fontsize" : 9.0,
					"default_fontface" : 0,
					"default_fontname" : "Arial",
					"gridonopen" : 0,
					"gridsize" : [ 15.0, 15.0 ],
					"gridsnaponopen" : 0,
					"toolbarvisible" : 1,
					"boxanimatetime" : 200,
					"imprint" : 0,
					"metadata" : [  ],
					"boxes" : [ 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "unpack 0. 0. 0.",
								"fontname" : "Arial",
								"numinlets" : 1,
								"fontsize" : 9.0,
								"id" : "obj-32",
								"numoutlets" : 3,
								"outlettype" : [ "float", "float", "float" ],
								"patching_rect" : [ 69.0, 129.0, 70.0, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "coll chords -1",
								"fontname" : "Arial",
								"numinlets" : 1,
								"fontsize" : 9.0,
								"id" : "obj-26",
								"numoutlets" : 4,
								"outlettype" : [ "", "", "", "" ],
								"patching_rect" : [ 50.0, 100.0, 64.0, 17.0 ],
								"save" : [ "#N", "coll", "chords", 1, ";", "#T", "flags", 1, 0, ";",
"#T", 1, 1.26, 1.498, 1.888, ";", "#T", 2, 1.189, 1.498, 1.888, ";", "#T",
3, 1.26, 1.498, 1.782, ";", "#T", 4, 1.189, 1.335, 1.782, ";" ],
								"saved_object_attributes" : 								{
									"embed" : 1
								}

							}

						}
, 						{
							"box" : 							{
								"maxclass" : "inlet",
								"numinlets" : 0,
								"id" : "obj-56",
								"numoutlets" : 1,
								"outlettype" : [ "" ],
								"patching_rect" : [ 55.0, 40.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "outlet",
								"numinlets" : 1,
								"id" : "obj-58",
								"numoutlets" : 0,
								"patching_rect" : [ 77.0, 262.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "outlet",
								"numinlets" : 1,
								"id" : "obj-59",
								"numoutlets" : 0,
								"patching_rect" : [ 110.0, 262.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "outlet",
								"numinlets" : 1,
								"id" : "obj-60",
								"numoutlets" : 0,
								"patching_rect" : [ 143.0, 262.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
 ],
					"lines" : [ 						{
							"patchline" : 							{
								"source" : [ "obj-32", 2 ],
								"destination" : [ "obj-60", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-32", 1 ],
								"destination" : [ "obj-59", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-32", 0 ],
								"destination" : [ "obj-58", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-26", 0 ],
								"destination" : [ "obj-32", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-56", 0 ],
								"destination" : [ "obj-26", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
 ]
				}
,
				"saved_object_attributes" : 				{
					"default_fontname" : "Arial",
					"fontname" : "Arial",
					"default_fontsize" : 9.0,
					"fontface" : 0,
					"fontsize" : 9.0,
					"default_fontface" : 0,
					"globalpatchername" : ""
				}

			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "p",
				"fontname" : "Arial",
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-61",
				"numoutlets" : 3,
				"outlettype" : [ "float", "float", "float" ],
				"patching_rect" : [ 413.0, 166.0, 100.0, 17.0 ],
				"patcher" : 				{
					"fileversion" : 1,
					"rect" : [ 187.0, 90.0, 640.0, 480.0 ],
					"bglocked" : 0,
					"defrect" : [ 187.0, 90.0, 640.0, 480.0 ],
					"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
					"openinpresentation" : 0,
					"default_fontsize" : 9.0,
					"default_fontface" : 0,
					"default_fontname" : "Arial",
					"gridonopen" : 0,
					"gridsize" : [ 15.0, 15.0 ],
					"gridsnaponopen" : 0,
					"toolbarvisible" : 1,
					"boxanimatetime" : 200,
					"imprint" : 0,
					"metadata" : [  ],
					"boxes" : [ 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "unpack 0. 0. 0.",
								"fontname" : "Arial",
								"numinlets" : 1,
								"fontsize" : 9.0,
								"id" : "obj-32",
								"numoutlets" : 3,
								"outlettype" : [ "float", "float", "float" ],
								"patching_rect" : [ 69.0, 129.0, 70.0, 17.0 ]
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "newobj",
								"text" : "coll chords -1",
								"fontname" : "Arial",
								"numinlets" : 1,
								"fontsize" : 9.0,
								"id" : "obj-26",
								"numoutlets" : 4,
								"outlettype" : [ "", "", "", "" ],
								"patching_rect" : [ 50.0, 100.0, 64.0, 17.0 ],
								"save" : [ "#N", "coll", "chords", 1, ";", "#T", "flags", 1, 0, ";",
"#T", 1, 1.26, 1.498, 1.888, ";", "#T", 2, 1.189, 1.498, 1.888, ";", "#T",
3, 1.26, 1.498, 1.782, ";", "#T", 4, 1.189, 1.335, 1.782, ";" ],
								"saved_object_attributes" : 								{
									"embed" : 1
								}

							}

						}
, 						{
							"box" : 							{
								"maxclass" : "inlet",
								"numinlets" : 0,
								"id" : "obj-56",
								"numoutlets" : 1,
								"outlettype" : [ "" ],
								"patching_rect" : [ 55.0, 40.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "outlet",
								"numinlets" : 1,
								"id" : "obj-58",
								"numoutlets" : 0,
								"patching_rect" : [ 77.0, 262.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "outlet",
								"numinlets" : 1,
								"id" : "obj-59",
								"numoutlets" : 0,
								"patching_rect" : [ 110.0, 262.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
, 						{
							"box" : 							{
								"maxclass" : "outlet",
								"numinlets" : 1,
								"id" : "obj-60",
								"numoutlets" : 0,
								"patching_rect" : [ 143.0, 262.0, 25.0, 25.0 ],
								"comment" : ""
							}

						}
 ],
					"lines" : [ 						{
							"patchline" : 							{
								"source" : [ "obj-56", 0 ],
								"destination" : [ "obj-26", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-26", 0 ],
								"destination" : [ "obj-32", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-32", 0 ],
								"destination" : [ "obj-58", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-32", 1 ],
								"destination" : [ "obj-59", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
, 						{
							"patchline" : 							{
								"source" : [ "obj-32", 2 ],
								"destination" : [ "obj-60", 0 ],
								"hidden" : 0,
								"midpoints" : [  ]
							}

						}
 ]
				}
,
				"saved_object_attributes" : 				{
					"default_fontname" : "Arial",
					"fontname" : "Arial",
					"default_fontsize" : 9.0,
					"fontface" : 0,
					"fontsize" : 9.0,
					"default_fontface" : 0,
					"globalpatchername" : ""
				}

			}

		}
, 		{
			"box" : 			{
				"maxclass" : "number",
				"fontname" : "Arial",
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-42",
				"numoutlets" : 2,
				"outlettype" : [ "int", "bang" ],
				"patching_rect" : [ 821.0, 407.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "number",
				"fontname" : "Arial",
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-43",
				"numoutlets" : 2,
				"outlettype" : [ "int", "bang" ],
				"patching_rect" : [ 889.0, 396.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "number",
				"fontname" : "Arial",
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-36",
				"numoutlets" : 2,
				"outlettype" : [ "int", "bang" ],
				"patching_rect" : [ 688.0, 404.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "number",
				"fontname" : "Arial",
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-38",
				"numoutlets" : 2,
				"outlettype" : [ "int", "bang" ],
				"patching_rect" : [ 756.0, 393.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "number",
				"fontname" : "Arial",
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-39",
				"numoutlets" : 2,
				"outlettype" : [ "int", "bang" ],
				"patching_rect" : [ 536.0, 414.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "number",
				"fontname" : "Arial",
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-37",
				"numoutlets" : 2,
				"outlettype" : [ "int", "bang" ],
				"patching_rect" : [ 604.0, 403.0, 50.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control sevenR $1",
				"fontname" : "Arial",
				"numinlets" : 2,
				"fontsize" : 9.0,
				"id" : "obj-30",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 886.0, 462.0, 83.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control sevenL $1",
				"fontname" : "Arial",
				"numinlets" : 2,
				"fontsize" : 9.0,
				"id" : "obj-31",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 800.0, 461.0, 82.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control fiveR $1",
				"fontname" : "Arial",
				"numinlets" : 2,
				"fontsize" : 9.0,
				"id" : "obj-22",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 731.0, 461.0, 73.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control fiveL $1",
				"fontname" : "Arial",
				"numinlets" : 2,
				"fontsize" : 9.0,
				"id" : "obj-23",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 663.0, 460.0, 72.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "inlet",
				"numinlets" : 0,
				"id" : "obj-12",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 514.0, 109.0, 15.0, 15.0 ],
				"comment" : "Chord Type Right"
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "inlet",
				"hint" : "Chord type left",
				"annotation" : "",
				"numinlets" : 0,
				"id" : "obj-13",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 413.0, 109.0, 15.0, 15.0 ],
				"comment" : "Chord Type Left"
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control threeR $1",
				"fontname" : "Arial",
				"numinlets" : 2,
				"fontsize" : 9.0,
				"id" : "obj-9",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 578.0, 462.0, 80.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "control threeL $1",
				"fontname" : "Arial",
				"numinlets" : 2,
				"fontsize" : 9.0,
				"id" : "obj-10",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 502.0, 462.0, 78.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "toggle",
				"numinlets" : 1,
				"id" : "obj-20",
				"numoutlets" : 1,
				"outlettype" : [ "int" ],
				"patching_rect" : [ 1095.0, 281.0, 20.0, 20.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "outlet",
				"numinlets" : 1,
				"id" : "obj-1",
				"numoutlets" : 0,
				"patching_rect" : [ 151.0, 638.0, 15.0, 15.0 ],
				"comment" : ""
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "outlet",
				"numinlets" : 1,
				"id" : "obj-2",
				"numoutlets" : 0,
				"patching_rect" : [ 124.0, 639.0, 15.0, 15.0 ],
				"comment" : ""
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "loadbang",
				"fontname" : "Arial",
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-4",
				"numoutlets" : 1,
				"outlettype" : [ "bang" ],
				"patching_rect" : [ 157.0, 419.0, 48.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "inlet",
				"numinlets" : 0,
				"id" : "obj-6",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 197.0, 301.0, 15.0, 15.0 ],
				"comment" : "In R"
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "loadmess 0.",
				"fontname" : "Arial",
				"numinlets" : 1,
				"fontsize" : 9.0,
				"id" : "obj-7",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 1084.0, 337.0, 63.0, 17.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "inlet",
				"numinlets" : 0,
				"id" : "obj-8",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 142.0, 301.0, 15.0, 15.0 ],
				"comment" : "In L"
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "message $1",
				"fontname" : "Arial",
				"numinlets" : 2,
				"fontsize" : 9.0,
				"id" : "obj-15",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 1084.0, 385.0, 63.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "button",
				"numinlets" : 1,
				"id" : "obj-16",
				"numoutlets" : 1,
				"outlettype" : [ "bang" ],
				"patching_rect" : [ 157.0, 462.0, 15.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "csound CSharmon2E2.csd",
				"fontname" : "Arial",
				"numinlets" : 2,
				"fontsize" : 9.0,
				"id" : "obj-17",
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"patching_rect" : [ 185.0, 543.0, 118.0, 15.0 ]
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "csound~",
				"fontname" : "Arial",
				"numinlets" : 2,
				"fontsize" : 9.0,
				"id" : "obj-18",
				"numoutlets" : 6,
				"outlettype" : [ "signal", "signal", "list", "int", "bang", "bang" ],
				"patching_rect" : [ 143.0, 592.0, 86.5, 17.0 ]
			}

		}
 ],
	"lines" : [ 		{
			"patchline" : 			{
				"source" : [ "obj-26", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-10", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-6", 0 ],
				"destination" : [ "obj-18", 1 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-18", 1 ],
				"destination" : [ "obj-1", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-17", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [ 194.5, 578.0, 152.5, 578.0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-15", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [ 1093.5, 571.0, 152.5, 571.0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-8", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-16", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [ 166.0, 551.0, 152.5, 551.0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-18", 0 ],
				"destination" : [ "obj-2", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-9", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-23", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-22", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-31", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-30", 0 ],
				"destination" : [ "obj-18", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-27", 0 ],
				"destination" : [ "obj-26", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-20", 0 ],
				"destination" : [ "obj-15", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-7", 0 ],
				"destination" : [ "obj-15", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-16", 0 ],
				"destination" : [ "obj-17", 0 ],
				"hidden" : 0,
				"midpoints" : [ 166.0, 495.0, 194.5, 495.0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-4", 0 ],
				"destination" : [ "obj-16", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-13", 0 ],
				"destination" : [ "obj-61", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-61", 0 ],
				"destination" : [ "obj-10", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-61", 1 ],
				"destination" : [ "obj-23", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-61", 2 ],
				"destination" : [ "obj-31", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-62", 2 ],
				"destination" : [ "obj-30", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-62", 1 ],
				"destination" : [ "obj-22", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-62", 0 ],
				"destination" : [ "obj-9", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-12", 0 ],
				"destination" : [ "obj-62", 0 ],
				"hidden" : 0,
				"midpoints" : [  ]
			}

		}
 ]
}


UnUnUnium wrote:
> 
> oops! It appears I did forget the patcher! Not on a winning streak this
> week...I will include it after the message.
> 
> That is a clear explanation of chnset, I was really over thinking it. I
> thought the value had to be preceded by a k,a, or i.
> 
> Regarding Harmon3, am I correct in thinking that more inharmonic partials
> = more artifacts with the opcode then? What I will do is remake this code
> including the suggested Csound pitch tracking opcode over the next week
> and get back.
> 
> In the mean time, here is the missing abstraction below. (CSharmon2E)
> Thanks for your help and patience!
> 
> Jeremy
> 
> {
> 	"boxes" : [ 		{
> 			"box" : 			{
> 				"maxclass" : "comment",
> 				"text" : "Actual frequencies",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 0,
> 				"id" : "obj-46",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 905.0, 435.0, 150.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "comment",
> 				"text" : "Actual frequencies",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 0,
> 				"id" : "obj-45",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 743.0, 436.0, 150.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "comment",
> 				"text" : "Actual frequencies",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 0,
> 				"id" : "obj-44",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 576.0, 439.0, 150.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "comment",
> 				"text" : "Actual frequencies",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 0,
> 				"id" : "obj-33",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 375.0, 441.0, 150.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "inlet",
> 				"numinlets" : 0,
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-27",
> 				"patching_rect" : [ 761.0, 107.0, 15.0, 15.0 ],
> 				"comment" : "Portime (in seconds)"
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "message",
> 				"text" : "control porttime $1",
> 				"numinlets" : 2,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-26",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 975.0, 462.0, 85.0, 15.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "newobj",
> 				"text" : "p",
> 				"numinlets" : 2,
> 				"fontname" : "Arial",
> 				"numoutlets" : 3,
> 				"outlettype" : [ "float", "float", "float" ],
> 				"id" : "obj-62",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 556.0, 165.0, 100.0, 17.0 ],
> 				"patcher" : 				{
> 					"fileversion" : 1,
> 					"rect" : [ 0.0, 0.0, 640.0, 480.0 ],
> 					"bglocked" : 0,
> 					"defrect" : [ 0.0, 0.0, 640.0, 480.0 ],
> 					"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
> 					"openinpresentation" : 0,
> 					"default_fontsize" : 9.0,
> 					"default_fontface" : 0,
> 					"default_fontname" : "Arial",
> 					"gridonopen" : 0,
> 					"gridsize" : [ 15.0, 15.0 ],
> 					"gridsnaponopen" : 0,
> 					"toolbarvisible" : 1,
> 					"boxanimatetime" : 200,
> 					"imprint" : 0,
> 					"metadata" : [  ],
> 					"boxes" : [ 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "t b i",
> 								"numinlets" : 1,
> 								"fontname" : "Arial",
> 								"numoutlets" : 2,
> 								"outlettype" : [ "bang", "int" ],
> 								"id" : "obj-48",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 136.0, 156.0, 32.5, 17.0 ]
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "+ 1.",
> 								"numinlets" : 2,
> 								"fontname" : "Arial",
> 								"numoutlets" : 1,
> 								"outlettype" : [ "float" ],
> 								"id" : "obj-49",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 138.0, 185.0, 32.5, 17.0 ]
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "t b i",
> 								"numinlets" : 1,
> 								"fontname" : "Arial",
> 								"numoutlets" : 2,
> 								"outlettype" : [ "bang", "int" ],
> 								"id" : "obj-46",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 103.0, 156.0, 32.5, 17.0 ]
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "+ 1.",
> 								"numinlets" : 2,
> 								"fontname" : "Arial",
> 								"numoutlets" : 1,
> 								"outlettype" : [ "float" ],
> 								"id" : "obj-47",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 105.0, 185.0, 32.5, 17.0 ]
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "t b i",
> 								"numinlets" : 1,
> 								"fontname" : "Arial",
> 								"numoutlets" : 2,
> 								"outlettype" : [ "bang", "int" ],
> 								"id" : "obj-45",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 70.0, 156.0, 32.5, 17.0 ]
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "+ 1.",
> 								"numinlets" : 2,
> 								"fontname" : "Arial",
> 								"numoutlets" : 1,
> 								"outlettype" : [ "float" ],
> 								"id" : "obj-44",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 72.0, 185.0, 32.5, 17.0 ]
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "unpack 0 0 0",
> 								"numinlets" : 1,
> 								"fontname" : "Arial",
> 								"numoutlets" : 3,
> 								"outlettype" : [ "int", "int", "int" ],
> 								"id" : "obj-32",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 69.0, 129.0, 62.0, 17.0 ]
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "coll chords -1",
> 								"numinlets" : 1,
> 								"fontname" : "Arial",
> 								"numoutlets" : 4,
> 								"outlettype" : [ "", "", "", "" ],
> 								"id" : "obj-26",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 50.0, 100.0, 64.0, 17.0 ],
> 								"save" : [ "#N", "coll", "chords", 1, ";", "#T", "flags", 1, 0,
> ";", "#T", 1, 4, 7, 11, ";", "#T", 2, 3, 7, 10, ";", "#T", 3, 4, 7, 10,
> ";", "#T", 4, 3, 6, 10, ";" ],
> 								"saved_object_attributes" : 								{
> 									"embed" : 1
> 								}
> 
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "inlet",
> 								"numinlets" : 0,
> 								"numoutlets" : 1,
> 								"outlettype" : [ "" ],
> 								"id" : "obj-56",
> 								"patching_rect" : [ 55.0, 40.0, 25.0, 25.0 ],
> 								"comment" : ""
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "inlet",
> 								"numinlets" : 0,
> 								"numoutlets" : 1,
> 								"outlettype" : [ "" ],
> 								"id" : "obj-57",
> 								"patching_rect" : [ 105.0, 40.0, 25.0, 25.0 ],
> 								"comment" : ""
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "outlet",
> 								"numinlets" : 1,
> 								"numoutlets" : 0,
> 								"id" : "obj-58",
> 								"patching_rect" : [ 77.0, 262.0, 25.0, 25.0 ],
> 								"comment" : ""
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "outlet",
> 								"numinlets" : 1,
> 								"numoutlets" : 0,
> 								"id" : "obj-59",
> 								"patching_rect" : [ 110.0, 262.0, 25.0, 25.0 ],
> 								"comment" : ""
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "outlet",
> 								"numinlets" : 1,
> 								"numoutlets" : 0,
> 								"id" : "obj-60",
> 								"patching_rect" : [ 143.0, 262.0, 25.0, 25.0 ],
> 								"comment" : ""
> 							}
> 
> 						}
>  ],
> 					"lines" : [ 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-26", 0 ],
> 								"destination" : [ "obj-32", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-32", 0 ],
> 								"destination" : [ "obj-45", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-45", 0 ],
> 								"destination" : [ "obj-44", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-45", 1 ],
> 								"destination" : [ "obj-44", 1 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-46", 1 ],
> 								"destination" : [ "obj-47", 1 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-46", 0 ],
> 								"destination" : [ "obj-47", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-32", 1 ],
> 								"destination" : [ "obj-46", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-48", 0 ],
> 								"destination" : [ "obj-49", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-48", 1 ],
> 								"destination" : [ "obj-49", 1 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-32", 2 ],
> 								"destination" : [ "obj-48", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-56", 0 ],
> 								"destination" : [ "obj-26", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-57", 0 ],
> 								"destination" : [ "obj-44", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-57", 0 ],
> 								"destination" : [ "obj-47", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-57", 0 ],
> 								"destination" : [ "obj-49", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-44", 0 ],
> 								"destination" : [ "obj-58", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-47", 0 ],
> 								"destination" : [ "obj-59", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-49", 0 ],
> 								"destination" : [ "obj-60", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
>  ]
> 				}
> ,
> 				"saved_object_attributes" : 				{
> 					"default_fontname" : "Arial",
> 					"globalpatchername" : "",
> 					"default_fontsize" : 9.0,
> 					"fontname" : "Arial",
> 					"default_fontface" : 0,
> 					"fontface" : 0,
> 					"fontsize" : 9.0
> 				}
> 
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "newobj",
> 				"text" : "p",
> 				"numinlets" : 2,
> 				"fontname" : "Arial",
> 				"numoutlets" : 3,
> 				"outlettype" : [ "float", "float", "float" ],
> 				"id" : "obj-61",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 413.0, 166.0, 100.0, 17.0 ],
> 				"patcher" : 				{
> 					"fileversion" : 1,
> 					"rect" : [ 0.0, 0.0, 640.0, 480.0 ],
> 					"bglocked" : 0,
> 					"defrect" : [ 0.0, 0.0, 640.0, 480.0 ],
> 					"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
> 					"openinpresentation" : 0,
> 					"default_fontsize" : 9.0,
> 					"default_fontface" : 0,
> 					"default_fontname" : "Arial",
> 					"gridonopen" : 0,
> 					"gridsize" : [ 15.0, 15.0 ],
> 					"gridsnaponopen" : 0,
> 					"toolbarvisible" : 1,
> 					"boxanimatetime" : 200,
> 					"imprint" : 0,
> 					"metadata" : [  ],
> 					"boxes" : [ 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "t b i",
> 								"numinlets" : 1,
> 								"fontname" : "Arial",
> 								"numoutlets" : 2,
> 								"outlettype" : [ "bang", "int" ],
> 								"id" : "obj-48",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 136.0, 156.0, 32.5, 17.0 ]
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "+ 1.",
> 								"numinlets" : 2,
> 								"fontname" : "Arial",
> 								"numoutlets" : 1,
> 								"outlettype" : [ "float" ],
> 								"id" : "obj-49",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 138.0, 185.0, 32.5, 17.0 ]
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "t b i",
> 								"numinlets" : 1,
> 								"fontname" : "Arial",
> 								"numoutlets" : 2,
> 								"outlettype" : [ "bang", "int" ],
> 								"id" : "obj-46",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 103.0, 156.0, 32.5, 17.0 ]
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "+ 1.",
> 								"numinlets" : 2,
> 								"fontname" : "Arial",
> 								"numoutlets" : 1,
> 								"outlettype" : [ "float" ],
> 								"id" : "obj-47",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 105.0, 185.0, 32.5, 17.0 ]
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "t b i",
> 								"numinlets" : 1,
> 								"fontname" : "Arial",
> 								"numoutlets" : 2,
> 								"outlettype" : [ "bang", "int" ],
> 								"id" : "obj-45",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 70.0, 156.0, 32.5, 17.0 ]
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "+ 1.",
> 								"numinlets" : 2,
> 								"fontname" : "Arial",
> 								"numoutlets" : 1,
> 								"outlettype" : [ "float" ],
> 								"id" : "obj-44",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 72.0, 185.0, 32.5, 17.0 ]
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "unpack 0 0 0",
> 								"numinlets" : 1,
> 								"fontname" : "Arial",
> 								"numoutlets" : 3,
> 								"outlettype" : [ "int", "int", "int" ],
> 								"id" : "obj-32",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 69.0, 129.0, 62.0, 17.0 ]
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "newobj",
> 								"text" : "coll chords -1",
> 								"numinlets" : 1,
> 								"fontname" : "Arial",
> 								"numoutlets" : 4,
> 								"outlettype" : [ "", "", "", "" ],
> 								"id" : "obj-26",
> 								"fontsize" : 9.0,
> 								"patching_rect" : [ 50.0, 100.0, 64.0, 17.0 ],
> 								"save" : [ "#N", "coll", "chords", 1, ";", "#T", "flags", 1, 0,
> ";", "#T", 1, 4, 7, 11, ";", "#T", 2, 3, 7, 10, ";", "#T", 3, 4, 7, 10,
> ";", "#T", 4, 3, 6, 10, ";" ],
> 								"saved_object_attributes" : 								{
> 									"embed" : 1
> 								}
> 
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "inlet",
> 								"numinlets" : 0,
> 								"numoutlets" : 1,
> 								"outlettype" : [ "" ],
> 								"id" : "obj-56",
> 								"patching_rect" : [ 55.0, 40.0, 25.0, 25.0 ],
> 								"comment" : ""
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "inlet",
> 								"numinlets" : 0,
> 								"numoutlets" : 1,
> 								"outlettype" : [ "" ],
> 								"id" : "obj-57",
> 								"patching_rect" : [ 105.0, 40.0, 25.0, 25.0 ],
> 								"comment" : ""
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "outlet",
> 								"numinlets" : 1,
> 								"numoutlets" : 0,
> 								"id" : "obj-58",
> 								"patching_rect" : [ 77.0, 262.0, 25.0, 25.0 ],
> 								"comment" : ""
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "outlet",
> 								"numinlets" : 1,
> 								"numoutlets" : 0,
> 								"id" : "obj-59",
> 								"patching_rect" : [ 110.0, 262.0, 25.0, 25.0 ],
> 								"comment" : ""
> 							}
> 
> 						}
> , 						{
> 							"box" : 							{
> 								"maxclass" : "outlet",
> 								"numinlets" : 1,
> 								"numoutlets" : 0,
> 								"id" : "obj-60",
> 								"patching_rect" : [ 143.0, 262.0, 25.0, 25.0 ],
> 								"comment" : ""
> 							}
> 
> 						}
>  ],
> 					"lines" : [ 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-49", 0 ],
> 								"destination" : [ "obj-60", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-47", 0 ],
> 								"destination" : [ "obj-59", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-44", 0 ],
> 								"destination" : [ "obj-58", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-57", 0 ],
> 								"destination" : [ "obj-49", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-57", 0 ],
> 								"destination" : [ "obj-47", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-57", 0 ],
> 								"destination" : [ "obj-44", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-56", 0 ],
> 								"destination" : [ "obj-26", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-32", 2 ],
> 								"destination" : [ "obj-48", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-48", 1 ],
> 								"destination" : [ "obj-49", 1 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-48", 0 ],
> 								"destination" : [ "obj-49", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-32", 1 ],
> 								"destination" : [ "obj-46", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-46", 0 ],
> 								"destination" : [ "obj-47", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-46", 1 ],
> 								"destination" : [ "obj-47", 1 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-45", 1 ],
> 								"destination" : [ "obj-44", 1 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-45", 0 ],
> 								"destination" : [ "obj-44", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-32", 0 ],
> 								"destination" : [ "obj-45", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
> , 						{
> 							"patchline" : 							{
> 								"source" : [ "obj-26", 0 ],
> 								"destination" : [ "obj-32", 0 ],
> 								"hidden" : 0,
> 								"midpoints" : [  ]
> 							}
> 
> 						}
>  ]
> 				}
> ,
> 				"saved_object_attributes" : 				{
> 					"default_fontname" : "Arial",
> 					"globalpatchername" : "",
> 					"default_fontsize" : 9.0,
> 					"fontname" : "Arial",
> 					"default_fontface" : 0,
> 					"fontface" : 0,
> 					"fontsize" : 9.0
> 				}
> 
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "number",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 2,
> 				"outlettype" : [ "int", "bang" ],
> 				"id" : "obj-42",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 821.0, 407.0, 50.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "number",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 2,
> 				"outlettype" : [ "int", "bang" ],
> 				"id" : "obj-43",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 889.0, 396.0, 50.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "number",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 2,
> 				"outlettype" : [ "int", "bang" ],
> 				"id" : "obj-36",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 688.0, 404.0, 50.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "number",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 2,
> 				"outlettype" : [ "int", "bang" ],
> 				"id" : "obj-38",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 756.0, 393.0, 50.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "number",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 2,
> 				"outlettype" : [ "int", "bang" ],
> 				"id" : "obj-40",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 356.0, 415.0, 50.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "number",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 2,
> 				"outlettype" : [ "int", "bang" ],
> 				"id" : "obj-41",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 424.0, 404.0, 50.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "number",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 2,
> 				"outlettype" : [ "int", "bang" ],
> 				"id" : "obj-39",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 536.0, 414.0, 50.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "number",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 2,
> 				"outlettype" : [ "int", "bang" ],
> 				"id" : "obj-37",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 604.0, 403.0, 50.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "newobj",
> 				"text" : "mtof",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-34",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 398.0, 369.0, 28.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "newobj",
> 				"text" : "mtof",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-35",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 330.0, 370.0, 28.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "newobj",
> 				"text" : "mtof",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-28",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 848.0, 358.0, 28.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "newobj",
> 				"text" : "mtof",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-29",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 780.0, 359.0, 28.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "message",
> 				"text" : "control sevenR $1",
> 				"numinlets" : 2,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-30",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 886.0, 462.0, 83.0, 15.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "message",
> 				"text" : "control sevenL $1",
> 				"numinlets" : 2,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-31",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 800.0, 461.0, 82.0, 15.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "newobj",
> 				"text" : "mtof",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-24",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 713.0, 357.0, 28.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "newobj",
> 				"text" : "mtof",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-25",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 645.0, 358.0, 28.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "message",
> 				"text" : "control fiveR $1",
> 				"numinlets" : 2,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-22",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 731.0, 461.0, 73.0, 15.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "message",
> 				"text" : "control fiveL $1",
> 				"numinlets" : 2,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-23",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 663.0, 460.0, 72.0, 15.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "newobj",
> 				"text" : "mtof",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-21",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 568.0, 363.0, 28.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "newobj",
> 				"text" : "mtof",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-19",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 500.0, 364.0, 28.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "inlet",
> 				"numinlets" : 0,
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-12",
> 				"patching_rect" : [ 514.0, 109.0, 15.0, 15.0 ],
> 				"comment" : "Chord Type Right"
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "inlet",
> 				"hint" : "Chord type left",
> 				"annotation" : "",
> 				"numinlets" : 0,
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-13",
> 				"patching_rect" : [ 413.0, 109.0, 15.0, 15.0 ],
> 				"comment" : "Chord Type Left"
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "message",
> 				"text" : "control threeR $1",
> 				"numinlets" : 2,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-9",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 578.0, 462.0, 80.0, 15.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "message",
> 				"text" : "control threeL $1",
> 				"numinlets" : 2,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-10",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 502.0, 462.0, 78.0, 15.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "toggle",
> 				"numinlets" : 1,
> 				"numoutlets" : 1,
> 				"outlettype" : [ "int" ],
> 				"id" : "obj-20",
> 				"patching_rect" : [ 1095.0, 281.0, 20.0, 20.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "outlet",
> 				"numinlets" : 1,
> 				"numoutlets" : 0,
> 				"id" : "obj-1",
> 				"patching_rect" : [ 151.0, 638.0, 15.0, 15.0 ],
> 				"comment" : ""
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "outlet",
> 				"numinlets" : 1,
> 				"numoutlets" : 0,
> 				"id" : "obj-2",
> 				"patching_rect" : [ 124.0, 639.0, 15.0, 15.0 ],
> 				"comment" : ""
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "inlet",
> 				"numinlets" : 0,
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-3",
> 				"patching_rect" : [ 356.0, 109.0, 15.0, 15.0 ],
> 				"comment" : "Root Right"
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "newobj",
> 				"text" : "loadbang",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "bang" ],
> 				"id" : "obj-4",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 157.0, 419.0, 48.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "inlet",
> 				"numinlets" : 0,
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-5",
> 				"patching_rect" : [ 286.0, 109.0, 15.0, 15.0 ],
> 				"comment" : "Root Left"
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "inlet",
> 				"numinlets" : 0,
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-6",
> 				"patching_rect" : [ 197.0, 301.0, 15.0, 15.0 ],
> 				"comment" : "In R"
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "newobj",
> 				"text" : "loadmess 0.",
> 				"numinlets" : 1,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-7",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 1084.0, 337.0, 63.0, 17.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "inlet",
> 				"numinlets" : 0,
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-8",
> 				"patching_rect" : [ 142.0, 301.0, 15.0, 15.0 ],
> 				"comment" : "In L"
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "message",
> 				"text" : "control rootR $1",
> 				"numinlets" : 2,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-11",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 424.0, 462.0, 75.0, 15.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "message",
> 				"text" : "control rootL $1",
> 				"numinlets" : 2,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-14",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 350.0, 462.0, 73.0, 15.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "message",
> 				"text" : "message $1",
> 				"numinlets" : 2,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-15",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 1084.0, 385.0, 63.0, 15.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "button",
> 				"numinlets" : 1,
> 				"numoutlets" : 1,
> 				"outlettype" : [ "bang" ],
> 				"id" : "obj-16",
> 				"patching_rect" : [ 157.0, 462.0, 15.0, 15.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "message",
> 				"text" : "csound CSharmon2E.csd",
> 				"numinlets" : 2,
> 				"fontname" : "Arial",
> 				"numoutlets" : 1,
> 				"outlettype" : [ "" ],
> 				"id" : "obj-17",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 185.0, 544.0, 113.0, 15.0 ]
> 			}
> 
> 		}
> , 		{
> 			"box" : 			{
> 				"maxclass" : "newobj",
> 				"text" : "csound~",
> 				"numinlets" : 2,
> 				"fontname" : "Arial",
> 				"numoutlets" : 6,
> 				"outlettype" : [ "signal", "signal", "list", "int", "bang", "bang" ],
> 				"id" : "obj-18",
> 				"fontsize" : 9.0,
> 				"patching_rect" : [ 143.0, 592.0, 86.5, 17.0 ]
> 			}
> 
> 		}
>  ],
> 	"lines" : [ 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-26", 0 ],
> 				"destination" : [ "obj-18", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-10", 0 ],
> 				"destination" : [ "obj-18", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-6", 0 ],
> 				"destination" : [ "obj-18", 1 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-18", 1 ],
> 				"destination" : [ "obj-1", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-17", 0 ],
> 				"destination" : [ "obj-18", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [ 194.5, 578.0, 152.5, 578.0 ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-15", 0 ],
> 				"destination" : [ "obj-18", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [ 1093.5, 571.0, 152.5, 571.0 ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-14", 0 ],
> 				"destination" : [ "obj-18", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [ 359.5, 521.0, 152.5, 521.0 ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-11", 0 ],
> 				"destination" : [ "obj-18", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [ 433.5, 571.0, 152.5, 571.0 ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-8", 0 ],
> 				"destination" : [ "obj-18", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-16", 0 ],
> 				"destination" : [ "obj-18", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [ 166.0, 551.0, 152.5, 551.0 ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-18", 0 ],
> 				"destination" : [ "obj-2", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-9", 0 ],
> 				"destination" : [ "obj-18", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-23", 0 ],
> 				"destination" : [ "obj-18", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-22", 0 ],
> 				"destination" : [ "obj-18", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-31", 0 ],
> 				"destination" : [ "obj-18", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-30", 0 ],
> 				"destination" : [ "obj-18", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-27", 0 ],
> 				"destination" : [ "obj-26", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-28", 0 ],
> 				"destination" : [ "obj-43", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-29", 0 ],
> 				"destination" : [ "obj-42", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-24", 0 ],
> 				"destination" : [ "obj-38", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-25", 0 ],
> 				"destination" : [ "obj-36", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-20", 0 ],
> 				"destination" : [ "obj-15", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-7", 0 ],
> 				"destination" : [ "obj-15", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-16", 0 ],
> 				"destination" : [ "obj-17", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [ 166.0, 495.0, 194.5, 495.0 ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-4", 0 ],
> 				"destination" : [ "obj-16", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-19", 0 ],
> 				"destination" : [ "obj-10", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-21", 0 ],
> 				"destination" : [ "obj-9", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-25", 0 ],
> 				"destination" : [ "obj-23", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-24", 0 ],
> 				"destination" : [ "obj-22", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-28", 0 ],
> 				"destination" : [ "obj-30", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-29", 0 ],
> 				"destination" : [ "obj-31", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-5", 0 ],
> 				"destination" : [ "obj-35", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-35", 0 ],
> 				"destination" : [ "obj-14", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-3", 0 ],
> 				"destination" : [ "obj-34", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-34", 0 ],
> 				"destination" : [ "obj-11", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-19", 0 ],
> 				"destination" : [ "obj-39", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-21", 0 ],
> 				"destination" : [ "obj-37", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-35", 0 ],
> 				"destination" : [ "obj-40", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-34", 0 ],
> 				"destination" : [ "obj-41", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-61", 2 ],
> 				"destination" : [ "obj-29", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-61", 1 ],
> 				"destination" : [ "obj-25", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-61", 0 ],
> 				"destination" : [ "obj-19", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-5", 0 ],
> 				"destination" : [ "obj-61", 1 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-13", 0 ],
> 				"destination" : [ "obj-61", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-12", 0 ],
> 				"destination" : [ "obj-62", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-3", 0 ],
> 				"destination" : [ "obj-62", 1 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-62", 0 ],
> 				"destination" : [ "obj-21", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-62", 1 ],
> 				"destination" : [ "obj-24", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
> , 		{
> 			"patchline" : 			{
> 				"source" : [ "obj-62", 2 ],
> 				"destination" : [ "obj-28", 0 ],
> 				"hidden" : 0,
> 				"midpoints" : [  ]
> 			}
> 
> 		}
>  ]
> }
> 
> 
> 
> dp51 wrote:
>> 
>> You forgot to post the "CSharmon2E" sub-patch.  It's "pinked" out in your
>> main patch.
>> 
>> WRT chnset, it's pretty easy to use.  Just pust something like:
>> 
>>   chnset 1.0, "value"
>> 
>> before chnget's referencing the same channel.
>> 
>> WRT harmon3, u really need to track the pitch of the incoming audio as
>> best
>> as u can.  Using a non-tracked value for koct results in various
>> artifacts 
>> (clicks, noise).  I'm beginning to think that it's not really a bug;
>> you're just
>> not using it the way it was meant to be used (I think).  In fact, you
>> would
>> probably still get artifacts with pitch-tracking if the audio is
>> spectrally diverse.
>> Here's simple example (un-comment the line that's commented to listen to 
>> non-tracked version):
>> 
>> 
>> 
>> sr = 44100
>> ksmps = 10
>> nchnls = 2
>> 0dbfs = 1
>> giSine ftgen 1, 0, 16385, 10, 1
>> instr 1
>> 	klfo lfo 1, .25, 1
>> 	klfo = klfo + 1.5
>> 	kcps = 440 * klfo
>> 	asig oscili .25, kcps, giSine
>>         ares harmon3 asig, octcps(kcps), 1, 1.25, 1.68, 0, octcps(50) ;
>> matched oct
>> 	;ares harmon3 asig, octcps(880), 1, 1.25, 1.68, 0, octcps(50)   ;
>> constant oct
>>     outch 1, ares, 2, ares
>> endin
>> 
>> 
>> i 1 0 86400
>> e 
>> 
>>  
>> 
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Harmon-problems-part-2-tp21887951p21982887.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2009-02-12 21:58
FromUnUnUnium
Subject[Csnd] Re: Harmon problems part 2
Argh! Spoke too soon. Still getting artifacting, and still seeing the
"Harmon234: out of range" message. Seems slightly better than without
spectrk though.

Hmm. 


UnUnUnium wrote:
> 
> Hello everyone.
> 
> Having sorted out my initial problem with Harmon, I'm having another one -
> I get lots of crackling and popping, though I'm quite sure it's not CPU
> related, as my CPU usage is around 2%. Also, it seems the input and output
> aren't clipping.
> 
> I do get the message, "Harmon234: out of range" - not "samples out of
> range", just "out of range.
> 
> I am using an arbitrary number instead of a pitch tracker output to define
> the root - could this be the problem? Still, it doesn't seem to stop
> crackling whatever setting I give it, even if I feed a stable oscillator
> into it, set to the same frequency as the root in Harmon...
> 
> Would appreciate someone taking a look! Best, Jeremy
> Code follows:
> 
> 
> 
> 
> 
> sr = 44100
> kr = 4410
> ksmps = 10
> nchnls = 2
> 
> 
> 
> 
> instr 1
> 
> chn_k  "rootL", 1
> chn_k  "rootR", 1
> chn_k  "threeL", 1
> chn_k  "threeR", 1
> chn_k  "fiveL", 1
> chn_k  "fiveR", 1
> chn_k  "sevenL", 1
> chn_k  "sevenR", 1
> chn_k "porttime", 1
> 
> ;control invalues
> 
> 
> irootL        chnget          "rootL"
> irootR       chnget          "rootR"
> gkrootL    chnget     "rootL"
> gkrootR    chnget    "rootR"
> ithreeL        chnget          "threeL"
> ithreeR       chnget          "threeR"
> gkthreeL    chnget     "threeL"
> gkthreeR   chnget    "threeR"
> ifiveL        chnget          "fiveL"
> ifiveR        chnget          "fiveR"
> gkfiveL    chnget     "fiveL"
> gkfiveR    chnget    "fiveR"
> isevenL    chnget          "sevenL"
> isevenR      chnget          "sevenR"
> gksevenL    chnget     "sevenL"
> gksevenR    chnget    "sevenR"
> 
> kTime chnget "porttime"
> 
> gkrootL        portk gkrootL, kTime,  irootL
> gkrootR        portk gkrootR, kTime, irootR
> gkthreeL        portk gkthreeL, kTime, ithreeL
> gkthreeR        portk gkthreeR, kTime, ithreeR
> gkfiveL        portk gkfiveL, kTime, ifiveL
> gkfiveR        portk gkfiveR, kTime, ifiveR
> gksevenL        portk gksevenL, kTime, isevenL
> gksevenR        portk gksevenR, kTime, isevenR
> 
> 
> 
> asig, asig2,   ins 
> 
> 
> ;synth stuff
> 
> aresL harmon3 asig, octcps(gkrootL), gkthreeL, gkfiveL, gksevenL, 1,
> octcps(50)
> aresR harmon3 asig2, octcps(gkrootR), gkthreeR, gkfiveR, gksevenR, 1,
> octcps(50)
> ;outs and envs
> 
> denorm aresL, aresR
> outs aresL, aresR
> endin
> 
> 
> 
> 
> 
> 
>           
> i 1 0 36000              ; Activate the always-on chnget instrument.
> e                    ; indicates the end of the score
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Harmon-problems-part-2-tp21887951p21985841.html
Sent from the Csound - General mailing list archive at Nabble.com.