drums.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/usr/bin/python3
  2. # -*- coding: utf-8 -*-
  3. """
  4. Created on Thu Jan 30 18:18:45 2019
  5. @author: moetom
  6. --------------------------------------------------------------------------
  7. This file is part of Verrücktes Gemüse.
  8. Verrücktes Gemüse is free software: you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation, either version 3 of the License, or
  11. (at your option) any later version.
  12. Verrücktes Gemüse is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU General Public License for more details.
  16. You should have received a copy of the GNU General Public License
  17. along with this program. If not, see <https://www.gnu.org/licenses/>.
  18. --------------------------------------------------------------------------
  19. """
  20. import mod.gemuese as gemuese
  21. import pygame.mixer as mixer
  22. mixer.init()
  23. clap = mixer.Sound ('mod/drums/clap.ogg')
  24. hat = mixer.Sound ('mod/drums/hat.ogg')
  25. kick = mixer.Sound ('mod/drums/kick.ogg')
  26. shaker = mixer.Sound ('mod/drums/shaker.ogg')
  27. snare = mixer.Sound ('mod/drums/snare.ogg')
  28. tom = mixer.Sound ('mod/drums/tom.ogg')
  29. gemuese.tomate.AddVocab(clap, "clap")
  30. gemuese.apfel.AddVocab(hat, "hat")
  31. gemuese.paprika.AddVocab(kick, "kick")
  32. gemuese.orange.AddVocab(shaker, "shaker")
  33. gemuese.zitrone.AddVocab(snare, "snare")
  34. gemuese.kartoffel.AddVocab(tom, "tom")