Commit Graph

60 Commits (40035dee3c74400840a188453d8d7156b1cdeab8)

Author SHA1 Message Date
Georg Krause 40035dee3c Make LooperClip a Time Observer and reset playhead after all beats are played back 2019-05-23 13:34:37 +02:00
Georg Krause d3dfa921c7 Fix setting clips individual playspeed 2019-05-23 13:34:37 +02:00
Georg Krause b196c3667e calculate playspead based on fpd & fix wrong clip reset
This commit calculates the play speed for a looperclip based on the frames per beat, this avoids displacement due to different clip length
Also there was a wrong clip reset when the playhead gets reset in getSample because of the end of buffer. This is not really a nice fix but works for further testing of clipsync
2019-05-23 13:34:37 +02:00
Georg Krause f394454d20 Cleanup and documentation 2019-04-24 08:57:29 +02:00
Georg Krause 1422ab277d Prevent setting playhead from outside for now, only allow reset 2019-04-24 08:57:29 +02:00
Georg Krause 71feed4220 Small cleanup 2019-04-24 08:57:29 +02:00
Georg Krause a29349338f Update controller after each state change 2019-04-24 08:57:29 +02:00
Georg Krause 7412bb49df Make state set functions private 2019-04-24 08:57:29 +02:00
Georg Krause 834260bed4 Clean up the Code 2019-04-24 08:57:29 +02:00
Georg Krause fe2815deb0 Introduce State transition functions 2019-04-24 08:57:29 +02:00
Georg Krause 140663b442 Remove function which handles the audio buffer outside of the LooperClip 2019-04-24 08:57:29 +02:00
Georg Krause c91d593818 move buffer resize request into LooperClip 2019-04-24 08:57:29 +02:00
Georg Krause dd09c3f0ba calculate tempo related numbers on higher precision 2018-06-15 11:25:33 +02:00
Georg Krause a0cca4d78f Reset Playhead on the first beat of the first bar of a loop 2018-06-08 18:34:43 +02:00
coderkun 59b146f052 Use stereo input and stereo audio buffer 2017-03-27 20:53:03 +01:00
Harry van Haaren 01f71ec5e4 astyle: global restyle of codebase (fixes #153)
This to bring common fomatting to the whole project,
including submissions. To format a file to this style:

astyle --style=linux -t8 <file>

Future patches / pull-requests should be in this format.
2016-12-27 13:04:05 +00:00
Harry van Haaren 5acf1f33d6 clip save implemented, fixes #121 2016-11-03 20:09:06 +00:00
Gerald 804bca9135 Loops get retriggered when setting bpm 2016-09-29 19:08:28 +01:00
Gerald 25560ed160 Fixed the issue: Loosing sync after N Beats, found and fixed issue with
metronome dial (integeger numbers where getting translated to fraktional floats in setBpm()), needs more testing
2016-09-15 14:39:13 +02:00
Harry van Haaren d208f8959a -Added LICENSE 2013-12-08 21:44:43 +00:00
Harry van Haaren 6cf8602d95 -Refactoring time handling to process() - bar() - process() 2013-10-12 22:03:36 +01:00
Harry van Haaren eb8b040077 -Working on sampleAccurate Bar() events 2013-10-12 14:41:54 +01:00
Harry van Haaren 09de7af563 -Big refactor of #includes, less compilation deps. Updated TimeManager Bar() to include nframes data 2013-10-12 13:19:37 +01:00
Harry van Haaren de952f69f1 -Fixed function issue, fixed TimeBase 2013-10-03 21:34:41 +01:00
Harry van Haaren 1e5b9ff162 -Fixed missing #include, working on TimeBase stuff 2013-10-03 21:31:30 +01:00
Harry van Haaren 3c1e956fc4 -Updated tests: gridlogic now passes all 2013-09-17 12:51:11 +01:00
Harry van Haaren 89c50f432c -GridLogic launchScene bug fixed 2013-09-06 12:57:45 +01:00
Harry van Haaren 9ba7cdb54a -Updated GridLogic launchScene to stop other scene gracefully 2013-09-06 12:13:15 +01:00
Harry van Haaren a0fb8cb5b5 -Refactoring, working on State::reset() 2013-09-06 01:28:14 +01:00
Harry van Haaren b411df2391 -Refactored Save to State, and SaveAble to Stately 2013-09-06 00:28:11 +01:00
Harry van Haaren cd7336947f -Added FIXME notes 2013-09-05 23:54:58 +01:00
Harry van Haaren ae92ed27b9 -Fixed GridLogic / LooperClip multiple scene launch issue 2013-09-05 23:43:42 +01:00
Harry van Haaren 298b18af04 -Updated LooperClip, it now handles save() gracefully, copying data to GUI thread to be serialized to disk. 2013-09-03 19:35:02 +01:00
Harry van Haaren 1b76c1ce2c -Added EventSave, updated DSP handling code 2013-09-03 18:05:57 +01:00
Harry van Haaren 76a8fe7d91 -LooperClip implements SaveAble interface 2013-09-03 17:47:38 +01:00
Harry van Haaren c2d8e045ce -Fixed LooperClip / Looper interaction, now uses recording() and playing() to determine action to take 2013-08-22 01:40:25 +01:00
Harry van Haaren 9459d0a355 -Updated Looper to use LooperClip::getState() instead of analysing playing() loaded() and recording() 2013-08-22 00:54:40 +01:00
Harry van Haaren 8f71d7411b -Removed State member variable from GridLogic, LooperClip should be analysed for data 2013-08-22 00:46:58 +01:00
Harry van Haaren 96b78f0c5a -Renamed GridState::LOADED to STOPPED 2013-08-22 00:26:01 +01:00
Harry van Haaren 44f6e26da1 -Loading clips now uses GridLogic, and _loaded status is in LooperClip 2013-08-22 00:05:00 +01:00
Harry van Haaren e5dd3bea0d -Updated Looper and LooperClip to be consistent in ClipState 2013-08-21 23:50:52 +01:00
Harry van Haaren ad74c72fea -Refactored LooperClip and TrackOutput 2013-08-15 17:17:16 +01:00
Harry van Haaren f7fce45d4a -Loops can be used as tempo, and Luppp will guess the amount of beats, its tempo based on beats, and start running at that tempo. 2013-08-13 18:34:08 +01:00
Harry van Haaren 1be433f4c7 -Looper speed variable, calculates using TimeManager 2013-08-13 17:57:14 +01:00
Harry van Haaren a19be701c9 -Fixed buffer deallocation in LooperClip 2013-08-13 17:06:59 +01:00
Harry van Haaren 40850e0e41 -UI can set the number of beats in LooperClips 2013-08-13 17:03:33 +01:00
Harry van Haaren c2585b32a2 -Removed all warnings from compile 2013-08-13 16:35:27 +01:00
Harry van Haaren 0306a1873e -Updated APC handling, bug hunting 2013-08-13 00:41:17 +01:00
Harry van Haaren d90921319b -Bug hunting, copying different buffers to master outs, refactored buffers to be allocated statically 2013-08-13 00:02:59 +01:00
Harry van Haaren 6b72cc5115 -Hunting distortion artifacts 2013-08-12 19:01:47 +01:00