11 stdenv.mkDerivation rec {
12 pname = "virtual-ans";
16 url = "https://warmplace.ru/soft/ans/virtual_ans-${version}.zip";
17 sha256 = "sha256-tqR7icgURUFOyLJ8+mS17JRf2gK53I2FW/2m8IJPtJE=";
25 (lib.getLib stdenv.cc.cc)
37 # Remove all executables except for current architecture
38 ls -1d $out/START* | grep -v ${startScript} | xargs rm -rf
39 ls -1d $out/bin/pixilang_linux* | grep -v ${linuxExecutable} | xargs rm -rf
41 # Start script performs relative search for resources, so it cannot be moved
43 ln -s $out/${startScript} $out/bin/virtual-ans
46 startScript = if stdenv.hostPlatform.isx86_32 then "START_LINUX_X86"
47 else if stdenv.hostPlatform.isx86_64 then "START_LINUX_X86_64"
48 #else if stdenv.hostPlatform.isDarwin then "START_MACOS.app" # disabled because I cannot test on Darwin
49 else abort "Unsupported platform: ${stdenv.hostPlatform.linuxArch}.";
51 linuxExecutable = if stdenv.hostPlatform.isx86_32 then "pixilang_linux_x86"
52 else if stdenv.hostPlatform.isx86_64 then "pixilang_linux_x86_64"
56 description = "Photoelectronic microtonal/spectral musical instrument";
58 Virtual ANS is a software simulator of the unique Russian synthesizer ANS
59 - photoelectronic musical instrument created by Evgeny Murzin from 1938 to
60 1958. The ANS made it possible to draw music in the form of a spectrogram
61 (sonogram), without live instruments and performers. It was used by
62 Stanislav Kreichi, Alfred Schnittke, Edward Artemiev and other Soviet
63 composers in their experimental works. You can also hear the sound of the
64 ANS in Andrei Tarkovsky's movies Solaris, The Mirror, Stalker.
66 The simulator extends the capabilities of the original instrument. Now
67 it's a full-featured graphics editor where you can convert sound into an
68 image, load and play pictures, draw microtonal/spectral music and create
69 some unusual deep atmospheric sounds. This app is for everyone who loves
70 experiments and is looking for something new.
74 + unlimited number of pure tone generators;
75 + powerful sonogram editor - you can draw the spectrum and play it at the same time;
76 + any sound (from a WAV file or a Microphone/Line-in) can be converted to image (sonogram) and vice versa;
77 + support for MIDI devices;
78 + polyphonic synth mode with MIDI mapping;
79 + supported file formats: WAV, AIFF, PNG, JPEG, GIF;
80 + supported sound systems: ASIO, DirectSound, MME, ALSA, OSS, JACK, Audiobus, IAA.
82 homepage = "https://warmplace.ru/soft/ans/";
83 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
84 license = licenses.unfreeRedistributable;
85 # I cannot test the Darwin version, so I'll leave it disabled
86 platforms = [ "x86_64-linux" "i686-linux" ];
87 maintainers = with maintainers; [ jacg ];