[CM] :time slot-values and midi files

taube@uiuc.edu taube@uiuc.edu
Thu, 19 Feb 2004 19:11:01 -0600


This looks like a bug to me. To work around it, use events to write your "qq" seq to another seq (say, "rr") and then write out "rr" to the midi file, ie

(new seq :name 'rr)
(events #&qq #&rr)
(events #&rr "test.midi")


---- Original message ----
>Date: Wed, 18 Feb 2004 18:16:36 -0300
>From: "M. Perticone" <perticone@infovia.com.ar>  
>Subject: [CM] :time slot-values and midi files  
>To: cmdist@ccrma.Stanford.EDU
>
>hello listers,
>
>this is to check if it's the expected. i've been toying with time
>slot-values'.
>you can see below that some 'events' have an earlier time than its
>predecessor. after writing events to a midi file i see that those earlier
>events are placed at their predecessor time. also some durations are changed
>into longer ones. am i misunderstanding how to handle the time value-slot
>data?
>thanks in advance,
>marcelo
>
>please compare the following outputs:
>
>CM[48]> (see qq)
>   0. #i(midi keynum 60 duration 0.666667 amplitude 0.78740156 channel 0
>time 2)
>   1. #i(midi keynum 62 duration 0.666667 amplitude 0.78740156 channel 0
>time 2.666667)
>   2. #i(midi keynum 64 duration 0.666667 amplitude 0.78740156 channel 0
>time 3.333334)
>   3. #i(midi keynum 65 duration 0.666667 amplitude 0.78740156 channel 0
>time 5.000001)
>   4. #i(midi keynum 67 duration 0.666667 amplitude 0.78740156 channel 0
>time 4.666668)
>   5. #i(midi keynum 69 duration 0.666667 amplitude 0.78740156 channel 0
>time 4.333335)
>   6. #i(midi keynum 71 duration 0.666667 amplitude 0.78740156 channel 0
>time 8.000002)
>   7. #i(midi keynum 72 duration 0.666667 amplitude 0.78740156 channel 0
>time 9.666669)
>   8. #i(midi keynum 74 duration 0.666667 amplitude 0.78740156 channel 0
>time 7.333336)
>   9. #i(midi keynum 76 duration 0.666667 amplitude 0.78740156 channel 0
>time 11.000003)
>  10. #i(midi keynum 77 duration 0.666667 amplitude 0.78740156 channel 0
>time 8.66667)
>
>CM[49]> (events qq "h:/myscore.mid")
>
>these are taken from cakewalk. only time, note and duration in ticks are
>retained here.
>1:03:000 c5 320
>1:03:320 d5 320
>1:04:160 e5 320
>2:02:000 f5 1:160  <--- this should go after the next a5
>2:02:000 g5 1:000
>2:02:000 a5 320   <--- this should go after the first (previous) e5
>3:01:320 b5 320
>3:03:160 c6 3:000
>3:03:160 d6 320
>4:03:000 e6 3:000
>4:03:000 f6 320
>
>
>
>
>_______________________________________________
>Cmdist mailing list
>Cmdist@ccrma.stanford.edu
>http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist