https://github.com/jpoz/cdgo
CDG reader in Go (Golang)
https://github.com/jpoz/cdgo
cdg
Last synced: 4 months ago
JSON representation
CDG reader in Go (Golang)
- Host: GitHub
- URL: https://github.com/jpoz/cdgo
- Owner: jpoz
- License: gpl-3.0
- Created: 2019-11-20T00:12:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-01T19:37:57.000Z (almost 6 years ago)
- Last Synced: 2025-11-15T21:05:50.285Z (7 months ago)
- Topics: cdg
- Language: Go
- Size: 18.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cdgo
Compact Disc plus Graphics (Karoke file) format library for Go (Golang).
### Example
The example below will load a file and print the first instruction packet
```go
file, _ := os.Open("path/to/cdg_file.cdg")
cdgFile := cdgo.NewFile(file)
packet, _ := cdgFile.NextPacket()
packet.Print()
```
### `cmd`
#### cdg2images: Write each frame of a CDG file
```shell
go run cmd/cdg2images/main.go test.cdg
```
#### cdg2text: Debugging tool. Will print human readable instructions of a CDG
```shell
go run cmd/cdg2text/main.go test.cdg
```
### References:
https://jbum.com/cdg_revealed.html
https://goughlui.com/2019/03/31/tech-flashback-the-cdgraphics-format-cdg/