<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-06-04 0:47 GMT-03:00 Jean Menezes da Rocha <span dir="ltr">&lt;<a href="mailto:jean@menezesdarocha.info" target="_blank">jean@menezesdarocha.info</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I managed to install SuperCollider and run your example of Phase Modulation. I could achieve the exact same sound with the following ChucK code:<br><br><font face="monospace">SinOsc mod =&gt; SinOsc car =&gt; dac;</font><span class=""><div><font face="monospace"><br></font></div><div><font face="monospace">400 =&gt; car.freq;</font></div><div><font face="monospace">201 =&gt; mod.freq;</font></div></span><div><font face="monospace">mod.freq() * Math.PI =&gt; float ind =&gt; mod.gain; // this bugger works with much greater values as standard gain...</font></div><div><font face="monospace">2 =&gt; car.sync; // FM instead of syncing to phase. don&#39;t know why...</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">while ( true ) {</font></div><div><font face="monospace">    1::second =&gt; now;</font></div><div><font face="monospace">}</font></div></div></blockquote><div><br></div><div>It might sound the same, or similar, but this is still frequency modulation and not phase modulation. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>The weird thing is that I had to use 2 (FM) as a value for .sync, contrary to my intuition of syncing to phase. </div></div></blockquote><div><br></div><div>Again, not weird, just a fact that Frequency and Phase modulation are related </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Another oddity is the way to calculate the modulation index, which I admit was a wild guess that turned out to be correct. I am also curious if anyone can explain this.</div></div></blockquote><div><br></div><div>It&#39;s not easy to explain, but you found the magic number/formula that makes Frequency modulation sound like Phase Modulation. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>However, I am now the one struggling to figure out the difference between this phase modulation and FM</div></div></blockquote><div><br></div><div>In short, they behave differently with the same parameters, but the parameters can be &quot;converted&quot;/&quot;adjusted&quot; to sound the same.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>syncing to phase, as was my first intuition, yields a rather different sound (much harsher) and does not respond to changes to the carrier&#39;s frequency.<br></div></div></blockquote><div><br></div><div>Yep, as I noted, and it is not actually doing phase modulation</div><div> </div><div>Hence, a working phase modulation code still remains mysterious to me.</div><div><br></div><div>It seems that when you have a phase input to SinOsc, it&#39;ll only consider that input and disregard any frequency input, is that possible?</div><div><br></div><div>Perhaps you can just feed a phase input to SinOsc and then modulate that signal. Like, send it a phasor input and modulate it. That&#39;s gotta work.</div><div><br></div><div>cheers</div></div></div></div>