pol_to_cart   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/core/math.xtm

Implementation

(bind-func pol_to_cart
  "transform a whole buffer pol->cart in-place"
  (lambda (a:Complexf* n:i64)
    (let ((temp:float 0.0))
      (doloop (i n)
        (set! temp (* (tref (pref a i) 0) (cos (tref (pref a i) 1))))
        (tset! (pref-ptr a i) 1
               (* (tref (pref a i) 0) (sin (tref (pref a i) 1))))
        (tset! (pref-ptr a i) 0 temp))
      void)))


Back to Index

Similar Entries

  • BTree_walk_postorder    xtlang
  • Complex_multiplication_polar    xtlang
  • Cpolar    xtlang
  • LEGATO_OFF    scheme
  • LEGATO_ON    scheme
  • LFO_OPT_FRQ_TO_AMP    scheme
  • LFO_OPT_FRQ_TO_FRQ    scheme
  • LR_to_MS_2_channels    xtlang
  • LR_to_MS_3_channels    xtlang
  • MS_to_LR_2_channels    xtlang
  • MS_to_LR_3_channels    xtlang
  • PaDeviceInfo_toString    xtlang
  • PaHostApiInfo_toString    xtlang
  • PaHostErrorInfo_toString    xtlang
  • PaStreamCallbackTimeInfo_toString    xtlang
  • PaStreamInfo_toString    xtlang
  • PaStreamParameters_toString    xtlang
  • VtoPtr    xtlang
  • Widget_button    xtlang
  • Widget_button    xtlang
  • Widget_button_c    xtlang
  • Widget_find_postorder    xtlang
  • Widget_walk_postorder    xtlang
  • Windows-add-libdir-to-PATH    scheme
  • add_the_button    xtlang
  • add_the_button    xtlang
  • add_the_button    xtlang
  • add_the_button    xtlang
  • add_the_radio_button    xtlang
  • ai_color4_to_float4    xtlang
  • ai_matrix4_to_float    xtlang
  • anyatom->string    scheme
  • astra_stop    xtlang
  • atom?    scheme
  • audiofile_16bitPCM_to_sample_be    xtlang
  • audiofile_16bitPCM_to_sample_le    xtlang
  • audiofile_24bitPCM_to_sample_be    xtlang
  • audiofile_24bitPCM_to_sample_le    xtlang
  • audiofile_float_to_sample_be    xtlang
  • audiofile_float_to_sample_le    xtlang
  • bind-data-constructors    scheme
  • bind-data-deconstructors    scheme
  • bind-data-deconstructors-macros    scheme
  • bind-data-type-constructor    scheme
  • bind-poly    macro
  • bottom    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol2    xtlang
  • cas-xtm-to-string    scheme
  • check-token    scheme
  • cl:atom?    scheme
  • constructor-name-and-type    scheme
  • cpClosestPointOnSegment    xtlang
  • cpvtoangle    xtlang
  • create_shadertoy_shader    xtlang
  • curl_setopts_authenticate    xtlang
  • curl_setopts_basic    xtlang
  • curl_setopts_header    xtlang
  • custom-match    scheme
  • deconstructor-name-and-type    scheme
  • degToRad    xtlang
  • draw-skeleton    xtlang
  • eval-polymorphic    macro
  • event_poll    xtlang
  • f4ToArray    xtlang
  • factor    macro
  • factorial    scheme
  • factorize-scheme    scheme
  • fill_direction_vector    xtlang
  • fill_direction_vector    xtlang
  • fleet_connect_to_nodes    xtlang
  • get_polyphony    xtlang
  • get_touch_id    xtlang
  • get_touch_x    xtlang
  • get_touch_y    xtlang
  • ghttp_copy_request_body_into_buffer    xtlang
  • give-token    scheme
  • glfw_mouse_button_callback:GLFWmousebuttonfun    xtlang
  • glfw_poll_events    xtlang
  • glfw_print_primary_monitor_details    xtlang
  • godot_global_get_singleton    xtlang
  • godot_variant_new_vector2    xtlang
  • godot_variant_new_vector3    xtlang
  • godot_vector2_new    xtlang
  • godot_vector2_pvar    xtlang
  • godot_vector2_set_x    xtlang
  • godot_vector2_set_y    xtlang
  • godot_vector2_var    xtlang
  • godot_vector3_new    xtlang
  • godot_vector3_pvar    xtlang
  • godot_vector3_var    xtlang
  • gui_find_leaf_postorder    xtlang
  • histogram    xtlang
  • histogram    xtlang
  • host_to_ip    xtlang
  • impc:aot:insert-polyfunc-binding-details    scheme
  • impc:compiler:print-bind-func-details-to-log    scheme
  • impc:compiler:print-binding-details-to-log    scheme
  • impc:compiler:print-dylib-loading-details-to-log    scheme
  • impc:compiler:print-lib-binding-details-to-log    scheme
  • impc:compiler:print-polying-details-to-log    scheme
  • impc:ir:compiler:make-vector    scheme
  • impc:ir:compiler:vector-ref    scheme
  • impc:ir:compiler:vector-set    scheme
  • impc:ir:compiler:vector-shuffle    scheme
  • impc:ir:get-type-expand-poly    scheme
  • impc:ir:get-type-from-pretty-vector    scheme
  • impc:ir:get-vector-type-from-str    scheme
  • impc:ir:poly-or-adhoc?    scheme
  • impc:ir:regex-structs-or-atoms    scheme
  • impc:ir:split-and-decode-poly-adhoc-name    scheme
  • impc:ir:vector?    scheme
  • impc:ti:add-types-to-source    scheme
  • impc:ti:add-types-to-source-atom    scheme
  • impc:ti:bitwise-not-to-eor    scheme
  • impc:ti:check-to-update-generic-vars    scheme
  • impc:ti:compile-type-dataconstructors    scheme
  • impc:ti:expand-generic-type-func-gpoly-arity    scheme
  • impc:ti:get-polyfunc-candidate    scheme
  • impc:ti:get-polyfunc-candidate-list    scheme
  • impc:ti:get-polyfunc-candidate-names    scheme
  • impc:ti:get-polyfunc-candidate-pretty-types    scheme
  • impc:ti:get-polyfunc-candidate-types    scheme
  • impc:ti:get-polyfunc-docstring    scheme
  • impc:ti:get-polytype-candidate    scheme
  • impc:ti:get-polytype-candidate-list    scheme
  • impc:ti:get-polytype-candidate-names    scheme
  • impc:ti:get-polytype-candidate-pretty-types    scheme
  • impc:ti:get-polytype-candidate-types    scheme
  • impc:ti:get-type-for-gpoly    scheme
  • impc:ti:make-vector-check    scheme
  • impc:ti:nativef-poly-check    scheme
  • impc:ti:nativef-poly-check-match-ftypes    scheme
  • impc:ti:nativef-poly-exact-check    scheme
  • impc:ti:numeric-cast-operator    scheme
  • impc:ti:polyfunc-exists?    scheme
  • impc:ti:polyfunc-pretty-print    scheme
  • impc:ti:polytype-exists?    scheme
  • impc:ti:polytype-match?    scheme
  • impc:ti:polytype-pretty-print    scheme
  • impc:ti:print-polyfunc-cache    scheme
  • impc:ti:print-polytype-cache    scheme
  • impc:ti:register-new-polyfunc    scheme
  • impc:ti:register-new-polytype    scheme
  • impc:ti:remove-polyfunc-candidate    scheme
  • impc:ti:reset-polyfunc-cache    scheme
  • impc:ti:reset-polytype-cache    scheme
  • impc:ti:try-to-resolve-named-types    scheme
  • impc:ti:unique-polyfunc-candidate    scheme
  • impc:ti:vector-ref-check    scheme
  • impc:ti:vector-set-check    scheme
  • impc:ti:vector-shuffle-check    scheme
  • integrator_c    xtlang
  • is_touch_down    xtlang
  • is_touch_move    xtlang
  • is_touch_palm    xtlang
  • is_touch_pen    xtlang
  • is_touch_up    xtlang
  • json_obj_iterator    xtlang
  • kinect_stop    xtlang
  • list->vector    scheme
  • make-vector-with-proc    scheme
  • mat4_to_mat3    xtlang
  • mat4_to_mat3    xtlang
  • match-vector    scheme
  • midi_input_polling    xtlang
  • my_button_cb    xtlang
  • ndiff_extrapolated    xtlang
  • node_reply_loop_stop    xtlang
  • ocv_copyto    xtlang
  • ocv_total    xtlang
  • on_register_custom_schemes    xtlang
  • pc:diatonic    scheme
  • pol_to_cart    xtlang
  • pol_to_cart    xtlang
  • pol_to_cart    xtlang
  • pol_to_cart2    xtlang
  • rados-connect-to-cluster    xtlang
  • rados-connect-to-pool    xtlang
  • reduce-ptrdepth-to-zero    scheme
  • rtod    xtlang
  • rtof    xtlang
  • rtoi1    xtlang
  • rtoi16    xtlang
  • rtoi32    xtlang
  • rtoi64    xtlang
  • rtoi8    xtlang
  • scientific-pitch-notation-to-midi-number    scheme
  • send-skeleton-osc    xtlang
  • set_polyphonic    xtlang
  • set_polyphony    xtlang
  • sf_read_file_into_buffer    xtlang
  • shadertoy-loop    scheme
  • stop    xtlang
  • stop-note    scheme
  • stop_load    xtlang
  • stop_running    xtlang
  • stop_sim    xtlang
  • store_frame_OLA    xtlang
  • store_frame_PV    xtlang
  • store_frame_iPL    xtlang
  • store_frame_sPL    xtlang
  • string->anyatom    scheme
  • sys:host-to-ip    scheme
  • t:poly-exists?    scheme
  • t:vector?    scheme
  • take-token    scheme
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString_help    xtlang
  • toString_help    xtlang
  • toString_help    xtlang
  • toString_return    xtlang
  • toString_space    xtlang
  • top    xtlang
  • topclock-bpm    scheme
  • topclock-election    scheme
  • topclock-receive    scheme
  • topclock-streamer    scheme
  • topclock-sync    scheme
  • topclock-variable    scheme
  • toplap-clock-election    scheme
  • toplap-clock-sync    scheme
  • variable-constructor    scheme
  • vector->list    scheme
  • vector-equal?    scheme
  • vector-fill!    scheme
  • vector-test2    xtlang
  • vector_gfx:XTMRENDERCB    xtlang
  • vector_test    xtlang
  • vector_test_a    xtlang
  • with-input-output-from-to-files    scheme
  • with-output-to-file    scheme
  • world_set_to_checkerboard    xtlang
  • world_set_to_inverse    xtlang
  • xtm_add_poly    xtlang
  • xtm_add_polyd    xtlang
  • xtm_draw_poly    xtlang
  • xtm_draw_polyd    xtlang
  • xtm_frame_data_to_tex    xtlang
  • xtm_projecton_texture_weight    xtlang
  • xtm_stop_note    xtlang
  • xtmdoc-export-caches-to-json    scheme
  • xtmdoc-polyfunc-handler    scheme
  • xtmdoc-polytype-handler    scheme