![]() NoteOff Channel: 1 Note: 65 Velocity: 0 Timestamp: 6.5 NoteOn Channel: 1 Note: 65 Velocity: 127 Timestamp: 6 NoteOff Channel: 1 Note: 67 Velocity: 0 Timestamp: 5.75 NoteOn Channel: 1 Note: 67 Velocity: 127 Timestamp: 5.5 NoteOff Channel: 1 Note: 69 Velocity: 0 Timestamp: 5.5 NoteOn Channel: 1 Note: 69 Velocity: 127 Timestamp: 5 NoteOff Channel: 1 Note: 71 Velocity: 0 Timestamp: 5 NoteOn Channel: 1 Note: 71 Velocity: 127 Timestamp: 4.5 NoteOff Channel: 1 Note: 72 Velocity: 0 Timestamp: 4.5 NoteOn Channel: 1 Note: 72 Velocity: 127 Timestamp: 4 NoteOff Channel: 1 Note: 72 Velocity: 0 Timestamp: 3.75 NoteOn Channel: 1 Note: 72 Velocity: 127 Timestamp: 3.5 NoteOff Channel: 1 Note: 71 Velocity: 0 Timestamp: 3.5 NoteOn Channel: 1 Note: 71 Velocity: 127 Timestamp: 3 NoteOff Channel: 1 Note: 69 Velocity: 0 Timestamp: 3 NoteOn Channel: 1 Note: 69 Velocity: 127 Timestamp: 2.5 NoteOff Channel: 1 Note: 67 Velocity: 0 Timestamp: 2.5 NoteOn Channel: 1 Note: 67 Velocity: 127 Timestamp: 2 NoteOff Channel: 1 Note: 65 Velocity: 0 Timestamp: 1.75 NoteOn Channel: 1 Note: 65 Velocity: 127 Timestamp: 1.5 NoteOff Channel: 1 Note: 64 Velocity: 0 Timestamp: 1.5 NoteOn Channel: 1 Note: 64 Velocity: 127 Timestamp: 1 NoteOff Channel: 1 Note: 62 Velocity: 0 Timestamp: 1 ![]() NoteOn Channel: 1 Note: 62 Velocity: 127 Timestamp: 0.5 NoteOff Channel: 1 Note: 60 Velocity: 0 Timestamp: 0.5 NoteOn Channel: 1 Note: 60 Velocity: 127 Timestamp: 0 = createMessage(message,ts,deltaTime,ticksPerQNote,BPM) Įnd % Push chunkIndex to next track chunk % Extract relevant data - Create midimsg object = interpretMessage(statusByte,ptr,readOut) % Push pointer to beginning of MIDI message Used for running status support % Parse MIDI track events in inner loop while ptr < chunkIndex+chunkLength Ptr = 8+chunkIndex % Determine start for MIDI event parsing % Read header of track chunk, find chunk length % Add 8 to chunk length to account for track chunk header lengthĬhunkLength = polyval(readOut(chunkIndex+(5:8)),256)+8 % Parse track chunks in outer loop while chunkIndex < byteCount ChunkIndex = 14 % Header chunk is always 14 bytes ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |