Advertisement
drProfessorGTA

Orgel

Nov 19th, 2019
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 18.17 KB | None | 0 0
  1. laut = peripheral.wrap("back")
  2. inst = "Klavier"
  3. print (inst)
  4.  
  5. while true do
  6. local event, key = os.pullEvent( "key" )
  7.  
  8.   if key == keys.y then
  9.     if inst == "Klavier" then
  10.         laut.playNote("harp",3,0)
  11.     end
  12.     if inst == "Glockenspiel" then
  13.         laut.playNote("chime",3,0)
  14.     end
  15.     if inst == "Glocke" then
  16.         laut.playNote("bell",3,0)
  17.     end
  18.     if inst == "Flöte" then
  19.         laut.playNote("flute",3,0)
  20.     end
  21.     if inst == "Kontrabass" then
  22.         laut.playNote("bass",3,0)
  23.     end
  24.     if inst == "kleine Trommel" then
  25.         laut.playNote("snare",3,0)
  26.     end
  27.     if inst == "Klanghölzer" then
  28.         laut.playNote("hat",3,0)
  29.     end
  30.     if inst == "große Trommel" then
  31.         laut.playNote("basedrum",3,0)
  32.     end
  33.     if inst == "Gitarre" then
  34.         laut.playNote("guitar",3,0)
  35.     end
  36.     if inst == "Xylofon" then
  37.         laut.playNote("xylophone",3,0)
  38.     end
  39.   end
  40.   if key == keys.x then
  41.     if inst == "Klavier" then
  42.         laut.playNote("harp",3,1)
  43.     end
  44.     if inst == "Glockenspiel" then
  45.         laut.playNote("chime",3,1)
  46.     end
  47.     if inst == "Glocke" then
  48.         laut.playNote("bell",3,1)
  49.     end
  50.     if inst == "Flöte" then
  51.         laut.playNote("flute",3,1)
  52.     end
  53.     if inst == "Kontrabass" then
  54.         laut.playNote("bass",3,1)
  55.     end
  56.     if inst == "kleine Trommel" then
  57.         laut.playNote("snare",3,1)
  58.     end
  59.     if inst == "Klanghölzer" then
  60.         laut.playNote("hat",3,1)
  61.     end
  62.     if inst == "große Trommel" then
  63.         laut.playNote("basedrum",3,1)
  64.     end
  65.     if inst == "Gitarre" then
  66.         laut.playNote("guitar",3,1)
  67.     end
  68.     if inst == "Xylofon" then
  69.         laut.playNote("xylophone",3,1)
  70.     end
  71.   end
  72.   if key == keys.c then
  73.     if inst == "Klavier" then
  74.         laut.playNote("harp",3,2)
  75.     end
  76.     if inst == "Glockenspiel" then
  77.         laut.playNote("chime",3,2)
  78.     end
  79.     if inst == "Glocke" then
  80.         laut.playNote("bell",3,2)
  81.     end
  82.     if inst == "Flöte" then
  83.         laut.playNote("flute",3,2)
  84.     end
  85.     if inst == "Kontrabass" then
  86.         laut.playNote("bass",3,2)
  87.     end
  88.     if inst == "kleine Trommel" then
  89.         laut.playNote("snare",3,2)
  90.     end
  91.     if inst == "Klanghölzer" then
  92.         laut.playNote("hat",3,2)
  93.     end
  94.     if inst == "große Trommel" then
  95.         laut.playNote("basedrum",3,2)
  96.     end
  97.     if inst == "Gitarre" then
  98.         laut.playNote("guitar",3,2)
  99.     end
  100.     if inst == "Xylofon" then
  101.         laut.playNote("xylophone",3,2)
  102.     end
  103.   end
  104.   if key == keys.v then
  105.     if inst == "Klavier" then
  106.         laut.playNote("harp",3,3)
  107.     end
  108.     if inst == "Glockenspiel" then
  109.         laut.playNote("chime",3,3)
  110.     end
  111.     if inst == "Glocke" then
  112.         laut.playNote("bell",3,3)
  113.     end
  114.     if inst == "Flöte" then
  115.         laut.playNote("flute",3,3)
  116.     end
  117.     if inst == "Kontrabass" then
  118.         laut.playNote("bass",3,3)
  119.     end
  120.     if inst == "kleine Trommel" then
  121.         laut.playNote("snare",3,3)
  122.     end
  123.     if inst == "Klanghölzer" then
  124.         laut.playNote("hat",3,3)
  125.     end
  126.     if inst == "große Trommel" then
  127.         laut.playNote("basedrum",3,3)
  128.     end
  129.     if inst == "Gitarre" then
  130.         laut.playNote("guitar",3,3)
  131.     end
  132.     if inst == "Xylofon" then
  133.         laut.playNote("xylophone",3,3)
  134.     end
  135.   end
  136.   if key == keys.b then
  137.     if inst == "Klavier" then
  138.         laut.playNote("harp",3,4)
  139.     end
  140.     if inst == "Glockenspiel" then
  141.         laut.playNote("chime",3,4)
  142.     end
  143.     if inst == "Glocke" then
  144.         laut.playNote("bell",3,4)
  145.     end
  146.     if inst == "Flöte" then
  147.         laut.playNote("flute",3,4)
  148.     end
  149.     if inst == "Kontrabass" then
  150.         laut.playNote("bass",3,4)
  151.     end
  152.     if inst == "kleine Trommel" then
  153.         laut.playNote("snare",3,4)
  154.     end
  155.     if inst == "Klanghölzer" then
  156.         laut.playNote("hat",3,4)
  157.     end
  158.     if inst == "große Trommel" then
  159.         laut.playNote("basedrum",3,4)
  160.     end
  161.     if inst == "Gitarre" then
  162.         laut.playNote("guitar",3,4)
  163.     end
  164.     if inst == "Xylofon" then
  165.         laut.playNote("xylophone",3,4)
  166.     end
  167.   end
  168.   if key == keys.n then
  169.     if inst == "Klavier" then
  170.         laut.playNote("harp",3,5)
  171.     end
  172.     if inst == "Glockenspiel" then
  173.         laut.playNote("chime",3,5)
  174.     end
  175.     if inst == "Glocke" then
  176.         laut.playNote("bell",3,5)
  177.     end
  178.     if inst == "Flöte" then
  179.         laut.playNote("flute",3,5)
  180.     end
  181.     if inst == "Kontrabass" then
  182.         laut.playNote("bass",3,5)
  183.     end
  184.     if inst == "kleine Trommel" then
  185.         laut.playNote("snare",3,5)
  186.     end
  187.     if inst == "Klanghölzer" then
  188.         laut.playNote("hat",3,5)
  189.     end
  190.     if inst == "große Trommel" then
  191.         laut.playNote("basedrum",3,5)
  192.     end
  193.     if inst == "Gitarre" then
  194.         laut.playNote("guitar",3,5)
  195.     end
  196.     if inst == "Xylofon" then
  197.         laut.playNote("xylophone",3,5)
  198.     end
  199.   end
  200.   if key == keys.m then
  201.     if inst == "Klavier" then
  202.         laut.playNote("harp",3,6)
  203.     end
  204.     if inst == "Glockenspiel" then
  205.         laut.playNote("chime",3,6)
  206.     end
  207.     if inst == "Glocke" then
  208.         laut.playNote("bell",3,6)
  209.     end
  210.     if inst == "Flöte" then
  211.         laut.playNote("flute",3,6)
  212.     end
  213.     if inst == "Kontrabass" then
  214.         laut.playNote("bass",3,6)
  215.     end
  216.     if inst == "kleine Trommel" then
  217.         laut.playNote("snare",3,6)
  218.     end
  219.     if inst == "Klanghölzer" then
  220.         laut.playNote("hat",3,6)
  221.     end
  222.     if inst == "große Trommel" then
  223.         laut.playNote("basedrum",3,6)
  224.     end
  225.     if inst == "Gitarre" then
  226.         laut.playNote("guitar",3,6)
  227.     end
  228.     if inst == "Xylofon" then
  229.         laut.playNote("xylophone",3,6)
  230.     end
  231.   end
  232.   if key == keys.a then
  233.     if inst == "Klavier" then
  234.         laut.playNote("harp",3,7)
  235.     end
  236.     if inst == "Glockenspiel" then
  237.         laut.playNote("chime",3,7)
  238.     end
  239.     if inst == "Glocke" then
  240.         laut.playNote("bell",3,7)
  241.     end
  242.     if inst == "Flöte" then
  243.         laut.playNote("flute",3,7)
  244.     end
  245.     if inst == "Kontrabass" then
  246.         laut.playNote("bass",3,7)
  247.     end
  248.     if inst == "kleine Trommel" then
  249.         laut.playNote("snare",3,7)
  250.     end
  251.     if inst == "Klanghölzer" then
  252.         laut.playNote("hat",3,7)
  253.     end
  254.     if inst == "große Trommel" then
  255.         laut.playNote("basedrum",3,7)
  256.     end
  257.     if inst == "Gitarre" then
  258.         laut.playNote("guitar",3,7)
  259.     end
  260.     if inst == "Xylofon" then
  261.         laut.playNote("xylophone",3,7)
  262.     end
  263.   end
  264.   if key == keys.s then
  265.     if inst == "Klavier" then
  266.         laut.playNote("harp",3,8)
  267.     end
  268.     if inst == "Glockenspiel" then
  269.         laut.playNote("chime",3,8)
  270.     end
  271.     if inst == "Glocke" then
  272.         laut.playNote("bell",3,8)
  273.     end
  274.     if inst == "Flöte" then
  275.         laut.playNote("flute",3,8)
  276.     end
  277.     if inst == "Kontrabass" then
  278.         laut.playNote("bass",3,8)
  279.     end
  280.     if inst == "kleine Trommel" then
  281.         laut.playNote("snare",3,8)
  282.     end
  283.     if inst == "Klanghölzer" then
  284.         laut.playNote("hat",3,8)
  285.     end
  286.     if inst == "große Trommel" then
  287.         laut.playNote("basedrum",3,8)
  288.     end
  289.     if inst == "Gitarre" then
  290.         laut.playNote("guitar",3,8)
  291.     end
  292.     if inst == "Xylofon" then
  293.         laut.playNote("xylophone",3,8)
  294.     end
  295.   end
  296.   if key == keys.d then
  297.     if inst == "Klavier" then
  298.         laut.playNote("harp",3,9)
  299.     end
  300.     if inst == "Glockenspiel" then
  301.         laut.playNote("chime",3,9)
  302.     end
  303.     if inst == "Glocke" then
  304.         laut.playNote("bell",3,9)
  305.     end
  306.     if inst == "Flöte" then
  307.         laut.playNote("flute",3,9)
  308.     end
  309.     if inst == "Kontrabass" then
  310.         laut.playNote("bass",3,9)
  311.     end
  312.     if inst == "kleine Trommel" then
  313.         laut.playNote("snare",3,9)
  314.     end
  315.     if inst == "Klanghölzer" then
  316.         laut.playNote("hat",3,9)
  317.     end
  318.     if inst == "große Trommel" then
  319.         laut.playNote("basedrum",3,9)
  320.     end
  321.     if inst == "Gitarre" then
  322.         laut.playNote("guitar",3,9)
  323.     end
  324.     if inst == "Xylofon" then
  325.         laut.playNote("xylophone",3,9)
  326.     end
  327.   end
  328.   if key == keys.f then
  329.     if inst == "Klavier" then
  330.         laut.playNote("harp",3,10)
  331.     end
  332.     if inst == "Glockenspiel" then
  333.         laut.playNote("chime",3,10)
  334.     end
  335.     if inst == "Glocke" then
  336.         laut.playNote("bell",3,10)
  337.     end
  338.     if inst == "Flöte" then
  339.         laut.playNote("flute",3,10)
  340.     end
  341.     if inst == "Kontrabass" then
  342.         laut.playNote("bass",3,10)
  343.     end
  344.     if inst == "kleine Trommel" then
  345.         laut.playNote("snare",3,10)
  346.     end
  347.     if inst == "Klanghölzer" then
  348.         laut.playNote("hat",3,10)
  349.     end
  350.     if inst == "große Trommel" then
  351.         laut.playNote("basedrum",3,10)
  352.     end
  353.     if inst == "Gitarre" then
  354.         laut.playNote("guitar",3,10)
  355.     end
  356.     if inst == "Xylofon" then
  357.         laut.playNote("xylophone",3,10)
  358.     end
  359.   end
  360.   if key == keys.g then
  361.     if inst == "Klavier" then
  362.         laut.playNote("harp",3,11)
  363.     end
  364.     if inst == "Glockenspiel" then
  365.         laut.playNote("chime",3,11)
  366.     end
  367.     if inst == "Glocke" then
  368.         laut.playNote("bell",3,11)
  369.     end
  370.     if inst == "Flöte" then
  371.         laut.playNote("flute",3,11)
  372.     end
  373.     if inst == "Kontrabass" then
  374.         laut.playNote("bass",3,11)
  375.     end
  376.     if inst == "kleine Trommel" then
  377.         laut.playNote("snare",3,11)
  378.     end
  379.     if inst == "Klanghölzer" then
  380.         laut.playNote("hat",3,11)
  381.     end
  382.     if inst == "große Trommel" then
  383.         laut.playNote("basedrum",3,11)
  384.     end
  385.     if inst == "Gitarre" then
  386.         laut.playNote("guitar",3,11)
  387.     end
  388.     if inst == "Xylofon" then
  389.         laut.playNote("xylophone",3,11)
  390.     end
  391.   end
  392.   if key == keys.h then
  393.     if inst == "Klavier" then
  394.         laut.playNote("harp",3,12)
  395.     end
  396.     if inst == "Glockenspiel" then
  397.         laut.playNote("chime",3,12)
  398.     end
  399.     if inst == "Glocke" then
  400.         laut.playNote("bell",3,12)
  401.     end
  402.     if inst == "Flöte" then
  403.         laut.playNote("flute",3,12)
  404.     end
  405.     if inst == "Kontrabass" then
  406.         laut.playNote("bass",3,12)
  407.     end
  408.     if inst == "kleine Trommel" then
  409.         laut.playNote("snare",3,12)
  410.     end
  411.     if inst == "Klanghölzer" then
  412.         laut.playNote("hat",3,12)
  413.     end
  414.     if inst == "große Trommel" then
  415.         laut.playNote("basedrum",3,12)
  416.     end
  417.     if inst == "Gitarre" then
  418.         laut.playNote("guitar",3,12)
  419.     end
  420.     if inst == "Xylofon" then
  421.         laut.playNote("xylophone",3,12)
  422.     end
  423.   end
  424.   if key == keys.j then
  425.     if inst == "Klavier" then
  426.         laut.playNote("harp",3,13)
  427.     end
  428.     if inst == "Glockenspiel" then
  429.         laut.playNote("chime",3,13)
  430.     end
  431.     if inst == "Glocke" then
  432.         laut.playNote("bell",3,13)
  433.     end
  434.     if inst == "Flöte" then
  435.         laut.playNote("flute",3,13)
  436.     end
  437.     if inst == "Kontrabass" then
  438.         laut.playNote("bass",3,13)
  439.     end
  440.     if inst == "kleine Trommel" then
  441.         laut.playNote("snare",3,13)
  442.     end
  443.     if inst == "Klanghölzer" then
  444.         laut.playNote("hat",3,13)
  445.     end
  446.     if inst == "große Trommel" then
  447.         laut.playNote("basedrum",3,13)
  448.     end
  449.     if inst == "Gitarre" then
  450.         laut.playNote("guitar",3,13)
  451.     end
  452.     if inst == "Xylofon" then
  453.         laut.playNote("xylophone",3,13)
  454.     end
  455.   end
  456.   if key == keys.k then
  457.     if inst == "Klavier" then
  458.         laut.playNote("harp",3,14)
  459.     end
  460.     if inst == "Glockenspiel" then
  461.         laut.playNote("chime",3,14)
  462.     end
  463.     if inst == "Glocke" then
  464.         laut.playNote("bell",3,14)
  465.     end
  466.     if inst == "Flöte" then
  467.         laut.playNote("flute",3,14)
  468.     end
  469.     if inst == "Kontrabass" then
  470.         laut.playNote("bass",3,14)
  471.     end
  472.     if inst == "kleine Trommel" then
  473.         laut.playNote("snare",3,14)
  474.     end
  475.     if inst == "Klanghölzer" then
  476.         laut.playNote("hat",3,14)
  477.     end
  478.     if inst == "große Trommel" then
  479.         laut.playNote("basedrum",3,14)
  480.     end
  481.     if inst == "Gitarre" then
  482.         laut.playNote("guitar",3,14)
  483.     end
  484.     if inst == "Xylofon" then
  485.         laut.playNote("xylophone",3,14)
  486.     end
  487.   end
  488.   if key == keys.l then
  489.     if inst == "Klavier" then
  490.         laut.playNote("harp",3,15)
  491.     end
  492.     if inst == "Glockenspiel" then
  493.         laut.playNote("chime",3,15)
  494.     end
  495.     if inst == "Glocke" then
  496.         laut.playNote("bell",3,15)
  497.     end
  498.     if inst == "Flöte" then
  499.         laut.playNote("flute",3,15)
  500.     end
  501.     if inst == "Kontrabass" then
  502.         laut.playNote("bass",3,15)
  503.     end
  504.     if inst == "kleine Trommel" then
  505.         laut.playNote("snare",3,15)
  506.     end
  507.     if inst == "Klanghölzer" then
  508.         laut.playNote("hat",3,15)
  509.     end
  510.     if inst == "große Trommel" then
  511.         laut.playNote("basedrum",3,15)
  512.     end
  513.     if inst == "Gitarre" then
  514.         laut.playNote("guitar",3,15)
  515.     end
  516.     if inst == "Xylofon" then
  517.         laut.playNote("xylophone",3,15)
  518.     end
  519.   end
  520.   if key == keys.q then
  521.     if inst == "Klavier" then
  522.         laut.playNote("harp",3,16)
  523.     end
  524.     if inst == "Glockenspiel" then
  525.         laut.playNote("chime",3,16)
  526.     end
  527.     if inst == "Glocke" then
  528.         laut.playNote("bell",3,16)
  529.     end
  530.     if inst == "Flöte" then
  531.         laut.playNote("flute",3,16)
  532.     end
  533.     if inst == "Kontrabass" then
  534.         laut.playNote("bass",3,16)
  535.     end
  536.     if inst == "kleine Trommel" then
  537.         laut.playNote("snare",3,16)
  538.     end
  539.     if inst == "Klanghölzer" then
  540.         laut.playNote("hat",3,16)
  541.     end
  542.     if inst == "große Trommel" then
  543.         laut.playNote("basedrum",3,16)
  544.     end
  545.     if inst == "Gitarre" then
  546.         laut.playNote("guitar",3,16)
  547.     end
  548.     if inst == "Xylofon" then
  549.         laut.playNote("xylophone",3,16)
  550.     end
  551.   end
  552.   if key == keys.w then
  553.     if inst == "Klavier" then
  554.         laut.playNote("harp",3,17)
  555.     end
  556.     if inst == "Glockenspiel" then
  557.         laut.playNote("chime",3,17)
  558.     end
  559.     if inst == "Glocke" then
  560.         laut.playNote("bell",3,17)
  561.     end
  562.     if inst == "Flöte" then
  563.         laut.playNote("flute",3,17)
  564.     end
  565.     if inst == "Kontrabass" then
  566.         laut.playNote("bass",3,17)
  567.     end
  568.     if inst == "kleine Trommel" then
  569.         laut.playNote("snare",3,17)
  570.     end
  571.     if inst == "Klanghölzer" then
  572.         laut.playNote("hat",3,17)
  573.     end
  574.     if inst == "große Trommel" then
  575.         laut.playNote("basedrum",3,17)
  576.     end
  577.     if inst == "Gitarre" then
  578.         laut.playNote("guitar",3,17)
  579.     end
  580.     if inst == "Xylofon" then
  581.         laut.playNote("xylophone",3,17)
  582.     end
  583.   end
  584.   if key == keys.e then
  585.     if inst == "Klavier" then
  586.         laut.playNote("harp",3,18)
  587.     end
  588.     if inst == "Glockenspiel" then
  589.         laut.playNote("chime",3,18)
  590.     end
  591.     if inst == "Glocke" then
  592.         laut.playNote("bell",3,18)
  593.     end
  594.     if inst == "Flöte" then
  595.         laut.playNote("flute",3,18)
  596.     end
  597.     if inst == "Kontrabass" then
  598.         laut.playNote("bass",3,18)
  599.     end
  600.     if inst == "kleine Trommel" then
  601.         laut.playNote("snare",3,18)
  602.     end
  603.     if inst == "Klanghölzer" then
  604.         laut.playNote("hat",3,18)
  605.     end
  606.     if inst == "große Trommel" then
  607.         laut.playNote("basedrum",3,18)
  608.     end
  609.     if inst == "Gitarre" then
  610.         laut.playNote("guitar",3,18)
  611.     end
  612.     if inst == "Xylofon" then
  613.         laut.playNote("xylophone",3,18)
  614.     end
  615.   end
  616.   if key == keys.r then
  617.     if inst == "Klavier" then
  618.         laut.playNote("harp",3,19)
  619.     end
  620.     if inst == "Glockenspiel" then
  621.         laut.playNote("chime",3,19)
  622.     end
  623.     if inst == "Glocke" then
  624.         laut.playNote("bell",3,19)
  625.     end
  626.     if inst == "Flöte" then
  627.         laut.playNote("flute",3,19)
  628.     end
  629.     if inst == "Kontrabass" then
  630.         laut.playNote("bass",3,19)
  631.     end
  632.     if inst == "kleine Trommel" then
  633.         laut.playNote("snare",3,19)
  634.     end
  635.     if inst == "Klanghölzer" then
  636.         laut.playNote("hat",3,19)
  637.     end
  638.     if inst == "große Trommel" then
  639.         laut.playNote("basedrum",3,19)
  640.     end
  641.     if inst == "Gitarre" then
  642.         laut.playNote("guitar",3,19)
  643.     end
  644.     if inst == "Xylofon" then
  645.         laut.playNote("xylophone",3,19)
  646.     end
  647.   end
  648.   if key == keys.t then
  649.     if inst == "Klavier" then
  650.         laut.playNote("harp",3,20)
  651.     end
  652.     if inst == "Glockenspiel" then
  653.         laut.playNote("chime",3,20)
  654.     end
  655.     if inst == "Glocke" then
  656.         laut.playNote("bell",3,20)
  657.     end
  658.     if inst == "Flöte" then
  659.         laut.playNote("flute",3,20)
  660.     end
  661.     if inst == "Kontrabass" then
  662.         laut.playNote("bass",3,20)
  663.     end
  664.     if inst == "kleine Trommel" then
  665.         laut.playNote("snare",3,20)
  666.     end
  667.     if inst == "Klanghölzer" then
  668.         laut.playNote("hat",3,20)
  669.     end
  670.     if inst == "große Trommel" then
  671.         laut.playNote("basedrum",3,20)
  672.     end
  673.     if inst == "Gitarre" then
  674.         laut.playNote("guitar",3,20)
  675.     end
  676.     if inst == "Xylofon" then
  677.         laut.playNote("xylophone",3,20)
  678.     end
  679.   end
  680.   if key == keys.z then
  681.     if inst == "Klavier" then
  682.         laut.playNote("harp",3,21)
  683.     end
  684.     if inst == "Glockenspiel" then
  685.         laut.playNote("chime",3,21)
  686.     end
  687.     if inst == "Glocke" then
  688.         laut.playNote("bell",3,21)
  689.     end
  690.     if inst == "Flöte" then
  691.         laut.playNote("flute",3,21)
  692.     end
  693.     if inst == "Kontrabass" then
  694.         laut.playNote("bass",3,21)
  695.     end
  696.     if inst == "kleine Trommel" then
  697.         laut.playNote("snare",3,21)
  698.     end
  699.     if inst == "Klanghölzer" then
  700.         laut.playNote("hat",3,21)
  701.     end
  702.     if inst == "große Trommel" then
  703.         laut.playNote("basedrum",3,21)
  704.     end
  705.     if inst == "Gitarre" then
  706.         laut.playNote("guitar",3,21)
  707.     end
  708.     if inst == "Xylofon" then
  709.         laut.playNote("xylophone",3,21)
  710.     end
  711.   end
  712.   if key == keys.u then
  713.     if inst == "Klavier" then
  714.         laut.playNote("harp",3,22)
  715.     end
  716.     if inst == "Glockenspiel" then
  717.         laut.playNote("chime",3,22)
  718.     end
  719.     if inst == "Glocke" then
  720.         laut.playNote("bell",3,22)
  721.     end
  722.     if inst == "Flöte" then
  723.         laut.playNote("flute",3,22)
  724.     end
  725.     if inst == "Kontrabass" then
  726.         laut.playNote("bass",3,22)
  727.     end
  728.     if inst == "kleine Trommel" then
  729.         laut.playNote("snare",3,22)
  730.     end
  731.     if inst == "Klanghölzer" then
  732.         laut.playNote("hat",3,22)
  733.     end
  734.     if inst == "große Trommel" then
  735.         laut.playNote("basedrum",3,22)
  736.     end
  737.     if inst == "Gitarre" then
  738.         laut.playNote("guitar",3,22)
  739.     end
  740.     if inst == "Xylofon" then
  741.         laut.playNote("xylophone",3,22)
  742.     end
  743.   end
  744.   if key == keys.i then
  745.     if inst == "Klavier" then
  746.         laut.playNote("harp",3,23)
  747.     end
  748.     if inst == "Glockenspiel" then
  749.         laut.playNote("chime",3,23)
  750.     end
  751.     if inst == "Glocke" then
  752.         laut.playNote("bell",3,23)
  753.     end
  754.     if inst == "Flöte" then
  755.         laut.playNote("flute",3,23)
  756.     end
  757.     if inst == "Kontrabass" then
  758.         laut.playNote("bass",3,23)
  759.     end
  760.     if inst == "kleine Trommel" then
  761.         laut.playNote("snare",3,23)
  762.     end
  763.     if inst == "Klanghölzer" then
  764.         laut.playNote("hat",3,23)
  765.     end
  766.     if inst == "große Trommel" then
  767.         laut.playNote("basedrum",3,23)
  768.     end
  769.     if inst == "Gitarre" then
  770.         laut.playNote("guitar",3,23)
  771.     end
  772.     if inst == "Xylofon" then
  773.         laut.playNote("xylophone",3,23)
  774.     end
  775.   end
  776.   if key == keys.o then
  777.     if inst == "Klavier" then
  778.         laut.playNote("harp",3,24)
  779.     end
  780.     if inst == "Glockenspiel" then
  781.         laut.playNote("chime",3,24)
  782.     end
  783.     if inst == "Glocke" then
  784.         laut.playNote("bell",3,24)
  785.     end
  786.     if inst == "Flöte" then
  787.         laut.playNote("flute",3,24)
  788.     end
  789.     if inst == "Kontrabass" then
  790.         laut.playNote("bass",3,24)
  791.     end
  792.     if inst == "kleine Trommel" then
  793.         laut.playNote("snare",3,24)
  794.     end
  795.     if inst == "Klanghölzer" then
  796.         laut.playNote("hat",3,24)
  797.     end
  798.     if inst == "große Trommel" then
  799.         laut.playNote("basedrum",3,24)
  800.     end
  801.     if inst == "Gitarre" then
  802.         laut.playNote("guitar",3,24)
  803.     end
  804.     if inst == "Xylofon" then
  805.         laut.playNote("xylophone",3,24)
  806.     end
  807.   end
  808.  
  809.   if key == keys.one then
  810.     inst = "Klavier"
  811.     print (inst)
  812.   end
  813.   if key == keys.two then
  814.     inst = "Glockenspiel"
  815.     print (inst)
  816.   end
  817.   if key == keys.three then
  818.     inst = "Glocke"
  819.     print (inst)
  820.   end
  821.   if key == keys.four then
  822.     inst = "Flöte"
  823.     print (inst)
  824.   end
  825.   if key == keys.five then
  826.     inst = "Kontrabass"
  827.     print (inst)
  828.   end
  829.   if key == keys.six then
  830.     inst = "kleine Trommel"
  831.     print (inst)
  832.   end
  833.   if key == keys.seven then
  834.     inst = "Klanghölzer"
  835.     print (inst)
  836.   end
  837.   if key == keys.eight then
  838.     inst = "große Trommel"
  839.     print (inst)
  840.   end
  841.   if key == keys.nine then
  842.     inst = "Gitarre"
  843.     print (inst)
  844.   end
  845.   if key == keys.zero then
  846.     inst = "Xylofon"
  847.     print (inst)
  848.   end
  849. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement