Jump to content

Difference between vector and float

Recommended Posts

In the following line of code, what is the difference between vector and float?


(vector-to-velocity 0.1 0.9 (pitch-to-velocity 'pppp 'ffff '(c1 d1 e1 f1 g1 a1 b1 c2 d2 e2 f2) :type :float))

The function name is 'vector-to-velocity' but in pitch-to-velocity the type is set to :float (instead of :vector).


Looks like they are synonyms.


Thanks in advance,


Wim Dijkgraaf


added 2 minutes later

I guess this is the answer:


Vectors are one-dimensional arrays, therefore a subtype of array.


Wim :-)

added 7 minutes later

Code above being equal to:


(pitch-to-velocity 'pppp 'ffff '(c1 d1 e1 f1 g1 a1 b1 c2 d2 e2 f2))

Got it :-)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Terms of Use Privacy Policy