Poly~ target

Nov 29, 2007 at 8:54pm

Poly~ target

Hello all,

I want to make a polyphonic additive synthesizer, what is going to be used for synthesis with harmonics.
So i want to be able to adjust the frequency per oscillator.
Is this possible with the poly~ object?
I have used the search but didn’t find anything on this subject, maybe i’ve searched with the wrong criteria, if so my apologies.

with kind regards,
Jeroen

#34816
Nov 29, 2007 at 11:26pm

Quote: Jroen wrote on Thu, 29 November 2007 12:54
—————————————————-
> Hello all,
>
> I want to make a polyphonic additive synthesizer, what is going to be used for synthesis with harmonics.
> So i want to be able to adjust the frequency per oscillator.
> Is this possible with the poly~ object?
> I have used the search but didn’t find anything on this subject, maybe i’ve searched with the wrong criteria, if so my apologies.
>
> with kind regards,
> Jeroen
—————————————————-

The answer is in your subject; the message named target.

mz

#118045
Nov 30, 2007 at 12:54pm

Jeroen van Rijzewijk schrieb:
> So i want to be able to adjust the frequency per oscillator. Is this
> possible with the poly~ object?

Yes, you can even nest the poly~s, have a poly~ within a poly~…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#118046
Nov 30, 2007 at 3:08pm

Some time ago I saw some examples of using poly~ with jitter to dynamically
create instances of graphic objects. Does that ring a bell for anyone?

On 11/30/07 7:54 AM, “Stefan Tiedje” wrote:

> Jeroen van Rijzewijk schrieb:
>> So i want to be able to adjust the frequency per oscillator. Is this
>> possible with the poly~ object?
>
> Yes, you can even nest the poly~s, have a poly~ within a poly~…
>
> Stefan

Cheers
Gary Lee Nelson
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson

#118047
Nov 30, 2007 at 5:00pm

I want to be able to do the same as in the additive synthesis example patch from the msp tutorials.
To adjust the partials per voice in a poly synthesizer.

When i use target, the message i am sending is received by all voices, not just voice 1.

Here is a example patch, i hope to clear things up.

main patch

max v2;
#N vpatcher 25 62 659 603;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 496 290 100 196617 —–> etcetera;
#P window setfont “Sans Serif” 14.;
#P comment 369 223 69 196622 Partialen;
#P comment 402 281 42 196622 ratio;
#P window setfont “Sans Serif” 9.;
#P flonum 369 282 33 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 343 306 36 196617 * $1.;
#P window setfont “Sans Serif” 24.;
#P comment 378 247 24 196632 2;
#P window setfont “Sans Serif” 9.;
#P window linecount 2;
#P comment 442 223 100 196617 This partial is to be send to voice 2;
#P number 64 43 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 59 319 39 196617 open 1;
#P flonum 100 203 53 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user ezdac~ 16 409 60 442 0;
#P newex 16 253 94 196617 pack 0 0;
#P newex 16 226 94 196617 makenote 127 100;
#P newex 16 110 31 196617 + 33;
#P newex 16 87 58 196617 random 36;
#P toggle 16 40 15 0;
#P newex 16 67 58 196617 metro 200;
#P window setfont “Sans Serif” 14.;
#P comment 192 222 69 196622 Partialen;
#P comment 225 280 42 196622 ratio;
#P window setfont “Sans Serif” 9.;
#P flonum 192 281 33 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 166 305 36 196617 * $1.;
#P window setfont “Sans Serif” 24.;
#P comment 203 247 24 196632 1;
#P user kslider 16 133 54 0 36 60 31 12 0 128 128 128 128 128 128 255 255 255 0 0 0 0 0 0;
#P window setfont “Fixedwidth Serif” 10.;
#P newex 16 363 112 1441802 poly~ example~ 16;
#P window setfont “Sans Serif” 9.;
#P window linecount 2;
#P comment 265 222 100 196617 This partial is to be send to voice 1;
#P connect 9 0 8 0;
#P connect 8 0 10 0;
#P connect 10 0 11 0;
#P connect 11 0 2 0;
#P connect 2 0 12 0;
#P connect 12 0 13 0;
#P connect 13 0 1 0;
#P connect 16 0 1 0;
#P connect 1 0 14 0;
#P connect 1 0 14 1;
#P fasten 2 1 12 1 432 195 63 195;
#P connect 17 0 8 1;
#P connect 15 0 12 2;
#P connect 12 1 13 1;
#P connect 5 0 4 1;
#P connect 21 0 20 1;
#P pop;

poly

