Documentation ¶
Index ¶
- Constants
- type Block
- type BootstrapData
- type CreateBlockRequest
- type CreateBlockResponse
- type EditRequest
- type EditResponse
- type GoSamples
- type InputMeta
- type InputSound
- type JsonSamples
- type LoadRequest
- type LoadResponse
- type MashAppServer
- type Modification
- type OutputMeta
- type ServerState
- type TemplateData
Constants ¶
View Source
const ( SAMPLE_RATE = s.CyclesPerSecond MIN_FREQ = 55.0 OCTAVES = 7 MAX_FREQ = 55.0 * (1 << OCTAVES) BINS_PER_SEMITONE = 4 BPO = 12 * BINS_PER_SEMITONE )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootstrapData ¶
type BootstrapData struct {
Files []string `json:"files"`
}
type CreateBlockRequest ¶
type CreateBlockRequest struct {
Block Block `json:"block"`
}
Create Block RPC
type CreateBlockResponse ¶
type CreateBlockResponse struct {
Block Block `json:"block"`
}
type EditResponse ¶
type EditResponse struct { Input InputMeta `json:"meta"` Samples JsonSamples `json:"samples"` }
type InputMeta ¶
type InputMeta struct { ID int `json:"id,string"` Path string `json:"path"` Muted bool `json:"muted"` // Init -> Final length in samples OriginalLength int `json:"originalLength,string"` FinalLength int `json:"finalLength,string"` // Init -> Final pitch in semitones OriginalPitch int `json:"originalPitch,string"` FinalPitch int `json:"finalPitch,string"` }
type InputSound ¶
type InputSound struct {
// contains filtered or unexported fields
}
HACK - remove, replace with structs from model.go
type JsonSamples ¶
type JsonSamples string
type LoadResponse ¶
type LoadResponse struct { Input InputMeta `json:"meta"` Samples JsonSamples `json:"samples"` }
type MashAppServer ¶
type MashAppServer struct {
// contains filtered or unexported fields
}
func (*MashAppServer) Serve ¶
func (s *MashAppServer) Serve()
type Modification ¶
type OutputMeta ¶
type OutputMeta struct { ID int `json:"id,string"` BlockID int `json:"blockID,string"` Line int `json:"line,string"` Muted bool `json:"muted"` // NOTE: TimeShift if Duration() != Duration(Block) StartSample int `json:"startSample,string"` EndSample int `json:"endSample,string"` // TODO - use? Selected bool `json:"selected"` Changes []Modification `json:"changes"` }
type ServerState ¶
type ServerState struct {
// contains filtered or unexported fields
}
func NewServerState ¶
func NewServerState() *ServerState
type TemplateData ¶
Click to show internal directories.
Click to hide internal directories.