Jump to content

score-player latency??


Recommended Posts

Hi,

 

When I run the following code I get a terrible latency between the voices. Do I miss something or is it a bug?

 

Thanks!

 

(setf pattern (gen-repeat 50 '(s e4 fs4 b4 cs5 d5 fs4 e4 cs5 b4 fs4 d5 cs5)))
(setf tempo (mclist (gen-integer 10 70) (gen-repeat 100 1)))

(def-score score1
           (
            :key-signature 'chromatic
            :time-signature '(1 4)                             
            :tempo tempo
            )
  
  (inst1 :omn pattern
         :sound 'gm
         :channel 1
         :program 0
         :pan 127))

(def-score score2
           (
            :key-signature 'chromatic
            :time-signature '(1 4)                             
            :tempo tempo
            )
  
  (inst1 :omn pattern
         :sound 'gm
         :channel 2
         :program 12
         :pan 1))



(progn
  (score-player 'score1)
  (score-player 'score2))

 

Link to comment
Share on other sites

i am very thankful for the HACK. lisp is not a language for real-time things, but for me it suits the approximate simulation perfectly!! thanx janusz!! 🙂

 

but: you can try out how it is not to evaluate everything at once, step by step, maybe then there will be less LATENCY?

Link to comment
Share on other sites

Thanks for the super quick answer!

So you don't have latency?

I've tried it both with Vienna Ensemble and GM-MIDI Player- same result

 

@Andre: Can you explain what do you mean by evaluating step by step, please?

Did you tried the example that I posted?

 

 

Link to comment
Share on other sites

step by step => every code-line for itself cmd-E!

i have also some LATENCY with conTimbre-player... but that's LISP in realtime

 

 

the score player wasn't even intended to play things in parallel (i made a HACK from a HACK :-)). for precise POLYTEMPO things it is best to work via OSC and an external PLAYER (that's how I do it). I only need it in OPMO for sketching

Edited by AM
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.

Guest
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