code: def test_freqtomidi(self):
      a = array(list(range(-20, 50000, 100)) + [-1e32, 1e32])
      b = freqtomidi(a)
      # print zip(a, b)
      assert_equal(isnan(array(b)), False)
      assert_equal(isinf(array(b)), False)
      assert_equal(array(b) < 0, False)
  
file_path: aubio/python/tests/test_mathutils.py
imports: from numpy.testing import TestCase, assert_equal
  from numpy import array, arange, isnan, isinf
  from aubio import bintomidi, miditobin, freqtobin, bintofreq, freqtomidi, miditofreq
  from aubio import unwrap2pi
  from aubio import fvec
  from math import pi
label_desc: Use image node_id 6 for calling the aubio_mathutils obj's underlying member method code with example usage: obj.test_freqtomidi() without return types