Rat   xtlang


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

Implementation

(bind-func Rat
  (lambda (a b)
    (if (< b 0)
        (begin (set! a (* -1 a))
               (set! b (* -1 b))))
    (let ((r:Rational* (salloc)))
      (tset! r 0 a)
      (tset! r 1 b)
      (pref r 0))))


Back to Index

Similar Entries

  • GUI_pixel_ratio    xtlang
  • PARAM_FLANGER_RATE    scheme
  • Rational_greatest_common_divisor    xtlang
  • Rational_reduce    xtlang
  • aiProcess_FindDegenerates    scheme
  • bind-external-dylib-declarations    scheme
  • filter_rate    xtlang
  • floor_rat    xtlang
  • floor_rat    xtlang
  • generate_And_Wrap_Pseudorandom_DNA_Sequence    xtlang
  • generate_random_vao    xtlang
  • generate_tri_normals    xtlang
  • generate_tri_uvws    xtlang
  • glfw_get_pixel_ratio    xtlang
  • impc:ti:generate-generic-type-cname    scheme
  • impc:ti:numeric-cast-operator    scheme
  • integrate    macro
  • integrator_c    xtlang
  • json_obj_iterator    xtlang
  • nintegrate    xtlang
  • nintegrate    xtlang
  • sf_samplerate    xtlang
  • sf_set_samplerate    xtlang
  • unzip1-with-cdr-iterative    scheme
  • world_generation    xtlang
  • world_increment_generation    xtlang
  • world_set_generation    xtlang
  • xtm_subtration    xtlang