mercury-lang
Version:
Parser for the mercury live coding language
55 lines (38 loc) • 1.28 kB
Plain Text
// set randomSeed 4839
// print random(4 0 12)
// print getSeed()
// set randomSeed 2940
// print random(4 0 12)
// print getSeed()
// set randomSeed add(getSeed() 100)
// print getSeed()
// list divs [1/4 1/4.32 3.14/2.18]
// list val chromaToRelative([0 2 4])
// new input default time(1/8)
// list adds +([1 2 3] [10 11 12])
// list prg chordsFigured(I IIm V7 VIsus2)
// list prg2 chordsFromNames(C Dm G7 Asus2)
// list prg2 chordsNamed(C Dm G7 Asus2)
// list spr spread(10)
// list nspr norm(spr)
// list snspr snorm(spr)
// list prg2 repeat(makeChords(I IIm V7) [3 4 2])
// list inf infinitySeries()
// list inf infinitySeries(20)
// list inf2 infinitySeries(10 [1 2])
// list vals random(4 0 12)
// print vals
// display [1 2 3]
// display 'hello world'
// print reverse(vals)
// new polySynth saw name(chordSaw)
// display vals
// display shuffle(vals)
// new sample kick gain(randomFloat(5 0 1))
// set all play(clave(8))
// set myKick shape(1/8 5/4)
// new sample kick name(myKick) time(1/16) play([1 0 1 1 0]) gain(0.3)
// list myList join(coin(8) spread(5) random(5 20 100) choose(4 [100 200 300]))
// set volume join(randomFloat(1 0.1 1.5) random(1 50 5000))
// print join(coin(8) spread(5) random(5 20 100) choose(4 [100 200 300]))
// list a1 [0 1 2 3]