More documentation!
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
// interfaces without having to duplicate a ton of code. Each "core" is a type
|
||||
// that can be embedded into an element directly, working to fulfill a
|
||||
// particular interface. Each one comes with a corresponding core control, which
|
||||
// provides an interface for elements to exert control over the core. They
|
||||
// should be kept private.
|
||||
// provides an interface for elements to exert control over the core. Core
|
||||
// controls should be kept private.
|
||||
package core
|
||||
|
||||
4
elements/fun/music/doc.go
Normal file
4
elements/fun/music/doc.go
Normal file
@@ -0,0 +1,4 @@
|
||||
// Package music provides types relating to music theory and the math behind it.
|
||||
// It is used in the fun.Piano element, and in the piano example to generate
|
||||
// pitches from notes.
|
||||
package music
|
||||
@@ -43,6 +43,7 @@ const (
|
||||
NoteBb0
|
||||
NoteB0
|
||||
|
||||
// nice
|
||||
NoteA4 Note = 69
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user