Changeset 6703

Show
Ignore:
Timestamp:
06/30/09 18:13:03 (14 months ago)
Author:
smimram
Message:

Dirty trick.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/liquidsoap/src/formats/midiformat.ml

    r6701 r6703  
    133133            let n = get_byte () in 
    134134            let v = get_byte () in 
    135               Some chan, Midi.Note_on (n, float v /. 127.) 
     135              Some chan, 
     136              if v = 0 then 
     137                Midi.Note_off (n, 0.) (* I have seen notes at 0. used as note off...... *) 
     138              else 
     139                Midi.Note_on (n, float v /. 127.) 
    136140        | 0xa -> 
    137141            let n = get_byte () in 
     
    264268            (fun (d,(c,e)) -> 
    265269               let d = (d * !tempo / tpq) * Fmt.ticks_per_second () / 1000000 in 
    266                let d = d * 2 in (* TODO: remove this! *) 
     270               let d = d * 1 in (* TODO: remove this! *) 
    267271                 ( 
    268272                   match e with