Jump to content
Sign in to follow this  
Jorvd

Plot two lists simultaneously

Recommended Posts

I'm guessing this is a simple one but it has me stuck for almost an hour now.
I have two different velocity vectors:

(setf dynamic-rh (vector-to-velocity 0.55 0.62 (gen-white-noise 10 :seed 122) :type :midi))
(setf dynamic-lh (vector-to-velocity 0.33 0.41 (gen-white-noise 10 :seed 67) :type :midi))

Which I want to combine/merge and plot, I've tried all sorts of stuff like this:

 

(velocity-list-plot '(dynamic-lh dynamics-rh) :point-radius 2)
(velocity-list-plot '((dynamic-lh) (dynamics-rh)) :point-radius 2)
(velocity-list-plot (list(dynamic-lh dynamics-rh)) :point-radius 2)

It's probably quite obvious, but I couldn't write Lisp to save my life..
Thank you in advance!

Share this post


Link to post
Share on other sites

There is an error in your code: the variable dynamics-rh should be dynamic-rh

 

Example:

(setf dynamic-rh (vector-to-velocity 0.55 0.62 (gen-white-noise 10 :seed 122) :type :midi))
(setf dynamic-lh (vector-to-velocity 0.33 0.41 (gen-white-noise 10 :seed 67) :type :midi))
(velocity-list-plot (list dynamic-lh dynamic-rh) :point-radius 2)

Screen Shot 2018-04-08 at 21.55.36.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×