R Under development (unstable) (2023-11-26 r85638 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library("tuneR") > d <- list.files("Testfiles", pattern="\\.mid$") > garbage <- lapply(d, + function(x) { + mid <- readMidi(file.path("Testfiles", x)) + cat(x, "\n") + print(mid) + print(getMidiNotes(mid)) + } + ) midi_mono.mid time event type channel parameter1 parameter2 1 0 Sequence/Track Name 03 NA NA NA 2 0 Text Event 01 NA NA NA 3 0 Text Event 01 NA NA NA 4 0 Time Signature 58 NA NA NA 5 0 Set Tempo 51 NA NA NA 6 0 End of Track 2f NA NA NA 7 0 Sequence/Track Name 03 NA NA NA 8 0 Controller 0 7 100 9 0 Key Signature 59 NA NA NA 10 0 Note On 0 65 90 11 384 Note Off 0 65 0 12 384 Note On 0 67 90 13 768 Note Off 0 67 0 14 768 Note On 0 69 90 15 1152 Note Off 0 69 0 16 1152 Note On 0 65 90 17 1536 Note Off 0 65 0 18 1536 Note On 0 65 90 19 1920 Note Off 0 65 0 20 1920 Note On 0 67 90 21 2304 Note Off 0 67 0 22 2304 Note On 0 69 90 23 2688 Note Off 0 69 0 24 2688 Note On 0 65 90 25 3072 Note Off 0 65 0 26 3072 Note On 0 69 90 27 3456 Note Off 0 69 0 28 3456 Note On 0 70 90 29 3840 Note Off 0 70 0 30 3840 Note On 0 72 90 31 4608 Note Off 0 72 0 32 4608 Note On 0 69 90 33 4992 Note Off 0 69 0 34 4992 Note On 0 70 90 35 5376 Note Off 0 70 0 36 5376 Note On 0 72 90 37 6144 Note Off 0 72 0 38 6144 End of Track 2f NA NA NA parameterMetaSystem track 1 control track 1 2 creator: 1 3 GNU LilyPond 2.18.2 1 4 2/4, 18 clocks/tick, 8 1/32 notes / 24 clocks 1 5 5e+05 1 6 1 7 \\new: 2 8 2 9 F major 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 2 24 2 25 2 26 2 27 2 28 2 29 2 30 2 31 2 32 2 33 2 34 2 35 2 36 2 37 2 38 2 time length track channel note notename velocity 1 0 384 2 0 65 f' 90 2 384 384 2 0 67 g' 90 3 768 384 2 0 69 a' 90 4 1152 384 2 0 65 f' 90 5 1536 384 2 0 65 f' 90 6 1920 384 2 0 67 g' 90 7 2304 384 2 0 69 a' 90 8 2688 384 2 0 65 f' 90 9 3072 384 2 0 69 a' 90 10 3456 384 2 0 70 a#' 90 11 3840 768 2 0 72 c'' 90 12 4608 384 2 0 69 a' 90 13 4992 384 2 0 70 a#' 90 14 5376 768 2 0 72 c'' 90 midi_stereo.mid time event type channel parameter1 parameter2 1 0 Sequence/Track Name 03 NA NA NA 2 0 Text Event 01 NA NA NA 3 0 Text Event 01 NA NA NA 4 0 Time Signature 58 NA NA NA 5 0 Set Tempo 51 NA NA NA 6 0 End of Track 2f NA NA NA 7 0 Controller 0 7 100 8 0 Key Signature 59 NA NA NA 9 0 Note On 0 65 90 10 384 Note Off 0 65 0 11 384 Note On 0 67 90 12 768 Note Off 0 67 0 13 768 Note On 0 69 90 14 1152 Note Off 0 69 0 15 1152 Note On 0 65 90 16 1536 Note Off 0 65 0 17 1536 Note On 0 65 90 18 1920 Note Off 0 65 0 19 1920 Note On 0 67 90 20 2304 Note Off 0 67 0 21 2304 Note On 0 69 90 22 2688 Note Off 0 69 0 23 2688 Note On 0 65 90 24 3072 Note Off 0 65 0 25 3072 Note On 0 69 90 26 3456 Note Off 0 69 0 27 3456 Note On 0 70 90 28 3840 Note Off 0 70 0 29 3840 Note On 0 72 90 30 4608 Note Off 0 72 0 31 4608 Note On 0 69 90 32 4992 Note Off 0 69 0 33 4992 Note On 0 70 90 34 5376 Note Off 0 70 0 35 5376 Note On 0 72 90 36 6144 Note Off 0 72 0 37 6144 End of Track 2f NA NA NA 38 0 Controller 1 7 100 39 0 Key Signature 59 NA NA NA 40 0 Note On 1 65 90 41 384 Note Off 1 65 0 42 384 Note On 1 64 90 43 768 Note Off 1 64 0 44 768 Note On 1 65 90 45 1152 Note Off 1 65 0 46 1152 Note On 1 60 90 47 1536 Note Off 1 60 0 48 1536 Note On 1 65 90 49 1920 Note Off 1 65 0 50 1920 Note On 1 64 90 51 2304 Note Off 1 64 0 52 2304 Note On 1 65 90 53 2688 Note Off 1 65 0 54 2688 Note On 1 60 90 55 3072 Note Off 1 60 0 56 3072 Note On 1 65 90 57 3456 Note Off 1 65 0 58 3456 Note On 1 67 90 59 3840 Note Off 1 67 0 60 3840 Note On 1 69 90 61 4608 Note Off 1 69 0 62 4608 Note On 1 65 90 63 4992 Note Off 1 65 0 64 4992 Note On 1 67 90 65 5376 Note Off 1 67 0 66 5376 Note On 1 69 90 67 6144 Note Off 1 69 0 68 6144 End of Track 2f NA NA NA parameterMetaSystem track 1 control track 1 2 creator: 1 3 GNU LilyPond 2.18.2 1 4 2/4, 18 clocks/tick, 8 1/32 notes / 24 clocks 1 5 5e+05 1 6 1 7 2 8 F major 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 2 24 2 25 2 26 2 27 2 28 2 29 2 30 2 31 2 32 2 33 2 34 2 35 2 36 2 37 2 38 3 39 F major 3 40 3 41 3 42 3 43 3 44 3 45 3 46 3 47 3 48 3 49 3 50 3 51 3 52 3 53 3 54 3 55 3 56 3 57 3 58 3 59 3 60 3 61 3 62 3 63 3 64 3 65 3 66 3 67 3 68 3 time length track channel note notename velocity 1 0 384 2 0 65 f' 90 2 384 384 2 0 67 g' 90 3 768 384 2 0 69 a' 90 4 1152 384 2 0 65 f' 90 5 1536 384 2 0 65 f' 90 6 1920 384 2 0 67 g' 90 7 2304 384 2 0 69 a' 90 8 2688 384 2 0 65 f' 90 9 3072 384 2 0 69 a' 90 10 3456 384 2 0 70 a#' 90 11 3840 768 2 0 72 c'' 90 12 4608 384 2 0 69 a' 90 13 4992 384 2 0 70 a#' 90 14 5376 768 2 0 72 c'' 90 15 0 384 3 1 65 f' 90 16 384 384 3 1 64 e' 90 17 768 384 3 1 65 f' 90 18 1152 384 3 1 60 c' 90 19 1536 384 3 1 65 f' 90 20 1920 384 3 1 64 e' 90 21 2304 384 3 1 65 f' 90 22 2688 384 3 1 60 c' 90 23 3072 384 3 1 65 f' 90 24 3456 384 3 1 67 g' 90 25 3840 768 3 1 69 a' 90 26 4608 384 3 1 65 f' 90 27 4992 384 3 1 67 g' 90 28 5376 768 3 1 69 a' 90 > > proc.time() user system elapsed 0.81 0.03 0.82