setPitch.lua 511 B

12345678910111213141516171819202122
  1. return {
  2. tag = 'sourcePlayback',
  3. summary = 'Set the pitch of the Source.',
  4. description = 'Sets the pitch of the Source.',
  5. arguments = {
  6. pitch = {
  7. type = 'number',
  8. description = 'The new pitch.'
  9. }
  10. },
  11. returns = {},
  12. variants = {
  13. {
  14. arguments = { 'pitch' },
  15. returns = {}
  16. }
  17. },
  18. notes = [[
  19. The default pitch is 1. Every doubling/halving of the pitch will raise/lower the pitch by one
  20. octave. Changing the pitch also changes the playback speed.
  21. ]]
  22. }