1{\rtf1\mac\ansicpg10000\cocoartf102 2{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;\f2\fnil\fcharset77 Monaco; 3} 4{\colortbl;\red255\green255\blue255;\red0\green0\blue191;\red191\green0\blue0;} 5\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural 6 7\f0\b\fs36 \cf0 Standard2DN standard map 2D chaotic generator\ 8\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural 9 10\f1\b0\fs24 \cf0 \ 11\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural 12 13\f0\b \cf0 Standard2DN.ar(minfreq, maxfreq, k, x0, y0, mul, add)\ 14\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural 15 16\f1\b0 \cf0 \ 17 18\f0\b minfreq, maxfreq 19\f1\b0 - iteration frequency in Hertz\ 20 21\f0\b k 22\f1\b0 - perturbation amount\ 23 24\f0\b x0 25\f1\b0 - initial value of x\ 26 27\f0\b y0 28\f1\b0 - initial value of y\ 29 \ 30 x 31\fs20 \sub n+1 32\fs24 \nosupersub = (x 33\fs20 \sub n 34\fs24 \nosupersub + y 35\fs20 \sub n+1 36\fs24 \nosupersub ) % 2pi\ 37 y 38\fs20 \sub n+1 39\fs24 \nosupersub = (y 40\fs20 \sub n 41\fs24 \nosupersub + ksin(x 42\fs20 \sub n 43\fs24 \nosupersub )) % 2pi 44\f2\fs18 \ 45 46\f1\fs24 . 47\f2\fs18 \ 48\{ \cf2 Standard2DN\cf0 .ar(\cf2 220,\cf0 11025, mul:0.3) \}.play(s);\ 49\ 50\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural 51\cf3 // mouse-controlled param\cf0 \ 52\{ \cf2 Standard2DN\cf0 .ar(\cf2 SampleRate\cf0 .ir/2, SampleRate.ir, \cf2 MouseX\cf0 .kr(0.9,4), mul:0.3) \}.play(s);\ 53\ 54\cf3 // as a frequency control\cf0 \ 55\{ \cf2 SinOsc\cf0 .ar(\cf2 Standard2DN\cf0 .ar(10, 20, \cf2 MouseX\cf0 .kr(0.9,4))*800+900)*0.4 \}.play(s);}