Jump to content




Sound

api command utility

  • You cannot reply to this topic
No replies to this topic

#1 Keve1227

  • New Members
  • 1 posts

Posted 10 February 2016 - 09:25 PM

Computercraft comes with many APIs for text and graphics but there are no native APIs for sound. Now, there happens to be command computers that can run commands like /playsound and while that is good and all, you can only do it on those computers and there are lots of unnecessary options if you only want to play a sound and be able of adjusting the volume and pitch.

I have made an API (my first posted one) that allows you to connect any computer to a command computer via wired modems and use that to play sounds or notes. I have also made a pitch and note API so that you don't have to remember that for example: pitch 0.7 is a C or that note-type 4 is the harp sound.

Usage:
Spoiler

Example:
Spoiler

Sound API: pastebin get YnYCcMRG sound
Pitch API: pastebin get eJcMZYP5 pitch
Note API: pastebin get MLDzwYnG note

Sound Card Program: pastebin get e3DUPzrd soundCard





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users