lol

Returned timidity and its expression with a last-minute-fix..

svn path=/nixpkgs/trunk/; revision=9362

+403 -3
+31
pkgs/tools/misc/timidity/default.nix
··· 1 + args: with args; 2 + stdenv.mkDerivation { 3 + name = "timidity-2.13.0"; 4 + 5 + src = fetchurl { 6 + url = http://ovh.dl.sourceforge.net/sourceforge/timidity/TiMidity++-2.13.0.tar.bz2; 7 + sha256 = "1jbmk0m375fh5nj2awqzns7pdjbi7dxpjdwcix04zipfcilppbmf"; 8 + }; 9 + 10 + instruments = 11 + fetchurl { 12 + url = http://www.csee.umbc.edu/pub/midia/instruments.tar.gz; 13 + sha256 = "0lsh9l8l5h46z0y8ybsjd4pf6c22n33jsjvapfv3rjlfnasnqw67"; 14 + }; 15 + 16 + buildInputs =[alsaLib]; 17 + 18 + config=./timidity.cfg; 19 + 20 + postInstall = "mkdir -p \$out/share/timidity/; 21 + cp \$config \$out/share/timidity/timidity.cfg; 22 + tar -xf \$instruments -C \$out/share/timidity/; 23 + "; 24 + 25 + meta = { 26 + description = " 27 + TiMidity - software MIDI renderer. 28 + "; 29 + }; 30 + } 31 +
+369
pkgs/tools/misc/timidity/timidity.cfg
··· 1 + ############################################################################## 2 + # 3 + # Instrument configuration file for timidity 4 + # 5 + # ---------------------------------------- 6 + # 7 + # Johan Hagman (Johan.Hagman@mailbox.swipnet.se) 26-Sep-96: 8 + # 9 + # This config file is for the uncompressed MIDIA GM patches from 10 + # ftp://archive.cs.umbc.edu/pub/midia/instruments.tar.gz. The 11 + # patches assumed to be installed are 12 + # 13 + # in /usr/local/lib/timidity/patch original piano & guitar 14 + # in /usr/local/lib/timidity/instruments MIDIA patches 15 + # 16 + # ---------------------------------------- 17 + # 18 + # Specify library directory: dir <directory> 19 + # 20 + # - Multiple library directories may be given. The ones given last will be 21 + # searched first so you can override them in later configuration files. 22 + # Extra configuration files and MIDI files will also be searched in these 23 + # directories. 24 + # 25 + # Set tone bank or drum set to modify: bank <number> 26 + # drumset <number> 27 + # 28 + # Map program number to patch map: <program number> <patch name> 29 + # 30 + # - If the patch can't be found in the library directories, TiMidity will 31 + # search again with ".pat" appended to the name. 32 + # Programs without a loaded patch will be silent, except that for 33 + # banks/drumsets >0, the corresponding patch in bank/drumset 0 will 34 + # be used (if one exists). 35 + # 36 + # Read another configuration file: source <file name> 37 + # 38 + 39 + ############################################################################## 40 + # If you've moved things around since compiling, uncomment and edit this to 41 + # point to the library directory: 42 + # 43 + 44 + dir /var/run/current-system/sw/share/timidity/instruments 45 + dir /var/run/current-system/sw/share/timidity/patch 46 + 47 + ############################################################################## 48 + # This sets up the default patches in the TiMidity support package 49 + # "timidity-lib-0.1.tar.gz": 50 + 51 + #bank 0 52 + # 0 acpiano.pat 53 + # 24 nylongt2.pat 54 + 55 + ############################################################################## 56 + # If you have Dustin McCartney's "wowpats" patches, you can source the 57 + # config file to set them up for TiMidity: 58 + # 59 + # (Note that later entries in config files always override earlier ones) 60 + # 61 + #source wowpats.cfg 62 + # 63 + 64 + ############################################################################## 65 + # If you have Dustin McCartney's GS drum sets, you can source the config 66 + # file to set them up for TiMidity: 67 + # 68 + #source gsdrum.cfg 69 + # 70 + 71 + ############################################################################## 72 + # If you have the GUS General MIDI patch set, uncomment the following lines 73 + # and edit the "dir" statement to point to your GUS patch directory. 74 + # 75 + #dir /dos-C/ultrasnd/midi 76 + #source gravis.cfg 77 + # 78 + 79 + ############################################################################## 80 + # If you have the Midia patch set, you can source midia.cfg to set them up. 81 + # Note that midia.cfg sources gravis.cfg in turn, since the filenames are 82 + # almost identical. 83 + # 84 + #source midia.cfg 85 + # 86 + 87 + ############################################################################## 88 + # A config file for the Midia patch set. The patch filenames are identical 89 + # to the GUS ones, although many of the patches themselves are different. 90 + 91 + #source gravis.cfg 92 + 93 + ############################################################################## 94 + # These are the standard patches that come with the GUS, mapped into GM 95 + # programs. 96 + # 97 + 98 + bank 0 99 + 100 + 0 acpiano 101 + # The Midia set doesn't have a bright piano, 102 + # so we substitute acpiano instead. 103 + #1 britepno 104 + 1 acpiano 105 + 2 synpiano 106 + 3 honky 107 + 4 epiano1 108 + 5 epiano2 109 + 6 hrpschrd 110 + 7 clavinet 111 + 8 celeste 112 + 9 glocken 113 + 10 musicbox 114 + 11 vibes 115 + 12 marimba 116 + 13 xylophon amp=200 117 + 14 tubebell 118 + 15 santur 119 + 16 homeorg 120 + 17 percorg 121 + 18 rockorg 122 + 19 church 123 + 20 reedorg 124 + 21 accordn 125 + 22 harmonca 126 + 23 concrtna 127 + #24 nyguitar 128 + # Replace with the guitar that comes with Timidity 129 + 24 nylongt2 130 + 25 acguitar 131 + 26 jazzgtr 132 + 27 cleangtr 133 + 28 mutegtr 134 + 29 odguitar 135 + 30 distgtr 136 + 31 gtrharm 137 + 32 acbass 138 + 33 fngrbass 139 + 34 pickbass 140 + 35 fretless 141 + 36 slapbas1 142 + 37 slapbas2 143 + 38 synbass1 144 + 39 synbass2 145 + 40 violin 146 + 41 viola 147 + 42 cello 148 + 43 contraba 149 + 44 tremstr 150 + 45 pizzcato 151 + 46 harp 152 + 47 timpani 153 + # This sounds pretty dumb with the default panning 154 + 48 marcato pan=center 155 + 49 slowstr 156 + 50 synstr1 157 + 51 synstr2 158 + 52 choir 159 + 53 doo 160 + 54 voices 161 + 55 orchhit 162 + 56 trumpet 163 + 57 trombone 164 + 58 tuba 165 + 59 mutetrum 166 + 60 frenchrn 167 + 61 hitbrass 168 + 62 synbras1 169 + 63 synbras2 170 + 64 sprnosax 171 + 65 altosax 172 + 66 tenorsax 173 + 67 barisax 174 + 68 oboe 175 + 69 englhorn 176 + 70 bassoon 177 + 71 clarinet 178 + 72 piccolo 179 + 73 flute 180 + 74 recorder 181 + 75 woodflut 182 + 76 bottle 183 + 77 shakazul 184 + 78 whistle 185 + 79 ocarina 186 + 80 sqrwave 187 + 81 sawwave 188 + 82 calliope 189 + 83 chiflead 190 + 84 charang 191 + 85 voxlead 192 + 86 lead5th 193 + 87 basslead 194 + 88 fantasia 195 + 89 warmpad 196 + 90 polysyn 197 + 91 ghostie 198 + 92 bowglass 199 + 93 metalpad 200 + 94 halopad 201 + 95 sweeper 202 + 96 aurora 203 + 97 soundtrk 204 + 98 crystal 205 + 99 atmosphr 206 + 100 freshair 207 + 101 unicorn 208 + 102 echovox 209 + 103 startrak 210 + 104 sitar 211 + 105 banjo 212 + 106 shamisen 213 + 107 koto 214 + 108 kalimba 215 + 109 bagpipes 216 + 110 fiddle 217 + 111 shannai 218 + 112 carillon 219 + 113 agogo 220 + 114 steeldrm 221 + 115 woodblk 222 + 116 taiko 223 + 117 toms 224 + 118 syntom 225 + 119 revcym 226 + 120 fx-fret 227 + 121 fx-blow 228 + 122 seashore 229 + 123 jungle 230 + 124 telephon 231 + 125 helicptr 232 + 126 applause note=69 233 + 127 pistol 234 + 235 + ############################################################################## 236 + # The GUS drum patches 237 + 238 + drumset 0 239 + 240 + 27 highq 241 + 28 slap 242 + 29 scratch1 243 + 30 scratch2 244 + 31 sticks strip=tail 245 + 32 sqrclick 246 + 33 metclick 247 + 34 metbell keep=loop keep=env 248 + 35 kick1 249 + 36 kick2 250 + 37 stickrim strip=tail 251 + 38 snare1 252 + 39 claps 253 + 40 snare2 note=38 254 + 41 tomlo2 255 + 42 hihatcl 256 + 43 tomlo1 257 + 44 hihatpd 258 + 45 tommid2 259 + 46 hihatop 260 + 47 tommid1 261 + 48 tomhi2 262 + 49 cymcrsh1 263 + 50 tomhi1 264 + 51 cymride1 265 + 52 cymchina 266 + 53 cymbell 267 + 54 tamborin 268 + 55 cymsplsh 269 + 56 cowbell 270 + 57 cymcrsh2 271 + 58 vibslap 272 + 59 cymride2 273 + 60 bongohi 274 + 61 bongolo 275 + 62 congahi1 276 + 63 congahi2 277 + 64 congalo 278 + 65 timbaleh 279 + 66 timbalel 280 + 67 agogohi 281 + 68 agogolo 282 + 69 cabasa strip=tail 283 + 70 maracas 284 + 71 whistle1 keep=loop keep=env 285 + 72 whistle2 keep=loop keep=env 286 + 73 guiro1 287 + 74 guiro2 288 + 75 clave 289 + 76 woodblk1 290 + 77 woodblk2 291 + 78 cuica1 292 + 79 cuica2 293 + 80 triangl1 294 + 81 triangl2 295 + 82 shaker 296 + 83 jingles 297 + 84 belltree keep=loop keep=env 298 + 85 castinet 299 + 86 surdo1 300 + 87 surdo2 301 + # There's no pistol, but I can't think of a reasonable substitute. 302 + 303 + # Drumset 1 is identical to set 0 304 + drumset 1 305 + 306 + 27 highq 307 + 28 slap 308 + 29 scratch1 309 + 30 scratch2 310 + 31 sticks strip=tail 311 + 32 sqrclick 312 + 33 metclick 313 + 34 metbell keep=loop keep=env 314 + 35 kick1 315 + 36 kick2 316 + 37 stickrim strip=tail 317 + 38 snare1 318 + 39 claps 319 + 40 snare2 note=38 320 + 41 tomlo2 321 + 42 hihatcl 322 + 43 tomlo1 323 + 44 hihatpd 324 + 45 tommid2 325 + 46 hihatop 326 + 47 tommid1 327 + 48 tomhi2 328 + 49 cymcrsh1 329 + 50 tomhi1 330 + 51 cymride1 331 + 52 cymchina 332 + 53 cymbell 333 + 54 tamborin 334 + 55 cymsplsh 335 + 56 cowbell 336 + 57 cymcrsh2 337 + 58 vibslap 338 + 59 cymride2 339 + 60 bongohi 340 + 61 bongolo 341 + 62 congahi1 342 + 63 congahi2 343 + 64 congalo 344 + 65 timbaleh 345 + 66 timbalel 346 + 67 agogohi 347 + 68 agogolo 348 + 69 cabasa strip=tail 349 + 70 maracas 350 + 71 whistle1 keep=loop keep=env 351 + 72 whistle2 keep=loop keep=env 352 + 73 guiro1 353 + 74 guiro2 354 + 75 clave 355 + 76 woodblk1 356 + 77 woodblk2 357 + 78 cuica1 358 + 79 cuica2 359 + 80 triangl1 360 + 81 triangl2 361 + 82 shaker 362 + 83 jingles 363 + 84 belltree keep=loop keep=env 364 + 85 castinet 365 + 86 surdo1 366 + 87 surdo2 367 + 368 + ############################################################################## 369 + # End of configuration file
+3 -3
pkgs/top-level/all-packages.nix
··· 3632 3632 #enableOfficialBranding = true; 3633 3633 }; 3634 3634 3635 - #timidity = import ../tools/misc/timidity { 3636 - # inherit fetchurl stdenv alsaLib; 3637 - #}; 3635 + timidity = import ../tools/misc/timidity { 3636 + inherit fetchurl stdenv alsaLib; 3637 + }; 3638 3638 3639 3639 unison = import ../applications/networking/sync/unison { 3640 3640 inherit fetchurl stdenv ocaml lablgtk makeWrapper;