kink~

Distort a sawtooth waveform

Description

kink~ takes phasor~ values and distorts them according to a slope factor. If the input times the slope is less than 0.5, that value is output. Otherwise, a complentary slope is used, equal to 0.5 at the same input value but equal to 1 when the input is 1. This creates a bend or "kink" in the phase waveform when the slope is not equal to 1. If you feed the output of kink~ into a cycle~, the result is that the first part (before the kink) of the wavetable is scanned much more quickly than the second part (after the kink).

Arguments

Name Type Opt Description
slope-multiplier float opt Sets the default slope multiplier. If a signal is attached to the right inlet, this argument is ignored.

Messages

 float slope-multiplier [float] In right inlet: Same as signal. If a signal is attached to the right inlet, float input is ignored. signal In left inlet: The input to kink~ should be a sawtooth waveform output from a phasor~ object that repeatedly goes from 0 to 1. In right inlet: The multiplier that affects the slope of the output between an output (Y) value of 0 and 0.5. After the output reaches 0.5, the waveform will increase to 1 so that the entire output moves from 0 to 1 in the same period of time as the input. A slope multiplier of 1(the default) produces no distortion Slope multipliers below 1 have a slower rise to 0.5 than the input, and slope multipliers above 1 have a faster rise to 0.5 than the input.

Output

signal: The output of kink~ should be fed to the right inlet of cycle~ (at zero frequency) to produce a distorted sine wave (a technique known as phase distortion synthesis). As the slope multiplier in the right inlet of kink~ deviates from 1, additional harmonics are introduced into the waveform output of cycle~. If the slope multiplier is rapidly increased and then decreased using a line~, the output of cycle~ may resemble an attack portion of an instrumental sound.

Examples Typical use of kink~ between phasor~ and cycle~
{"ft_lang_label":"__label__en","ft_lang_prob":0.83257556,"math_prob":0.9866372,"size":2125,"snap":"2022-05-2022-21","text_gpt3_token_len":531,"char_repetition_ratio":0.145686,"word_repetition_ratio":0.03234501,"special_character_ratio":0.23152941,"punctuation_ratio":0.08674699,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9903052,"pos_list":[0,1,2],"im_url_duplicate_count":[null,4,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-01-22T02:46:14Z\",\"WARC-Record-ID\":\"<urn:uuid:8c7a7253-d44f-41a5-bd1d-ab56d16f8f79>\",\"Content-Length\":\"4936\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:af08d0e1-a63d-42f2-b13a-b93336d9f0b5>\",\"WARC-Concurrent-To\":\"<urn:uuid:c94ec50a-48d5-4543-a856-040b032f43ad>\",\"WARC-IP-Address\":\"104.131.171.67\",\"WARC-Target-URI\":\"https://docs.cycling74.com/max5/refpages/msp-ref/kink~.html\",\"WARC-Payload-Digest\":\"sha1:VAIRCRPPBIMLXGYWBLXRMOU7H2IMADK3\",\"WARC-Block-Digest\":\"sha1:DHU3WJWN7MBSZASWUSDCD6W4ZW7LW37P\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-05/CC-MAIN-2022-05_segments_1642320303729.69_warc_CC-MAIN-20220122012907-20220122042907-00580.warc.gz\"}"}