disk.getAudioTitle

From ComputerCraft
Jump to navigation Jump to search

disk.getAudioTitle
Function
Syntax
disk.getAudioTitle(
  • side or network name : string
)

Returns string title
API disk
Source CC:Tweaked (source)

Returns the track name from a Music Disc in the given Disk Drive. Returns false if there is no music disc in the disk drive.

ExampleExamplePrint title
Print the title of the Music Disc in the top Disk Drive.
Code
print(disk.getAudioTitle("top"))
Output
C418 - ward