-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Beats with UI [GSoC 2020] #2961
Draft
hacksdump
wants to merge
352
commits into
mixxxdj:main
Choose a base branch
from
hacksdump:new-beats-with-ui
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 212 commits
Commits
Show all changes
352 commits
Select commit
Hold shift + click to select a range
51fdd42
remove adapter for calculateBpm
hacksdump 0f8009b
remove adapter for setGrid
hacksdump 2a4bffb
add frame class to avoid sample/frame ambiguity
hacksdump 56e9051
use single f in protobuf
hacksdump 8e6625a
remove all adapters from main source
hacksdump ec62228
adapt tests to frame class
hacksdump 91eb3d8
remove residual beats subclasses and corresponding tests
hacksdump f9fd333
add channel count to beatstest
hacksdump 9b962d7
frame: add multiply and divide operations
hacksdump 480f7f7
beats: use Frame vector in constructor
hacksdump 65a0d84
beatfactory: write adapter to store beatgrid in beats
hacksdump a49ebe0
beatfactory: use common serialized data for all beatgrid version
hacksdump 3e4664e
beats: remove unused code | rename proto
hacksdump a7b6d01
beats: remove unused function getMaxBpm
hacksdump 919e1b9
beats: remove extraneous helper functions
hacksdump 84d689c
beats: remove derivable state variable
hacksdump fe7fd32
beats: remove capability flags
hacksdump 8957a08
beats:doc: describe source of data in constructor
hacksdump e6b0383
beats: remove optional sample rate parameter
hacksdump b156cd5
bpm: remove redundant parantheses
hacksdump e67686f
Merge branch 'ambigous-sample-rate' into remove-beatmap-beatgrid
hacksdump eab8bb0
beats: simplify bpm scale function
hacksdump 43acd8f
timesignature: modify getters setters
hacksdump df01cce
beats: remove test logic from main source
hacksdump bff9917
fix typo
hacksdump 754ecfe
beatutils: don't use framerate for audio
hacksdump 4b515f2
beats: use double instead of rounding
hacksdump a1dc778
beats: define iterator
hacksdump e32a19c
timesignature: move symmetrical operations outside class
hacksdump 454ba2c
remove redundant copying of member variable
hacksdump 7eb655c
timesignature: use protobuf object to store signature
hacksdump 9c981fb
beats: enable setBpm for all Beat detection modes
hacksdump 4329021
frame: replace forward declaration with include
hacksdump 1356ccb
frame.h refactor: use FramePos and FrameDiff_t
hacksdump 9e04891
beats: update outdated constructor documentation
hacksdump 43e16c1
bpmcontrol: use parented pointers
hacksdump f46860f
bpmcontrol: use unique pointers
hacksdump ea4447a
beatiterator: pointer comparison and exclude end
hacksdump 33b6a4f
change control name
hacksdump 79ecd2a
bpm: pass trivially copyable types by value
hacksdump c013576
bpm:use double for multiple and divide operations
hacksdump 0576be8
beatiterator: remove destructor
hacksdump cbc7977
beats.proto: make fields required
hacksdump d255364
beatutils: remove unnecessary const
hacksdump 397b338
beatutils: remove rounding for frame sample conversion
hacksdump a0ff6d9
beats: use correct range while returning iterator
hacksdump cf75244
beatstest: fix time signature test
hacksdump 074a921
beatstest: remove redundant state variable
hacksdump 136060b
waveformrenderbeat: enable beat pen
hacksdump 86b834a
beatstest: fix NthBeatWhenNotOnBeat
hacksdump cab96a2
track: remove obsolete comments and debug info
hacksdump be68912
bpmcontrol_test: fix BeatContext_BeatGrid
hacksdump a9707f8
beatstest: fix BpmAround
hacksdump 33bf4c9
searchqueryparsertest: fuzzy comparison to fix tests
hacksdump 34c35d7
bpm: pass qstring by reference
hacksdump fe266d0
beats: cleaner debug output
hacksdump 4d8f2f2
engine: use inline functions for frame conversion
hacksdump 0534db3
remove unnecessary frame quantization
hacksdump 915a671
beats: rename method
hacksdump ca4425a
beats: remove copy to self
hacksdump 540c749
engine: update function to use FramePos instead of samples
hacksdump c00da80
engine: refactor to use FramePos instead of sample
hacksdump 5f0ce46
beats: don't delete beats on translate
hacksdump fa86f2a
frame: use constant for invalid frame instead of -1
hacksdump 38555e0
beatstranslatetest: fix SimpleTranslateMatch
hacksdump 7f89649
frame: use C++ style limits
hacksdump 68a1949
use inline functions for sample frame conversion
hacksdump c19d2f2
fix wrong assignment to beats
hacksdump 55d7784
loopingcontrol: use inline functions for sample frame conversion
hacksdump 1fff80c
Merge branch 'master' into remove-beatmap-beatgrid
hacksdump 4f28348
loopingcontroltest: beat size within track duration
hacksdump 8506d0b
use correct epsilon for finding nearby beat
hacksdump 71bf183
fix enginesynctest failing due to typo
hacksdump 3933e76
fix searchqueryparser test by reducing double precision
hacksdump 85e75c9
remove unused functions
hacksdump 425c7fd
remove unnecesary debug function
hacksdump 2ca2be4
searchquery: improve comment on precision downgrading
hacksdump 0710437
beats: use namespaced constants
hacksdump 006cd74
factor out frame sample adapter functions
hacksdump cd80c28
loopingcontol: replace wrong variable
hacksdump bcd32c1
move frameadapter to util
hacksdump a7a7edd
use frameadapter in track
hacksdump 6268b30
fix scons build
hacksdump b2a9bcf
frameadapter: change comment
hacksdump 792c682
beats: temporary dirty workaround for copy constructor
hacksdump 8452657
beatsproto: make all fields optional
hacksdump 8134eae
create new internal beats class independent of QObject
hacksdump a60beee
simplify copy constructor
hacksdump 9a08d05
beats: move findNthBeat to plain class
hacksdump 13538d3
beats: move more code to plain class
hacksdump 0a5fba3
beats: move scale functions to plain class
hacksdump 274c9fa
beats: move all implementation to plain class
hacksdump 49686eb
beats: use function to calculate beat length
hacksdump eb3b6c9
beats: add back old protobuf types for backwards compatibility
hacksdump d3b7a5a
beats: add version to distinguish from earlier versions
hacksdump 79f5b2a
beats: add migration code
hacksdump 6a52cab
merge from master and resolve conflicts
hacksdump abf9694
update comments
hacksdump 7302922
revert all UI changes
hacksdump 77c8d82
use beat indices as marker basis
hacksdump 1e2565a
change section message
hacksdump cc0d8ef
remove redundant ctor initializer
hacksdump de26dd4
remove legacy name from comment
hacksdump e76bfc3
add debug asserts
hacksdump 1967c0f
add placeholder parameters
hacksdump 8f32635
change comparator name
hacksdump bbca10d
Merge branch 'master' into remove-beatmap-beatgrid
hacksdump 372152e
merge downbeats with new beats
hacksdump 32e6b6a
fix beatgrid mode load on init
hacksdump ad0290d
start creating time signature editor widget
hacksdump 933020d
beats.proto: simplify bpm marker
hacksdump 88dcdeb
beats.proto: remove unecessary defaults
hacksdump 090528f
beats.proto: comment phrases and sections
hacksdump 787b007
set beats per bar with time signature menu
hacksdump 811135a
fix time signature menu popup location
hacksdump e56bf68
allow note lengths other than 4
hacksdump e9c7e62
add note length combo box to time signature editor
hacksdump 57a8969
remove numeric translation
hacksdump 8bc9a36
set min number of beats in a bar as 1
hacksdump 5b2f5b7
use frameadapter functions
hacksdump f898748
make local copy to avoid race condition
hacksdump c3d004e
fix invalid frame value
hacksdump 812d137
bpmcontrol: fix offset
hacksdump e3f23d4
use the more obvious way to get first beat
hacksdump 191da3a
add graphic markers to indicate change in beatgrid
hacksdump 7b3b28b
add display labe to waveformbeatmarker
hacksdump 1468375
clear redundant markers
hacksdump bb3c711
add test to check bpm with time signature
hacksdump a410210
adjust opacity for downbeat triangles with preferences
hacksdump c38c927
beats: remove unused functions
hacksdump 084fa4a
shift downbeats by an offset
hacksdump f1851af
resolve merge conflicts
hacksdump 7fa9e95
factor out play marker to its own render
hacksdump 61e802f
draw bar and beat counter alongside playhead
hacksdump 6c2ff50
create bpm editor context menu
hacksdump 5cb40dd
fix segfault
hacksdump 3b7a848
remove unused function
hacksdump b02c703
remove irrelevant comment
hacksdump 8ab2020
merge from master and resolve conflicts
hacksdump 833d3d6
waveformrenderplaymarker: create function to generate display text
hacksdump b8a49f7
waveformrenderplaymarker: shift display box to start
hacksdump ed408f5
reduce downbeat triangle edge length
hacksdump f16cc57
remove downbeat triangle border
hacksdump ce4950f
remove debug asserts for default time signature assignment
hacksdump 9ed5c89
reduce beatmarker triangle size and change color
hacksdump c90de25
reduce downbeat triangle size to 6 pixels
hacksdump e931e60
fix broken BeatsTest::BpmAround
hacksdump e6abe9b
fix broken beat marker assignment
hacksdump 3bb0f66
enable bpm editing at all beats
hacksdump 1e560ed
fix parented_ptr debug_assert on wbeatmenu
hacksdump 9e1a150
fix enginesynctest
hacksdump 3add426
remove todo
hacksdump 2a6f038
add downbeat numbers near downbeat triangles
hacksdump b358168
waveformbeatmarker: font, alignment and color changes
hacksdump dc3a571
beats: fix debug assert condition
hacksdump ca92a12
beats: reduce floating point precision requirement for comparison
hacksdump ff68b5a
hide downbeats on zoomout
hacksdump eb2923c
use qt float comparison instead of custom threshold
hacksdump 699289a
signature menu: add half double time buttons
hacksdump c2a1cb0
use constant for starting frame pos
hacksdump 94fa463
define constant for first beat index
hacksdump 77140bb
use 'small' instead of 'slight'
hacksdump 1eab86f
add missing braces with single line if blocks
hacksdump 204b8a5
use implicit constructor to initialize empty BPM
hacksdump 101f4ae
use frameadapter functions
hacksdump a199842
restore searchquery.cpp functionality without fuzzy compare
hacksdump 42b751b
use camel case for enum values
hacksdump 706a7a3
beats.proto: add comment to explain prospective code
hacksdump 7f01fb6
beat.h: extract enums and remove 'get' from getters
hacksdump 4c7d3d7
fix Track and Beats ownership
hacksdump ef2cc65
rename getBpm to getGlobalBpm
hacksdump 8924435
beats: remove age old comment
hacksdump 7a59f6a
allow only track to create beats
hacksdump ce0c966
use StreamInfo to encode sample rate and duration
hacksdump 207747b
remove Track from Beats constructor
hacksdump 1b9148a
store StreamInfo in BeatsInternal
hacksdump aa2bb84
beats.proto: store start beat in time unit
hacksdump 09442e2
track.cpp: fix beats assignment in setBeats
hacksdump 60eaa03
remove bpm around function
hacksdump dd8270b
move kFirstBeatIndex out of anon namespace
hacksdump 0c88676
use proposed doxygen comment style
hacksdump 3ec8ab7
disable bpm markers on waveform
hacksdump af8ff0e
extract BPMScale with CamelCase members
hacksdump 5edbd8d
add test to check beatjump before track
hacksdump d9d1d89
make beatinbarindex unsigned
hacksdump b8f5809
generate beats before the first beat
hacksdump 734a2d0
generate beats before start and after end
hacksdump ac32f50
remove redundant function
hacksdump cd4c52c
hybridize nthbeat and fix accompanying tests
hacksdump 40e8877
remove beatiterator
hacksdump f06be24
hybridize findPrevNextBeats and fix accompanying tests
hacksdump b5f5b05
fix beatjump test
hacksdump 1c82271
merge local branch and resolve conflicts
hacksdump 9e62c78
remove references to smart pointers
hacksdump a267a44
remove -1 from beats documentation comments
hacksdump 68cb8e1
use nan instead of negative inf
hacksdump 2ced9b0
fix if else nesting
hacksdump 4879d89
merge from master and resolve conflicts
hacksdump 1848b47
use mode bpm as global bpm
hacksdump 3086160
Merge branch 'master' of github.com:mixxxdj/mixxx into new-beats-with-ui
hacksdump 9ec079f
use default destructor
hacksdump 11b2fde
stop early if there are no beats on screen
hacksdump 4d4ca2a
add virtual destructor to interface
hacksdump 4a61532
remove unused comparator
hacksdump ebfb63d
move geometryutils code to cpp file
hacksdump 2ea3d2f
track: remove redundant debug function
hacksdump 4b36b83
timesignature: remove preamble
hacksdump 83f7c03
add QT declarations for FramePos
hacksdump 0acc63e
framepos: define static start and invalid constants
hacksdump ec984f9
remove redundant streaminfo parameter
hacksdump 2fe74a0
use absolute header include path
hacksdump 7c5cad2
use the commonly used term sampleRate
hacksdump 03dab11
track: update beats stream info on setBeats
hacksdump 2b7ff8e
move long implementation to cpp file
hacksdump a5ebf61
use CamelCase constants
hacksdump 9069848
fix include order
hacksdump 904855b
beat.h: add comparison operators
hacksdump 4c035f1
use std::optional instead of kInvalidBeat
hacksdump 106edce
use early return instead of if-else nesting
hacksdump b496fcb
use SampleRate instead of plain double
hacksdump 52895c3
return value instead of mutating parameters
hacksdump 329e624
add missing locking to qDebug
hacksdump 71a09c6
store beats and sample rate separately
hacksdump 1a1c5f3
Merge branch 'master' into new-beats-with-ui
hacksdump 9e0152f
fix no bpm in dlgtrackinfo
hacksdump ac82ed1
remove m_sampleRate from bpmcontrol
hacksdump 31d0497
use double instead of Duration for time
hacksdump 98eab8e
Merge branch 'master' into new-beats-with-ui
hacksdump 281445b
use explicit type instead of auto
hacksdump 975b28e
copy m_pBeats locally in functions
hacksdump 0f67b0e
use curly braces
hacksdump 510907f
Merge branch 'master' into new-beats-with-ui
hacksdump 09af57c
Merge branch 'main' of github.com:mixxxdj/mixxx into new-beats-with-ui
Holzhaus 2ff46a2
WaveformBeatMarker: Fix build with Qt < 5.11.0
Holzhaus 9a2d250
Beats: Replace cbegin/cend for compatibility reasons
Holzhaus 6e3da98
track: Pass arguments by reference (fixes clazy warnings)
Holzhaus 10e60ad
waveformbeat: Fix -Wfloat-conversion warning for QFont.setPixelSize
Holzhaus f8eda94
WaveformRenderBeat: Don't use std::optional<T>::value()
Holzhaus 7cac45b
Beats: Fix more clazy warnings
Holzhaus 9475a4d
WaveformBeat: Fix clazy warnings
Holzhaus a10b7a4
Fix more clazy warnings
Holzhaus 2b0ecad
track: Fix some clang-tidy warnings
Holzhaus a759b10
Merge branch 'main' of github.com:mixxxdj/mixxx into new-beats-with-ui
Holzhaus c5a3903
EngineBuffer: Use sample/frame conversion functions from frameadapter.h
Holzhaus d1967a7
BeatsTest: Fix expected return value for Beats::findNthBeat
Holzhaus d51caa7
Merge branch 'main' of github.com:mixxxdj/mixxx into new-beats-with-ui
Holzhaus 66d4be5
track: Fix DEBUG_ASSERT when importing beats from Serato Metadata
Holzhaus df01aa0
Merge pull request #3 from Holzhaus/new-beats-with-ui
hacksdump 4dbc221
Merge commit '5de725f4a1e8a5acb27bee4960dcd2bbdf127bbf' into new-beat…
daschuer 6d07ab2
Fix looping tests
daschuer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use static casts in this case, to have it clear distinguished from a function call.