Skip to content

Commit

Permalink
Renamed the "tempo" attribute to "bpm" in the UI context
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianrudnik committed Oct 31, 2023
1 parent a4fe4e4 commit 6192581
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/parts/search/LiveSetResultItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
</PropertyListItem>

<PropertyListItem
v-if="result.tempo"
v-if="result.bpm"
:title="t('common.label.beats-per-minute.s')"
icon="pi pi-clock"
>
{{ result.tempo }}
{{ result.bpm }}
</PropertyListItem>

<PropertyListItem
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/plugins/search/result/result_live_set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface LiveSetResult {
scale?: string

inKey?: boolean
tempo?: number
bpm?: number

midiTrackCount?: number
audioTrackCount?: number
Expand Down
4 changes: 2 additions & 2 deletions service/internal/indexer/mapping_live_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type LiveSetDocument struct {
ScaleRootNote string `json:"scaleRootNote,omitempty"`

InKey bool `json:"inKey,omitempty"`
Tempo int64 `json:"tempo,omitempty"`
Tempo int64 `json:"bpm,omitempty"`

MidiTrackCount int `json:"midiTrackCount,omitempty"`
AudioTrackCount int `json:"audioTrackCount,omitempty"`
Expand Down Expand Up @@ -64,7 +64,7 @@ func buildLiveSetMapping() *mapping.DocumentMapping {
m.AddFieldMappingsAt("scaleRootNote", mapping.NewKeywordFieldMapping())

m.AddFieldMappingsAt("inKey", mapping.NewBooleanFieldMapping())
m.AddFieldMappingsAt("tempo", mapping.NewNumericFieldMapping())
m.AddFieldMappingsAt("bpm", mapping.NewNumericFieldMapping())

m.AddFieldMappingsAt("midiTrackCount", mapping.NewNumericFieldMapping())
m.AddFieldMappingsAt("audioTrackCount", mapping.NewNumericFieldMapping())
Expand Down

0 comments on commit 6192581

Please sign in to comment.