max v2;
#N vpatcher 137 149 737 549;
#P window setfont “Sans Serif” 9.;
#P number 147 144 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 204 312 99 196617 see what poly plays;
#P comment 152 48 67 196617 midimessage;
#P comment 268 48 42 196617 trigger;
#P comment 444 48 38 196617 release;
#P window setfont “Fixedwidth Serif” 10.;
#N in 4;
#P newobj 409 48 34 1441802 in 4;
#N in 3;
#P newobj 325 48 34 1441802 in 3;
#N in 2;
#P newobj 233 48 34 1441802 in 2;
#P window setfont “Sans Serif” 9.;
#P newex 233 193 189 196617 adsr~;
#P window linecount 3;
#P comment 54 167 66 196617 convert float to a constant signal;
#P window linecount 1;
#P newex 121 167 29 196617 sig~;
#P newex 193 116 40 196617 / 127.;
#P window setfont “Fixedwidth Serif” 10.;
#N out 1;
#P newobj 166 312 37 1441802 out 1;
#P newex 121 78 82 1441802 unpack 0 0;
#P newex 166 283 60 1441802 thispoly~;
#P newex 121 107 29 1441802 mtof;
#P newex 121 284 27 1441802 *~;
#P newex 121 208 44 1441802 cycle~;
#N out~ 1;
#P newobj 121 312 43 1441802 out~ 1;
#N in 1;
#P newobj 121 48 30 1441802 in 1;
#P window setfont “Sans Serif” 9.;
#P comment 54 108 66 196617 midi to freq.;
#P comment 360 48 38 196617 attack;
#P comment 56 312 64 196617 audio output;
#P connect 3 0 9 0;
#P connect 9 0 7 0;
#P connect 7 0 12 0;
#P connect 12 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 4 0;
#P fasten 14 0 6 1 238 248 143 248;
#P connect 7 0 22 0;
#P fasten 14 0 8 0 238 248 171 248;
#P connect 8 0 10 0;
#P connect 9 1 11 0;
#P connect 15 0 14 0;
#P fasten 11 0 14 0 198 187 238 187;
#P fasten 16 0 14 1 330 130 282 130;
#P connect 17 0 14 4;
#P pop;

Hope that someone understands what i mean…
TIA!
Jeroen

#118048
Nov 30, 2007 at 6:08pm

Quote: Jroen wrote on Fri, 30 November 2007 09:00
—————————————————-
> I want to be able to do the same as in the additive synthesis example patch from the msp tutorials.
> To adjust the partials per voice in a poly synthesizer.
>
> When i use target, the message i am sending is received by all voices, not just voice 1.
>
>

I don’t see a target message anywhere in your patch. I put it in in the patch below.

I think you will need to reprogram your example~ so that the partial multiplication occurs inside. Put the * right after the mtof, and add another inlet for the ratio. Is that clear?

mz

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 361 350 47 196617 target 2;
#P newex 344 329 29 196617 t f b;
#P message 182 346 47 196617 target 1;
#P newex 165 325 29 196617 t f b;
#P message 33 299 47 196617 target 0;
#P newex 16 278 27 196617 t l b;
#P comment 496 290 100 196617 —–> etcetera;
#P window setfont “Sans Serif” 14.;
#P comment 369 223 69 196622 Partialen;
#P comment 402 281 42 196622 ratio;
#P window setfont “Sans Serif” 9.;
#P flonum 369 282 33 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 343 306 36 196617 * $1.;
#P window setfont “Sans Serif” 24.;
#P comment 378 247 24 196632 2;
#P window setfont “Sans Serif” 9.;
#P window linecount 2;
#P comment 442 223 100 196617 This partial is to be send to voice 2;
#P number 64 43 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 59 319 39 196617 open 1;
#P flonum 100 203 53 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user ezdac~ 16 434 60 467 0;
#P newex 16 253 94 196617 pack 0 0;
#P newex 16 226 94 196617 makenote 127 100;
#P newex 16 110 31 196617 + 33;
#P newex 16 87 58 196617 random 36;
#P toggle 16 40 15 0;
#P newex 16 67 58 196617 metro 200;
#P window setfont “Sans Serif” 14.;
#P comment 192 222 69 196622 Partialen;
#P comment 225 280 42 196622 ratio;
#P window setfont “Sans Serif” 9.;
#P flonum 192 281 33 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 166 305 36 196617 * $1.;
#P window setfont “Sans Serif” 24.;
#P comment 203 247 24 196632 1;
#P user kslider 16 133 54 0 36 60 31 12 0 128 128 128 128 128 128 255 255 255 0 0 0 0 0 0;
#P window setfont “Fixedwidth Serif” 10.;
#P newex 16 387 112 1441802 poly~ example~ 16;
#P window setfont “Sans Serif” 9.;
#P window linecount 2;
#P comment 265 222 100 196617 This partial is to be send to voice 1;
#P connect 30 0 1 0;
#P connect 1 0 14 0;
#P connect 1 0 14 1;
#P connect 29 0 1 0;
#P connect 20 0 29 0;
#P connect 29 1 30 0;
#P connect 28 0 1 0;
#P connect 27 0 1 0;
#P connect 27 1 28 0;
#P connect 4 0 27 0;
#P connect 25 0 1 0;
#P connect 26 0 1 0;
#P connect 25 1 26 0;
#P connect 13 0 25 0;
#P connect 21 0 20 1;
#P connect 5 0 4 1;
#P connect 12 1 13 1;
#P connect 15 0 12 2;
#P connect 17 0 8 1;
#P fasten 2 1 12 1 432 195 63 195;
#P connect 16 0 1 0;
#P connect 12 0 13 0;
#P connect 2 0 12 0;
#P connect 11 0 2 0;
#P connect 10 0 11 0;
#P connect 8 0 10 0;
#P connect 9 0 8 0;
#P window clipboard copycount 31;

#118049
Dec 1, 2007 at 12:26pm

Fantastic, it works but more important now i understand (at least i think i do) how it works.
I did use the target 1 message but forgot the bang.
I think that was my problem, can anyone confirm this?

Thanks a bunch mzed!

#118050

You must be logged in to reply to this topic.