{"action":"created","issue":{"url":"https://api.github.com/repos/RobinSchmidt/RS-MET/issues/106","repository_url":"https://api.github.com/repos/RobinSchmidt/RS-MET","labels_url":"https://api.github.com/repos/RobinSchmidt/RS-MET/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/RobinSchmidt/RS-MET/issues/106/comments","events_url":"https://api.github.com/repos/RobinSchmidt/RS-MET/issues/106/events","html_url":"https://github.com/RobinSchmidt/RS-MET/issues/106","id":266953177,"number":106,"title":"I need a \"spinning phasor\" object to take FM and convert to PM.","user":{"login":"elanhickler","id":9116575,"avatar_url":"https://avatars3.githubusercontent.com/u/9116575?v=4","gravatar_id":"","url":"https://api.github.com/users/elanhickler","html_url":"https://github.com/elanhickler","followers_url":"https://api.github.com/users/elanhickler/followers","following_url":"https://api.github.com/users/elanhickler/following{/other_user}","gists_url":"https://api.github.com/users/elanhickler/gists{/gist_id}","starred_url":"https://api.github.com/users/elanhickler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elanhickler/subscriptions","organizations_url":"https://api.github.com/users/elanhickler/orgs","repos_url":"https://api.github.com/users/elanhickler/repos","events_url":"https://api.github.com/users/elanhickler/events{/privacy}","received_events_url":"https://api.github.com/users/elanhickler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-19T19:03:01Z","updated_at":"2017-10-19T19:47:24Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hey Robin, I just got this idea to solve a problem with modulating things with anti-aliased phasors (or sawtooths/ramps).\r\n\r\nI need to use the rotation formula to rotate a signal in two or three dimensions, for example: \r\n\r\n```\r\nvoid rotate2D(double sin, double cos, double * X, double * Y)\r\n{\r\n\tdouble x = *X, y = *Y;\r\n\t*X = x * cos - y * sin;\r\n\t*Y = x * sin + y * cos;\r\n}\r\n```\r\n\r\nSo I need to derive a sin/cos out of a velocity of change of value rather than a fixed value/DC/phase value.\r\n\r\nImagine taking your hand and spinning a floating wheel. Now try to stop the wheel from spinning as fast as you can and make it spin the other direction. The speed of the movement of your hand hand represents frequency, and your strength represents ... force? torque? Now replace your hand with a sawtooth or a phasor. All we need to do is have a parameter for \"how fast can the sawtooth stop/reverse the spinning of the wheel\".\r\n\r\nI'm trying to solve this problem:\r\n\r\n![perfect_vs_antialiased_saw](https://user-images.githubusercontent.com/9116575/31788729-8745941e-b4c4-11e7-89d4-e32c4340a662.png)\r\n\r\nMy LFO is an anti-aliased saw and I want to control rotation. But the glitch in modulation of the \"smoothed slope\" causes the sound to click before rotation is set back to 0. If the anti-aliased saw could control a factor of rotation RATHER THAN the rotation value direction, the rotation glitch could be smoothed away.\r\n\r\n![image](https://user-images.githubusercontent.com/9116575/31788999-7322d3f6-b4c5-11e7-97e7-6a443eae5187.png)\r\n\r\nthe slope kinda represents speed of rotation or something, where... oh, maybe half of that spike (vertical-wise) represents negative (backwards) rotation as well.\r\n\r\nThis has potentially many uses! Pseudo-PM done this way could sound more interesting, more analog than standard PM. Edit: And you may ask: why not use the non-anti-aliased saw? I could, but non-anti-aliased waveforms are not desirable. Infinitely sharp edges are not good for audio rate modulation, they have unnecessary precision and harshness. Also, I want my LFOs to be just as good as a modulator as they are as an audio source. I am furthering my venture into \"physically perfect\" synthesizer, rather than digitally perfect (which is cold and ugly and harsh). Synthesizers should derive physical limitations from our natural world as inspiration, as much as possible. I don't want to separate LFOs from HFOs/standard oscillators."},"comment":{"url":"https://api.github.com/repos/RobinSchmidt/RS-MET/issues/comments/338016788","html_url":"https://github.com/RobinSchmidt/RS-MET/issues/106#issuecomment-338016788","issue_url":"https://api.github.com/repos/RobinSchmidt/RS-MET/issues/106","id":338016788,"user":{"login":"RobinSchmidt","id":1833099,"avatar_url":"https://avatars0.githubusercontent.com/u/1833099?v=4","gravatar_id":"","url":"https://api.github.com/users/RobinSchmidt","html_url":"https://github.com/RobinSchmidt","followers_url":"https://api.github.com/users/RobinSchmidt/followers","following_url":"https://api.github.com/users/RobinSchmidt/following{/other_user}","gists_url":"https://api.github.com/users/RobinSchmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/RobinSchmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobinSchmidt/subscriptions","organizations_url":"https://api.github.com/users/RobinSchmidt/orgs","repos_url":"https://api.github.com/users/RobinSchmidt/repos","events_url":"https://api.github.com/users/RobinSchmidt/events{/privacy}","received_events_url":"https://api.github.com/users/RobinSchmidt/received_events","type":"User","site_admin":false},"created_at":"2017-10-19T19:47:24Z","updated_at":"2017-10-19T19:47:24Z","author_association":"OWNER","body":"and what have sawtooth waves to do with rotations? they create circular motion (i.e. sines and cosines)"}}
{"actor":{"display_login":"RobinSchmidt"}}