@prefix : . @prefix swh: . @prefix foaf: . @prefix doap: . @prefix swhext: . @prefix pg: . @prefix epp: . swh:sinusWavewrapper a :Plugin ; a :WaveshaperPlugin ; doap:name "Sinus wavewrapper" ; doap:maintainer [ foaf:name "Steve Harris"; foaf:homepage ; foaf:mbox ; ] ; doap:license ; :documentation ; :pluginProperty :hardRtCapable ; :port [ a :InputPort, :ControlPort ; :name "Wrap degree" ; :index 0 ; :symbol "wrap" ; :minimum 0 ; :maximum 10 ; :default 0.0 ; ] ; :port [ a :InputPort, :AudioPort ; :name "Input" ; :index 1 ; :symbol "input" ; :minimum -1 ; :maximum +1 ; ] ; :port [ a :OutputPort, :AudioPort ; :name "Output" ; :index 2 ; :symbol "output" ; :minimum -1 ; :maximum +1 ; ] ; swhext:callback [ swhext:event "run" ; swhext:code """ float coef = wrap * M_PI; unsigned long pos; if (coef < 0.05f) { coef = 0.05f; } for (pos = 0; pos < sample_count; pos++) { output[pos] = sin(input[pos] * coef); } """ ; ] ; swhext:createdBy .