Changeset 6703
- Timestamp:
- 06/30/09 18:13:03 (14 months ago)
- Files:
-
- 1 modified
-
trunk/liquidsoap/src/formats/midiformat.ml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/liquidsoap/src/formats/midiformat.ml
r6701 r6703 133 133 let n = get_byte () in 134 134 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.) 136 140 | 0xa -> 137 141 let n = get_byte () in … … 264 268 (fun (d,(c,e)) -> 265 269 let d = (d * !tempo / tpq) * Fmt.ticks_per_second () / 1000000 in 266 let d = d * 2in (* TODO: remove this! *)270 let d = d * 1 in (* TODO: remove this! *) 267 271 ( 268 272 match e with
