Documentation
¶
Index ¶
- func SaveCollectionToFile(collection *NML, filePath string) error
- type AlbumType
- type CellType
- type CollectionType
- type CriteriaType
- type CueV2Type
- type EntryType
- type HeadType
- type IndexingType
- type InfoType
- type LocationType
- type LoopInfoType
- type LoudnessType
- type ModificationInfoType
- type MusicalKeyType
- type NML
- type NMLType
- type NodeType
- type PlaylistType
- type PlaylistsType
- type PrimaryKeyType
- type SearchExpressionType
- type SetType
- type SetsType
- type SlotType
- type SmartListType
- type SortingDataType
- type SortingInfoType
- type SortingOrderType
- type StemsType
- type SubNodesType
- type TempoType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveCollectionToFile ¶
Types ¶
type CellType ¶
type CellType struct {
Value *string `xml:",chardata"`
Index *float64 `xml:"INDEX,attr"`
CellName *string `xml:"CELLNAME,attr"`
Color *float64 `xml:"COLOR,attr"`
Sync *float64 `xml:"SYNC,attr"`
Reverse *float64 `xml:"REVERSE,attr"`
Mode *float64 `xml:"MODE,attr"`
Type *float64 `xml:"TYPE,attr"`
Speed *float64 `xml:"SPEED,attr"`
Transpose *float64 `xml:"TRANSPOSE,attr"`
Offset *float64 `xml:"OFFSET,attr"`
Nudge *float64 `xml:"NUDGE,attr"`
Gain *float64 `xml:"GAIN,attr"`
StartMarker *float64 `xml:"START_MARKER,attr"`
EndMarker *float64 `xml:"END_MARKER,attr"`
BPM *float64 `xml:"BPM,attr"`
Dir *string `xml:"DIR,attr"`
File *string `xml:"FILE,attr"`
Volume *string `xml:"VOLUME,attr"`
}
type CollectionType ¶
type CriteriaType ¶
type CueV2Type ¶
type CueV2Type struct {
Value *string `xml:",chardata"`
Name *string `xml:"NAME,attr"`
DisplOrder *float64 `xml:"DISPL_ORDER,attr"`
Type *float64 `xml:"TYPE,attr"`
Start *float64 `xml:"START,attr"`
Len *float64 `xml:"LEN,attr"`
Repeats *float64 `xml:"REPEATS,attr"`
HotCue *float64 `xml:"HOTCUE,attr"`
}
type EntryType ¶
type EntryType struct {
Location *LocationType `xml:"LOCATION"`
Album *AlbumType `xml:"ALBUM"`
ModificationInfo *ModificationInfoType `xml:"MODIFICATION_INFO"`
Info *InfoType `xml:"INFO"`
Tempo *TempoType `xml:"TEMPO"`
Loudness *LoudnessType `xml:"LOUDNESS"`
MusicalKey *MusicalKeyType `xml:"MUSICAL_KEY"`
LoopInfo *LoopInfoType `xml:"LOOPINFO"`
CueV2 []CueV2Type `xml:"CUE_V2"`
Stems *StemsType `xml:"STEMS"`
PrimaryKey *PrimaryKeyType `xml:"PRIMARYKEY"`
ModifiedDate *string `xml:"MODIFIED_DATE,attr"`
ModifiedTime *float64 `xml:"MODIFIED_TIME,attr"`
Lock *float64 `xml:"LOCK,attr"`
LockModificationTime *string `xml:"LOCK_MODIFICATION_TIME,attr"`
AudioID *string `xml:"AUDIO_ID,attr"`
Title *string `xml:"TITLE,attr"`
Artist *string `xml:"ARTIST,attr"`
}
type IndexingType ¶
type IndexingType struct {
SortingInfo []SortingInfoType `xml:"SORTING_INFO"`
}
type InfoType ¶
type InfoType struct {
Value *string `xml:",chardata"`
Bitrate *float64 `xml:"BITRATE,attr"`
Genre *string `xml:"GENRE,attr"`
Comment *string `xml:"COMMENT,attr"`
CoverArtID *string `xml:"COVERARTID,attr"`
Key *string `xml:"KEY,attr"`
Playtime *float64 `xml:"PLAYTIME,attr"`
PlaytimeFloat *float64 `xml:"PLAYTIME_FLOAT,attr"`
ImportDate *string `xml:"IMPORT_DATE,attr"`
ReleaseDate *string `xml:"RELEASE_DATE,attr"`
Flags *float64 `xml:"FLAGS,attr"`
FileSize *float64 `xml:"FILESIZE,attr"`
Label *string `xml:"LABEL,attr"`
KeyLyrics *string `xml:"KEY_LYRICS,attr"`
CatalogNo *string `xml:"CATALOG_NO,attr"`
Playcount *float64 `xml:"PLAYCOUNT,attr"`
Ranking *float64 `xml:"RANKING,attr"`
LastPlayed *string `xml:"LAST_PLAYED,attr"`
Remixer *string `xml:"REMIXER,attr"`
Rating *string `xml:"RATING,attr"`
Producer *string `xml:"PRODUCER,attr"`
Mix *string `xml:"MIX,attr"`
Color *float64 `xml:"COLOR,attr"`
}
type LocationType ¶
type LoopInfoType ¶
type LoudnessType ¶
type ModificationInfoType ¶
type MusicalKeyType ¶
type NML ¶
type NML struct {
NMLType
}
func CollectionFromString ¶
func ReadFileAndConvertToCollection ¶
ReadFileAndConvertToCollection reads a file and converts it to the Collection struct
type NMLType ¶
type NMLType struct {
Head *HeadType `xml:"HEAD"`
MusicFolders *string `xml:"MUSICFOLDERS"`
Collection *CollectionType `xml:"COLLECTION"`
Sets *SetsType `xml:"SETS"`
Playlists *PlaylistsType `xml:"PLAYLISTS"`
Indexing *IndexingType `xml:"INDEXING"`
SortingOrder []SortingOrderType `xml:"SORTING_ORDER"`
Version *float64 `xml:"VERSION,attr"`
}
type NodeType ¶
type NodeType struct {
Playlist *PlaylistType `xml:"PLAYLIST"`
SubNodes *SubNodesType `xml:"SUBNODES"`
Type *string `xml:"TYPE,attr"`
Name *string `xml:"NAME,attr"`
SmartPlaylist *SmartListType `xml:"SMARTLIST"`
}
type PlaylistType ¶
type PlaylistsType ¶
type PlaylistsType struct {
Node *NodeType `xml:"NODE"`
}
type PrimaryKeyType ¶
type SearchExpressionType ¶
type SetType ¶
type SetType struct {
Location *LocationType `xml:"LOCATION"`
Album *AlbumType `xml:"ALBUM"`
ModificationInfo *ModificationInfoType `xml:"MODIFICATION_INFO"`
Info *InfoType `xml:"INFO"`
Tempo *TempoType `xml:"TEMPO"`
Slot []SlotType `xml:"SLOT"`
Title *string `xml:"TITLE,attr"`
Artist *string `xml:"ARTIST,attr"`
QuantValue *float64 `xml:"QUANT_VAlUE,attr"`
QuantState *float64 `xml:"QUANT_STATE,attr"`
}
type SmartListType ¶
type SmartListType struct {
SearchExpression *SearchExpressionType `xml:"SEARCH_EXPRESSION"`
UUID *string `xml:"UUID,attr"`
}
type SortingDataType ¶
type SortingInfoType ¶
type SortingInfoType struct {
Criteria *CriteriaType `xml:"CRITERIA"`
Path *string `xml:"PATH,attr"`
}
type SortingOrderType ¶
type SortingOrderType struct {
SortingData []SortingDataType `xml:"SORTING_DATA"`
Path *string `xml:"PATH,attr"`
}
type SubNodesType ¶
Click to show internal directories.
Click to hide internal directories.